From 09255379145909d972de6724e0aed466c37c36cd Mon Sep 17 00:00:00 2001 From: Hector Hernandez <39923391+hectorhdzg@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:02:24 -0800 Subject: [PATCH 01/57] [Azure Monitor OpenTelemetry] Adding properties in Live Metrics Documents (#28823) ### Packages impacted by this PR @azure/monitor-opentelemetry --- .../src/utils/spanUtils.ts | 2 +- .../src/metrics/quickpulse/liveMetrics.ts | 4 +- .../src/metrics/quickpulse/utils.ts | 40 ++++++++++++ .../internal/unit/metrics/liveMetrics.test.ts | 65 +++++++++++++++++-- 4 files changed, 104 insertions(+), 7 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts index d1a0d0389b70..9af5bb7ebf04 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/spanUtils.ts @@ -127,7 +127,7 @@ function createDependencyData(span: ReadableSpan): RemoteDependencyData { const remoteDependencyData: RemoteDependencyData = { name: span.name, // Default id: `${span.spanContext().spanId}`, - success: span.status.code !== SpanStatusCode.ERROR, + success: span.status?.code !== SpanStatusCode.ERROR, resultCode: "0", type: "Dependency", duration: msToTimeSpan(hrTimeToMilliseconds(span.duration)), diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts index a47428413e5d..00349dc13e74 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts @@ -13,6 +13,7 @@ import { ObservableGauge, ObservableResult, SpanKind, + SpanStatusCode, ValueType, context, } from "@opentelemetry/api"; @@ -366,8 +367,7 @@ export class LiveMetrics { let document: Request | RemoteDependency = getSpanDocument(span); this.addDocument(document); const durationMs = hrTimeToMilliseconds(span.duration); - const statusCode = String(span.attributes["http.status_code"]); - let success = statusCode === "200" ? true : false; + let success = span.status.code !== SpanStatusCode.ERROR; if (span.kind === SpanKind.SERVER || span.kind === SpanKind.CONSUMER) { this.totalRequestCount++; diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts index 18843813e88d..c0ca98d1975e 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts @@ -6,6 +6,7 @@ import { LogRecord } from "@opentelemetry/sdk-logs"; import { DocumentIngress, Exception, + KeyValuePairString, KnownDocumentIngressDocumentType, MetricPoint, MonitoringDataPoint, @@ -30,6 +31,7 @@ import { Resource } from "@opentelemetry/resources"; import { QuickPulseMetricNames, QuickPulseOpenTelemetryMetricNames } from "./types"; import { getOsPrefix } from "../../utils/common"; import { getResourceProvider } from "../../utils/common"; +import { LogAttributes } from "@opentelemetry/api-logs"; /** Get the internal SDK version */ export function getSdkVersion(): string { @@ -229,6 +231,7 @@ export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency duration: hrTimeToMilliseconds(span.duration).toString(), }; } + document.properties = createPropertiesFromAttributes(span.attributes); return document; } @@ -250,9 +253,46 @@ export function getLogDocument(logRecord: LogRecord): Trace | Exception { message: String(logRecord.body), }; } + document.properties = createPropertiesFromAttributes(logRecord.attributes); return document; } +function createPropertiesFromAttributes( + attributes?: Attributes | LogAttributes, +): KeyValuePairString[] { + const properties: KeyValuePairString[] = []; + if (attributes) { + for (const key of Object.keys(attributes)) { + // Avoid duplication ignoring fields already mapped. + if ( + !( + key.startsWith("_MS.") || + key === SemanticAttributes.NET_PEER_IP || + key === SemanticAttributes.NET_PEER_NAME || + key === SemanticAttributes.PEER_SERVICE || + key === SemanticAttributes.HTTP_METHOD || + key === SemanticAttributes.HTTP_URL || + key === SemanticAttributes.HTTP_STATUS_CODE || + key === SemanticAttributes.HTTP_ROUTE || + key === SemanticAttributes.HTTP_HOST || + key === SemanticAttributes.HTTP_URL || + key === SemanticAttributes.DB_SYSTEM || + key === SemanticAttributes.DB_STATEMENT || + key === SemanticAttributes.DB_OPERATION || + key === SemanticAttributes.DB_NAME || + key === SemanticAttributes.RPC_SYSTEM || + key === SemanticAttributes.RPC_GRPC_STATUS_CODE || + key === SemanticAttributes.EXCEPTION_TYPE || + key === SemanticAttributes.EXCEPTION_MESSAGE + ) + ) { + properties.push({ key: key, value: attributes[key] as string }); + } + } + } + return properties; +} + function getUrl(attributes: Attributes): string { if (!attributes) { return ""; diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts index dfab26d05a41..2f2491a20f13 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. - import * as assert from "assert"; import * as sinon from "sinon"; -import { SpanKind } from "@opentelemetry/api"; +import { SpanKind, SpanStatusCode } from "@opentelemetry/api"; import { ExportResultCode, millisToHrTime } from "@opentelemetry/core"; import { LoggerProvider, LogRecord } from "@opentelemetry/sdk-logs"; import { LiveMetrics } from "../../../../src/metrics/quickpulse/liveMetrics"; import { InternalConfig } from "../../../../src/shared"; import { QuickPulseOpenTelemetryMetricNames } from "../../../../src/metrics/quickpulse/types"; +import { Exception, RemoteDependency, Request } from "../../../../src/generated"; describe("#LiveMetrics", () => { let exportStub: sinon.SinonStub; @@ -56,15 +56,21 @@ describe("#LiveMetrics", () => { ); autoCollect.recordLog(traceLog as any); traceLog.attributes["exception.type"] = "testExceptionType"; + traceLog.attributes["exception.message"] = "testExceptionMessage"; for (let i = 0; i < 5; i++) { autoCollect.recordLog(traceLog as any); } - let clientSpan: any = { kind: SpanKind.CLIENT, duration: millisToHrTime(12345678), attributes: { "http.status_code": 200, + "http.method": "GET", + "http.url": "http://test.com", + customAttribute: "test", + }, + status: { + code: SpanStatusCode.OK, }, }; autoCollect.recordSpan(clientSpan); @@ -74,6 +80,12 @@ describe("#LiveMetrics", () => { duration: millisToHrTime(98765432), attributes: { "http.status_code": 200, + "http.method": "GET", + "http.url": "http://test.com", + customAttribute: "test", + }, + status: { + code: SpanStatusCode.OK, }, }; for (let i = 0; i < 2; i++) { @@ -83,12 +95,14 @@ describe("#LiveMetrics", () => { // Different dimensions clientSpan.attributes["http.status_code"] = "400"; clientSpan.duration = millisToHrTime(900000); + clientSpan.status.code = SpanStatusCode.ERROR; for (let i = 0; i < 3; i++) { autoCollect.recordSpan(clientSpan); } serverSpan.duration = millisToHrTime(100000); serverSpan.attributes["http.status_code"] = "400"; + serverSpan.status.code = SpanStatusCode.ERROR; for (let i = 0; i < 4; i++) { autoCollect.recordSpan(serverSpan); } @@ -162,13 +176,56 @@ describe("#LiveMetrics", () => { QuickPulseOpenTelemetryMetricNames.PROCESSOR_TIME, ); assert.strictEqual(metrics[7].dataPoints.length, 1, "dataPoints count"); - assert.ok(metrics[7].dataPoints[0].value > 0, "PROCESSOR_TIME dataPoint value"); + assert.ok(metrics[7].dataPoints[0].value >= 0, "PROCESSOR_TIME dataPoint value"); assert.strictEqual( metrics[8].descriptor.name, QuickPulseOpenTelemetryMetricNames.EXCEPTION_RATE, ); assert.strictEqual(metrics[8].dataPoints.length, 1, "dataPoints count"); assert.ok(metrics[5].dataPoints[0].value > 0, "EXCEPTION_RATE value"); + + // Validate documents + const documents = autoCollect.getDocuments(); + assert.strictEqual(documents.length, 16, "documents count"); + // assert.strictEqual(JSON.stringify(documents), "documents count"); + assert.strictEqual(documents[0].documentType, "Exception"); + assert.strictEqual((documents[0] as Exception).exceptionType, "undefined"); + assert.strictEqual((documents[0] as Exception).exceptionMessage, "undefined"); + assert.strictEqual(documents[0].properties?.length, 0); + for (let i = 1; i < 5; i++) { + assert.strictEqual(documents[i].documentType, "Exception"); + assert.strictEqual((documents[i] as Exception).exceptionType, "testExceptionType"); + assert.strictEqual((documents[i] as Exception).exceptionMessage, "testExceptionMessage"); + assert.strictEqual(documents[i].properties?.length, 0); + } + assert.strictEqual(documents[6].documentType, "RemoteDependency"); + assert.strictEqual((documents[6] as RemoteDependency).commandName, "http://test.com"); + assert.strictEqual((documents[6] as RemoteDependency).resultCode, "200"); + assert.strictEqual((documents[6] as RemoteDependency).duration, "12345678"); + assert.equal((documents[6].properties as any)[0].key, "customAttribute"); + assert.equal((documents[6].properties as any)[0].value, "test"); + for (let i = 7; i < 9; i++) { + assert.strictEqual((documents[i] as Request).url, "http://test.com"); + assert.strictEqual((documents[i] as Request).responseCode, "200"); + assert.strictEqual((documents[i] as Request).duration, "98765432"); + assert.equal((documents[i].properties as any)[0].key, "customAttribute"); + assert.equal((documents[i].properties as any)[0].value, "test"); + } + for (let i = 9; i < 12; i++) { + assert.strictEqual(documents[i].documentType, "RemoteDependency"); + assert.strictEqual((documents[i] as RemoteDependency).commandName, "http://test.com"); + assert.strictEqual((documents[i] as RemoteDependency).resultCode, "400"); + assert.strictEqual((documents[i] as RemoteDependency).duration, "900000"); + assert.equal((documents[i].properties as any)[0].key, "customAttribute"); + assert.equal((documents[i].properties as any)[0].value, "test"); + } + for (let i = 12; i < 15; i++) { + assert.strictEqual((documents[i] as Request).url, "http://test.com"); + assert.strictEqual((documents[i] as Request).responseCode, "400"); + assert.strictEqual((documents[i] as Request).duration, "100000"); + assert.equal((documents[i].properties as any)[0].key, "customAttribute"); + assert.equal((documents[i].properties as any)[0].value, "test"); + } }); it("should retrieve meter provider", () => { From f6cb7870edce5804550f9bf0caef73c8be63a713 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 8 Mar 2024 13:12:34 -0500 Subject: [PATCH 02/57] Sync eng/common directory with azure-sdk-tools for PR 7842 (#28839) Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7842 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Anne Thompson --- eng/common/scripts/Test-SampleMetadata.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/eng/common/scripts/Test-SampleMetadata.ps1 b/eng/common/scripts/Test-SampleMetadata.ps1 index 4a0000220fde..9e50fa1dce03 100644 --- a/eng/common/scripts/Test-SampleMetadata.ps1 +++ b/eng/common/scripts/Test-SampleMetadata.ps1 @@ -330,6 +330,7 @@ begin { "blazor-webassembly", "common-data-service", "customer-voice", + "dotnet-api", "dotnet-core", "dotnet-standard", "document-intelligence", From 2cba79c4bff99e24d98b5a601dd826ddffdff7ac Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:04:31 -0500 Subject: [PATCH 03/57] Sync eng/common directory with azure-sdk-tools for PR 7835 (#28841) Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7835 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Wes Haggard --- eng/common/scripts/Prepare-Release.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1 index 269fd113fd69..e82c5982ac96 100644 --- a/eng/common/scripts/Prepare-Release.ps1 +++ b/eng/common/scripts/Prepare-Release.ps1 @@ -116,7 +116,7 @@ $month = $ParsedReleaseDate.ToString("MMMM") Write-Host "Assuming release is in $month with release date $releaseDateString" -ForegroundColor Green if (Test-Path "Function:GetExistingPackageVersions") { - $releasedVersions = GetExistingPackageVersions -PackageName $packageProperties.Name -GroupId $packageProperties.Group + $releasedVersions = @(GetExistingPackageVersions -PackageName $packageProperties.Name -GroupId $packageProperties.Group) if ($null -ne $releasedVersions -and $releasedVersions.Count -gt 0) { $latestReleasedVersion = $releasedVersions[$releasedVersions.Count - 1] From 237c0a0d3b36cf784185088dfd6461fecb87a6a1 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:09:28 -0500 Subject: [PATCH 04/57] Sync .github/workflows directory with azure-sdk-tools for PR 7845 (#28842) Sync .github/workflows directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7845 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: James Suplizio Co-authored-by: Wes Haggard --- .github/workflows/event-processor.yml | 68 +++++++++++++++++++++++++-- 1 file changed, 63 insertions(+), 5 deletions(-) diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml index 649b211e9254..66442232c93b 100644 --- a/.github/workflows/event-processor.yml +++ b/.github/workflows/event-processor.yml @@ -17,26 +17,29 @@ on: permissions: {} jobs: - event-handler: + # This event requires the Azure CLI to get the LABEL_SERVICE_API_KEY from the vault. + # Because the azure/login step adds time costly pre/post Az CLI commands to any every job + # it's used in, split this into its own job so only the event that needs the Az CLI pays + # the cost. + event-handler-with-azure: permissions: issues: write pull-requests: write # For OIDC auth id-token: write contents: read - name: Handle ${{ github.event_name }} ${{ github.event.action }} event + name: Handle ${{ github.event_name }} ${{ github.event.action }} event with azure login runs-on: ubuntu-latest + if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} steps: - name: 'Az CLI login' - if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} - uses: azure/login@v1.5.1 + uses: azure/login@v1 with: client-id: ${{ secrets.AZURE_CLIENT_ID }} tenant-id: ${{ secrets.AZURE_TENANT_ID }} subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} - name: 'Run Azure CLI commands' - if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} run: | LABEL_SERVICE_API_KEY=$(az keyvault secret show \ --vault-name issue-labeler \ @@ -94,3 +97,58 @@ jobs: # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} LABEL_SERVICE_API_KEY: ${{ env.LABEL_SERVICE_API_KEY }} + + event-handler: + permissions: + issues: write + pull-requests: write + name: Handle ${{ github.event_name }} ${{ github.event.action }} event + runs-on: ubuntu-latest + if: ${{ github.event_name != 'issues' || github.event.action != 'opened' }} + steps: + # To run github-event-processor built from source, for testing purposes, uncomment everything + # in between the Start/End-Build From Source comments and comment everything in between the + # Start/End-Install comments + # Start-Install + - name: Install GitHub Event Processor + run: > + dotnet tool install + Azure.Sdk.Tools.GitHubEventProcessor + --version 1.0.0-dev.20240229.2 + --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json + --global + shell: bash + # End-Install + + # Testing checkout of sources from the Azure/azure-sdk-tools repository + # The ref: is the SHA from the pull request in that repository or the + # refs/pull//merge for the latest on any given PR. If the repository + # is a fork eg. /azure-sdk-tools then the repository down below will + # need to point to that fork + # Start-Build + # - name: Checkout tools repo for GitHub Event Processor sources + # uses: actions/checkout@v3 + # with: + # repository: Azure/azure-sdk-tools + # path: azure-sdk-tools + # ref: /merge> or + + # - name: Build and install GitHubEventProcessor from sources + # run: | + # dotnet pack + # dotnet tool install --global --prerelease --add-source ../../../artifacts/packages/Debug Azure.Sdk.Tools.GitHubEventProcessor + # shell: bash + # working-directory: azure-sdk-tools/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor + # End-Build + + - name: Process Action Event + run: | + cat > payload.json << 'EOF' + ${{ toJson(github.event) }} + EOF + github-event-processor ${{ github.event_name }} payload.json + shell: bash + env: + # This is a temporary secret generated by github + # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 6e1b9b39e89063fc52a7838d07a43ace137b5a74 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Fri, 8 Mar 2024 11:52:34 -0800 Subject: [PATCH 05/57] [identity] Fix nightly tests (#28843) ### Packages impacted by this PR @azure/identity ### Issues associated with this PR Nightly test failures ### Describe the problem that is addressed by this PR Our nightly tests started failing with a `TypeError: Descriptor for property generatePluginConfiguration is non-configurable and non-writable` error. I'm far from an expert here, but I believe the error is due to ESModules being immutable, whereas CJS Modules are mutable. Wrapping the stubbable / mockable object is a reasonable workaround to keep tests green regardless of whether they get run as ESM or CJS ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? Deleting the tests is an option, or an integration test. Neither seem to fit the bill here. Once we have credentials migrated over we may be able to delete some of the unit tests and rely on recorded tests to test the various scenarios. But we are not there yet. --- .../identity/src/msal/nodeFlows/msalClient.ts | 4 ++-- .../identity/src/msal/nodeFlows/msalPlugins.ts | 9 ++++++++- .../identity/test/internal/node/msalClient.spec.ts | 2 +- .../test/internal/node/msalPlugins.spec.ts | 14 +++++++------- 4 files changed, 18 insertions(+), 11 deletions(-) diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalClient.ts b/sdk/identity/identity/src/msal/nodeFlows/msalClient.ts index 20b394e697cf..2fdb72fed08e 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalClient.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalClient.ts @@ -4,7 +4,7 @@ import * as msal from "@azure/msal-node"; import { AccessToken, GetTokenOptions } from "@azure/core-auth"; -import { PluginConfiguration, generatePluginConfiguration } from "./msalPlugins"; +import { PluginConfiguration, msalPlugins } from "./msalPlugins"; import { credentialLogger, formatSuccess } from "../../util/logging"; import { defaultLoggerCallback, @@ -141,7 +141,7 @@ export function createMsalClient( cachedAccount: createMsalClientOptions.authenticationRecord ? publicToMsal(createMsalClientOptions.authenticationRecord) : null, - pluginConfiguration: generatePluginConfiguration(createMsalClientOptions), + pluginConfiguration: msalPlugins.generatePluginConfiguration(createMsalClientOptions), }; const confidentialApps: Map = new Map(); diff --git a/sdk/identity/identity/src/msal/nodeFlows/msalPlugins.ts b/sdk/identity/identity/src/msal/nodeFlows/msalPlugins.ts index c5d2145afb42..099f7d732058 100644 --- a/sdk/identity/identity/src/msal/nodeFlows/msalPlugins.ts +++ b/sdk/identity/identity/src/msal/nodeFlows/msalPlugins.ts @@ -82,7 +82,7 @@ export const msalNodeFlowNativeBrokerControl: NativeBrokerPluginControl = { * @param options - options for creating the MSAL client * @returns plugin configuration */ -export function generatePluginConfiguration(options: MsalClientOptions): PluginConfiguration { +function generatePluginConfiguration(options: MsalClientOptions): PluginConfiguration { const config: PluginConfiguration = { cache: {}, broker: { @@ -130,3 +130,10 @@ export function generatePluginConfiguration(options: MsalClientOptions): PluginC return config; } + +/** + * Wraps generatePluginConfiguration as a writeable property for test stubbing purposes. + */ +export const msalPlugins = { + generatePluginConfiguration, +}; diff --git a/sdk/identity/identity/test/internal/node/msalClient.spec.ts b/sdk/identity/identity/test/internal/node/msalClient.spec.ts index ba03e6aad1e0..c4ad622eac28 100644 --- a/sdk/identity/identity/test/internal/node/msalClient.spec.ts +++ b/sdk/identity/identity/test/internal/node/msalClient.spec.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license. import * as msalClient from "../../../src/msal/nodeFlows/msalClient"; -import * as msalPlugins from "../../../src/msal/nodeFlows/msalPlugins"; import { AuthenticationResult, ConfidentialClientApplication } from "@azure/msal-node"; import { MsalTestCleanup, msalNodeTestSetup } from "../../node/msalNodeTestSetup"; @@ -13,6 +12,7 @@ import { AuthenticationRequiredError } from "../../../src/errors"; import { IdentityClient } from "../../../src/client/identityClient"; import { assert } from "@azure/test-utils"; import { credentialLogger } from "../../../src/util/logging"; +import { msalPlugins } from "../../../src/msal/nodeFlows/msalPlugins"; import sinon from "sinon"; describe("MsalClient", function () { diff --git a/sdk/identity/identity/test/internal/node/msalPlugins.spec.ts b/sdk/identity/identity/test/internal/node/msalPlugins.spec.ts index edeb73fcb2d1..cf1de97d8da3 100644 --- a/sdk/identity/identity/test/internal/node/msalPlugins.spec.ts +++ b/sdk/identity/identity/test/internal/node/msalPlugins.spec.ts @@ -4,9 +4,9 @@ import { ICachePlugin, INativeBrokerPlugin } from "@azure/msal-node"; import { PluginConfiguration, - generatePluginConfiguration, msalNodeFlowCacheControl, msalNodeFlowNativeBrokerControl, + msalPlugins, } from "../../../src/msal/nodeFlows/msalPlugins"; import { MsalClientOptions } from "../../../src/msal/nodeFlows/msalClient"; @@ -21,7 +21,7 @@ describe("#generatePluginConfiguration", function () { }); it("returns a PluginConfiguration with default values", function () { - const result = generatePluginConfiguration(options); + const result = msalPlugins.generatePluginConfiguration(options); const expected: PluginConfiguration = { cache: {}, broker: { @@ -40,7 +40,7 @@ describe("#generatePluginConfiguration", function () { it("should throw an error if persistence provider is not configured", () => { options.tokenCachePersistenceOptions = { enabled: true }; assert.throws( - () => generatePluginConfiguration(options), + () => msalPlugins.generatePluginConfiguration(options), /Persistent token caching was requested/, ); }); @@ -54,7 +54,7 @@ describe("#generatePluginConfiguration", function () { }; const pluginProvider: () => Promise = () => Promise.resolve(cachePlugin); msalNodeFlowCacheControl.setPersistence(pluginProvider); - const result = generatePluginConfiguration(options); + const result = msalPlugins.generatePluginConfiguration(options); assert.exists(result.cache.cachePlugin); const plugin = await result.cache.cachePlugin; assert.strictEqual(plugin, cachePlugin); @@ -69,7 +69,7 @@ describe("#generatePluginConfiguration", function () { }; const pluginProvider: () => Promise = () => Promise.resolve(cachePluginCae); msalNodeFlowCacheControl.setPersistence(pluginProvider); - const result = generatePluginConfiguration(options); + const result = msalPlugins.generatePluginConfiguration(options); assert.exists(result.cache.cachePluginCae); const plugin = await result.cache.cachePluginCae; assert.strictEqual(plugin, cachePluginCae); @@ -86,7 +86,7 @@ describe("#generatePluginConfiguration", function () { it("throws an error if native broker is not configured", () => { options.brokerOptions = { enabled: true, parentWindowHandle }; assert.throws( - () => generatePluginConfiguration(options), + () => msalPlugins.generatePluginConfiguration(options), /Broker for WAM was requested to be enabled/, ); }); @@ -100,7 +100,7 @@ describe("#generatePluginConfiguration", function () { const nativeBrokerPlugin: INativeBrokerPlugin = {} as INativeBrokerPlugin; msalNodeFlowNativeBrokerControl.setNativeBroker(nativeBrokerPlugin); - const result = generatePluginConfiguration(options); + const result = msalPlugins.generatePluginConfiguration(options); assert.strictEqual(result.broker.nativeBrokerPlugin, nativeBrokerPlugin); assert.strictEqual(result.broker.enableMsaPassthrough, true); assert.strictEqual(result.broker.parentWindowHandle, parentWindowHandle); From cbb87057d01f64f4b02cb37a4b605c54eefa291c Mon Sep 17 00:00:00 2001 From: Jackson Weber <47067795+JacksonWeber@users.noreply.github.com> Date: Fri, 8 Mar 2024 13:47:18 -0800 Subject: [PATCH 06/57] [Azure Monitor OpenTelemetry] Update Application Insights Web Snippet Package (#28827) ### Packages impacted by this PR @azure/monitor-opentelemetry ### Describe the problem that is addressed by this PR Package should be updated to the latest version and tests updated appropriately. ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [x] Added a changelog (if necessary) --- common/config/rush/pnpm-lock.yaml | 8 +-- .../monitor-opentelemetry/CHANGELOG.md | 6 ++ .../monitor-opentelemetry/package.json | 2 +- .../browserSdkLoader/browserSdkLoader.test.ts | 58 ++++++++++++------- 4 files changed, 49 insertions(+), 25 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index c2736327ab5a..31d0c8cdb54a 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2285,8 +2285,8 @@ packages: - '@types/node' dev: false - /@microsoft/applicationinsights-web-snippet@1.0.1: - resolution: {integrity: sha512-2IHAOaLauc8qaAitvWS+U931T+ze+7MNWrDHY47IENP5y2UA0vqJDu67kWZDdpCN1fFC77sfgfB+HV7SrKshnQ==} + /@microsoft/applicationinsights-web-snippet@1.1.2: + resolution: {integrity: sha512-qPoOk3MmEx3gS6hTc1/x8JWQG5g4BvRdH7iqZMENBsKCL927b7D7Mvl19bh3sW9Ucrg1fVrF+4hqShwQNdqLxQ==} dev: false /@microsoft/tsdoc-config@0.16.2: @@ -20275,13 +20275,13 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-WBujV1y7D6UTSec+Bsha86JZGhqO1YFlgQmKWJNPDuAAkDaaOf/Nm0fpOgmYIGpPNQVPa9P4g+EqBC+UTinWHg==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-gUTzwr2Lub0zol8dlkc7cs9/BL+gE8AYwZWZFn2zJjFJq9umRFaDjx+rHejVS4bQAqHY+3F6xujKLVd0CQaG4A==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: '@azure/functions': 3.5.1 '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@microsoft/applicationinsights-web-snippet': 1.0.1 + '@microsoft/applicationinsights-web-snippet': 1.1.2 '@opentelemetry/api': 1.7.0 '@opentelemetry/api-logs': 0.48.0 '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) diff --git a/sdk/monitor/monitor-opentelemetry/CHANGELOG.md b/sdk/monitor/monitor-opentelemetry/CHANGELOG.md index 5cef905b6e5d..e0a4047977be 100644 --- a/sdk/monitor/monitor-opentelemetry/CHANGELOG.md +++ b/sdk/monitor/monitor-opentelemetry/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## Unreleased () + +### Other Changes + +- Updated the @microsoft/applicationinsights-web-snippet to v1.1.2. + ## 1.3.0 (2024-02-13) ### Features Added diff --git a/sdk/monitor/monitor-opentelemetry/package.json b/sdk/monitor/monitor-opentelemetry/package.json index 379de06da1e9..107b344137af 100644 --- a/sdk/monitor/monitor-opentelemetry/package.json +++ b/sdk/monitor/monitor-opentelemetry/package.json @@ -111,7 +111,7 @@ "@opentelemetry/sdk-trace-node": "^1.21.0", "@opentelemetry/semantic-conventions": "^1.21.0", "tslib": "^2.2.0", - "@microsoft/applicationinsights-web-snippet": "1.0.1", + "@microsoft/applicationinsights-web-snippet": "^1.1.2", "@opentelemetry/resource-detector-azure": "^0.2.4" }, "sideEffects": false, diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/browserSdkLoader/browserSdkLoader.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/browserSdkLoader/browserSdkLoader.test.ts index d752ee74dae1..78ccb761d7b0 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/browserSdkLoader/browserSdkLoader.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/browserSdkLoader/browserSdkLoader.test.ts @@ -8,7 +8,7 @@ import { shutdownAzureMonitor, useAzureMonitor, } from "../../../../src/index"; -import { isLinux, isWindows } from "../../../../src/utils/common"; +import { getOsPrefix } from "../../../../src/utils/common"; import { metrics, trace } from "@opentelemetry/api"; import { logs } from "@opentelemetry/api-logs"; @@ -117,9 +117,15 @@ describe("#BrowserSdkLoader", () => { let validHtml = ""; assert.equal(browserSdkLoader.ValidateInjection(response, validHtml), true); let newHtml = browserSdkLoader.InjectSdkLoader(response, validHtml).toString(); - assert.ok(newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.2.min.js") >= 0); - assert.ok(newHtml.indexOf("") == 0); - assert.ok(newHtml.indexOf('instrumentationKey: "1aa11111-bbbb-1ccc-8ddd-eeeeffff3333"') >= 0); + assert.ok( + newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js") >= 0, + "src path does not exist in the snippet", + ); + assert.ok(newHtml.indexOf("") == 0, "No snippet content was populated"); + assert.ok( + newHtml.indexOf("InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333") >= 0, + "Instrumentation Key is not set correctly", + ); }); it("injection of browser SDK should overwrite content length ", () => { @@ -184,16 +190,16 @@ describe("#BrowserSdkLoader", () => { let validHtml = ""; assert.equal(browserSdkLoader.ValidateInjection(response, validHtml), true); let newHtml = browserSdkLoader.InjectSdkLoader(response, validHtml); - let osType: string = "u"; - if (isWindows()) { - osType = "w"; - } else if (isLinux()) { - osType = "l"; - } - let expectedStr = ` instrumentationKey: "1aa11111-bbbb-1ccc-8ddd-eeeeffff3333",\r\n disableIkeyDeprecationMessage: true,\r\n sdkExtension: "u${osType}d_n_`; - assert.ok(newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.2.min.js") >= 0); - assert.ok(newHtml.indexOf("") == 0); - assert.ok(newHtml.indexOf(expectedStr) >= 0, expectedStr); + const expectedSdkVersion = `sdkExtension: "u${getOsPrefix()}d_n_"`; + assert.ok( + newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js") >= 0, + "src path does not exist in the snippet", + ); + assert.ok(newHtml.indexOf("") == 0, "No snippet content was populated"); + assert.ok( + newHtml.indexOf(expectedSdkVersion) >= 0, + `Expected string does not exist in the snippet. Expected: ${expectedSdkVersion} in ${newHtml}`, + ); }); it("browser SDK loader injection to buffer", () => { @@ -227,9 +233,15 @@ describe("#BrowserSdkLoader", () => { let validBuffer = Buffer.from(validHtml); assert.equal(browserSdkLoader.ValidateInjection(response, validBuffer), true); let newHtml = browserSdkLoader.InjectSdkLoader(response, validBuffer).toString(); - assert.ok(newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.2.min.js") >= 0); - assert.ok(newHtml.indexOf("") == 0); - assert.ok(newHtml.indexOf('instrumentationKey: "1aa11111-bbbb-1ccc-8ddd-eeeeffff3333"') >= 0); + assert.ok( + newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js") >= 0, + "src path does not exist in the snippet", + ); + assert.ok(newHtml.indexOf("") == 0, "No snippet content was populated"); + assert.ok( + newHtml.indexOf("InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333") >= 0, + "Instrumentation Key is not set correctly", + ); }); it("injection of browser SDK should overwrite content length using buffer ", () => { @@ -304,9 +316,15 @@ describe("#BrowserSdkLoader", () => { let validHtml = ""; assert.equal(browserSdkLoader.ValidateInjection(response, validHtml), true); let newHtml = browserSdkLoader.InjectSdkLoader(response, validHtml).toString(); - assert.ok(newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.2.min.js") >= 0, newHtml); - assert.ok(newHtml.indexOf("") == 0); - assert.ok(newHtml.indexOf('instrumentationKey: "1aa11111-bbbb-1ccc-8ddd-eeeeffff3333"') >= 0); + assert.ok( + newHtml.indexOf("https://js.monitor.azure.com/scripts/b/ai.3.gbl.min.js") >= 0, + "src path does not exist in the snippet", + ); + assert.ok(newHtml.indexOf("") == 0, "No snippet content was populated"); + assert.ok( + newHtml.indexOf("InstrumentationKey=1aa11111-bbbb-1ccc-8ddd-eeeeffff3333") >= 0, + "Instrumentation Key is not set correctly", + ); }); it("injection should throw errors when ikey from config is not valid", () => { From 445268d4e4ae6b4f98a721a258a43eb1e325ba64 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Fri, 8 Mar 2024 14:05:50 -0800 Subject: [PATCH 07/57] [core-client] Share state between ESM and CJS (#28822) ### Packages impacted by this PR @azure/core-client ### Issues associated with this PR N/A, follow up on #28631 ### Describe the problem that is addressed by this PR If you are exporting both CommonJS and ESM forms of a package, then it is possible for both versions to be loaded at run-time. However, the CommonJS build is a different module from the ESM build, and thus a different thing from the point of view of the JavaScript interpreter in Node.js. https://github.com/isaacs/tshy/blob/main/README.md#dual-package-hazards tshy handles this by building programs into separate folders and treats "dual module hazards" as a fact of life. One of the hazards of dual-modules is shared module-global state. In core-clientwe have a module-global operationRequestMap that is used for deserializing. In order to ensure it works in this dual-package world we must use one of multiple-recommended workarounds. In this case, the tshy documentation provides a solution to this with a well-documented path forward. This is what is implemented here. Please refer to https://github.com/isaacs/tshy/blob/main/README.md#module-local-state for added context ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? The obvious alternative is to just not do anything since tests have not been failing; however, that seems risky. While _this_ particular issue has not come up in tests, a similar one came up for core-tracing. I am open to just _not_ doing anything of course - I love not adding code so just give me a reason! --- .vscode/cspell.json | 1 + sdk/core/core-client/.tshy/browser.json | 4 +++- sdk/core/core-client/.tshy/commonjs.json | 3 ++- sdk/core/core-client/.tshy/esm.json | 4 +++- sdk/core/core-client/.tshy/react-native.json | 4 +++- sdk/core/core-client/package.json | 2 +- sdk/core/core-client/src/operationHelpers.ts | 7 ++++--- sdk/core/core-client/src/state-browser.mts | 11 +++++++++++ sdk/core/core-client/src/state-cjs.cts | 9 +++++++++ sdk/core/core-client/src/state.ts | 15 +++++++++++++++ sdk/core/core-client/vitest.config.ts | 4 ++++ 11 files changed, 56 insertions(+), 8 deletions(-) create mode 100644 sdk/core/core-client/src/state-browser.mts create mode 100644 sdk/core/core-client/src/state-cjs.cts create mode 100644 sdk/core/core-client/src/state.ts diff --git a/.vscode/cspell.json b/.vscode/cspell.json index 9bdf994dbca7..f5062300844a 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -134,6 +134,7 @@ "Sybase", "Teradata", "tmpdir", + "tshy", "uaecentral", "uksouth", "ukwest", diff --git a/sdk/core/core-client/.tshy/browser.json b/sdk/core/core-client/.tshy/browser.json index 32e74e04ec62..58163fb8398e 100644 --- a/sdk/core/core-client/.tshy/browser.json +++ b/sdk/core/core-client/.tshy/browser.json @@ -5,7 +5,9 @@ "../src/**/*.mts", "../src/**/*.tsx" ], - "exclude": [], + "exclude": [ + ".././src/state-cjs.cts" + ], "compilerOptions": { "outDir": "../.tshy-build/browser" } diff --git a/sdk/core/core-client/.tshy/commonjs.json b/sdk/core/core-client/.tshy/commonjs.json index c0f38bdd7176..5bf9d5b42975 100644 --- a/sdk/core/core-client/.tshy/commonjs.json +++ b/sdk/core/core-client/.tshy/commonjs.json @@ -7,7 +7,8 @@ ], "exclude": [ "../src/**/*.mts", - "../src/base64-browser.mts" + "../src/base64-browser.mts", + "../src/state-browser.mts" ], "compilerOptions": { "outDir": "../.tshy-build/commonjs" diff --git a/sdk/core/core-client/.tshy/esm.json b/sdk/core/core-client/.tshy/esm.json index 0c45c26618b2..26e2bdfa8211 100644 --- a/sdk/core/core-client/.tshy/esm.json +++ b/sdk/core/core-client/.tshy/esm.json @@ -6,7 +6,9 @@ "../src/**/*.tsx" ], "exclude": [ - ".././src/base64-browser.mts" + ".././src/state-cjs.cts", + ".././src/base64-browser.mts", + ".././src/state-browser.mts" ], "compilerOptions": { "outDir": "../.tshy-build/esm" diff --git a/sdk/core/core-client/.tshy/react-native.json b/sdk/core/core-client/.tshy/react-native.json index 2b28336a2d5f..8f1fbed22998 100644 --- a/sdk/core/core-client/.tshy/react-native.json +++ b/sdk/core/core-client/.tshy/react-native.json @@ -6,7 +6,9 @@ "../src/**/*.tsx" ], "exclude": [ - ".././src/base64-browser.mts" + ".././src/state-cjs.cts", + ".././src/base64-browser.mts", + ".././src/state-browser.mts" ], "compilerOptions": { "outDir": "../.tshy-build/react-native" diff --git a/sdk/core/core-client/package.json b/sdk/core/core-client/package.json index f718bd9ef99e..594945eeadb6 100644 --- a/sdk/core/core-client/package.json +++ b/sdk/core/core-client/package.json @@ -65,7 +65,7 @@ "pack": "npm pack 2>&1", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser", "test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node", - "test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", + "test": "npm run clean && tshy && npm run unit-test:node && npm run unit-test:browser && npm run integration-test", "unit-test:browser": "npm run build:test && dev-tool run test:vitest --no-test-proxy --browser", "unit-test:node": "dev-tool run test:vitest --no-test-proxy", "unit-test": "npm run unit-test:node && npm run unit-test:browser" diff --git a/sdk/core/core-client/src/operationHelpers.ts b/sdk/core/core-client/src/operationHelpers.ts index c385d2e93aaf..387cfb324787 100644 --- a/sdk/core/core-client/src/operationHelpers.ts +++ b/sdk/core/core-client/src/operationHelpers.ts @@ -11,6 +11,8 @@ import { ParameterPath, } from "./interfaces.js"; +import { state } from "./state.js"; + /** * @internal * Retrieves the value to use for a given operation argument @@ -106,7 +108,6 @@ function getPropertyFromParameterPath( return result; } -const operationRequestMap = new WeakMap(); const originalRequestSymbol = Symbol.for("@azure/core-client original request"); function hasOriginalRequest( @@ -119,11 +120,11 @@ export function getOperationRequestInfo(request: OperationRequest): OperationReq if (hasOriginalRequest(request)) { return getOperationRequestInfo(request[originalRequestSymbol]); } - let info = operationRequestMap.get(request); + let info = state.operationRequestMap.get(request); if (!info) { info = {}; - operationRequestMap.set(request, info); + state.operationRequestMap.set(request, info); } return info; } diff --git a/sdk/core/core-client/src/state-browser.mts b/sdk/core/core-client/src/state-browser.mts new file mode 100644 index 000000000000..81b4d3890408 --- /dev/null +++ b/sdk/core/core-client/src/state-browser.mts @@ -0,0 +1,11 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { OperationRequest, OperationRequestInfo } from "./interfaces.js"; + +/** + * Browser-only implementation of the module's state. The browser esm variant will not load the commonjs state, so we do not need to share state between the two. + */ +export const state = { + operationRequestMap: new WeakMap(), +}; diff --git a/sdk/core/core-client/src/state-cjs.cts b/sdk/core/core-client/src/state-cjs.cts new file mode 100644 index 000000000000..aefce55d4899 --- /dev/null +++ b/sdk/core/core-client/src/state-cjs.cts @@ -0,0 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * Holds the singleton operationRequestMap, to be shared across CJS and ESM imports. + */ +export const state = { + operationRequestMap: new WeakMap(), +}; diff --git a/sdk/core/core-client/src/state.ts b/sdk/core/core-client/src/state.ts new file mode 100644 index 000000000000..ff129017f26b --- /dev/null +++ b/sdk/core/core-client/src/state.ts @@ -0,0 +1,15 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { OperationRequest, OperationRequestInfo } from "./interfaces.js"; + +// @ts-expect-error The recommended approach to sharing module state between ESM and CJS. +// See https://github.com/isaacs/tshy/blob/main/README.md#module-local-state for additional information. +import { state as cjsState } from "../commonjs/state.js"; + +/** + * Defines the shared state between CJS and ESM by re-exporting the CJS state. + */ +export const state = cjsState as { + operationRequestMap: WeakMap; +}; diff --git a/sdk/core/core-client/vitest.config.ts b/sdk/core/core-client/vitest.config.ts index e94c7dd91c76..1e30814aad1c 100644 --- a/sdk/core/core-client/vitest.config.ts +++ b/sdk/core/core-client/vitest.config.ts @@ -2,6 +2,7 @@ // Licensed under the MIT license. import { defineConfig } from "vitest/config"; +import { resolve } from "node:path"; export default defineConfig({ test: { @@ -13,6 +14,9 @@ export default defineConfig({ toFake: ["setTimeout", "Date"], }, watch: false, + alias: { + "../commonjs/state.js": resolve("./src/state-cjs.cts"), + }, include: ["test/**/*.spec.ts"], exclude: ["test/**/browser/*.spec.ts"], coverage: { From e7b472309a68bb313c6f0c0bd094e1f93382d60f Mon Sep 17 00:00:00 2001 From: Hector Hernandez <39923391+hectorhdzg@users.noreply.github.com> Date: Fri, 8 Mar 2024 14:26:00 -0800 Subject: [PATCH 08/57] [Azure Monitor OpenTelemetry Exporter] 1.0.0-beta.21 release (#28840) ### Packages impacted by this PR @azure/monitor-opentelemetry-exporter --- sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md | 6 ++++++ sdk/monitor/monitor-opentelemetry-exporter/package.json | 2 +- .../src/generated/applicationInsightsClient.ts | 2 +- .../src/utils/constants/applicationinsights.ts | 4 ++-- .../monitor-opentelemetry-exporter/swagger/README.md | 2 +- sdk/monitor/monitor-opentelemetry/package.json | 2 +- sdk/monitor/monitor-query/package.json | 2 +- 7 files changed, 13 insertions(+), 7 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md b/sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md index 9af3ae0ec388..f9b6465e916b 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md +++ b/sdk/monitor/monitor-opentelemetry-exporter/CHANGELOG.md @@ -1,5 +1,11 @@ # Release History +## 1.0.0-beta.21 (2024-03-08) + +### Bugs Fixed + +- Fix issue with duration calculation for Spans. + ## 1.0.0-beta.20 (2024-02-13) ### Bugs Fixed diff --git a/sdk/monitor/monitor-opentelemetry-exporter/package.json b/sdk/monitor/monitor-opentelemetry-exporter/package.json index 22d4adbe930f..3c4e80bbbd31 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/package.json +++ b/sdk/monitor/monitor-opentelemetry-exporter/package.json @@ -2,7 +2,7 @@ "name": "@azure/monitor-opentelemetry-exporter", "author": "Microsoft Corporation", "sdk-type": "client", - "version": "1.0.0-beta.20", + "version": "1.0.0-beta.21", "description": "Application Insights exporter for the OpenTelemetry JavaScript (Node.js) SDK", "main": "dist/index.js", "module": "dist-esm/src/index.js", diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/generated/applicationInsightsClient.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/generated/applicationInsightsClient.ts index b15758c28ad1..2f4daae782f5 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/generated/applicationInsightsClient.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/generated/applicationInsightsClient.ts @@ -32,7 +32,7 @@ export class ApplicationInsightsClient extends coreClient.ServiceClient { requestContentType: "application/json; charset=utf-8", }; - const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.20`; + const packageDetails = `azsdk-js-monitor-opentelemetry-exporter/1.0.0-beta.21`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/constants/applicationinsights.ts b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/constants/applicationinsights.ts index 92fce431630f..3c9293d5678f 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/src/utils/constants/applicationinsights.ts +++ b/sdk/monitor/monitor-opentelemetry-exporter/src/utils/constants/applicationinsights.ts @@ -1,5 +1,5 @@ // Copyright (c) Microsoft Corporation. -// Licensed under the MIT license. +// Licensed under the MIT license /** * AI MS Links. @@ -20,7 +20,7 @@ export const TIME_SINCE_ENQUEUED = "timeSinceEnqueued"; * AzureMonitorTraceExporter version. * @internal */ -export const packageVersion = "1.0.0-beta.20"; +export const packageVersion = "1.0.0-beta.21"; export enum DependencyTypes { InProc = "InProc", diff --git a/sdk/monitor/monitor-opentelemetry-exporter/swagger/README.md b/sdk/monitor/monitor-opentelemetry-exporter/swagger/README.md index 2df979fb93b1..37d228fabb40 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/swagger/README.md +++ b/sdk/monitor/monitor-opentelemetry-exporter/swagger/README.md @@ -25,7 +25,7 @@ input-file: https://github.com/Azure/azure-rest-api-specs/blob/main/specificatio add-credentials: false use-extension: "@autorest/typescript": "latest" -package-version: 1.0.0-beta.20 +package-version: 1.0.0-beta.21 typescript: true v3: true ``` diff --git a/sdk/monitor/monitor-opentelemetry/package.json b/sdk/monitor/monitor-opentelemetry/package.json index 107b344137af..f080d7ca8adc 100644 --- a/sdk/monitor/monitor-opentelemetry/package.json +++ b/sdk/monitor/monitor-opentelemetry/package.json @@ -90,7 +90,7 @@ "@azure/core-rest-pipeline": "^1.1.0", "@azure/functions": "^3.2.0", "@azure/logger": "^1.0.0", - "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.20", + "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.21", "@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.5", "@opentelemetry/api": "^1.7.0", "@opentelemetry/api-logs": "^0.48.0", diff --git a/sdk/monitor/monitor-query/package.json b/sdk/monitor/monitor-query/package.json index 03990ec685bd..577c5adfda83 100644 --- a/sdk/monitor/monitor-query/package.json +++ b/sdk/monitor/monitor-query/package.json @@ -101,7 +101,7 @@ "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@azure/abort-controller": "^1.0.0", "@azure/identity": "^4.0.1", - "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.20", + "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.21", "@azure/test-utils": "^1.0.0", "@azure-tools/test-recorder": "^3.0.0", "@microsoft/api-extractor": "^7.31.1", From 85409f518215afca870b838b860bdda405356628 Mon Sep 17 00:00:00 2001 From: Matthew Podwysocki Date: Fri, 8 Mar 2024 19:01:50 -0500 Subject: [PATCH 09/57] [dev-tool] revert old files back to ts-node (#28844) ### Packages impacted by this PR - @azure/dev-tool ### Issues associated with this PR ### Describe the problem that is addressed by this PR Reverts back to the original for the testing ts-node for JS and TS. ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ - https://github.com/Azure/azure-sdk-for-js/pull/28801 ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --- .../src/commands/run/testNodeJSInput.ts | 25 ++++++++++++++++--- .../src/commands/run/testNodeTSInput.ts | 4 +-- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts index c10a6014dcb2..25bb8acc8b65 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts @@ -5,10 +5,11 @@ import { leafCommand, makeCommandInfo } from "../../framework/command"; import concurrently from "concurrently"; import { createPrinter } from "../../util/printer"; +import { isModuleProject } from "../../util/resolveProject"; import { runTestsWithProxyTool } from "../../util/testUtils"; export const commandInfo = makeCommandInfo( - "test:node-tsx-js", + "test:node-js-input", "runs the node tests using mocha with the default and the provided options; starts the proxy-tool in record and playback modes", { "no-test-proxy": { @@ -17,13 +18,31 @@ export const commandInfo = makeCommandInfo( default: false, description: "whether to run with test-proxy", }, + "use-esm-workaround": { + shortName: "uew", + kind: "boolean", + default: false, + description: + "when true, uses the `esm` npm package for tests. Otherwise uses esm4mocha if needed", + }, }, ); export default leafCommand(commandInfo, async (options) => { + const isModule = await isModuleProject(); + let esmLoaderArgs = ""; + + if (isModule === false) { + if (options["use-esm-workaround"] === false) { + esmLoaderArgs = "--loader=../../../common/tools/esm4mocha.mjs"; + } else { + esmLoaderArgs = "-r ../../../common/tools/esm-workaround -r esm"; + } + } + const reporterArgs = "--reporter ../../../common/tools/mocha-multi-reporter.js --reporter-option output=test-results.xml"; - const defaultMochaArgs = `-r source-map-support/register.js ${reporterArgs} --full-trace`; + const defaultMochaArgs = `${esmLoaderArgs} -r source-map-support/register.js ${reporterArgs} --full-trace`; const updatedArgs = options["--"]?.map((opt) => opt.includes("**") && !opt.startsWith("'") && !opt.startsWith('"') ? `"${opt}"` : opt, ); @@ -31,7 +50,7 @@ export default leafCommand(commandInfo, async (options) => { ? updatedArgs.join(" ") : '--timeout 5000000 "dist-esm/test/{,!(browser)/**/}/*.spec.js"'; const command = { - command: `c8 mocha --require tsx ${defaultMochaArgs} ${mochaArgs}`, + command: `c8 mocha ${defaultMochaArgs} ${mochaArgs}`, name: "node-tests", }; diff --git a/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts b/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts index f0cf66c2cbce..a7540bd5568f 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeTSInput.ts @@ -8,7 +8,7 @@ import { runTestsWithProxyTool } from "../../util/testUtils"; import { createPrinter } from "../../util/printer"; export const commandInfo = makeCommandInfo( - "test:node-tsx-ts", + "test:node-ts-input", "runs the node tests using mocha with the default and the provided options; starts the proxy-tool in record and playback modes", { "no-test-proxy": { @@ -25,7 +25,7 @@ export default leafCommand(commandInfo, async (options) => { const reporterArgs = "--reporter ../../../common/tools/mocha-multi-reporter.js --reporter-option output=test-results.xml"; const defaultMochaArgs = `${ - isModuleProj ? "--loader=ts-node/esm " : "" + isModuleProj ? "--loader=ts-node/esm " : "-r esm " }-r ts-node/register ${reporterArgs} --full-trace`; const updatedArgs = options["--"]?.map((opt) => opt.includes("**") && !opt.startsWith("'") && !opt.startsWith('"') ? `"${opt}"` : opt, From a281354d679ed685183a614f99494e25e1ba8f57 Mon Sep 17 00:00:00 2001 From: "Jiao Di (MSFT)" <80496810+v-jiaodi@users.noreply.github.com> Date: Mon, 11 Mar 2024 23:10:56 +0800 Subject: [PATCH 10/57] Update emitter packages (#28853) Update emitter packages. --- eng/emitter-package-lock.json | 180 ++++++++++++++++------------------ eng/emitter-package.json | 16 +-- 2 files changed, 91 insertions(+), 105 deletions(-) diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index a36fd23ff27e..369105b21396 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -6,20 +6,20 @@ "": { "name": "typescript-emitter-package", "dependencies": { - "@azure-tools/typespec-autorest": "0.39.2", - "@azure-tools/typespec-azure-core": "0.39.1", - "@azure-tools/typespec-client-generator-core": "0.39.1", - "@azure-tools/typespec-ts": "0.23.0", - "@typespec/compiler": "0.53.1", - "@typespec/http": "0.53.0", - "@typespec/rest": "0.53.0", - "@typespec/versioning": "0.53.0" + "@azure-tools/typespec-autorest": "0.40.0", + "@azure-tools/typespec-azure-core": "0.40.0", + "@azure-tools/typespec-client-generator-core": "0.40.0", + "@azure-tools/typespec-ts": "0.25.0", + "@typespec/compiler": "0.54.0", + "@typespec/http": "0.54.0", + "@typespec/rest": "0.54.0", + "@typespec/versioning": "0.54.0" } }, "node_modules/@azure-tools/rlc-common": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@azure-tools/rlc-common/-/rlc-common-0.23.0.tgz", - "integrity": "sha512-T9jfHW3ziX5fjYiiFEOoUneOm6rxNGZYMTdoRtGc/oO7LNtWZ+LvRaSL30mylfpI/vKbOOnf23+yBVpil39uqw==", + "version": "0.24.0", + "resolved": "https://registry.npmjs.org/@azure-tools/rlc-common/-/rlc-common-0.24.0.tgz", + "integrity": "sha512-jij+6Ahy/NgqivEzPh6fL9tgmpK3WdDfK2AdRkS5vq2KXRs24ZlEGfxwc2QYcLvOb1zThRp2f4ulsoIpX2IwCg==", "dependencies": { "handlebars": "^4.7.7", "lodash": "^4.17.21", @@ -27,71 +27,71 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.39.2", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.39.2.tgz", - "integrity": "sha512-sdYbYKv6uIktMqX573buyMoLiJMTCwk17DN/CeX0NPtmSx1SXLPh9stQFg2H/IMgVS8VmTlVeCYoSKR7krjsGg==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-autorest/-/typespec-autorest-0.40.0.tgz", + "integrity": "sha512-aMgJk0pudvg11zs/2dlUWPEsdK920NvTqGkbYhy+4UeJ1hEzMM3btOyujE/irhDlcZeEgDlaXQc+xiK/Vik71A==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": "~0.39.1", - "@azure-tools/typespec-client-generator-core": "~0.39.0", - "@typespec/compiler": "~0.53.1", - "@typespec/http": "~0.53.0", - "@typespec/openapi": "~0.53.0", - "@typespec/rest": "~0.53.0", - "@typespec/versioning": "~0.53.0" + "@azure-tools/typespec-azure-core": "~0.40.0", + "@azure-tools/typespec-client-generator-core": "~0.40.0", + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0", + "@typespec/openapi": "~0.54.0", + "@typespec/rest": "~0.54.0", + "@typespec/versioning": "~0.54.0" } }, "node_modules/@azure-tools/typespec-azure-core": { - "version": "0.39.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.39.1.tgz", - "integrity": "sha512-b1cN1HXTcEiKIRpk2EatFK/C4NReDaW2h4N3V4C5dxGeeLAnTa1jsQ6lwobH6Zo39CdrjazNXiSbcEq1UZ7kPw==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.40.0.tgz", + "integrity": "sha512-l5U47zXKYQKFbipRQLpjG4EwvPJg0SogdFEe5a3rRr7mUy8sWPkciHpngLZVOd2cKZQD5m7nqwfWL798I9TJnQ==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.1", - "@typespec/http": "~0.53.0", - "@typespec/rest": "~0.53.0" + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0", + "@typespec/rest": "~0.54.0" } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.39.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.39.1.tgz", - "integrity": "sha512-EV3N6IN1i/hXGqYKNfXx6+2QAyZnG4IpC9RUk6fqwSQDWX7HtMcfdXqlOaK3Rz2H6BUAc9OnH+Trq/uJCl/RgA==", + "version": "0.40.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.40.0.tgz", + "integrity": "sha512-Nm/OfDtSWBr1lylISbXR37B9QKWlZHK1j4T8L439Y1v3VcvJsC/0F5PLemY0odHpOYZNwu2uevJjAeM5W56wlw==", "dependencies": { - "change-case": "~5.3.0", + "change-case": "~5.4.2", "pluralize": "^8.0.0" }, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.1", - "@typespec/http": "~0.53.0", - "@typespec/rest": "~0.53.0", - "@typespec/versioning": "~0.53.0" + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0", + "@typespec/rest": "~0.54.0", + "@typespec/versioning": "~0.54.0" } }, "node_modules/@azure-tools/typespec-ts": { - "version": "0.23.0", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-ts/-/typespec-ts-0.23.0.tgz", - "integrity": "sha512-g8DP0k3wML0PxHKbk+Xcu4AfVsf/SbsGlBPu/HJKepUASS93sFcey1jbdIrKdG5XJTX8MAsmLjEAp9QNTA93DQ==", + "version": "0.25.0", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-ts/-/typespec-ts-0.25.0.tgz", + "integrity": "sha512-4ZQbg375mLWmKqqa3kYbnJmzfDYNn70rLXbW6+r9+xyF46uAm/mWc7Vp4aN68plFXSoUtLJfNTb0JKLGYDAXvA==", "dependencies": { - "@azure-tools/rlc-common": "^0.23.0", + "@azure-tools/rlc-common": "^0.24.0", "fs-extra": "^11.1.0", "prettier": "^3.1.0", "ts-morph": "^15.1.0", "tslib": "^2.3.1" }, "peerDependencies": { - "@azure-tools/typespec-azure-core": ">=0.39.0 <1.0.0", - "@azure-tools/typespec-client-generator-core": ">=0.39.0 <1.0.0", - "@typespec/compiler": ">=0.53.0 <1.0.0", - "@typespec/http": ">=0.53.0 <1.0.0", - "@typespec/rest": ">=0.53.0 <1.0.0", - "@typespec/versioning": ">=0.53.0 <1.0.0" + "@azure-tools/typespec-azure-core": ">=0.40.0 <1.0.0", + "@azure-tools/typespec-client-generator-core": "0.40.0", + "@typespec/compiler": ">=0.54.0 <1.0.0", + "@typespec/http": ">=0.54.0 <1.0.0", + "@typespec/rest": ">=0.54.0 <1.0.0", + "@typespec/versioning": ">=0.54.0 <1.0.0" } }, "node_modules/@babel/code-frame": { @@ -182,21 +182,21 @@ } }, "node_modules/@typespec/compiler": { - "version": "0.53.1", - "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.53.1.tgz", - "integrity": "sha512-qneMDvZsLaL8+3PXzwXMAqgE4YtkUPPBg4oXrbreYa5NTccuvgVaO4cfya/SzG4WePUnmDTbbrP5aWd+VzYwYA==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-0.54.0.tgz", + "integrity": "sha512-lxMqlvUq5m1KZUjg+IoM/gEwY+yeSjjnpUsz6wmzjK4cO9cIY4wPJdrZwe8jUc2UFOoqKXN3AK8N1UWxA+w9Dg==", "dependencies": { "@babel/code-frame": "~7.23.5", "ajv": "~8.12.0", - "change-case": "~5.3.0", + "change-case": "~5.4.2", "globby": "~14.0.0", "mustache": "~4.2.0", "picocolors": "~1.0.0", - "prettier": "~3.1.1", + "prettier": "~3.2.5", "prompts": "~2.4.2", - "semver": "^7.5.4", - "vscode-languageserver": "~9.0.0", - "vscode-languageserver-textdocument": "~1.0.8", + "semver": "^7.6.0", + "vscode-languageserver": "~9.0.1", + "vscode-languageserver-textdocument": "~1.0.11", "yaml": "~2.3.4", "yargs": "~17.7.2" }, @@ -208,65 +208,51 @@ "node": ">=18.0.0" } }, - "node_modules/@typespec/compiler/node_modules/prettier": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.1.1.tgz", - "integrity": "sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==", - "bin": { - "prettier": "bin/prettier.cjs" - }, - "engines": { - "node": ">=14" - }, - "funding": { - "url": "https://github.com/prettier/prettier?sponsor=1" - } - }, "node_modules/@typespec/http": { - "version": "0.53.0", - "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.53.0.tgz", - "integrity": "sha512-Hdwbxr6KgzmJdULbbcwWaSSrWlduuMuEVUVdlytxyo9K+aoUCcPl0thR5Ez2VRh02/IJl3xG4n5wXgOwWb3amA==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/http/-/http-0.54.0.tgz", + "integrity": "sha512-/hZd9pkjJh3ogOekyKzZnpVV2kXzxtWDiTt3Gekc6iHTGk/CE1JpRFts8xwXoI5d3FqYotfb4w5ztVw62WjOcA==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.0" + "@typespec/compiler": "~0.54.0" } }, "node_modules/@typespec/openapi": { - "version": "0.53.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.53.0.tgz", - "integrity": "sha512-FRHb6Wi4Yf1HGm3EnhhXZ0Bw+EIPam6ptxRy7NDRxyMnzHsOphGcv8mDIZk6MPSy8xPasbFNwaRC1TXpxVhQBw==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-0.54.0.tgz", + "integrity": "sha512-QJkwq3whcqKb29ScMD5IQzqvDmPQyLAubRl82Zj6kVMCqabRwegOX9aN+K0083nci65zt9rflZbv9bKY5GRy/A==", "peer": true, "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.0", - "@typespec/http": "~0.53.0" + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0" } }, "node_modules/@typespec/rest": { - "version": "0.53.0", - "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.53.0.tgz", - "integrity": "sha512-aA75Ol2pRvUjtRqQvFHmFG52pkeif3m+tboLAT00AekTxOPZ3rqQmlE12ne4QF8KjgHA6denqH4f/XyDoRJOJQ==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.54.0.tgz", + "integrity": "sha512-F1hq/Per9epPJQ8Ey84mAtrgrZeLu6fDMIxNao1XlTfDEFZuYgFuCSyg0pyIi0Xg7KUBMvrvSv83WoF3mN2szw==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.0", - "@typespec/http": "~0.53.0" + "@typespec/compiler": "~0.54.0", + "@typespec/http": "~0.54.0" } }, "node_modules/@typespec/versioning": { - "version": "0.53.0", - "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.53.0.tgz", - "integrity": "sha512-nrrLXCWPDrrClAfpCMzQ3YPTbKQmjPC3LSeMjq+wPiMq+1PW95ulOGD4QiCBop+4wKhMCJHnqqSzVauT1LjdvQ==", + "version": "0.54.0", + "resolved": "https://registry.npmjs.org/@typespec/versioning/-/versioning-0.54.0.tgz", + "integrity": "sha512-IlGpveOJ0WBTbn3w8nfzgSNhJWNd0+H+bo1Ljrjpeb9SFQmS8bX2fDf0vqsHVl50XgvKIZxgOpEXN5TmuzNnRw==", "engines": { "node": ">=18.0.0" }, "peerDependencies": { - "@typespec/compiler": "~0.53.0" + "@typespec/compiler": "~0.54.0" } }, "node_modules/ajv": { @@ -341,9 +327,9 @@ } }, "node_modules/change-case": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.3.0.tgz", - "integrity": "sha512-Eykca0fGS/xYlx2fG5NqnGSnsWauhSGiSXYhB1kO6E909GUfo8S54u4UZNS7lMJmgZumZ2SUpWaoLgAcfQRICg==" + "version": "5.4.3", + "resolved": "https://registry.npmjs.org/change-case/-/change-case-5.4.3.tgz", + "integrity": "sha512-4cdyvorTy/lViZlVzw2O8/hHCLUuHqp4KpSSP3DlauhFCf3LdnfF+p5s0EAhjKsU7bqrMzu7iQArYfoPiHO2nw==" }, "node_modules/cliui": { "version": "8.0.1", @@ -382,9 +368,9 @@ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.2.tgz", + "integrity": "sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA==", "engines": { "node": ">=6" } @@ -437,9 +423,9 @@ } }, "node_modules/fs-extra": { - "version": "11.1.1", - "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.1.1.tgz", - "integrity": "sha512-MGIE4HOvQCeUCzmlHs0vXpih4ysz4wg9qiSAu6cd42lVwPbTM1TjV7RusoyQqMmk/95gdQZX72u+YW+c3eEpFQ==", + "version": "11.2.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-11.2.0.tgz", + "integrity": "sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw==", "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", @@ -812,9 +798,9 @@ } }, "node_modules/semver": { - "version": "7.5.4", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.5.4.tgz", - "integrity": "sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==", + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", "dependencies": { "lru-cache": "^6.0.0" }, diff --git a/eng/emitter-package.json b/eng/emitter-package.json index b4bc5c3294ba..4a6180ca4107 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -2,13 +2,13 @@ "name": "typescript-emitter-package", "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-ts": "0.23.0", - "@azure-tools/typespec-azure-core": "0.39.1", - "@azure-tools/typespec-autorest": "0.39.2", - "@azure-tools/typespec-client-generator-core": "0.39.1", - "@typespec/compiler": "0.53.1", - "@typespec/http": "0.53.0", - "@typespec/rest": "0.53.0", - "@typespec/versioning": "0.53.0" + "@azure-tools/typespec-ts": "0.25.0", + "@azure-tools/typespec-azure-core": "0.40.0", + "@azure-tools/typespec-autorest": "0.40.0", + "@azure-tools/typespec-client-generator-core": "0.40.0", + "@typespec/compiler": "0.54.0", + "@typespec/http": "0.54.0", + "@typespec/rest": "0.54.0", + "@typespec/versioning": "0.54.0" } } From a93f7c0e2f0d85d31d95be9abd82604cf38f32ea Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 11 Mar 2024 11:22:47 -0400 Subject: [PATCH 11/57] Sync .github/workflows directory with azure-sdk-tools for PR 7848 (#28864) Sync .github/workflows directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7848 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: James Suplizio --- .github/workflows/event-processor.yml | 4 ++-- .github/workflows/scheduled-event-processor.yml | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml index 66442232c93b..27c7433294ac 100644 --- a/.github/workflows/event-processor.yml +++ b/.github/workflows/event-processor.yml @@ -58,7 +58,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240229.2 + --version 1.0.0-dev.20240308.3 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -114,7 +114,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240229.2 + --version 1.0.0-dev.20240308.3 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml index 361c959bc82d..0829800a3729 100644 --- a/.github/workflows/scheduled-event-processor.yml +++ b/.github/workflows/scheduled-event-processor.yml @@ -2,6 +2,7 @@ name: GitHub Scheduled Event Processor on: schedule: + # These are generated/confirmed using https://crontab.cronhub.io/ # Close stale issues, runs every day at 1am - CloseStaleIssues - cron: '0 1 * * *' # Identify stale pull requests, every Friday at 5am - IdentifyStalePullRequests @@ -14,9 +15,10 @@ on: - cron: '30 4,10,16,22 * * *' # Lock closed issues, every 6 hours at 05:30 AM, 11:30 AM, 05:30 PM and 11:30 PM - LockClosedIssues - cron: '30 5,11,17,23 * * *' - # Enforce max life of issues, every Monday at 10:00 AM - EnforceMaxLifeOfIssues + # Enforce max life of issues, every M,W,F at 10:00 AM PST - EnforceMaxLifeOfIssues # Note: GitHub uses UTC, to run at 10am PST, the cron task needs to be 6pm (1800 hours) UTC - - cron: '0 18 * * MON' + # When scheduling for multiple days the numeric days 0-6 (0=Sunday) must be used. + - cron: '0 18 * * 1,3,5' # This removes all unnecessary permissions, the ones needed will be set below. # https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token permissions: {} @@ -37,7 +39,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240229.2 + --version 1.0.0-dev.20240308.3 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -131,7 +133,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Enforce Max Life of Issues Scheduled Event - if: github.event.schedule == '0 18 * * MON' + if: github.event.schedule == '0 18 * * 1,3,5' run: | cat > payload.json << 'EOF' ${{ toJson(github.event) }} From 1afcd955adf13cf4734a2267d4e89fad56c09b3e Mon Sep 17 00:00:00 2001 From: Matthew Podwysocki Date: Mon, 11 Mar 2024 12:00:36 -0400 Subject: [PATCH 12/57] [keyvault] Fix rimraf globs for keyvault (#28863) ### Packages impacted by this PR - @azure/keyvault-keys - @azure/keyvault-admin - @azure/keyvault-secrets ### Describe the problem that is addressed by this PR Fixes the glob path issue with the upgrade to `rimraf` since there were extra calls to `rimraf` after the standard calls. --- sdk/keyvault/keyvault-admin/package.json | 2 +- sdk/keyvault/keyvault-keys/package.json | 2 +- sdk/keyvault/keyvault-secrets/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/keyvault/keyvault-admin/package.json b/sdk/keyvault/keyvault-admin/package.json index 2fb79ac408a3..4a7a109cc65d 100644 --- a/sdk/keyvault/keyvault-admin/package.json +++ b/sdk/keyvault/keyvault-admin/package.json @@ -50,7 +50,7 @@ "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", "bundle": "dev-tool run bundle --browser-test=false", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist dist-* types *.tgz *.log statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", + "clean": "rimraf --glob dist dist-* types *.tgz *.log statistics.html coverage && rimraf --glob src/**/*.js && rimraf --glob test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index 5a338747b89e..fa20d127f457 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -51,7 +51,7 @@ "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", "bundle": "dev-tool run bundle", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", + "clean": "rimraf --glob dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf --glob src/**/*.js && rimraf --glob test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index 487b7f34a487..f6bfb08d3a7f 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -46,7 +46,7 @@ "build:test": "tsc -p . && dev-tool run bundle", "build": "npm run clean && tsc -p . && npm run build:nodebrowser && api-extractor run --local", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf src/**/*.js && rimraf test/**/*.js", + "clean": "rimraf --glob dist dist-* types *.tgz *.log dist-browser statistics.html coverage && rimraf --glob src/**/*.js && rimraf --glob test/**/*.js", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", From 916a59facb47569b2a7e42c374033fac69dbfcd3 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Mon, 11 Mar 2024 11:34:52 -0500 Subject: [PATCH 13/57] [rush] [engsys] Disable build cache (#28866) The `azsdkjsrush` storage account has seemingly been deleted, so this will always fail and waste effort during CI. Tracking issue for a full fix: #28865 --- common/config/rush/build-cache.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/config/rush/build-cache.json b/common/config/rush/build-cache.json index dbef1dca77e6..f989935aec52 100644 --- a/common/config/rush/build-cache.json +++ b/common/config/rush/build-cache.json @@ -1,5 +1,5 @@ { - "buildCacheEnabled": true, + "buildCacheEnabled": false, // Follow instructions at // https://rushjs.io/pages/maintainer/build_cache/#user-authentication // to authenticate. From aefcee3e6f3b17d0a8354b6dacd525878f49913e Mon Sep 17 00:00:00 2001 From: Vinothini Dharmaraj <146493756+v-vdharmaraj@users.noreply.github.com> Date: Mon, 11 Mar 2024 10:50:43 -0700 Subject: [PATCH 14/57] Adding the createFailed and AnswerFailed events on the call automation SDK (#28847) ### Describe the problem that is addressed by this PR Added the CreatCallFailed and AnswerFailed event. This changed is tested against the Contoso app. --- .../communication-call-automation/assets.json | 2 +- ...a_participant_and_get_call_properties.json | 378 +++++++++--- ...ipant_cancels_add_participant_request.json | 62 +- ...tion_Live_Tests_List_all_participants.json | 105 ++-- ...nection_Live_Tests_Mute_a_participant.json | 573 ++++++++++++++---- ...ction_Live_Tests_Remove_a_participant.json | 112 ++-- ...a_call,_start_recording,_and_hangs_up.json | 278 +++++---- ...t_Live_Tests_Create_a_call_and_hangup.json | 106 ++-- ...on_Main_Client_Live_Tests_Reject_call.json | 20 +- ...ive_Tests_Cancel_all_media_operations.json | 112 ++-- ..._Tests_Play_audio_to_all_participants.json | 112 ++-- ...ests_Play_audio_to_target_participant.json | 182 +++--- ...lient_Live_Tests_Trigger_DTMF_actions.json | 116 ++-- .../communication-call-automation.api.md | 31 +- .../src/callAutomationClient.ts | 12 + .../src/callAutomationEventParser.ts | 8 + .../src/callMedia.ts | 3 - .../src/eventprocessor/eventResponses.ts | 6 + .../src/generated/src/models/index.ts | 155 ++++- .../src/generated/src/models/mappers.ts | 238 +++++++- .../src/generated/src/models/parameters.ts | 12 + .../src/operations/callConnection.ts | 2 +- .../src/generated/src/operations/callMedia.ts | 70 +++ .../src/operationsInterfaces/callMedia.ts | 26 + .../src/models/events.ts | 40 +- .../swagger/README.md | 11 +- .../test/callAutomationClient.spec.ts | 4 +- .../test/callMediaClient.spec.ts | 1 - 28 files changed, 1993 insertions(+), 784 deletions(-) diff --git a/sdk/communication/communication-call-automation/assets.json b/sdk/communication/communication-call-automation/assets.json index 39ec18aeb1c2..8fc7f9c9d870 100644 --- a/sdk/communication/communication-call-automation/assets.json +++ b/sdk/communication/communication-call-automation/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/communication/communication-call-automation", - "Tag": "js/communication/communication-call-automation_3c8effc58e" + "Tag": "js/communication/communication-call-automation_22a209c61b" } diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_and_get_call_properties.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_and_get_call_properties.json index 63119dd144af..7460358624e5 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_and_get_call_properties.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_and_get_call_properties.json @@ -22,30 +22,10 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", - "operationContext": "addParticipantsAnswer", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0788-4e8d-8e76-5753d141e789", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:54:40.746015+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "participants": [ { "identifier": { @@ -55,7 +35,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -65,29 +46,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0788-4e8d-8e76-5753d141e789", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:40.746015+00:00", + "time": "2024-03-08T21:37:40.4102928+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789" + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", + "source": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", + "operationContext": "addParticipantsAnswer", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-5109-49a7-a383-10c99342351f", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:37:40.3634744+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", + "eventSource": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", "participants": [ { "identifier": { @@ -97,7 +99,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -107,40 +110,41 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-a370-42eb-9403-c2d88b330bc9", + "callConnectionId": "421f0b00-5109-49a7-a383-10c99342351f", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:40.8397743+00:00", + "time": "2024-03-08T21:37:40.3947633+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9" + "subject": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "operationContext": "addParticipantsCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-a370-42eb-9403-c2d88b330bc9", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:54:40.8397743+00:00", + "time": "2024-03-08T21:37:40.4102928+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9" + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" } ], { @@ -166,30 +170,57 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f", + "source": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f", + "eventSource": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", "operationContext": "addParticipantsAnswer2", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9218-421c-86be-cb808bc4100f", + "callConnectionId": "421f0b00-4a48-46d5-9052-4acc50dbd6a9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:54:54.6377958+00:00", + "time": "2024-03-08T21:37:48.6373583+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f" + "subject": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", + "type": "Microsoft.Communication.AddParticipantSucceeded", + "data": { + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", + "operationContext": "addParticipants", + "participant": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.AddParticipantSucceeded" + }, + "time": "2024-03-08T21:37:48.9655424+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789", + "eventSource": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", "participants": [ { "identifier": { @@ -199,7 +230,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -209,7 +241,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -219,29 +252,85 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0788-4e8d-8e76-5753d141e789", + "callConnectionId": "421f0b00-5109-49a7-a383-10c99342351f", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:37:48.9655424+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 4, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-4a48-46d5-9052-4acc50dbd6a9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:55.1222236+00:00", + "time": "2024-03-08T21:37:49.0592372+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0788-4e8d-8e76-5753d141e789" + "subject": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f", + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", "participants": [ { "identifier": { @@ -251,7 +340,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -261,7 +351,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -271,47 +362,186 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9218-421c-86be-cb808bc4100f", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:55.1222236+00:00", + "time": "2024-03-08T21:37:48.9655424+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9218-421c-86be-cb808bc4100f" + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", - "type": "Microsoft.Communication.AddParticipantSucceeded", + "source": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", + "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9", - "operationContext": "addParticipants", - "participant": { - "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" + "eventSource": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false } - }, + ], + "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-a370-42eb-9403-c2d88b330bc9", + "callConnectionId": "421f0b00-1788-4472-967b-7f2d40b27e35", "serverCallId": "sanitized", "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.AddParticipantSucceeded" + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:37:49.5593014+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-1788-4472-967b-7f2d40b27e35" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 5, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-4a48-46d5-9052-4acc50dbd6a9", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:37:49.6374189+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-4a48-46d5-9052-4acc50dbd6a9" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 4, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-5109-49a7-a383-10c99342351f", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:55.1690901+00:00", + "time": "2024-03-08T21:37:49.5593014+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-a370-42eb-9403-c2d88b330bc9" + "subject": "calling/callConnections/421f0b00-5109-49a7-a383-10c99342351f" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_cancels_add_participant_request.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_cancels_add_participant_request.json index ee35e4f574ce..533bf983ca4f 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_cancels_add_participant_request.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Add_a_participant_cancels_add_participant_request.json @@ -22,30 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261", + "source": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261", + "eventSource": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871", "operationContext": "cancelAddCreateAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b00b-430b-be94-c5e26efa4261", + "callConnectionId": "421f0b00-b2ae-42ed-93d9-260c55a41871", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:54.8379005+00:00", + "time": "2024-03-08T21:38:23.8905626+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261" + "subject": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261", + "source": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261", + "eventSource": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871", "participants": [ { "identifier": { @@ -55,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -65,29 +66,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b00b-430b-be94-c5e26efa4261", + "callConnectionId": "421f0b00-b2ae-42ed-93d9-260c55a41871", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:54.8535359+00:00", + "time": "2024-03-08T21:38:23.9061909+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b00b-430b-be94-c5e26efa4261" + "subject": "calling/callConnections/421f0b00-b2ae-42ed-93d9-260c55a41871" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "source": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "eventSource": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "participants": [ { "identifier": { @@ -97,7 +99,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -107,60 +110,61 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-5c1c-453e-ac00-6084be25e84b", + "callConnectionId": "421f0b00-71de-46ae-8a08-62b2325ab09b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:54.9316037+00:00", + "time": "2024-03-08T21:38:23.9531188+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b" + "subject": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "source": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "eventSource": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "operationContext": "cancelAddCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-5c1c-453e-ac00-6084be25e84b", + "callConnectionId": "421f0b00-71de-46ae-8a08-62b2325ab09b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:54.9316037+00:00", + "time": "2024-03-08T21:38:23.9531188+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b" + "subject": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b", + "source": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b", "type": "Microsoft.Communication.CancelAddParticipantSucceeded", "data": { - "invitationId": "f08736db-22ea-4f9e-a71e-d7740e63adba", + "invitationId": "313f266e-c54a-4843-88a6-84a66b1b8f57", "operationContext": "cancelAdd", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-5c1c-453e-ac00-6084be25e84b", + "callConnectionId": "421f0b00-71de-46ae-8a08-62b2325ab09b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CancelAddParticipantSucceeded" }, - "time": "2024-01-04T13:56:02.1509756+00:00", + "time": "2024-03-08T21:38:28.7198819+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-5c1c-453e-ac00-6084be25e84b" + "subject": "calling/callConnections/421f0b00-71de-46ae-8a08-62b2325ab09b" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_List_all_participants.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_List_all_participants.json index f2c1759fe2da..7d6f59f4a35e 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_List_all_participants.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_List_all_participants.json @@ -22,30 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7", + "source": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7", + "eventSource": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", "operationContext": "listParticipantsAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-fec1-44da-8b3a-3112f9584da7", + "callConnectionId": "421f0b00-065e-4aa6-bc19-013d801ead79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:54:26.1654933+00:00", + "time": "2024-03-08T21:37:32.4250079+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7" + "subject": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd", + "source": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd", + "eventSource": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", "participants": [ { "identifier": { @@ -55,39 +55,30 @@ "id": "sanitized" } }, - "isMuted": false - }, - { - "identifier": { - "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" - } - }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 1, + "sequenceNumber": 0, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-261a-435a-a136-2b766145adfd", + "callConnectionId": "421f0b00-065e-4aa6-bc19-013d801ead79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:26.1811225+00:00", + "time": "2024-03-08T21:37:32.4250079+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd" + "subject": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7", + "source": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7", + "eventSource": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605", "participants": [ { "identifier": { @@ -97,7 +88,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -107,40 +99,85 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-fec1-44da-8b3a-3112f9584da7", + "callConnectionId": "421f0b00-b014-4eca-b06f-c8dfe2337605", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:54:26.1811225+00:00", + "time": "2024-03-08T21:37:32.4876083+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-fec1-44da-8b3a-3112f9584da7" + "subject": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd", + "source": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd", + "eventSource": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605", "operationContext": "listParticipantsCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-261a-435a-a136-2b766145adfd", + "callConnectionId": "421f0b00-b014-4eca-b06f-c8dfe2337605", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:54:26.1811225+00:00", + "time": "2024-03-08T21:37:32.4876083+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-b014-4eca-b06f-c8dfe2337605" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 1, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-065e-4aa6-bc19-013d801ead79", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:37:33.0188504+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-261a-435a-a136-2b766145adfd" + "subject": "calling/callConnections/421f0b00-065e-4aa6-bc19-013d801ead79" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Mute_a_participant.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Mute_a_participant.json index 409bcd700b11..2b4a1b9d9321 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Mute_a_participant.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Mute_a_participant.json @@ -22,29 +22,29 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:24.744086+00:00", + "time": "2024-03-08T21:38:06.5154356+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -54,7 +54,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -64,48 +65,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:24.744086+00:00", + "time": "2024-03-08T21:38:06.5310077+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:55:24.7753314+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "participants": [ { "identifier": { @@ -115,7 +98,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -125,20 +109,40 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:24.7753314+00:00", + "time": "2024-03-08T21:38:06.7810657+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:38:06.7966563+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], { @@ -164,29 +168,29 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:38.7929865+00:00", + "time": "2024-03-08T21:38:13.968592+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "type": "Microsoft.Communication.AddParticipantSucceeded", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "operationContext": "addParticipant", "participant": { "rawId": "sanitized", @@ -196,24 +200,24 @@ } }, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.AddParticipantSucceeded" }, - "time": "2024-01-04T13:55:38.933557+00:00", + "time": "2024-03-08T21:38:14.218591+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "participants": [ { "identifier": { @@ -223,7 +227,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -233,7 +238,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -243,29 +249,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:38.9491772+00:00", + "time": "2024-03-08T21:38:14.218591+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -275,7 +282,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -285,7 +293,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -295,29 +304,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:38.9491772+00:00", + "time": "2024-03-08T21:38:14.218591+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "participants": [ { "identifier": { @@ -327,7 +337,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -337,7 +348,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -347,29 +359,85 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 3, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:14.218591+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:40.13679+00:00", + "time": "2024-03-08T21:38:14.8123462+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "participants": [ { "identifier": { @@ -379,7 +447,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -389,7 +458,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -399,29 +469,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 3, + "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:38.933557+00:00", + "time": "2024-03-08T21:38:14.827968+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -431,7 +502,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -441,7 +513,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -451,29 +524,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:40.1524766+00:00", + "time": "2024-03-08T21:38:14.827968+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", "participants": [ { "identifier": { @@ -483,7 +557,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -493,7 +568,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -503,29 +579,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:41.3198768+00:00", + "time": "2024-03-08T21:38:15.4061534+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "participants": [ { "identifier": { @@ -535,7 +612,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -545,7 +623,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -555,29 +634,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 4, + "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:40.1524766+00:00", + "time": "2024-03-08T21:38:15.4217244+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -587,7 +667,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -597,7 +678,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -607,29 +689,85 @@ "id": "sanitized" } }, - "isMuted": true + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 5, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:15.4217244+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 6, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-e1ec-433e-9c58-71e1c1200d23", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:42.5074841+00:00", + "time": "2024-03-08T21:38:15.9999232+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-e1ec-433e-9c58-71e1c1200d23" + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15", + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "participants": [ { "identifier": { @@ -639,7 +777,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -649,7 +788,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -659,29 +799,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 5, + "sequenceNumber": 6, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-379c-4224-b8c1-b3ad7e671e15", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:41.3354448+00:00", + "time": "2024-03-08T21:38:15.9999232+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-379c-4224-b8c1-b3ad7e671e15" + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209", + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "participants": [ { "identifier": { @@ -691,7 +832,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -701,7 +843,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -711,20 +854,186 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 5, + "sequenceNumber": 6, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:16.0467512+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": true, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 7, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-2982-4d0a-86c9-c3065a3aeb31", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:16.5780399+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-2982-4d0a-86c9-c3065a3aeb31" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": true, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 7, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-82f9-4ef0-80bf-b77c8dd8f03d", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:38:16.6092362+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-82f9-4ef0-80bf-b77c8dd8f03d" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": true, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 7, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d58e-40f6-8f91-d260042c0209", + "callConnectionId": "421f0b00-784e-4f0a-9fd1-2ca0a8b4778d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:41.3354448+00:00", + "time": "2024-03-08T21:38:16.6249232+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d58e-40f6-8f91-d260042c0209" + "subject": "calling/callConnections/421f0b00-784e-4f0a-9fd1-2ca0a8b4778d" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Remove_a_participant.json b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Remove_a_participant.json index d9f4526710bd..0341a2677d81 100644 --- a/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Remove_a_participant.json +++ b/sdk/communication/communication-call-automation/recordings/CallConnection_Live_Tests_Remove_a_participant.json @@ -22,10 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "source": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", + "operationContext": "removeParticipantCreateCall", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-9791-41e0-8604-56e89212b4b9", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:37:57.6687101+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "eventSource": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "participants": [ { "identifier": { @@ -35,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -45,69 +66,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e42-49d8-a63d-9ab40787d973", + "callConnectionId": "421f0b00-9791-41e0-8604-56e89212b4b9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:07.9457991+00:00", + "time": "2024-03-08T21:37:57.6843442+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973" + "subject": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "source": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "eventSource": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "operationContext": "removeParticipantsAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e42-49d8-a63d-9ab40787d973", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:55:07.9301673+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", - "operationContext": "removeParticipantCreateCall", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "callConnectionId": "421f0b00-60ad-44f0-a298-0c82455f948b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:55:07.9926678+00:00", + "time": "2024-03-08T21:37:57.6687101+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777" + "subject": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "source": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "eventSource": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "participants": [ { "identifier": { @@ -117,7 +119,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -127,29 +130,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "callConnectionId": "421f0b00-60ad-44f0-a298-0c82455f948b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:55:07.9926678+00:00", + "time": "2024-03-08T21:37:57.6843442+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777" + "subject": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "source": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "type": "Microsoft.Communication.RemoveParticipantSucceeded", "data": { - "eventSource": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "eventSource": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "operationContext": "removeParticipants", "participant": { "rawId": "sanitized", @@ -159,55 +163,55 @@ } }, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "callConnectionId": "421f0b00-9791-41e0-8604-56e89212b4b9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.RemoveParticipantSucceeded" }, - "time": "2024-01-04T13:55:11.5242201+00:00", + "time": "2024-03-08T21:37:59.1843522+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777" + "subject": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "source": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973", + "eventSource": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b", "operationContext": "removeParticipantsAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e42-49d8-a63d-9ab40787d973", + "callConnectionId": "421f0b00-60ad-44f0-a298-0c82455f948b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:55:11.5242201+00:00", + "time": "2024-03-08T21:37:59.2468533+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e42-49d8-a63d-9ab40787d973" + "subject": "calling/callConnections/421f0b00-60ad-44f0-a298-0c82455f948b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "source": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "eventSource": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9", "operationContext": "removeParticipantCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-b4bf-4a28-8ca5-fc055b3c7777", + "callConnectionId": "421f0b00-9791-41e0-8604-56e89212b4b9", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:55:11.6180411+00:00", + "time": "2024-03-08T21:37:59.6062835+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-b4bf-4a28-8ca5-fc055b3c7777" + "subject": "calling/callConnections/421f0b00-9791-41e0-8604-56e89212b4b9" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/CallRecording_Live_Tests_Creates_a_call,_start_recording,_and_hangs_up.json b/sdk/communication/communication-call-automation/recordings/CallRecording_Live_Tests_Creates_a_call,_start_recording,_and_hangs_up.json index 7341f216485a..765177979ce2 100644 --- a/sdk/communication/communication-call-automation/recordings/CallRecording_Live_Tests_Creates_a_call,_start_recording,_and_hangs_up.json +++ b/sdk/communication/communication-call-automation/recordings/CallRecording_Live_Tests_Creates_a_call,_start_recording,_and_hangs_up.json @@ -22,30 +22,74 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", + "type": "Microsoft.Communication.ParticipantsUpdated", + "data": { + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", + "participants": [ + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false + } + ], + "sequenceNumber": 1, + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.ParticipantsUpdated" + }, + "time": "2024-03-08T21:39:29.5080308+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "operationContext": "recordingAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:58:21.8864495+00:00", + "time": "2024-03-08T21:39:29.5080308+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "participants": [ { "identifier": { @@ -55,49 +99,61 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false + }, + { + "identifier": { + "rawId": "sanitized", + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" + } + }, + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 0, + "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:21.8864495+00:00", + "time": "2024-03-08T21:39:29.5861543+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "operationContext": "recordingCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-4e44-4a21-9adf-e22fd76ebadb", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:58:21.9177675+00:00", + "time": "2024-03-08T21:39:29.5861543+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "participants": [ { "identifier": { @@ -107,7 +163,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -117,29 +174,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 1, + "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-4e44-4a21-9adf-e22fd76ebadb", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:21.9177675+00:00", + "time": "2024-03-08T21:39:34.6831704+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb" + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "participants": [ { "identifier": { @@ -149,7 +207,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -159,52 +218,53 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 1, + "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:23.0896932+00:00", + "time": "2024-03-08T21:39:34.6831704+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged", + "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzZWEyLTAxLmNvbnYuc2t5cGUuY29tL2NvbnYvYUJ3NVNTLXpSa0c0a1d5OGVzVGJXQT9pPTMzJmU9NjM4NDU1MzAwNjYzMTg0NDc0/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MjFmMGIwMC1lZDQyLTQxZjAtOWNiYy00OGZmZGEwODAxMjEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2NzE3ZmE2MS03YTFmLTQ0MzEtYWE1ZS1hMDYwM2E1MjBhNDIifQ/RecordingStateChanged", "type": "Microsoft.Communication.RecordingStateChanged", "data": { - "eventSource": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged", - "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ", - "state": "inactive", - "startDateTime": "0001-01-01T00:00:00+00:00", + "eventSource": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzZWEyLTAxLmNvbnYuc2t5cGUuY29tL2NvbnYvYUJ3NVNTLXpSa0c0a1d5OGVzVGJXQT9pPTMzJmU9NjM4NDU1MzAwNjYzMTg0NDc0/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MjFmMGIwMC1lZDQyLTQxZjAtOWNiYy00OGZmZGEwODAxMjEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2NzE3ZmE2MS03YTFmLTQ0MzEtYWE1ZS1hMDYwM2E1MjBhNDIifQ/RecordingStateChanged", + "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MjFmMGIwMC1lZDQyLTQxZjAtOWNiYy00OGZmZGEwODAxMjEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2NzE3ZmE2MS03YTFmLTQ0MzEtYWE1ZS1hMDYwM2E1MjBhNDIifQ", + "state": "active", + "startDateTime": "2024-03-08T21:39:34.3666276+00:00", "recordingType": "acs", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0695-4fa0-8b86-f1a2ed834b89", + "callConnectionId": "421f0b00-ed42-41f0-9cbc-48ffda080121", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.RecordingStateChanged" }, - "time": "2024-01-04T13:58:34.9828678+00:00", + "time": "2024-03-08T21:39:34.6831704+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged" + "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LXVzZWEyLTAxLmNvbnYuc2t5cGUuY29tL2NvbnYvYUJ3NVNTLXpSa0c0a1d5OGVzVGJXQT9pPTMzJmU9NjM4NDU1MzAwNjYzMTg0NDc0/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MjFmMGIwMC1lZDQyLTQxZjAtOWNiYy00OGZmZGEwODAxMjEiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI2NzE3ZmE2MS03YTFmLTQ0MzEtYWE1ZS1hMDYwM2E1MjBhNDIifQ/RecordingStateChanged" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "participants": [ { "identifier": { @@ -214,7 +274,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -224,29 +285,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 3, + "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-4e44-4a21-9adf-e22fd76ebadb", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:34.9828678+00:00", + "time": "2024-03-08T21:39:35.3394745+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb" + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "participants": [ { "identifier": { @@ -256,7 +318,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -266,52 +329,55 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 3, + "sequenceNumber": 4, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:34.9828678+00:00", + "time": "2024-03-08T21:39:35.3394745+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged", - "type": "Microsoft.Communication.RecordingStateChanged", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", + "type": "Microsoft.Communication.PlayCompleted", "data": { - "eventSource": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged", - "recordingId": "eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ", - "state": "active", - "startDateTime": "2024-01-04T13:58:35.232275+00:00", - "recordingType": "acs", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", + "resultInformation": { + "code": 200, + "subCode": 0, + "message": "Action completed successfully." + }, + "operationContext": "recordingPlay", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0695-4fa0-8b86-f1a2ed834b89", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.RecordingStateChanged" + "publicEventType": "Microsoft.Communication.PlayCompleted" }, - "time": "2024-01-04T13:58:35.8891917+00:00", + "time": "2024-03-08T21:39:35.3550509+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/recordings/aHR0cHM6Ly9hcGkuZmxpZ2h0cHJveHkuc2t5cGUuY29tL2FwaS92Mi9jcC9jb252LWFzc2UtMDEuY29udi5za3lwZS5jb20vY29udi9hNWNWNncxZXlFT3ZIRUZhWm52Yk53P2k9OSZlPTYzODM4NjE4OTY4OTI2OTg0Mw==/eyJQbGF0Zm9ybUVuZHBvaW50SWQiOiI0MDFmMDcwMC0wNjk1LTRmYTAtOGI4Ni1mMWEyZWQ4MzRiODkiLCJSZXNvdXJjZVNwZWNpZmljSWQiOiI3N2Y4ZTZmZS0yNmM3LTRiODAtYTFlZS1lOWI5OTQyZTJmOTkifQ/RecordingStateChanged" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "source": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb", + "eventSource": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925", "participants": [ { "identifier": { @@ -321,7 +387,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -331,71 +398,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], - "sequenceNumber": 4, - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-4e44-4a21-9adf-e22fd76ebadb", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.ParticipantsUpdated" - }, - "time": "2024-01-04T13:58:36.1860826+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-4e44-4a21-9adf-e22fd76ebadb" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", - "type": "Microsoft.Communication.ParticipantsUpdated", - "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", - "participants": [ - { - "identifier": { - "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" - } - }, - "isMuted": false - }, - { - "identifier": { - "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" - } - }, - "isMuted": false - } - ], - "sequenceNumber": 4, + "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-8f10-482b-aba4-d4a4fc26b925", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:36.2017818+00:00", + "time": "2024-03-08T21:39:36.5582401+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-8f10-482b-aba4-d4a4fc26b925" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "source": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33", + "eventSource": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645", "participants": [ { "identifier": { @@ -405,7 +431,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -415,20 +442,21 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-9488-401a-9a68-02a7f6bb7f33", + "callConnectionId": "421f0b00-1c38-48f3-b14b-7c8146050645", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:58:37.4675102+00:00", + "time": "2024-03-08T21:39:36.5582401+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-9488-401a-9a68-02a7f6bb7f33" + "subject": "calling/callConnections/421f0b00-1c38-48f3-b14b-7c8146050645" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Create_a_call_and_hangup.json b/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Create_a_call_and_hangup.json index 287231ffb725..e490eb496916 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Create_a_call_and_hangup.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Create_a_call_and_hangup.json @@ -22,10 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", + "source": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", + "operationContext": "operationContextAnswerCall", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-8403-4066-abe5-59b513c6c993", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:37:18.0158141+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", + "eventSource": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", "participants": [ { "identifier": { @@ -35,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -45,69 +66,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d821-48bf-b4d7-2eecd560844d", + "callConnectionId": "421f0b00-8403-4066-abe5-59b513c6c993", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:53:55.7324065+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", - "operationContext": "operationContextAnswerCall", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d821-48bf-b4d7-2eecd560844d", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:53:55.7167862+00:00", + "time": "2024-03-08T21:37:18.0158141+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d" + "subject": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "source": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "eventSource": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "operationContext": "operationContextCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-759b-4279-8fee-66a58c29e311", + "callConnectionId": "421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:53:55.7949435+00:00", + "time": "2024-03-08T21:37:18.0627211+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311" + "subject": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "source": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "eventSource": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "participants": [ { "identifier": { @@ -117,7 +119,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -127,60 +130,61 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-759b-4279-8fee-66a58c29e311", + "callConnectionId": "421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:53:55.779278+00:00", + "time": "2024-03-08T21:37:18.0627211+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311" + "subject": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", + "source": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311", - "operationContext": "operationContextCreateCall", + "eventSource": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993", + "operationContext": "operationContextAnswerCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-759b-4279-8fee-66a58c29e311", + "callConnectionId": "421f0b00-8403-4066-abe5-59b513c6c993", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:53:59.2327653+00:00", + "time": "2024-03-08T21:37:19.7502105+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-759b-4279-8fee-66a58c29e311" + "subject": "calling/callConnections/421f0b00-8403-4066-abe5-59b513c6c993" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", + "source": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d", - "operationContext": "operationContextAnswerCall", + "eventSource": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", + "operationContext": "operationContextCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-d821-48bf-b4d7-2eecd560844d", + "callConnectionId": "421f0b00-6ea3-4c2a-8f2d-be27dfd8b713", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:53:59.2484162+00:00", + "time": "2024-03-08T21:37:19.7345971+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-d821-48bf-b4d7-2eecd560844d" + "subject": "calling/callConnections/421f0b00-6ea3-4c2a-8f2d-be27dfd8b713" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Reject_call.json b/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Reject_call.json index 7caa5956e875..74aee6445616 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Reject_call.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Automation_Main_Client_Live_Tests_Reject_call.json @@ -22,20 +22,24 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-7539-4784-b1ea-cd57a598c685", - "type": "Microsoft.Communication.CallDisconnected", + "source": "calling/callConnections/421f0b00-d931-441b-bf88-58b09e9de827", + "type": "Microsoft.Communication.CreateCallFailed", "data": { - "eventSource": "calling/callConnections/401f0700-7539-4784-b1ea-cd57a598c685", - "operationContext": "operationContextRejectCall", + "eventSource": "calling/callConnections/421f0b00-d931-441b-bf88-58b09e9de827", + "resultInformation": { + "code": 603, + "subCode": 0, + "message": "Decline. DiagCode: 603#0.@" + }, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-7539-4784-b1ea-cd57a598c685", + "callConnectionId": "421f0b00-d931-441b-bf88-58b09e9de827", "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallDisconnected" + "publicEventType": "Microsoft.Communication.CreateCallFailed" }, - "time": "2024-01-04T13:54:12.2650422+00:00", + "time": "2024-03-08T21:37:25.9377797+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-7539-4784-b1ea-cd57a598c685" + "subject": "calling/callConnections/421f0b00-d931-441b-bf88-58b09e9de827" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Cancel_all_media_operations.json b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Cancel_all_media_operations.json index 1b15eee5e091..da0cf3e95de1 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Cancel_all_media_operations.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Cancel_all_media_operations.json @@ -22,30 +22,10 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", - "operationContext": "CancelMediaAnswer", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e04-413a-9b5e-b02759908051", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:57:30.3101884+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", + "source": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", + "eventSource": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", "participants": [ { "identifier": { @@ -55,7 +35,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -65,49 +46,70 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e04-413a-9b5e-b02759908051", + "callConnectionId": "421f0b00-9261-412e-a223-4b580dafa91b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:57:30.3258031+00:00", + "time": "2024-03-08T21:39:05.4893087+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", + "operationContext": "CancelMediaAnswer", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-9261-412e-a223-4b580dafa91b", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:39:05.4893087+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051" + "subject": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "source": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "eventSource": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "operationContext": "CancelMediaCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "callConnectionId": "421f0b00-dc54-4538-9eb8-ed6ee263a7db", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:57:30.3883243+00:00", + "time": "2024-03-08T21:39:05.5674975+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239" + "subject": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "source": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "eventSource": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "participants": [ { "identifier": { @@ -117,7 +119,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -127,80 +130,81 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "callConnectionId": "421f0b00-dc54-4538-9eb8-ed6ee263a7db", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:57:30.3727507+00:00", + "time": "2024-03-08T21:39:05.5674975+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239" + "subject": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "source": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "type": "Microsoft.Communication.PlayCanceled", "data": { - "eventSource": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "eventSource": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "operationContext": "CancelplayToAllAudio", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "callConnectionId": "421f0b00-dc54-4538-9eb8-ed6ee263a7db", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.PlayCanceled" }, - "time": "2024-01-04T13:57:33.9198494+00:00", + "time": "2024-03-08T21:39:07.2549531+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239" + "subject": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "source": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "eventSource": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db", "operationContext": "CancelMediaCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-ce1c-463a-8ffa-2e86a6a6c239", + "callConnectionId": "421f0b00-dc54-4538-9eb8-ed6ee263a7db", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:57:36.1075228+00:00", + "time": "2024-03-08T21:39:08.4112185+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-ce1c-463a-8ffa-2e86a6a6c239" + "subject": "calling/callConnections/421f0b00-dc54-4538-9eb8-ed6ee263a7db" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", + "source": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051", + "eventSource": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b", "operationContext": "CancelMediaAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-8e04-413a-9b5e-b02759908051", + "callConnectionId": "421f0b00-9261-412e-a223-4b580dafa91b", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:57:36.1388376+00:00", + "time": "2024-03-08T21:39:08.4737327+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-8e04-413a-9b5e-b02759908051" + "subject": "calling/callConnections/421f0b00-9261-412e-a223-4b580dafa91b" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_all_participants.json b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_all_participants.json index 77679c725ca2..2be2bce78d17 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_all_participants.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_all_participants.json @@ -22,10 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "source": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", + "operationContext": "playToAllAnswer", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-7d30-4c7e-bd99-05a35aa38603", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:38:52.3016596+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "eventSource": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", "participants": [ { "identifier": { @@ -35,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -45,29 +66,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-80ab-45c1-b923-a8776c5d8c1d", + "callConnectionId": "421f0b00-7d30-4c7e-bd99-05a35aa38603", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:53.4703527+00:00", + "time": "2024-03-08T21:38:52.3172836+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d" + "subject": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", + "source": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", + "eventSource": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "participants": [ { "identifier": { @@ -77,7 +99,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -87,69 +110,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0a30-48dd-9303-766f08019c43", + "callConnectionId": "421f0b00-190f-4eb1-ae5b-37dadd8c0325", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:53.4546795+00:00", + "time": "2024-03-08T21:38:52.3642538+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43" + "subject": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "source": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "eventSource": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "operationContext": "playToAllCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-80ab-45c1-b923-a8776c5d8c1d", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:56:53.4703527+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", - "operationContext": "playToAllAnswer", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0a30-48dd-9303-766f08019c43", + "callConnectionId": "421f0b00-190f-4eb1-ae5b-37dadd8c0325", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:56:53.4390729+00:00", + "time": "2024-03-08T21:38:52.3642538+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43" + "subject": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "source": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "type": "Microsoft.Communication.PlayCompleted", "data": { - "eventSource": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "eventSource": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "resultInformation": { "code": 200, "subCode": 0, @@ -157,55 +161,55 @@ }, "operationContext": "playToAllAudio", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-80ab-45c1-b923-a8776c5d8c1d", + "callConnectionId": "421f0b00-190f-4eb1-ae5b-37dadd8c0325", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.PlayCompleted" }, - "time": "2024-01-04T13:57:14.4328996+00:00", + "time": "2024-03-08T21:38:58.1299007+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d" + "subject": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "source": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d", + "eventSource": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325", "operationContext": "playToAllCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-80ab-45c1-b923-a8776c5d8c1d", + "callConnectionId": "421f0b00-190f-4eb1-ae5b-37dadd8c0325", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:57:16.40183+00:00", + "time": "2024-03-08T21:38:59.0048585+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-80ab-45c1-b923-a8776c5d8c1d" + "subject": "calling/callConnections/421f0b00-190f-4eb1-ae5b-37dadd8c0325" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", + "source": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43", + "eventSource": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603", "operationContext": "playToAllAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-0a30-48dd-9303-766f08019c43", + "callConnectionId": "421f0b00-7d30-4c7e-bd99-05a35aa38603", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:57:16.417459+00:00", + "time": "2024-03-08T21:38:59.0673616+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-0a30-48dd-9303-766f08019c43" + "subject": "calling/callConnections/421f0b00-7d30-4c7e-bd99-05a35aa38603" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_target_participant.json b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_target_participant.json index 4b6b565dcb3c..a173c1890ef5 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_target_participant.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Play_audio_to_target_participant.json @@ -22,30 +22,30 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", - "operationContext": "playAudioCreateCall", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", + "operationContext": "playAudioAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:56:15.480259+00:00", + "time": "2024-03-08T21:38:36.0029069+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "participants": [ { "identifier": { @@ -55,7 +55,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -65,49 +66,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:15.511458+00:00", - "specversion": "1.0", - "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" - } - ], - [ - { - "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", - "type": "Microsoft.Communication.CallConnected", - "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", - "operationContext": "playAudioAnswer", - "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", - "serverCallId": "sanitized", - "correlationId": "sanitized", - "publicEventType": "Microsoft.Communication.CallConnected" - }, - "time": "2024-01-04T13:56:15.4958338+00:00", + "time": "2024-03-08T21:38:36.0341077+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "participants": [ { "identifier": { @@ -117,7 +99,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -127,29 +110,50 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:15.4958338+00:00", + "time": "2024-03-08T21:38:36.0653533+00:00", + "specversion": "1.0", + "datacontenttype": "application/json", + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" + } + ], + [ + { + "id": "sanitized", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", + "type": "Microsoft.Communication.CallConnected", + "data": { + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", + "operationContext": "playAudioCreateCall", + "version": "2023-10-03-preview", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", + "serverCallId": "sanitized", + "correlationId": "sanitized", + "publicEventType": "Microsoft.Communication.CallConnected" + }, + "time": "2024-03-08T21:38:36.0653533+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "participants": [ { "identifier": { @@ -159,7 +163,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -169,29 +174,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": true } ], - "sequenceNumber": 4, + "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:19.261861+00:00", + "time": "2024-03-08T21:38:39.7372743+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "participants": [ { "identifier": { @@ -201,7 +207,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -211,29 +218,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": true } ], - "sequenceNumber": 4, + "sequenceNumber": 3, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:19.261861+00:00", + "time": "2024-03-08T21:38:39.7372743+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.PlayCompleted", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "resultInformation": { "code": 200, "subCode": 0, @@ -241,24 +249,24 @@ }, "operationContext": "playAudio", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.PlayCompleted" }, - "time": "2024-01-04T13:56:36.9976507+00:00", + "time": "2024-03-08T21:38:44.6123274+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "participants": [ { "identifier": { @@ -268,7 +276,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -278,29 +287,30 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:37.0288941+00:00", + "time": "2024-03-08T21:38:44.6435749+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "participants": [ { "identifier": { @@ -310,7 +320,8 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { @@ -320,60 +331,61 @@ "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 5, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:56:37.0288941+00:00", + "time": "2024-03-08T21:38:44.6592091+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "source": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "eventSource": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "operationContext": "playAudioCreateCall", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-31f7-4e27-98d1-c7a096f4e3f7", + "callConnectionId": "421f0b00-0c00-44cd-bcf7-dbf37e55eca3", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:56:38.8597105+00:00", + "time": "2024-03-08T21:38:46.2061446+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-31f7-4e27-98d1-c7a096f4e3f7" + "subject": "calling/callConnections/421f0b00-0c00-44cd-bcf7-dbf37e55eca3" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "source": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395", + "eventSource": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79", "operationContext": "playAudioAnswer", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-97a3-48bb-946e-f87a63e62395", + "callConnectionId": "421f0b00-abd6-405b-adcd-379e020f1e79", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:56:38.8753817+00:00", + "time": "2024-03-08T21:38:46.2842181+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-97a3-48bb-946e-f87a63e62395" + "subject": "calling/callConnections/421f0b00-abd6-405b-adcd-379e020f1e79" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Trigger_DTMF_actions.json b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Trigger_DTMF_actions.json index b3e790370c9c..201def493756 100644 --- a/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Trigger_DTMF_actions.json +++ b/sdk/communication/communication-call-automation/recordings/Call_Media_Client_Live_Tests_Trigger_DTMF_actions.json @@ -22,201 +22,205 @@ [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:57:51.7181755+00:00", + "time": "2024-03-08T21:39:16.1300989+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "participants": [ { "identifier": { "rawId": "sanitized", - "kind": "phoneNumber", - "phoneNumber": { - "value": "sanitized" + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" + "kind": "phoneNumber", + "phoneNumber": { + "value": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:57:51.7025558+00:00", + "time": "2024-03-08T21:39:16.1300989+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "source": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "type": "Microsoft.Communication.CallConnected", "data": { - "eventSource": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "eventSource": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-383c-430b-8294-b15170b76617", + "callConnectionId": "421f0b00-df51-4e90-a348-c1afd0559a7d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallConnected" }, - "time": "2024-01-04T13:57:52.0776421+00:00", + "time": "2024-03-08T21:39:16.2082231+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617" + "subject": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "source": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "type": "Microsoft.Communication.ParticipantsUpdated", "data": { - "eventSource": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "eventSource": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "participants": [ { "identifier": { "rawId": "sanitized", - "kind": "phoneNumber", - "phoneNumber": { - "value": "sanitized" + "kind": "communicationUser", + "communicationUser": { + "id": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false }, { "identifier": { "rawId": "sanitized", - "kind": "communicationUser", - "communicationUser": { - "id": "sanitized" + "kind": "phoneNumber", + "phoneNumber": { + "value": "sanitized" } }, - "isMuted": false + "isMuted": false, + "isOnHold": false } ], "sequenceNumber": 1, "version": "2023-10-03-preview", - "callConnectionId": "401f0700-383c-430b-8294-b15170b76617", + "callConnectionId": "421f0b00-df51-4e90-a348-c1afd0559a7d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ParticipantsUpdated" }, - "time": "2024-01-04T13:57:52.9370184+00:00", + "time": "2024-03-08T21:39:16.4454559+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617" + "subject": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.SendDtmfTonesCompleted", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "operationContext": "ContinuousDtmfRecognitionSend", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.SendDtmfTonesCompleted" }, - "time": "2024-01-04T13:57:59.0469098+00:00", + "time": "2024-03-08T21:39:21.1954969+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.ContinuousDtmfRecognitionStopped", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "operationContext": "ContinuousDtmfRecognitionStop", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.ContinuousDtmfRecognitionStopped" }, - "time": "2024-01-04T13:58:00.8751965+00:00", + "time": "2024-03-08T21:39:21.8830024+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "source": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef", + "eventSource": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-1b44-47f8-9969-2db0c54eb3ef", + "callConnectionId": "421f0b00-bad1-454d-b3c5-8864182de29d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:58:03.0785144+00:00", + "time": "2024-03-08T21:39:23.0548241+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-1b44-47f8-9969-2db0c54eb3ef" + "subject": "calling/callConnections/421f0b00-bad1-454d-b3c5-8864182de29d" } ], [ { "id": "sanitized", - "source": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "source": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "type": "Microsoft.Communication.CallDisconnected", "data": { - "eventSource": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617", + "eventSource": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d", "version": "2023-10-03-preview", - "callConnectionId": "401f0700-383c-430b-8294-b15170b76617", + "callConnectionId": "421f0b00-df51-4e90-a348-c1afd0559a7d", "serverCallId": "sanitized", "correlationId": "sanitized", "publicEventType": "Microsoft.Communication.CallDisconnected" }, - "time": "2024-01-04T13:58:03.7504511+00:00", + "time": "2024-03-08T21:39:23.2892567+00:00", "specversion": "1.0", "datacontenttype": "application/json", - "subject": "calling/callConnections/401f0700-383c-430b-8294-b15170b76617" + "subject": "calling/callConnections/421f0b00-df51-4e90-a348-c1afd0559a7d" } ] ] \ No newline at end of file diff --git a/sdk/communication/communication-call-automation/review/communication-call-automation.api.md b/sdk/communication/communication-call-automation/review/communication-call-automation.api.md index 7a38a844edfd..32f31323e343 100644 --- a/sdk/communication/communication-call-automation/review/communication-call-automation.api.md +++ b/sdk/communication/communication-call-automation/review/communication-call-automation.api.md @@ -65,6 +65,7 @@ export interface AddParticipantSucceeded extends Omit; } +// Warning: (ae-forgotten-export) The symbol "RestAnswerFailed" needs to be exported by the entry point index.d.ts +// +// @public (undocumented) +export interface AnswerFailed extends Omit { + callConnectionId: string; + correlationId: string; + kind: "AnswerFailed"; + // Warning: (ae-forgotten-export) The symbol "RestResultInformation" needs to be exported by the entry point index.d.ts + resultInformation?: RestResultInformation; + serverCallId: string; +} + // @public export class CallAutomationClient { constructor(connectionString: string, options?: CallAutomationClientOptions); @@ -106,7 +119,7 @@ export interface CallAutomationClientOptions extends CommonClientOptions { } // @public -export type CallAutomationEvent = AddParticipantSucceeded | AddParticipantFailed | RemoveParticipantSucceeded | RemoveParticipantFailed | CallConnected | CallDisconnected | CallTransferAccepted | CallTransferFailed | ParticipantsUpdated | RecordingStateChanged | TeamsComplianceRecordingStateChanged | TeamsRecordingStateChanged | PlayCompleted | PlayFailed | PlayCanceled | RecognizeCompleted | RecognizeCanceled | RecognizeFailed | ContinuousDtmfRecognitionToneReceived | ContinuousDtmfRecognitionToneFailed | ContinuousDtmfRecognitionStopped | SendDtmfTonesCompleted | SendDtmfTonesFailed | CancelAddParticipantSucceeded | CancelAddParticipantFailed | TranscriptionStarted | TranscriptionStopped | TranscriptionUpdated | TranscriptionFailed; +export type CallAutomationEvent = AddParticipantSucceeded | AddParticipantFailed | RemoveParticipantSucceeded | RemoveParticipantFailed | CallConnected | CallDisconnected | CallTransferAccepted | CallTransferFailed | ParticipantsUpdated | RecordingStateChanged | TeamsComplianceRecordingStateChanged | TeamsRecordingStateChanged | PlayCompleted | PlayFailed | PlayCanceled | RecognizeCompleted | RecognizeCanceled | RecognizeFailed | ContinuousDtmfRecognitionToneReceived | ContinuousDtmfRecognitionToneFailed | ContinuousDtmfRecognitionStopped | SendDtmfTonesCompleted | SendDtmfTonesFailed | CancelAddParticipantSucceeded | CancelAddParticipantFailed | TranscriptionStarted | TranscriptionStopped | TranscriptionUpdated | TranscriptionFailed | CreateCallFailed | AnswerFailed; // @public export class CallAutomationEventProcessor { @@ -203,7 +216,7 @@ export class CallMedia { playToAll(playSources: (FileSource | TextSource | SsmlSource)[], options?: PlayOptions): Promise; sendDtmfTones(tones: Tone[] | DtmfTone[], targetParticipant: CommunicationIdentifier, options?: SendDtmfTonesOptions): Promise; startContinuousDtmfRecognition(targetParticipant: CommunicationIdentifier, options?: ContinuousDtmfRecognitionOptions): Promise; - startHoldMusic(targetParticipant: CommunicationIdentifier, playSource: FileSource | TextSource | SsmlSource, loop?: boolean, operationContext?: string | undefined): Promise; + startHoldMusic(targetParticipant: CommunicationIdentifier, playSource: FileSource | TextSource | SsmlSource, operationContext?: string | undefined): Promise; // @deprecated startRecognizing(targetParticipant: CommunicationIdentifier, maxTonesToCollect: number, options: CallMediaRecognizeDtmfOptions): Promise; startRecognizing(targetParticipant: CommunicationIdentifier, options: CallMediaRecognizeDtmfOptions | CallMediaRecognizeChoiceOptions | CallMediaRecognizeSpeechOptions | CallMediaRecognizeSpeechOrDtmfOptions): Promise; @@ -423,10 +436,22 @@ export interface ContinuousDtmfRecognitionToneReceived extends Omit { + callConnectionId: string; + correlationId: string; + kind: "CreateCallFailed"; + resultInformation?: RestResultInformation; + serverCallId: string; +} + // @public export interface CreateCallOptions extends OperationOptions { callIntelligenceOptions?: CallIntelligenceOptions; @@ -772,8 +797,6 @@ export interface RemoveParticipantSucceeded extends Omit { code: number; diff --git a/sdk/communication/communication-call-automation/src/callAutomationClient.ts b/sdk/communication/communication-call-automation/src/callAutomationClient.ts index fe8b7390c924..9f2c36f9fa1c 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationClient.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationClient.ts @@ -209,6 +209,13 @@ export class CallAutomationClient { createCallEventResult.isSuccess = true; createCallEventResult.successResult = event; return true; + } else if ( + event.callConnectionId === callConnectionId && + event.kind === "CreateCallFailed" + ) { + createCallEventResult.isSuccess = false; + createCallEventResult.failureResult = event; + return true; } else { return false; } @@ -349,6 +356,11 @@ export class CallAutomationClient { answerCallEventResult.isSuccess = true; answerCallEventResult.successResult = event; return true; + } + if (event.callConnectionId === callConnectionId && event.kind === "AnswerFailed") { + answerCallEventResult.isSuccess = false; + answerCallEventResult.failureResult = event; + return true; } else { return false; } diff --git a/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts b/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts index 5b7b3ac9567a..caa409bfc1f1 100644 --- a/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts +++ b/sdk/communication/communication-call-automation/src/callAutomationEventParser.ts @@ -36,6 +36,8 @@ import { TranscriptionStopped, TranscriptionUpdated, TranscriptionFailed, + CreateCallFailed, + AnswerFailed, } from "./models/events"; import { CloudEventMapper } from "./models/mapper"; @@ -160,6 +162,12 @@ export function parseCallAutomationEvent( case "Microsoft.Communication.TranscriptionFailed": callbackEvent = { kind: "TranscriptionFailed" } as TranscriptionFailed; break; + case "Microsoft.Communication.CreateCallFailed": + callbackEvent = { kind: "CreateCallFailed" } as CreateCallFailed; + break; + case "Microsoft.Communication.AnswerFailed": + callbackEvent = { kind: "AnswerFailed" } as AnswerFailed; + break; default: throw new TypeError(`Unknown Call Automation Event type: ${eventType}`); } diff --git a/sdk/communication/communication-call-automation/src/callMedia.ts b/sdk/communication/communication-call-automation/src/callMedia.ts index 3255431f1c8d..d430bd3a5c3b 100644 --- a/sdk/communication/communication-call-automation/src/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/callMedia.ts @@ -608,19 +608,16 @@ export class CallMedia { * * @param targetParticipant - The targets to play to. * @param playSource - A PlaySource representing the source to play. - * @param loop - To play the audio continously until stopped. * @param operationContext - Operation Context. */ public async startHoldMusic( targetParticipant: CommunicationIdentifier, playSource: FileSource | TextSource | SsmlSource, - loop: boolean = true, operationContext: string | undefined = undefined, ): Promise { const holdRequest: StartHoldMusicRequest = { targetParticipant: serializeCommunicationIdentifier(targetParticipant), playSourceInfo: this.createPlaySourceInternal(playSource), - loop: loop, operationContext: operationContext, }; diff --git a/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts b/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts index fbd084daecc7..49d60951447f 100644 --- a/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts +++ b/sdk/communication/communication-call-automation/src/eventprocessor/eventResponses.ts @@ -19,6 +19,8 @@ import { CallTransferFailed, CancelAddParticipantSucceeded, CancelAddParticipantFailed, + CreateCallFailed, + AnswerFailed, } from "../models/events"; /** @@ -43,6 +45,8 @@ export interface AnswerCallEventResult { isSuccess: boolean; /** contains success event if the result was successful */ successResult?: CallConnected; + /** contains failure event if the result was failure */ + failureResult?: AnswerFailed; } /** @@ -65,6 +69,8 @@ export interface CreateCallEventResult { isSuccess: boolean; /** contains success event if the result was successful */ successResult?: CallConnected; + /** contains failure event if the result was failure */ + failureResult?: CreateCallFailed; } /** diff --git a/sdk/communication/communication-call-automation/src/generated/src/models/index.ts b/sdk/communication/communication-call-automation/src/generated/src/models/index.ts index 302b85cb4f58..e686b118d1ef 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/models/index.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/models/index.ts @@ -53,6 +53,8 @@ export interface CommunicationIdentifierModel { phoneNumber?: PhoneNumberIdentifierModel; /** The Microsoft Teams user. */ microsoftTeamsUser?: MicrosoftTeamsUserIdentifierModel; + /** The Microsoft Teams application. */ + microsoftTeamsApp?: MicrosoftTeamsAppIdentifierModel; } /** A user that got created with an Azure Communication Services resource. */ @@ -77,6 +79,14 @@ export interface MicrosoftTeamsUserIdentifierModel { cloud?: CommunicationCloudEnvironmentModel; } +/** A Microsoft Teams application. */ +export interface MicrosoftTeamsAppIdentifierModel { + /** The Id of the Microsoft Teams application. */ + appId: string; + /** The cloud that the Microsoft Teams application belongs to. By default 'public' if missing. */ + cloud?: CommunicationCloudEnvironmentModel; +} + /** Configuration of Media streaming. */ export interface MediaStreamingConfiguration { /** Transport URL for media streaming */ @@ -143,8 +153,8 @@ export interface CallConnectionPropertiesInternal { correlationId?: string; /** Identity of the answering entity. Only populated when identity is provided in the request. */ answeredBy?: CommunicationUserIdentifierModel; - /** The original PSTN target of the incoming Call. */ - originalPstnTarget?: PhoneNumberIdentifierModel; + /** Identity of the original Pstn target of an incoming Call. Only populated when the original target is a Pstn number. */ + answeredFor?: PhoneNumberIdentifierModel; } /** The Communication Services error. */ @@ -419,16 +429,45 @@ export interface UpdateTranscriptionRequest { locale: string; } +/** The request payload for holding participant from the call. */ +export interface HoldRequest { + /** Participant to be held from the call. */ + targetParticipant: CommunicationIdentifierModel; + /** Prompt to play while in hold. */ + playSourceInfo?: PlaySourceInternal; + /** Used by customers when calling mid-call actions to correlate the request to the response event. */ + operationContext?: string; + /** + * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. + */ + operationCallbackUri?: string; +} + +/** The request payload for holding participant from the call. */ +export interface UnholdRequest { + /** + * Participants to be hold from the call. + * Only ACS Users are supported. + */ + targetParticipant: CommunicationIdentifierModel; + /** Used by customers when calling mid-call actions to correlate the request to the response event. */ + operationContext?: string; +} + /** The request payload for holding participant from the call. */ export interface StartHoldMusicRequest { /** Participant to be held from the call. */ targetParticipant: CommunicationIdentifierModel; /** Prompt to play while in hold. */ - playSourceInfo: PlaySourceInternal; - /** If the prompt will be looped or not. */ - loop?: boolean; + playSourceInfo?: PlaySourceInternal; /** Used by customers when calling mid-call actions to correlate the request to the response event. */ operationContext?: string; + /** + * Set a callback URI that overrides the default callback URI set by CreateCall/AnswerCall for this operation. + * This setup is per-action. If this is not set, the default callback URI set by CreateCall/AnswerCall will be used. + */ + operationCallbackUri?: string; } /** The request payload for holding participant from the call. */ @@ -503,6 +542,8 @@ export interface CallParticipantInternal { identifier?: CommunicationIdentifierModel; /** Is participant muted */ isMuted?: boolean; + /** Is participant on hold. */ + isOnHold?: boolean; } /** The request payload for adding participant to the call. */ @@ -1989,6 +2030,92 @@ export interface RestTranscriptionFailed { readonly correlationId?: string; } +/** The CreateCallFailed event */ +export interface RestCreateCallFailed { + /** + * Used by customers when calling mid-call actions to correlate the request to the response event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationContext?: string; + /** + * Contains the resulting SIP code, sub-code and message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultInformation?: RestResultInformation; + /** + * Call connection ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly callConnectionId?: string; + /** + * Server call ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverCallId?: string; + /** + * Correlation ID for event to call correlation. Also called ChainId for skype chain ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; +} + +/** AnswerFailed event */ +export interface RestAnswerFailed { + /** + * Used by customers when calling mid-call actions to correlate the request to the response event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationContext?: string; + /** + * Contains the resulting SIP code, sub-code and message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultInformation?: RestResultInformation; + /** + * Call connection ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly callConnectionId?: string; + /** + * Server call ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverCallId?: string; + /** + * Correlation ID for event to call correlation. Also called ChainId for skype chain ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; +} + +export interface RestHoldFailed { + /** + * Used by customers when calling mid-call actions to correlate the request to the response event. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationContext?: string; + /** + * Contains the resulting SIP code, sub-code and message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resultInformation?: RestResultInformation; + /** + * Call connection ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly callConnectionId?: string; + /** + * Server call ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverCallId?: string; + /** + * Correlation ID for event to call correlation. Also called ChainId for skype chain ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationId?: string; +} + /** Azure Open AI Dialog */ export interface AzureOpenAIDialog extends BaseDialog { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2021,6 +2148,8 @@ export enum KnownCommunicationIdentifierModelKind { PhoneNumber = "phoneNumber", /** MicrosoftTeamsUser */ MicrosoftTeamsUser = "microsoftTeamsUser", + /** MicrosoftTeamsApp */ + MicrosoftTeamsApp = "microsoftTeamsApp", } /** @@ -2031,7 +2160,8 @@ export enum KnownCommunicationIdentifierModelKind { * **unknown** \ * **communicationUser** \ * **phoneNumber** \ - * **microsoftTeamsUser** + * **microsoftTeamsUser** \ + * **microsoftTeamsApp** */ export type CommunicationIdentifierModelKind = string; @@ -2452,6 +2582,8 @@ export enum KnownTranscriptionStatus { TranscriptionStarted = "transcriptionStarted", /** TranscriptionFailed */ TranscriptionFailed = "transcriptionFailed", + /** TranscriptionResumed */ + TranscriptionResumed = "transcriptionResumed", /** TranscriptionUpdated */ TranscriptionUpdated = "transcriptionUpdated", /** TranscriptionStopped */ @@ -2467,6 +2599,7 @@ export enum KnownTranscriptionStatus { * ### Known values supported by the service * **transcriptionStarted** \ * **transcriptionFailed** \ + * **transcriptionResumed** \ * **transcriptionUpdated** \ * **transcriptionStopped** \ * **unspecifiedError** @@ -2748,6 +2881,14 @@ export type CallMediaSendDtmfTonesResponse = SendDtmfTonesResult; export interface CallMediaUpdateTranscriptionOptionalParams extends coreClient.OperationOptions {} +/** Optional parameters. */ +export interface CallMediaHoldOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CallMediaUnholdOptionalParams + extends coreClient.OperationOptions {} + /** Optional parameters. */ export interface CallMediaStartHoldMusicOptionalParams extends coreClient.OperationOptions {} @@ -2766,7 +2907,7 @@ export type CallDialogStartDialogResponse = DialogStateResponse; /** Optional parameters. */ export interface CallDialogStopDialogOptionalParams extends coreClient.OperationOptions { - /** Opeation callback URI. */ + /** Operation callback URI. */ operationCallbackUri?: string; } diff --git a/sdk/communication/communication-call-automation/src/generated/src/models/mappers.ts b/sdk/communication/communication-call-automation/src/generated/src/models/mappers.ts index 275f7ef68f8d..63a7175c1418 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/models/mappers.ts @@ -129,6 +129,13 @@ export const CommunicationIdentifierModel: coreClient.CompositeMapper = { className: "MicrosoftTeamsUserIdentifierModel", }, }, + microsoftTeamsApp: { + serializedName: "microsoftTeamsApp", + type: { + name: "Composite", + className: "MicrosoftTeamsAppIdentifierModel", + }, + }, }, }, }; @@ -193,6 +200,28 @@ export const MicrosoftTeamsUserIdentifierModel: coreClient.CompositeMapper = { }, }; +export const MicrosoftTeamsAppIdentifierModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MicrosoftTeamsAppIdentifierModel", + modelProperties: { + appId: { + serializedName: "appId", + required: true, + type: { + name: "String", + }, + }, + cloud: { + serializedName: "cloud", + type: { + name: "String", + }, + }, + }, + }, +}; + export const MediaStreamingConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", @@ -391,8 +420,8 @@ export const CallConnectionPropertiesInternal: coreClient.CompositeMapper = { className: "CommunicationUserIdentifierModel", }, }, - originalPstnTarget: { - serializedName: "originalPSTNTarget", + answeredFor: { + serializedName: "answeredFor", type: { name: "Composite", className: "PhoneNumberIdentifierModel", @@ -1175,10 +1204,10 @@ export const UpdateTranscriptionRequest: coreClient.CompositeMapper = { }, }; -export const StartHoldMusicRequest: coreClient.CompositeMapper = { +export const HoldRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "StartHoldMusicRequest", + className: "HoldRequest", modelProperties: { targetParticipant: { serializedName: "targetParticipant", @@ -1194,10 +1223,61 @@ export const StartHoldMusicRequest: coreClient.CompositeMapper = { className: "PlaySourceInternal", }, }, - loop: { - serializedName: "loop", + operationContext: { + serializedName: "operationContext", type: { - name: "Boolean", + name: "String", + }, + }, + operationCallbackUri: { + serializedName: "operationCallbackUri", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const UnholdRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UnholdRequest", + modelProperties: { + targetParticipant: { + serializedName: "targetParticipant", + type: { + name: "Composite", + className: "CommunicationIdentifierModel", + }, + }, + operationContext: { + serializedName: "operationContext", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const StartHoldMusicRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StartHoldMusicRequest", + modelProperties: { + targetParticipant: { + serializedName: "targetParticipant", + type: { + name: "Composite", + className: "CommunicationIdentifierModel", + }, + }, + playSourceInfo: { + serializedName: "playSourceInfo", + type: { + name: "Composite", + className: "PlaySourceInternal", }, }, operationContext: { @@ -1206,6 +1286,12 @@ export const StartHoldMusicRequest: coreClient.CompositeMapper = { name: "String", }, }, + operationCallbackUri: { + serializedName: "operationCallbackUri", + type: { + name: "String", + }, + }, }, }, }; @@ -1423,6 +1509,12 @@ export const CallParticipantInternal: coreClient.CompositeMapper = { name: "Boolean", }, }, + isOnHold: { + serializedName: "isOnHold", + type: { + name: "Boolean", + }, + }, }, }, }; @@ -4034,6 +4126,138 @@ export const RestTranscriptionFailed: coreClient.CompositeMapper = { }, }; +export const RestCreateCallFailed: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestCreateCallFailed", + modelProperties: { + operationContext: { + serializedName: "operationContext", + readOnly: true, + type: { + name: "String", + }, + }, + resultInformation: { + serializedName: "resultInformation", + type: { + name: "Composite", + className: "RestResultInformation", + }, + }, + callConnectionId: { + serializedName: "callConnectionId", + readOnly: true, + type: { + name: "String", + }, + }, + serverCallId: { + serializedName: "serverCallId", + readOnly: true, + type: { + name: "String", + }, + }, + correlationId: { + serializedName: "correlationId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RestAnswerFailed: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestAnswerFailed", + modelProperties: { + operationContext: { + serializedName: "operationContext", + readOnly: true, + type: { + name: "String", + }, + }, + resultInformation: { + serializedName: "resultInformation", + type: { + name: "Composite", + className: "RestResultInformation", + }, + }, + callConnectionId: { + serializedName: "callConnectionId", + readOnly: true, + type: { + name: "String", + }, + }, + serverCallId: { + serializedName: "serverCallId", + readOnly: true, + type: { + name: "String", + }, + }, + correlationId: { + serializedName: "correlationId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const RestHoldFailed: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RestHoldFailed", + modelProperties: { + operationContext: { + serializedName: "operationContext", + readOnly: true, + type: { + name: "String", + }, + }, + resultInformation: { + serializedName: "resultInformation", + type: { + name: "Composite", + className: "RestResultInformation", + }, + }, + callConnectionId: { + serializedName: "callConnectionId", + readOnly: true, + type: { + name: "String", + }, + }, + serverCallId: { + serializedName: "serverCallId", + readOnly: true, + type: { + name: "String", + }, + }, + correlationId: { + serializedName: "correlationId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + export const AzureOpenAIDialog: coreClient.CompositeMapper = { serializedName: "AzureOpenAI", type: { diff --git a/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts b/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts index bba2d0e3de02..b2bc1a702c9a 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/models/parameters.ts @@ -29,6 +29,8 @@ import { ContinuousDtmfRecognitionRequest as ContinuousDtmfRecognitionRequestMapper, SendDtmfTonesRequest as SendDtmfTonesRequestMapper, UpdateTranscriptionRequest as UpdateTranscriptionRequestMapper, + HoldRequest as HoldRequestMapper, + UnholdRequest as UnholdRequestMapper, StartHoldMusicRequest as StartHoldMusicRequestMapper, StopHoldMusicRequest as StopHoldMusicRequestMapper, StartDialogRequest as StartDialogRequestMapper, @@ -223,6 +225,16 @@ export const updateTranscriptionRequest: OperationParameter = { mapper: UpdateTranscriptionRequestMapper, }; +export const holdRequest: OperationParameter = { + parameterPath: "holdRequest", + mapper: HoldRequestMapper, +}; + +export const unholdRequest: OperationParameter = { + parameterPath: "unholdRequest", + mapper: UnholdRequestMapper, +}; + export const startHoldMusicRequest: OperationParameter = { parameterPath: "startHoldMusicRequest", mapper: StartHoldMusicRequestMapper, diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts index cf6da1fd1803..bee6ed521a63 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/callConnection.ts @@ -464,7 +464,7 @@ const muteOperationSpec: coreClient.OperationSpec = { path: "/calling/callConnections/{callConnectionId}/participants:mute", httpMethod: "POST", responses: { - 202: { + 200: { bodyMapper: Mappers.MuteParticipantsResult, }, default: { diff --git a/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts b/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts index 2725b56d1313..c0c7f56357cb 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operations/callMedia.ts @@ -29,6 +29,10 @@ import { CallMediaSendDtmfTonesResponse, UpdateTranscriptionRequest, CallMediaUpdateTranscriptionOptionalParams, + HoldRequest, + CallMediaHoldOptionalParams, + UnholdRequest, + CallMediaUnholdOptionalParams, StartHoldMusicRequest, CallMediaStartHoldMusicOptionalParams, StopHoldMusicRequest, @@ -198,6 +202,40 @@ export class CallMediaImpl implements CallMedia { ); } + /** + * Hold participant from the call using identifier. + * @param callConnectionId The call connection id. + * @param holdRequest The participants to be hold from the call. + * @param options The options parameters. + */ + hold( + callConnectionId: string, + holdRequest: HoldRequest, + options?: CallMediaHoldOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { callConnectionId, holdRequest, options }, + holdOperationSpec, + ); + } + + /** + * Unhold participants from the call using identifier. + * @param callConnectionId The call connection id. + * @param unholdRequest The participants to be hold from the call. + * @param options The options parameters. + */ + unhold( + callConnectionId: string, + unholdRequest: UnholdRequest, + options?: CallMediaUnholdOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { callConnectionId, unholdRequest, options }, + unholdOperationSpec, + ); + } + /** * Hold participant from the call using identifier. * @param callConnectionId The call connection id. @@ -384,6 +422,38 @@ const updateTranscriptionOperationSpec: coreClient.OperationSpec = { mediaType: "json", serializer, }; +const holdOperationSpec: coreClient.OperationSpec = { + path: "/calling/callConnections/{callConnectionId}:hold", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CommunicationErrorResponse, + }, + }, + requestBody: Parameters.holdRequest, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.callConnectionId], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; +const unholdOperationSpec: coreClient.OperationSpec = { + path: "/calling/callConnections/{callConnectionId}:unhold", + httpMethod: "POST", + responses: { + 200: {}, + default: { + bodyMapper: Mappers.CommunicationErrorResponse, + }, + }, + requestBody: Parameters.unholdRequest, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint, Parameters.callConnectionId], + headerParameters: [Parameters.contentType, Parameters.accept], + mediaType: "json", + serializer, +}; const startHoldMusicOperationSpec: coreClient.OperationSpec = { path: "/calling/callConnections/{callConnectionId}:startHoldMusic", httpMethod: "POST", diff --git a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts index 40e0281bee7b..63a2a9419233 100644 --- a/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts +++ b/sdk/communication/communication-call-automation/src/generated/src/operationsInterfaces/callMedia.ts @@ -24,6 +24,10 @@ import { CallMediaSendDtmfTonesResponse, UpdateTranscriptionRequest, CallMediaUpdateTranscriptionOptionalParams, + HoldRequest, + CallMediaHoldOptionalParams, + UnholdRequest, + CallMediaUnholdOptionalParams, StartHoldMusicRequest, CallMediaStartHoldMusicOptionalParams, StopHoldMusicRequest, @@ -129,6 +133,28 @@ export interface CallMedia { updateTranscriptionRequest: UpdateTranscriptionRequest, options?: CallMediaUpdateTranscriptionOptionalParams, ): Promise; + /** + * Hold participant from the call using identifier. + * @param callConnectionId The call connection id. + * @param holdRequest The participants to be hold from the call. + * @param options The options parameters. + */ + hold( + callConnectionId: string, + holdRequest: HoldRequest, + options?: CallMediaHoldOptionalParams, + ): Promise; + /** + * Unhold participants from the call using identifier. + * @param callConnectionId The call connection id. + * @param unholdRequest The participants to be hold from the call. + * @param options The options parameters. + */ + unhold( + callConnectionId: string, + unholdRequest: UnholdRequest, + options?: CallMediaUnholdOptionalParams, + ): Promise; /** * Hold participant from the call using identifier. * @param callConnectionId The call connection id. diff --git a/sdk/communication/communication-call-automation/src/models/events.ts b/sdk/communication/communication-call-automation/src/models/events.ts index fb57b6f120b1..a314b5d092f4 100644 --- a/sdk/communication/communication-call-automation/src/models/events.ts +++ b/sdk/communication/communication-call-automation/src/models/events.ts @@ -35,6 +35,8 @@ import { RestTranscriptionStopped, RestTranscriptionUpdated, RestTranscriptionFailed, + RestCreateCallFailed, + RestAnswerFailed, } from "../generated/src/models"; import { CallParticipant } from "./models"; @@ -69,7 +71,9 @@ export type CallAutomationEvent = | TranscriptionStarted | TranscriptionStopped | TranscriptionUpdated - | TranscriptionFailed; + | TranscriptionFailed + | CreateCallFailed + | AnswerFailed; export interface ResultInformation extends Omit { @@ -597,3 +601,37 @@ export interface TranscriptionFailed /** kind of this event. */ kind: "TranscriptionFailed"; } + +export interface CreateCallFailed + extends Omit< + RestCreateCallFailed, + "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation" + > { + /** Call connection ID. */ + callConnectionId: string; + /** Server call ID. */ + serverCallId: string; + /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */ + correlationId: string; + /** Contains the resulting SIP code, sub-code and message. */ + resultInformation?: RestResultInformation; + /** kind of this event. */ + kind: "CreateCallFailed"; +} + +export interface AnswerFailed + extends Omit< + RestAnswerFailed, + "callConnectionId" | "serverCallId" | "correlationId" | "resultInformation" + > { + /** Call connection ID. */ + callConnectionId: string; + /** Server call ID. */ + serverCallId: string; + /** Correlation ID for event to call correlation. Also called ChainId for skype chain ID. */ + correlationId: string; + /** Contains the resulting SIP code, sub-code and message. */ + resultInformation?: RestResultInformation; + /** kind of this event. */ + kind: "AnswerFailed"; +} diff --git a/sdk/communication/communication-call-automation/swagger/README.md b/sdk/communication/communication-call-automation/swagger/README.md index 8f8f05be31a6..105deb9eb6b5 100644 --- a/sdk/communication/communication-call-automation/swagger/README.md +++ b/sdk/communication/communication-call-automation/swagger/README.md @@ -13,7 +13,7 @@ license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated tag: package-2023-10-03-preview require: - - https://github.com/Azure/azure-rest-api-specs/blob/384aedb56cfbadfa16ccb35737eab58dfeae81c5/specification/communication/data-plane/CallAutomation/readme.md + - https://github.com/Azure/azure-rest-api-specs/blob/77d25dd8426c4ba1619d15582a8c9d9b2f6890e8/specification/communication/data-plane/CallAutomation/readme.md package-version: 1.2.0-beta.1 model-date-time-as-string: false optional-response-headers: true @@ -155,4 +155,13 @@ directive: - rename-model: from: TranscriptionFailed to: RestTranscriptionFailed + - rename-model: + from: CreateCallFailed + to: RestCreateCallFailed + - rename-model: + from: AnswerFailed + to: RestAnswerFailed + - rename-model: + from: HoldFailed + to: RestHoldFailed ``` diff --git a/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts b/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts index c40d9a9c6213..f6db51af1dab 100644 --- a/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/callAutomationClient.spec.ts @@ -302,7 +302,7 @@ describe("Call Automation Main Client Live Tests", function () { await receiverCallAutomationClient.rejectCall(incomingCallContext); } - const callDisconnectedEvent = await waitForEvent("CallDisconnected", callConnectionId, 8000); - assert.isDefined(callDisconnectedEvent); + const createCallFailedEvent = await waitForEvent("CreateCallFailed", callConnectionId, 8000); + assert.isDefined(createCallFailedEvent); }).timeout(60000); }); diff --git a/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts b/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts index d583e98ec145..f34ab2313dc0 100644 --- a/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts +++ b/sdk/communication/communication-call-automation/test/callMediaClient.spec.ts @@ -346,7 +346,6 @@ describe("CallMedia Unit Tests", async function () { assert.equal(data.targetParticipant.rawId, CALL_TARGET_ID); assert.equal(data.playSourceInfo.kind, "text"); assert.equal(data.playSourceInfo.text.text, playSource.text); - assert.equal(data.loop, true); assert.equal(request.method, "POST"); }); From 99f81aaa79e7d12d1bc4e70487ac042f6fe442fb Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 11 Mar 2024 13:51:43 -0400 Subject: [PATCH 15/57] Sync .github/workflows directory with azure-sdk-tools for PR 7853 (#28867) Sync .github/workflows directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7853 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: James Suplizio --- .github/workflows/event-processor.yml | 4 ++-- .github/workflows/scheduled-event-processor.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml index 27c7433294ac..c913b90cca8a 100644 --- a/.github/workflows/event-processor.yml +++ b/.github/workflows/event-processor.yml @@ -58,7 +58,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240308.3 + --version 1.0.0-dev.20240311.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash @@ -114,7 +114,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240308.3 + --version 1.0.0-dev.20240311.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash diff --git a/.github/workflows/scheduled-event-processor.yml b/.github/workflows/scheduled-event-processor.yml index 0829800a3729..120531ac3d5b 100644 --- a/.github/workflows/scheduled-event-processor.yml +++ b/.github/workflows/scheduled-event-processor.yml @@ -39,7 +39,7 @@ jobs: run: > dotnet tool install Azure.Sdk.Tools.GitHubEventProcessor - --version 1.0.0-dev.20240308.3 + --version 1.0.0-dev.20240311.2 --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash From 15f13e9565714ef9943fcd86c18262c2d647c078 Mon Sep 17 00:00:00 2001 From: Matthew Podwysocki Date: Mon, 11 Mar 2024 14:16:47 -0400 Subject: [PATCH 16/57] [instrumentation] Uprade to the latest OTEL (#28811) ### Packages impacted by this PR - `@azure/opentelemetry-instrumentation-azure-sdk` ### Issues associated with this PR ### Describe the problem that is addressed by this PR Updates to latest OTEL ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --- common/config/rush/pnpm-lock.yaml | 462 ++++++++++-------- .../package.json | 19 +- .../test/public/instrumenter.spec.ts | 23 - .../package.json | 37 +- .../monitor-opentelemetry/package.json | 55 +-- .../test/internal/unit/shared/config.test.ts | 2 +- sdk/monitor/monitor-query/package.json | 21 +- 7 files changed, 318 insertions(+), 301 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 31d0c8cdb54a..e5e212d938af 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2330,18 +2330,30 @@ packages: '@opentelemetry/api': 1.7.0 dev: false + /@opentelemetry/api-logs@0.49.1: + resolution: {integrity: sha512-kaNl/T7WzyMUQHQlVq7q0oV4Kev6+0xFwqzofryC66jgGMacd0QH5TwfpbUwSTby+SdAdprAe5UKMvBw4tKS5Q==} + engines: {node: '>=14'} + dependencies: + '@opentelemetry/api': 1.8.0 + dev: false + /@opentelemetry/api@1.7.0: resolution: {integrity: sha512-AdY5wvN0P2vXBi3b29hxZgSFvdhdxPB9+f0B6s//P9Q8nibRWeA3cHm8UmLpio9ABigkVHJ5NMPk+Mz8VCCyrw==} engines: {node: '>=8.0.0'} dev: false - /@opentelemetry/context-async-hooks@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-t0iulGPiMjG/NrSjinPQoIf8ST/o9V0dGOJthfrFporJlNdlKIQPfC7lkrV+5s2dyBThfmSbJlp/4hO1eOcDXA==} + /@opentelemetry/api@1.8.0: + resolution: {integrity: sha512-I/s6F7yKUDdtMsoBWXJe8Qz40Tui5vsuKCWJEWVL+5q9sSWRzzx6v2KeNsOBEwd94j0eWkpWCH4yB6rZg9Mf0w==} + engines: {node: '>=8.0.0'} + dev: false + + /@opentelemetry/context-async-hooks@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-Nfdxyg8YtWqVWkyrCukkundAjPhUXi93JtVQmqDT1mZRVKqA7e2r7eJCrI+F651XUBMp0hsOJSGiFk3QSpaIJw==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 + '@opentelemetry/api': 1.8.0 dev: false /@opentelemetry/core@1.21.0(@opentelemetry/api@1.7.0): @@ -2354,171 +2366,182 @@ packages: '@opentelemetry/semantic-conventions': 1.21.0 dev: false - /@opentelemetry/exporter-trace-otlp-grpc@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-+qRQXUbdRW6aNRT5yWOG3G6My1VxxKeqgUyLkkdIjkT20lvymjiN2RpBfGMtAf/oqnuRknf9snFl9VSIO2gniw==} + /@opentelemetry/core@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-0VoAlT6x+Xzik1v9goJ3pZ2ppi6+xd3aUfg4brfrLkDBHRIVjMP0eBHrKrhB+NKcDyMAg8fAbGL3Npg/F6AwWA==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.9.0' + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/semantic-conventions': 1.22.0 + dev: false + + /@opentelemetry/exporter-trace-otlp-grpc@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-Zbd7f3zF7fI2587MVhBizaW21cO/SordyrZGtMtvhoxU6n4Qb02Gx71X4+PzXH620e0+JX+Pcr9bYb1HTeVyJA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: '@grpc/grpc-js': 1.10.1 - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-grpc-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-transformer': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-grpc-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/exporter-trace-otlp-http@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-QEZKbfWqXrbKVpr2PHd4KyKI0XVOhUYC+p2RPV8s+2K5QzZBE3+F9WlxxrXDfkrvGmpQAZytBoHQQYA3AGOtpw==} + /@opentelemetry/exporter-trace-otlp-http@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-KOLtZfZvIrpGZLVvblKsiVQT7gQUZNKcUUH24Zz6Xbi7LJb9Vt6xtUZFYdR5IIjvt47PIqBKDWUQlU0o1wAsRw==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-transformer': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/exporter-trace-otlp-proto@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-hVXr/8DYlAKAzQYMsCf3ZsGweS6NTK3IHIEqmLokJZYcvJQBEEazeAdISfrL/utWnapg1Qnpw8u+W6SpxNzmTw==} + /@opentelemetry/exporter-trace-otlp-proto@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-n8ON/c9pdMyYAfSFWKkgsPwjYoxnki+6Olzo+klKfW7KqLWoyEkryNkbcMIYnGGNXwdkMIrjoaP0VxXB26Oxcg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-proto-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-transformer': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-proto-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-transformer': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/exporter-zipkin@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-J0ejrOx52s1PqvjNalIHvY/4v9ZxR2r7XS7WZbwK3qpVYZlGVq5V1+iCNweqsKnb/miUt/4TFvJBc9f5Q/kGcA==} + /@opentelemetry/exporter-zipkin@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-XcFs6rGvcTz0qW5uY7JZDYD0yNEXdekXAb6sFtnZgY/cHY6BQ09HMzOjv9SX+iaXplRDcHr1Gta7VQKM1XXM6g==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 dev: false - /@opentelemetry/instrumentation-bunyan@0.35.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-bQ8OzV7nVTA+oGiTzLjUmRFAbnXi0U/Z4VJCpj+1DRsaAaMT17eRpAOh22LQR0JBnv2vBm8CvIQl4CcAnsB46g==} + /@opentelemetry/instrumentation-bunyan@0.36.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-sHD5BSiqSrgWow7VmugEFzV8vGdsz5m+w1v9tK6YwRzuAD7vbo57chluq+UBzIqStoCH+0yOzRzSALH7hrfffg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) '@types/bunyan': 1.8.9 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-http@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-uXqOsLhW9WC3ZlGm6+PSX0xjSDTCfy4CMjfYj6TPWusOO8dtdx040trOriF24y+sZmS3M+5UQc6/3/ZxBJh4Mw==} + /@opentelemetry/instrumentation-http@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-Yib5zrW2s0V8wTeUK/B3ZtpyP4ldgXj9L3Ws/axXrW1dW0/mEFKifK50MxMQK9g5NNJQS9dWH7rvcEGZdWdQDA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 semver: 7.6.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-mongodb@0.39.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-m9dMj39pcCshzlfCEn2lGrlNo7eV5fb9pGBnPyl/Am9Crh7Or8vOqvByCNd26Dgf5J978zTdLGF+6tM8j1WOew==} + /@opentelemetry/instrumentation-mongodb@0.40.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-ldlJUW/1UlnGtIWBt7fIUl+7+TGOKxIU+0Js5ukpXfQc07ENYFeck5TdbFjvYtF8GppPErnsZJiFiRdYm6Pv/Q==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-mysql@0.35.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-QKRHd3aFA2vKOPzIZ9Q3UIxYeNPweB62HGlX2l3shOKrUhrtTg2/BzaKpHQBy2f2nO2mxTF/mOFeVEDeANnhig==} + /@opentelemetry/instrumentation-mysql@0.36.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-2mt/032SLkiuddzMrq3YwM0bHksXRep69EzGRnBfF+bCbwYvKLpqmSFqJZ9T3yY/mBWj+tvdvc1+klXGrh2QnQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 '@types/mysql': 2.15.22 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-pg@0.38.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-Q7V/OJ1OZwaWYNOP/E9S6sfS03Z+PNU1SAjdAoXTj5j4u4iJSMSieLRWXFaHwsbefIOMkYvA00EBKF9IgbgbLA==} + /@opentelemetry/instrumentation-pg@0.39.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-pX5ujDOyGpPcrZlzaD3LJzmyaSMMMKAP+ffTHJp9vasvZJr+LifCk53TMPVUafcXKV/xX/IIkvADO+67M1Z25g==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 - '@opentelemetry/sql-common': 0.40.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 + '@opentelemetry/sql-common': 0.40.0(@opentelemetry/api@1.8.0) '@types/pg': 8.6.1 '@types/pg-pool': 2.0.4 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-redis-4@0.36.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-XO0EV2TxUsaRdcp79blyLGG5JWWl7NWVd/XNbU8vY7CuYUfRhWiTXYoM4PI+lwkAnUPvPtyiOzYs9px23GnibA==} + /@opentelemetry/instrumentation-redis-4@0.37.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-WNO+HALvPPvjbh7UEEIuay0Z0d2mIfSCkBZbPRwZttDGX6LYGc2WnRgJh3TnYqjp7/y9IryWIbajAFIebj1OBA==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) '@opentelemetry/redis-common': 0.36.1 - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation-redis@0.36.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-rKFylIacEBwLxKFrPvxpVi8hHY9qXfQSybYnYNyF/VxUWMGYDPMpbCnTQkiVR5u+tIhwSvhSDG2YQEq6syHUIQ==} + /@opentelemetry/instrumentation-redis@0.37.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-9G0T74kheu37k+UvyBnAcieB5iowxska3z2rhUcSTL8Cl0y/CvMn7sZ7txkUbXt0rdX6qeEUdMLmbsY2fPUM7Q==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) '@opentelemetry/redis-common': 0.36.1 - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/instrumentation@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-sjtZQB5PStIdCw5ovVTDGwnmQC+GGYArJNgIcydrDSqUTdYBnMrN9P4pwQZgS3vTGIp+TU1L8vMXGe51NVmIKQ==} + /@opentelemetry/instrumentation@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-0DLtWtaIppuNNRRllSD4bjU8ZIiLp1cDXvJEbp752/Zf+y3gaLNaoGRGIlX4UHhcsrmtL+P2qxi3Hodi8VuKiQ==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.3.0 dependencies: - '@opentelemetry/api': 1.7.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 '@types/shimmer': 1.0.5 import-in-the-middle: 1.7.1 require-in-the-middle: 7.2.0 @@ -2528,74 +2551,74 @@ packages: - supports-color dev: false - /@opentelemetry/otlp-exporter-base@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-T4LJND+Ugl87GUONoyoQzuV9qCn4BFIPOnCH1biYqdGhc2JahjuLqVD9aefwLzGBW638iLAo88Lh68h2F1FLiA==} + /@opentelemetry/otlp-exporter-base@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-z6sHliPqDgJU45kQatAettY9/eVF58qVPaTuejw9YWfSRqid9pXPYeegDCSdyS47KAUgAtm+nC28K3pfF27HWg==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/otlp-grpc-exporter-base@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-Vdp56RK9OU+Oeoy3YQC/UMOWglKQ9qvgGr49FgF4r8vk5DlcTUgVS0m3KG8pykmRPA+5ZKaDuqwPw5aTvWmHFw==} + /@opentelemetry/otlp-grpc-exporter-base@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-DNDNUWmOqtKTFJAyOyHHKotVox0NQ/09ETX8fUOeEtyNVHoGekAVtBbvIA3AtK+JflP7LC0PTjlLfruPM3Wy6w==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: '@grpc/grpc-js': 1.10.1 - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) protobufjs: 7.2.6 dev: false - /@opentelemetry/otlp-proto-exporter-base@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-14GSTvPZPfrWsB54fYMGb8v+Uge5xGXyz0r2rf4SzcRnO2hXCPHEuL3yyL50emaKPAY+fj29Dm0bweawe8UA6A==} + /@opentelemetry/otlp-proto-exporter-base@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-x1qB4EUC7KikUl2iNuxCkV8yRzrSXSyj4itfpIO674H7dhI7Zv37SFaOJTDN+8Z/F50gF2ISFH9CWQ4KCtGm2A==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/otlp-exporter-base': 0.48.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) protobufjs: 7.2.6 dev: false - /@opentelemetry/otlp-transformer@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-yuoS4cUumaTK/hhxW3JUy3wl2U4keMo01cFDrUOmjloAdSSXvv1zyQ920IIH4lymp5Xd21Dj2/jq2LOro56TJg==} + /@opentelemetry/otlp-transformer@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-Z+koA4wp9L9e3jkFacyXTGphSWTbOKjwwXMpb0CxNb0kjTHGUxhYRN8GnkLFsFo5NbZPjP07hwAqeEG/uCratQ==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.3.0 <1.8.0' + '@opentelemetry/api': '>=1.3.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/propagator-b3@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-3ZTobj2VDIOzLsIvvYCdpw6tunxUVElPxDvog9lS49YX4hohHeD84A8u9Ns/6UYUcaN5GSoEf891lzhcBFiOLA==} + /@opentelemetry/propagator-b3@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-qBItJm9ygg/jCB5rmivyGz1qmKZPsL/sX715JqPMFgq++Idm0x+N9sLQvWFHFt2+ZINnCSojw7FVBgFW6izcXA==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) dev: false - /@opentelemetry/propagator-jaeger@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-8TQSwXjBmaDx7JkxRD7hdmBmRK2RGRgzHX1ArJfJhIc5trzlVweyorzqQrXOvqVEdEg+zxUMHkL5qbGH/HDTPA==} + /@opentelemetry/propagator-jaeger@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-pMLgst3QIwrUfepraH5WG7xfpJ8J3CrPKrtINK0t7kBkuu96rn+HDYQ8kt3+0FXvrZI8YJE77MCQwnJWXIrgpA==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) dev: false /@opentelemetry/redis-common@0.36.1: @@ -2603,12 +2626,12 @@ packages: engines: {node: '>=14'} dev: false - /@opentelemetry/resource-detector-azure@0.2.4(@opentelemetry/api@1.7.0): + /@opentelemetry/resource-detector-azure@0.2.4(@opentelemetry/api@1.8.0): resolution: {integrity: sha512-H1xXOqF87Ps57cGnGFsMf3+Fj5VdeVlBA6Hl8f0DRQ32eD7+5szx53/qvpvES90o+e+fHGr42KCz8MP+ow6MpQ==} engines: {node: '>=14'} dependencies: - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - '@opentelemetry/api' dev: false @@ -2624,6 +2647,17 @@ packages: '@opentelemetry/semantic-conventions': 1.21.0 dev: false + /@opentelemetry/resources@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-+vNeIFPH2hfcNL0AJk/ykJXoUCtR1YaDUZM+p3wZNU4Hq98gzq+7b43xbkXjadD9VhWIUQqEwXyY64q6msPj6A==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.0.0 <1.9.0' + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 + dev: false + /@opentelemetry/sdk-logs@0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0): resolution: {integrity: sha512-lRcA5/qkSJuSh4ItWCddhdn/nNbVvnzM+cm9Fg1xpZUeTeozjJDBcHnmeKoOaWRnrGYBdz6UTY6bynZR9aBeAA==} engines: {node: '>=14'} @@ -2637,66 +2671,79 @@ packages: '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) dev: false - /@opentelemetry/sdk-metrics@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-on1jTzIHc5DyWhRP+xpf+zrgrREXcHBH4EDAfaB5mIG7TWpKxNXooQ1JCylaPsswZUv4wGnVTinr4HrBdGARAQ==} + /@opentelemetry/sdk-logs@0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-gCzYWsJE0h+3cuh3/cK+9UwlVFyHvj3PReIOCDOmdeXOp90ZjKRoDOJBc3mvk1LL6wyl1RWIivR8Rg9OToyesw==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.3.0 <1.8.0' + '@opentelemetry/api': '>=1.4.0 <1.9.0' + '@opentelemetry/api-logs': '>=0.39.1' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + dev: false + + /@opentelemetry/sdk-metrics@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-k6iIx6H3TZ+BVMr2z8M16ri2OxWaljg5h8ihGJxi/KQWcjign6FEaEzuigXt5bK9wVEhqAcWLCfarSftaNWkkg==} + engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': '>=1.3.0 <1.9.0' + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) lodash.merge: 4.6.2 dev: false - /@opentelemetry/sdk-node@0.48.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-3o3GS6t+VLGVFCV5bqfGOcWIgOdkR/UE6Qz7hHksP5PXrVBeYsPqts7cPma5YXweaI3r3h26mydg9PqQIcqksg==} + /@opentelemetry/sdk-node@0.49.1(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-feBIT85ndiSHXsQ2gfGpXC/sNeX4GCHLksC4A9s/bfpUbbgbCSl0RvzZlmEpCHarNrkZMwFRi4H0xFfgvJEjrg==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.3.0 <1.8.0' + '@opentelemetry/api': '>=1.3.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/exporter-trace-otlp-grpc': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/exporter-trace-otlp-http': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/exporter-trace-otlp-proto': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/exporter-zipkin': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-grpc': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-http': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-trace-otlp-proto': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/exporter-zipkin': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 transitivePeerDependencies: - supports-color dev: false - /@opentelemetry/sdk-trace-base@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-yrElGX5Fv0umzp8Nxpta/XqU71+jCAyaLk34GmBzNcrW43nqbrqvdPs4gj4MVy/HcTjr6hifCDCYA3rMkajxxA==} + /@opentelemetry/sdk-trace-base@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-pfTuSIpCKONC6vkTpv6VmACxD+P1woZf4q0K46nSUvXFvOFqjBYKFaAMkKD3M1mlKUUh0Oajwj35qNjMl80m1Q==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' + '@opentelemetry/api': '>=1.0.0 <1.9.0' dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 dev: false - /@opentelemetry/sdk-trace-node@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-1pdm8jnqs+LuJ0Bvx6sNL28EhC8Rv7NYV8rnoXq3GIQo7uOHBDAFSj7makAfbakrla7ecO1FRfI8emnR4WvhYA==} + /@opentelemetry/sdk-trace-node@1.22.0(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-gTGquNz7ue8uMeiWPwp3CU321OstQ84r7PCDtOaCicjbJxzvO8RZMlEC4geOipTeiF88kss5n6w+//A0MhP1lQ==} engines: {node: '>=14'} peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' - dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/context-async-hooks': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/propagator-b3': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/propagator-jaeger': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': '>=1.0.0 <1.9.0' + dependencies: + '@opentelemetry/api': 1.8.0 + '@opentelemetry/context-async-hooks': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/propagator-b3': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/propagator-jaeger': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) semver: 7.6.0 dev: false @@ -2705,14 +2752,19 @@ packages: engines: {node: '>=14'} dev: false - /@opentelemetry/sql-common@0.40.0(@opentelemetry/api@1.7.0): + /@opentelemetry/semantic-conventions@1.22.0: + resolution: {integrity: sha512-CAOgFOKLybd02uj/GhCdEeeBjOS0yeoDeo/CA7ASBSmenpZHAKGB3iDm/rv3BQLcabb/OprDEsSQ1y0P8A7Siw==} + engines: {node: '>=14'} + dev: false + + /@opentelemetry/sql-common@0.40.0(@opentelemetry/api@1.8.0): resolution: {integrity: sha512-vSqRJYUPJVjMFQpYkQS3ruexCPSZJ8esne3LazLwtCPaPRvzZ7WG3tX44RouAn7w4wMp8orKguBqtt+ng2UTnw==} engines: {node: '>=14'} peerDependencies: '@opentelemetry/api': ^1.1.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) dev: false /@pkgjs/parseargs@0.11.0: @@ -20237,22 +20289,22 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-S7vXeV/PsUy8mIA6aHvFgk532pQLVUoMVqQUm6m2UV2ywGalYGYboS0eyuQgYJn7ZSiFWVgzmcnveGMOgcPqYQ==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-gnhQBJG+kMvERMvZcRGrDRizI+mhiaQqTmbHFfiiXLxi4HBAVmj1Nlx3RXIrUvDcapn8fxK/mOyPvdY0frQ46Q==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-http': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-http': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 '@types/mocha': 10.0.6 '@types/node': 18.19.18 c8: 8.0.1 @@ -20267,40 +20319,39 @@ packages: sinon: 17.0.1 ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 + tsx: 4.7.1 typescript: 5.3.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - supports-color dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-gUTzwr2Lub0zol8dlkc7cs9/BL+gE8AYwZWZFn2zJjFJq9umRFaDjx+rHejVS4bQAqHY+3F6xujKLVd0CQaG4A==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-9VxopZ6mNMivF8xrVRfcecWW++p+trx+FNyjcwSWFhQ5jNX3cmmaZB0VRRKxyGtQX03u8Y0DKzRIQDl9mcdQbA==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: '@azure/functions': 3.5.1 '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) '@microsoft/applicationinsights-web-snippet': 1.1.2 - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-bunyan': 0.35.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-http': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-mongodb': 0.39.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-mysql': 0.35.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-pg': 0.38.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-redis': 0.36.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation-redis-4': 0.36.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resource-detector-azure': 0.2.4(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-metrics': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-node': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-bunyan': 0.36.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-http': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-mongodb': 0.40.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-mysql': 0.36.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-pg': 0.39.1(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-redis': 0.37.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation-redis-4': 0.37.0(@opentelemetry/api@1.8.0) + '@opentelemetry/resource-detector-azure': 0.2.4(@opentelemetry/api@1.8.0) + '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-node': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/semantic-conventions': 1.22.0 '@types/mocha': 10.0.6 '@types/node': 18.19.18 '@types/sinon': 17.0.3 @@ -20316,24 +20367,23 @@ packages: sinon: 17.0.1 ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 + tsx: 4.7.1 typescript: 5.3.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - supports-color dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-wb9Nut4sCw1VEKskWOOmbAhQGDv2BH31e5tFALkZrJ6x9G9193wklgNWE01AKWcNWP0ZJB+yK1kFPHQQ8BQTOA==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-NNfdquPNUyR+6XKI1UpNBijLT7vkqkFXqCVbN6BwNBiKWNVBjVv9y8N9QmcB6fBI1z7vBKBobIaPAuO3mGZotw==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@opentelemetry/api': 1.7.0 - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 @@ -20359,10 +20409,9 @@ packages: source-map-support: 0.5.21 ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 + tsx: 4.7.1 typescript: 5.3.3 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - bufferutil - debug - supports-color @@ -20515,16 +20564,16 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-SbiGnMFn6+q17pUjEWy7BDOM1zxdOmrEW6kF7NScp0BqkEPDEX+KRiyl04aE14eX3RBEFGUOw/cWVisgp2SjLQ==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-un+vPAwYp1VAxQfyUB4EyC1FceIz943vk6fqY/00ICMtP27Ya0YMbcDF+2AQNwJko5usWdR+Lr75enxF1tQO+g==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/instrumentation': 0.48.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-base': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/sdk-trace-node': 1.21.0(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) + '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 '@types/node': 18.19.18 @@ -20550,11 +20599,10 @@ packages: source-map-support: 0.5.21 ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 + tsx: 4.7.1 typescript: 5.3.3 util: 0.12.5 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - bufferutil - debug - supports-color diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json index 6a3f1c0fd67d..7fc7f291d676 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json @@ -30,7 +30,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "karma start --single-run", - "integration-test:node": "dev-tool run test:node-js-input --no-test-proxy=true", + "integration-test:node": "dev-tool run test:node-tsx-js --no-test-proxy=true", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", @@ -39,7 +39,7 @@ "test:node": "npm run clean && tsc -p . && npm run unit-test:node && npm run integration-test:node", "test": "npm run clean && tsc -p . && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test", "unit-test:browser": "karma start --single-run", - "unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true", + "unit-test:node": "dev-tool run test:node-tsx-ts --no-test-proxy=true", "unit-test": "npm run unit-test:node && npm run unit-test:browser" }, "files": [ @@ -70,9 +70,9 @@ "dependencies": { "@azure/core-tracing": "^1.0.0", "@azure/logger": "^1.0.0", - "@opentelemetry/api": "^1.7.0", - "@opentelemetry/core": "^1.21.0", - "@opentelemetry/instrumentation": "^0.48.0", + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/core": "^1.22.0", + "@opentelemetry/instrumentation": "^0.49.1", "tslib": "^2.2.0" }, "devDependencies": { @@ -80,8 +80,8 @@ "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@microsoft/api-extractor": "^7.31.1", - "@opentelemetry/sdk-trace-base": "^1.21.0", - "@opentelemetry/sdk-trace-node": "^1.21.0", + "@opentelemetry/sdk-trace-base": "^1.22.0", + "@opentelemetry/sdk-trace-node": "^1.22.0", "@types/chai": "^4.1.6", "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", @@ -90,7 +90,6 @@ "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", - "esm": "^3.2.18", "inherits": "^2.0.3", "karma": "^6.2.0", "karma-chrome-launcher": "^3.0.0", @@ -105,9 +104,9 @@ "rimraf": "^5.0.5", "sinon": "^17.0.0", "source-map-support": "^0.5.9", + "tsx": "^4.7.1", "typescript": "~5.3.3", - "util": "^0.12.1", - "ts-node": "^10.0.0" + "util": "^0.12.1" }, "//sampleConfiguration": { "skipFolder": true, diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts index 8b75af3193ac..b8d31f2f6624 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/test/public/instrumenter.spec.ts @@ -264,29 +264,6 @@ describe("OpenTelemetryInstrumenter", () => { assert.isTrue(contextSpy.calledWith(activeContext, callback, undefined, callbackArg)); }); - it("works when caller binds `this`", function (this: Context) { - // a bit of a silly test but demonstrates how to bind `this` correctly - // and ensures the behavior does not regress - - // Function syntax - instrumenter.withContext(context.active(), function (this: any) { - assert.notExists(this); - }); - instrumenter.withContext( - context.active(), - function (this: any) { - assert.equal(this, 42); - }.bind(42), - ); - - // Arrow syntax - // eslint-disable-next-line @typescript-eslint/no-this-alias - const that = this; - instrumenter.withContext(context.active(), () => { - assert.equal(this, that); - }); - }); - it("Returns the value of the callback", () => { const result = instrumenter.withContext(context.active(), () => 42); assert.equal(result, 42); diff --git a/sdk/monitor/monitor-opentelemetry-exporter/package.json b/sdk/monitor/monitor-opentelemetry-exporter/package.json index 3c4e80bbbd31..0cc463473782 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/package.json +++ b/sdk/monitor/monitor-opentelemetry-exporter/package.json @@ -25,9 +25,8 @@ "test:node": "npm run clean && npm run build:test && npm run unit-test:node", "test:browser": "npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- --timeout 1200000 \"test/internal/**/*.test.ts\"", - "unit-test:node:debug": "dev-tool run test:node-ts-input --no-test-proxy=true -- --inspect-brk \"test/internal/**/*.test.ts\"", - "unit-test:node:no-timeout": "echo skipped", + "unit-test:node": "dev-tool run test:node-tsx-ts -- --timeout 1200000 \"test/internal/**/*.test.ts\"", + "unit-test:node:debug": "dev-tool run test:node-tsx-ts -- --timeout 1200000 \"test/internal/**/*.test.ts\"", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- --timeout 1200000 \"test/internal/functional/**/*.test.ts\"", @@ -84,37 +83,35 @@ "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", "@microsoft/api-extractor": "^7.31.1", - "@opentelemetry/instrumentation": "^0.48.0", - "@opentelemetry/instrumentation-http": "^0.48.0", - "@opentelemetry/sdk-trace-node": "^1.21.0", + "@opentelemetry/instrumentation": "^0.49.1", + "@opentelemetry/instrumentation-http": "^0.49.1", + "@opentelemetry/sdk-trace-node": "^1.22.0", "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "c8": "^8.0.0", "dotenv": "^16.0.0", "eslint": "^8.0.0", "eslint-plugin-node": "^11.1.0", - "esm": "^3.2.18", "mocha": "^10.0.0", "nock": "^12.0.3", - "c8": "^8.0.0", "rimraf": "^5.0.5", "sinon": "^17.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.3.3", - "cross-env": "^7.0.2" + "tsx": "^4.7.1", + "typescript": "~5.3.3" }, "dependencies": { "@azure/core-client": "^1.0.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.1.0", - "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "^0.48.0", - "@opentelemetry/core": "^1.21.0", - "@opentelemetry/resources": "^1.21.0", - "@opentelemetry/sdk-metrics": "^1.21.0", - "@opentelemetry/sdk-trace-base": "^1.21.0", - "@opentelemetry/semantic-conventions": "^1.21.0", - "@opentelemetry/sdk-logs": "^0.48.0", - "tslib": "^2.2.0" + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/api-logs": "^0.49.1", + "@opentelemetry/core": "^1.22.0", + "@opentelemetry/resources": "^1.22.0", + "@opentelemetry/sdk-metrics": "^1.22.0", + "@opentelemetry/sdk-trace-base": "^1.22.0", + "@opentelemetry/semantic-conventions": "^1.22.0", + "@opentelemetry/sdk-logs": "^0.49.1", + "tslib": "^2.6.2" }, "sideEffects": false, "keywords": [ diff --git a/sdk/monitor/monitor-opentelemetry/package.json b/sdk/monitor/monitor-opentelemetry/package.json index f080d7ca8adc..35fbd739f19e 100644 --- a/sdk/monitor/monitor-opentelemetry/package.json +++ b/sdk/monitor/monitor-opentelemetry/package.json @@ -13,8 +13,8 @@ "build:node": "tsc -p . && dev-tool run bundle --browser-test=false", "build:test": "tsc -p . && dev-tool run bundle --browser-test=false", "build": "npm run build:node && npm run build:browser && api-extractor run --local", + "clean": "rimraf --glob dist dist-* temp types *.tgz *.log", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", - "clean": "rimraf --glob dist-esm types dist", "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", @@ -25,13 +25,12 @@ "test": "npm run clean && npm run build:test && npm run unit-test", "test:browser": "npm run unit-test:browser", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- \"test/internal/unit/**/*.test.ts\"", - "unit-test:node:debug": "dev-tool run test:node-ts-input --no-test-proxy=true -- --inspect-brk \"test/internal/unit/**/*.test.ts\"", + "unit-test:node": "dev-tool run test:node-tsx-ts --no-test-proxy=true -- --timeout 1200000 \"test/internal/unit/**/*.test.ts\"", + "unit-test:node:debug": "dev-tool run test:node-tsx-js --no-test-proxy=true -- --inspect-brk --timeout 1200000 \"test/internal/unit/**/*.test.ts\"", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- \"test/internal/functional/**/*.test.ts\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "report": "nyc report --reporter=json", "test-opentelemetry-versions": "node test-opentelemetry-versions.js 2>&1", "pack": "npm pack 2>&1" }, @@ -71,18 +70,16 @@ "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", "@types/sinon": "^17.0.0", + "c8": "^8.0.0", "dotenv": "^16.0.0", "eslint": "^8.0.0", "eslint-plugin-node": "^11.1.0", "mocha": "^10.0.0", "nock": "^12.0.3", - "c8": "^8.0.0", - "cross-env": "^7.0.3", "rimraf": "^5.0.5", "sinon": "^17.0.0", - "ts-node": "^10.0.0", - "typescript": "~5.3.3", - "esm": "^3.2.18" + "tsx": "^4.7.1", + "typescript": "~5.3.3" }, "dependencies": { "@azure/core-client": "^1.0.0", @@ -92,27 +89,27 @@ "@azure/logger": "^1.0.0", "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.21", "@azure/opentelemetry-instrumentation-azure-sdk": "^1.0.0-beta.5", - "@opentelemetry/api": "^1.7.0", - "@opentelemetry/api-logs": "^0.48.0", - "@opentelemetry/core": "^1.21.0", - "@opentelemetry/instrumentation": "^0.48.0", - "@opentelemetry/instrumentation-bunyan": "^0.35.0", - "@opentelemetry/instrumentation-http": "^0.48.0", - "@opentelemetry/instrumentation-mongodb": "^0.39.0", - "@opentelemetry/instrumentation-mysql": "^0.35.0", - "@opentelemetry/instrumentation-pg": "^0.38.0", - "@opentelemetry/instrumentation-redis": "^0.36.0", - "@opentelemetry/instrumentation-redis-4": "^0.36.0", - "@opentelemetry/resources": "^1.21.0", - "@opentelemetry/sdk-logs": "^0.48.0", - "@opentelemetry/sdk-metrics": "^1.21.0", - "@opentelemetry/sdk-node": "^0.48.0", - "@opentelemetry/sdk-trace-base": "^1.21.0", - "@opentelemetry/sdk-trace-node": "^1.21.0", - "@opentelemetry/semantic-conventions": "^1.21.0", - "tslib": "^2.2.0", "@microsoft/applicationinsights-web-snippet": "^1.1.2", - "@opentelemetry/resource-detector-azure": "^0.2.4" + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/api-logs": "^0.49.1", + "@opentelemetry/core": "^1.22.0", + "@opentelemetry/instrumentation": "^0.49.1", + "@opentelemetry/instrumentation-bunyan": "^0.36.0", + "@opentelemetry/instrumentation-http": "^0.49.1", + "@opentelemetry/instrumentation-mongodb": "^0.40.0", + "@opentelemetry/instrumentation-mysql": "^0.36.0", + "@opentelemetry/instrumentation-pg": "^0.39.0", + "@opentelemetry/instrumentation-redis": "^0.37.0", + "@opentelemetry/instrumentation-redis-4": "^0.37.0", + "@opentelemetry/resource-detector-azure": "^0.2.4", + "@opentelemetry/resources": "^1.22.0", + "@opentelemetry/sdk-logs": "^0.49.1", + "@opentelemetry/sdk-metrics": "^1.22.0", + "@opentelemetry/sdk-node": "^0.49.1", + "@opentelemetry/sdk-trace-base": "^1.22.0", + "@opentelemetry/sdk-trace-node": "^1.22.0", + "@opentelemetry/semantic-conventions": "^1.22.0", + "tslib": "^2.6.2" }, "sideEffects": false, "keywords": [ diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts index 4b2e68dfd7ba..140878af4487 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/shared/config.test.ts @@ -645,5 +645,5 @@ const testAttributes: any = { "service.name": "unknown_service:node", "telemetry.sdk.language": "nodejs", "telemetry.sdk.name": "opentelemetry", - "telemetry.sdk.version": "1.21.0", + "telemetry.sdk.version": "1.22.0", }; diff --git a/sdk/monitor/monitor-query/package.json b/sdk/monitor/monitor-query/package.json index 577c5adfda83..07a25550b58f 100644 --- a/sdk/monitor/monitor-query/package.json +++ b/sdk/monitor/monitor-query/package.json @@ -50,7 +50,7 @@ "generate:client:metrics-namespaces": "autorest --typescript swagger/metric-namespaces.md", "generate:client:metrics-definitions": "autorest --typescript swagger/metric-definitions.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js' 'dist-esm/test/**/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-tsx-js -- --timeout 5000000 'dist-esm/test/**/*.spec.js' 'dist-esm/test/**/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --format unix --ext .ts", @@ -59,7 +59,7 @@ "test:node": "npm run build:test && npm run integration-test:node", "test": "npm run build:test && npm run integration-test", "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/**/*.spec.ts' 'test/**/**/*.spec.ts'", + "unit-test:node": "dev-tool run test:node-tsx-ts -- --timeout 1200000 'test/**/*.spec.ts' 'test/**/**/*.spec.ts'", "unit-test": "npm run build:test && npm run unit-test:node && npm run unit-test:browser" }, "files": [ @@ -94,7 +94,7 @@ "@azure/core-paging": "^1.1.1", "@azure/core-util": "^1.3.2", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0" + "tslib": "^2.6.2" }, "devDependencies": { "@azure/dev-tool": "^1.0.0", @@ -103,21 +103,22 @@ "@azure/identity": "^4.0.1", "@azure/monitor-opentelemetry-exporter": "1.0.0-beta.21", "@azure/test-utils": "^1.0.0", + "@azure-tools/test-credential": "^1.0.0", "@azure-tools/test-recorder": "^3.0.0", "@microsoft/api-extractor": "^7.31.1", - "@opentelemetry/api": "^1.7.0", - "@opentelemetry/sdk-trace-node": "^1.21.0", - "@opentelemetry/sdk-trace-base": "^1.21.0", + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/sdk-trace-node": "^1.22.0", + "@opentelemetry/sdk-trace-base": "^1.22.0", "@types/chai-as-promised": "^7.1.0", "@types/chai": "^4.1.6", "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", + "c8": "^8.0.0", "chai-as-promised": "^7.1.1", "chai": "^4.2.0", "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", - "esm": "^3.2.18", "inherits": "^2.0.3", "karma-chrome-launcher": "^3.0.0", "karma-coverage": "^2.0.0", @@ -128,12 +129,10 @@ "karma-mocha": "^2.0.1", "karma": "^6.2.0", "mocha": "^10.0.0", - "c8": "^8.0.0", "rimraf": "^5.0.5", "source-map-support": "^0.5.9", - "typescript": "~5.3.3", - "@azure-tools/test-credential": "^1.0.0", - "ts-node": "^10.0.0" + "tsx": "^4.7.1", + "typescript": "~5.3.3" }, "//sampleConfiguration": { "skipFolder": false, From c49462c363bd766838bb3206adae3f7e72051ac2 Mon Sep 17 00:00:00 2001 From: Matthew Podwysocki Date: Mon, 11 Mar 2024 16:23:47 -0400 Subject: [PATCH 17/57] [monitor] Update to latest OTEL (#28868) ### Packages impacted by this PR - @azure-tests/perf-monitor-opentelemetry ### Issues associated with this PR ### Describe the problem that is addressed by this PR Updates to latest OTEL packages ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --- common/config/rush/pnpm-lock.yaml | 56 ++----------------- .../monitor-opentelemetry/package.json | 18 +++--- .../monitor-opentelemetry/test/index.spec.ts | 6 +- .../test/logExport.spec.ts | 2 +- .../test/metricExport.spec.ts | 2 +- .../test/spanExport.spec.ts | 2 +- .../monitor-opentelemetry/tsconfig.json | 13 ++++- 7 files changed, 28 insertions(+), 71 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index e5e212d938af..25bb3fcac03c 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -2323,13 +2323,6 @@ packages: fastq: 1.17.1 dev: false - /@opentelemetry/api-logs@0.48.0: - resolution: {integrity: sha512-1/aMiU4Eqo3Zzpfwu51uXssp5pzvHFObk8S9pKAiXb1ne8pvg1qxBQitYL1XUiAMEXFzgjaidYG2V6624DRhhw==} - engines: {node: '>=14'} - dependencies: - '@opentelemetry/api': 1.7.0 - dev: false - /@opentelemetry/api-logs@0.49.1: resolution: {integrity: sha512-kaNl/T7WzyMUQHQlVq7q0oV4Kev6+0xFwqzofryC66jgGMacd0QH5TwfpbUwSTby+SdAdprAe5UKMvBw4tKS5Q==} engines: {node: '>=14'} @@ -2356,16 +2349,6 @@ packages: '@opentelemetry/api': 1.8.0 dev: false - /@opentelemetry/core@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-KP+OIweb3wYoP7qTYL/j5IpOlu52uxBv5M4+QhSmmUfLyTgu1OIS71msK3chFo1D6Y61BIH3wMiMYRCxJCQctA==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' - dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/semantic-conventions': 1.21.0 - dev: false - /@opentelemetry/core@1.22.0(@opentelemetry/api@1.8.0): resolution: {integrity: sha512-0VoAlT6x+Xzik1v9goJ3pZ2ppi6+xd3aUfg4brfrLkDBHRIVjMP0eBHrKrhB+NKcDyMAg8fAbGL3Npg/F6AwWA==} engines: {node: '>=14'} @@ -2636,17 +2619,6 @@ packages: - '@opentelemetry/api' dev: false - /@opentelemetry/resources@1.21.0(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-1Z86FUxPKL6zWVy2LdhueEGl9AHDJcx+bvHStxomruz6Whd02mE3lNUMjVJ+FGRoktx/xYQcxccYb03DiUP6Yw==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.0.0 <1.8.0' - dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/semantic-conventions': 1.21.0 - dev: false - /@opentelemetry/resources@1.22.0(@opentelemetry/api@1.8.0): resolution: {integrity: sha512-+vNeIFPH2hfcNL0AJk/ykJXoUCtR1YaDUZM+p3wZNU4Hq98gzq+7b43xbkXjadD9VhWIUQqEwXyY64q6msPj6A==} engines: {node: '>=14'} @@ -2658,19 +2630,6 @@ packages: '@opentelemetry/semantic-conventions': 1.22.0 dev: false - /@opentelemetry/sdk-logs@0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0): - resolution: {integrity: sha512-lRcA5/qkSJuSh4ItWCddhdn/nNbVvnzM+cm9Fg1xpZUeTeozjJDBcHnmeKoOaWRnrGYBdz6UTY6bynZR9aBeAA==} - engines: {node: '>=14'} - peerDependencies: - '@opentelemetry/api': '>=1.4.0 <1.8.0' - '@opentelemetry/api-logs': '>=0.39.1' - dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/core': 1.21.0(@opentelemetry/api@1.7.0) - '@opentelemetry/resources': 1.21.0(@opentelemetry/api@1.7.0) - dev: false - /@opentelemetry/sdk-logs@0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0): resolution: {integrity: sha512-gCzYWsJE0h+3cuh3/cK+9UwlVFyHvj3PReIOCDOmdeXOp90ZjKRoDOJBc3mvk1LL6wyl1RWIivR8Rg9OToyesw==} engines: {node: '>=14'} @@ -2747,11 +2706,6 @@ packages: semver: 7.6.0 dev: false - /@opentelemetry/semantic-conventions@1.21.0: - resolution: {integrity: sha512-lkC8kZYntxVKr7b8xmjCVUgE0a8xgDakPyDo9uSWavXPyYqLgYYGdEd2j8NxihRyb6UwpX3G/hFUF4/9q2V+/g==} - engines: {node: '>=14'} - dev: false - /@opentelemetry/semantic-conventions@1.22.0: resolution: {integrity: sha512-CAOgFOKLybd02uj/GhCdEeeBjOS0yeoDeo/CA7ASBSmenpZHAKGB3iDm/rv3BQLcabb/OprDEsSQ1y0P8A7Siw==} engines: {node: '>=14'} @@ -20904,13 +20858,13 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-UmIBLhCcyAUSI69l/tuebYr2ycxEi5NETn0Ft0fGi70GAG7Q0RY2276XfMKs8glQwuTcCKPbp8HTR/1jaWrPIQ==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-j7Ky/BPp40IYmh6SzJEe9X/aTt55W1vgfKDQpZLX2hKiAcetAUlk5jue0OPRzTOqmKz1dFQKAIgeHduTL9d1fA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: - '@opentelemetry/api': 1.7.0 - '@opentelemetry/api-logs': 0.48.0 - '@opentelemetry/sdk-logs': 0.48.0(@opentelemetry/api-logs@0.48.0)(@opentelemetry/api@1.7.0) + '@opentelemetry/api': 1.8.0 + '@opentelemetry/api-logs': 0.49.1 + '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) '@types/node': 18.19.18 '@types/uuid': 8.3.4 dotenv: 16.4.5 @@ -20921,8 +20875,6 @@ packages: typescript: 5.3.3 uuid: 8.3.2 transitivePeerDependencies: - - '@swc/core' - - '@swc/wasm' - supports-color dev: false diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/package.json b/sdk/monitor/perf-tests/monitor-opentelemetry/package.json index a55b6da4ef09..ff64778869d3 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/package.json +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/package.json @@ -4,27 +4,25 @@ "version": "1.0.0", "description": "", "main": "", + "type": "module", "keywords": [], "author": "", "license": "ISC", "dependencies": { + "@azure/monitor-opentelemetry": "^1.3.0", "@azure/test-utils-perf": "^1.0.0", "dotenv": "^16.0.0", - "uuid": "^8.3.0", - "@opentelemetry/api": "^1.7.0", - "@azure/monitor-opentelemetry": "^1.3.0", - "@opentelemetry/api-logs": "^0.48.0", - "@opentelemetry/sdk-logs": "^0.48.0" + "@opentelemetry/api": "^1.8.0", + "@opentelemetry/api-logs": "^0.49.1", + "@opentelemetry/sdk-logs": "^0.49.1", + "tslib": "^2.6.2" }, "devDependencies": { - "@types/uuid": "^8.0.0", + "@azure/dev-tool": "^1.0.0", "@types/node": "^18.0.0", "eslint": "^8.0.0", "rimraf": "^5.0.5", - "tslib": "^2.2.0", - "ts-node": "^10.0.0", - "typescript": "~5.3.3", - "@azure/dev-tool": "^1.0.0" + "typescript": "~5.3.3" }, "private": true, "scripts": { diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/test/index.spec.ts b/sdk/monitor/perf-tests/monitor-opentelemetry/test/index.spec.ts index 5c470774721d..e3e5475b82cf 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/test/index.spec.ts +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/test/index.spec.ts @@ -2,9 +2,9 @@ // Licensed under the MIT License. import { createPerfProgram } from "@azure/test-utils-perf"; -import { SpanExportTest } from "./spanExport.spec"; -import { LogExportTest } from "./logExport.spec"; -import { MetricExportTest } from "./metricExport.spec"; +import { SpanExportTest } from "./spanExport.spec.js"; +import { LogExportTest } from "./logExport.spec.js"; +import { MetricExportTest } from "./metricExport.spec.js"; const perfProgram = createPerfProgram(SpanExportTest, LogExportTest, MetricExportTest); perfProgram.run(); diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/test/logExport.spec.ts b/sdk/monitor/perf-tests/monitor-opentelemetry/test/logExport.spec.ts index fc7dd3e6756b..ef9c2a7018c4 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/test/logExport.spec.ts +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/test/logExport.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { PerfOptionDictionary } from "@azure/test-utils-perf"; -import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec"; +import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js"; import { logs, SeverityNumber } from "@opentelemetry/api-logs"; type MonitorOpenTelemetryTestOptions = Record; diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/test/metricExport.spec.ts b/sdk/monitor/perf-tests/monitor-opentelemetry/test/metricExport.spec.ts index 14659a2fe594..2469d4f4648d 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/test/metricExport.spec.ts +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/test/metricExport.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { PerfOptionDictionary } from "@azure/test-utils-perf"; -import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec"; +import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js"; import { metrics } from "@opentelemetry/api"; type MonitorOpenTelemetryTestOptions = Record; diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/test/spanExport.spec.ts b/sdk/monitor/perf-tests/monitor-opentelemetry/test/spanExport.spec.ts index 59ad95630abd..daa3bf0d89a7 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/test/spanExport.spec.ts +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/test/spanExport.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT License. import { PerfOptionDictionary } from "@azure/test-utils-perf"; -import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec"; +import { MonitorOpenTelemetryTest } from "./monitorOpenTelemetry.spec.js"; import { trace, Span, Tracer, context } from "@opentelemetry/api"; type MonitorOpenTelemetryTestOptions = Record; diff --git a/sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json b/sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json index 9c4b2796b41e..314eacb3b998 100644 --- a/sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json +++ b/sdk/monitor/perf-tests/monitor-opentelemetry/tsconfig.json @@ -1,12 +1,19 @@ { "extends": "../../../../tsconfig.package", "compilerOptions": { - "module": "commonjs", + "module": "NodeNext", + "moduleResolution": "NodeNext", "outDir": "./dist-esm", "declarationDir": "./types", "paths": { - "@azure/monitor-opentelemetry-exporter": ["./src/index"] + "@azure/monitor-opentelemetry-exporter": [ + "./src/index" + ] } }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": [ + "src/**/*.ts", + "test/**/*.ts", + "samples-dev/**/*.ts" + ] } From ecbebf5842ac9ae01c25746223c474ffceba2dc5 Mon Sep 17 00:00:00 2001 From: Scott Beddall <45376673+scbedd@users.noreply.github.com> Date: Mon, 11 Mar 2024 14:01:32 -0700 Subject: [PATCH 18/57] 1ES Template Conversion (#28848) - convert pipelines to 1es-templates from all entrypoints. specifically archetype-sdk-tests, archetype-sdk-client, and cosmos-sdk-client. - Move all image selection (outside of release deployments) to honor env variables instead of manually writing the pool (similar patterns for all other platforms) Co-authored-by: Ben Broderick Phillips --- eng/pipelines/templates/jobs/ci.tests.yml | 22 +- eng/pipelines/templates/jobs/ci.yml | 27 +- eng/pipelines/templates/jobs/live.tests.yml | 24 +- .../templates/stages/archetype-js-release.yml | 581 +++++++++--------- .../templates/stages/archetype-sdk-client.yml | 107 ++-- .../stages/archetype-sdk-tests-isolated.yml | 123 ++++ .../templates/stages/archetype-sdk-tests.yml | 116 ++-- .../templates/stages/cosmos-sdk-client.yml | 140 +++-- .../templates/stages/platform-matrix.json | 25 +- eng/pipelines/templates/steps/analyze.yml | 15 +- eng/pipelines/templates/steps/build.yml | 13 +- eng/pipelines/templates/steps/test.yml | 3 +- eng/pipelines/templates/variables/globals.yml | 1 - eng/pipelines/templates/variables/image.yml | 26 + .../phone-numbers-livetest-matrix.json | 20 +- .../keyvault-admin/platform-matrix.json | 4 +- .../platform-matrix.json | 4 +- .../keyvault-keys/platform-matrix.json | 8 +- .../keyvault-secrets/platform-matrix.json | 4 +- sdk/template/template/tests.yml | 21 +- 20 files changed, 740 insertions(+), 544 deletions(-) create mode 100644 eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml create mode 100644 eng/pipelines/templates/variables/image.yml diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index 8a35f5c7b7c3..c193f5902ea8 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -11,14 +11,17 @@ parameters: - name: Matrix type: string - name: DependsOn - type: string - default: '' + type: object + default: [] - name: UsePlatformContainer type: boolean default: false - name: CloudConfig type: object default: {} + - name: OSName + type: string + default: '' jobs: - job: @@ -39,10 +42,16 @@ jobs: pool: name: $(Pool) - vmImage: $(OSVmImage) - ${{ if eq(parameters.UsePlatformContainer, 'true') }}: - # Add a default so the job doesn't fail when the matrix is empty - container: $[ variables['Container'] ] + # 1es pipeline templates converts `image` to demands: ImageOverride under the hood + # which is incompatible with image selection in the default non-1es hosted pools + ${{ if eq(parameters.OSName, 'macOS') }}: + vmImage: $(OSVmImage) + ${{ else }}: + image: $(OSVmImage) + os: ${{ parameters.OSName }} + ${{ if eq(parameters.UsePlatformContainer, 'true') }}: + # Add a default so the job doesn't fail when the matrix is empty + container: $[ variables['Container'] ] variables: - template: ../variables/globals.yml @@ -55,3 +64,4 @@ jobs: Artifacts: ${{ parameters.Artifacts }} ServiceDirectory: ${{ parameters.ServiceDirectory }} TestProxy: ${{ parameters.TestProxy }} + OSName: ${{ parameters.OSName }} diff --git a/eng/pipelines/templates/jobs/ci.yml b/eng/pipelines/templates/jobs/ci.yml index 9ce550da79be..2d91faa403f0 100644 --- a/eng/pipelines/templates/jobs/ci.yml +++ b/eng/pipelines/templates/jobs/ci.yml @@ -28,14 +28,11 @@ parameters: jobs: - job: "Build" - variables: - Codeql.Enabled: true - Codeql.BuildIdentifier: ${{ parameters.ServiceDirectory }} - Codeql.SkipTaskAutoInjection: false pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: $(LINUXPOOL) + image: $(LINUXVMIMAGE) + os: linux steps: - script: | @@ -55,8 +52,9 @@ jobs: - job: "Analyze" pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 + name: $(LINUXPOOL) + image: $(LINUXVMIMAGE) + os: linux steps: - template: ../steps/common.yml @@ -67,19 +65,12 @@ jobs: ServiceDirectory: ${{ parameters.ServiceDirectory }} TestPipeline: ${{ parameters.TestPipeline }} - - job: Compliance - pool: - name: azsdk-pool-mms-win-2022-general - vmImage: MMS2022 - steps: - - template: /eng/common/pipelines/templates/steps/credscan.yml - parameters: - ServiceDirectory: ${{ parameters.ServiceDirectory }} - - ${{ if ne(parameters.RunUnitTests, false) }}: - - template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml + - template: /eng/common/pipelines/templates/jobs/generate-job-matrix.yml parameters: JobTemplatePath: /eng/pipelines/templates/jobs/ci.tests.yml + OsVmImage: $(LINUXVMIMAGE) + Pool: $(LINUXPOOL) MatrixConfigs: ${{ parameters.MatrixConfigs }} MatrixFilters: ${{ parameters.MatrixFilters }} MatrixReplace: ${{ parameters.MatrixReplace }} diff --git a/eng/pipelines/templates/jobs/live.tests.yml b/eng/pipelines/templates/jobs/live.tests.yml index e9e4408f6701..f5aeb7428bd8 100644 --- a/eng/pipelines/templates/jobs/live.tests.yml +++ b/eng/pipelines/templates/jobs/live.tests.yml @@ -40,7 +40,8 @@ parameters: - name: UsePlatformContainer type: boolean default: false - +- name: OSName + type: string jobs: - job: @@ -57,7 +58,13 @@ jobs: pool: name: $(Pool) - vmImage: $(OSVmImage) + # 1es pipeline templates converts `image` to demands: ImageOverride under the hood + # which is incompatible with image selection in the default non-1es hosted pools + ${{ if eq(parameters.OSName, 'macOS') }}: + vmImage: $(OSVmImage) + ${{ else }}: + image: $(OSVmImage) + os: ${{ parameters.OSName }} timeoutInMinutes: ${{ parameters.TimeoutInMinutes }} @@ -190,13 +197,12 @@ jobs: codeCoverageTool: Cobertura summaryFileLocation: "$(PackagePath)/coverage/cobertura-coverage.xml" - - task: PublishPipelineArtifact@1 - displayName: "Publish Browser Code Coverage Report Artifact" - continueOnError: true - condition: and(succeededOrFailed(),eq(variables['TestType'], 'browser'),eq(variables['PublishCodeCoverage'], true)) - inputs: - path: "$(PackagePath)/coverage-browser" - artifact: BrowserCodeCoverageReport + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml + parameters: + ArtifactPath: "$(PackagePath)/coverage-browser" + ArtifactName: BrowserCodeCoverageReport + CustomCondition: and(succeededOrFailed(),eq(variables['TestType'], 'browser'),eq(variables['PublishCodeCoverage'], true)) + SbomEnabled: false # Unlink node_modules folders to significantly improve performance of subsequent tasks # which need to walk the directory tree (and are hardcoded to follow symlinks). diff --git a/eng/pipelines/templates/stages/archetype-js-release.yml b/eng/pipelines/templates/stages/archetype-js-release.yml index d14451c8cdbc..a357ec660dda 100644 --- a/eng/pipelines/templates/stages/archetype-js-release.yml +++ b/eng/pipelines/templates/stages/archetype-js-release.yml @@ -1,319 +1,290 @@ parameters: Artifacts: [] TestPipeline: false - ArtifactName: 'not-specified' + ArtifactName: not-specified DependsOn: Build - Registry: 'https://registry.npmjs.org/' - PrivateRegistry: 'https://pkgs.dev.azure.com/azure-sdk/internal/_packaging/azure-sdk-for-js-pr/npm/registry/' + Registry: https://registry.npmjs.org/ + PrivateRegistry: https://pkgs.dev.azure.com/azure-sdk/internal/_packaging/azure-sdk-for-js-pr/npm/registry/ TargetDocRepoOwner: '' TargetDocRepoName: '' ServiceDirectory: '' + stages: - ${{if and(in(variables['Build.Reason'], 'Manual', ''), eq(variables['System.TeamProject'], 'internal'))}}: - - ${{ each artifact in parameters.Artifacts }}: - - stage: - variables: - - template: /eng/pipelines/templates/variables/globals.yml - displayName: 'Release: ${{artifact.name}}' - dependsOn: ${{parameters.DependsOn}} - condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'), ne(variables['Skip.Release'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-js-pr')) - jobs: - - deployment: TagRepository - displayName: "Create release tag" - condition: ne(variables['Skip.TagRepository'], 'true') - environment: github - - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - strategy: - runOnce: - deploy: - steps: - - checkout: self - - template: /eng/common/pipelines/templates/steps/retain-run.yml - - template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml - parameters: - PackageName: "@azure/template" - ServiceDirectory: "template" - TestPipeline: ${{ parameters.TestPipeline }} - - template: /eng/common/pipelines/templates/steps/verify-changelog.yml - parameters: - PackageName: ${{artifact.name}} - ServiceName: ${{parameters.ServiceDirectory}} - ForRelease: true - - template: /eng/common/pipelines/templates/steps/verify-restapi-spec-location.yml - parameters: - PackageName: ${{artifact.name}} - ServiceDirectory: ${{parameters.ServiceDirectory}} - ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}} - - pwsh: | - Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} - workingDirectory: $(Pipeline.Workspace) - displayName: Output Visible Artifacts - - template: /eng/common/pipelines/templates/steps/create-tags-and-git-release.yml - parameters: - ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} - PackageRepository: Npm - ReleaseSha: $(Build.SourceVersion) - RepoId: Azure/azure-sdk-for-js - WorkingDirectory: $(System.DefaultWorkingDirectory) - - - ${{if ne(artifact.skipPublishPackage, 'true')}}: - - deployment: PublishPackage - displayName: "Publish to npmjs" - condition: and(succeeded(), ne(variables['Skip.PublishPackage'], 'true')) - environment: npm - dependsOn: TagRepository - - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - strategy: - runOnce: - deploy: - steps: - - checkout: self - - script: | - export DETECTED_PACKAGE_NAME=`ls $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz` - echo "##vso[task.setvariable variable=Package.Archive]$DETECTED_PACKAGE_NAME" - displayName: Detecting package archive - - - pwsh: | - write-host "$(Package.Archive)" - $result = eng/scripts/get-npm-tags.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp - write-host "Tag: $($result.Tag)" - write-host "Additional tag: $($result.AdditionalTag)" - echo "##vso[task.setvariable variable=Tag]$($result.Tag)" - echo "##vso[task.setvariable variable=AdditionalTag]$($result.AdditionalTag)" - condition: and(succeeded(), ne(variables['Skip.AutoAddTag'], 'true')) - displayName: 'Set Tag and Additional Tag' - - - script: | - npm install $(Package.Archive) - displayName: 'Validating package can be installed' - condition: succeeded() - - - task: PowerShell@2 - displayName: 'Publish to npmjs.org' - inputs: - targetType: filePath - filePath: "eng/tools/publish-to-npm.ps1" - arguments: '-pathToArtifacts $(Package.Archive) -accessLevel "public" -tag "$(Tag)" -additionalTag "$(AdditionalTag)" -registry ${{parameters.Registry}} -npmToken $(azure-sdk-npm-token)' - pwsh: true - condition: succeeded() - - - pwsh: | - write-host "$(Package.Archive)" - eng/scripts/cleanup-npm-next-tag.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp -npmToken $(azure-sdk-npm-token) - displayName: 'Cleanup Npm Next Tag' - condition: and(succeeded(), ne(variables['Skip.RemoveOldTag'], 'true')) - - - - ${{if ne(artifact.skipPublishDocMs, 'true')}}: - - deployment: PublishDocs - displayName: Docs.MS Release - condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) - environment: githubio - dependsOn: PublishPackage - - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - strategy: - runOnce: - deploy: - steps: - - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml - parameters: - Paths: - - sdk/**/*.md - - .github/CODEOWNERS - - download: current - - - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml - - - template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml - parameters: - PackageInfoLocations: - - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json - RepoId: Azure/azure-sdk-for-js - WorkingDirectory: $(System.DefaultWorkingDirectory) - TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} - TargetDocRepoName: ${{parameters.TargetDocRepoName}} - Language: 'javascript' - SparseCheckoutPaths: - - docs-ref-services/ - - metadata/ - - ci-configs/packages-latest.json - - ci-configs/packages-preview.json - - - ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}: - - deployment: PublishDocsGitHubIO - displayName: Publish Docs to GitHubIO Blob Storage - condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) - environment: githubio - dependsOn: PublishPackage - - pool: - name: azsdk-pool-mms-win-2022-general - vmImage: MMS2022 - - strategy: - runOnce: - deploy: - steps: - - checkout: self - - pwsh: | - Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} - workingDirectory: $(Pipeline.Workspace) - displayName: Output Visible Artifacts - - template: /eng/common/pipelines/templates/steps/publish-blobs.yml - parameters: - FolderForUpload: '$(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}' - BlobSASKey: '$(azure-sdk-docs-prod-sas)' - BlobName: '$(azure-sdk-docs-prod-blob-name)' - TargetLanguage: 'javascript' - ArtifactLocation: '$(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}' - # we override the regular script path because we have cloned the build tools repo as a separate artifact. - ScriptPath: 'eng/common/scripts/copy-docs-to-blobstorage.ps1' - - - ${{if ne(artifact.skipUpdatePackageVersion, 'true')}}: - - deployment: UpdatePackageVersion - displayName: "Update Package Version" - condition: and(succeeded(), ne(variables['Skip.UpdatePackageVersion'], 'true')) - environment: github - dependsOn: PublishPackage - - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - strategy: - runOnce: - deploy: - steps: - - checkout: self - - - template: /eng/pipelines/templates/steps/common.yml - - - bash: | - npm install - workingDirectory: ./eng/tools/versioning - displayName: Install versioning tool dependencies - - - bash: | - node ./eng/tools/versioning/increment.js --artifact-name ${{ artifact.name }} --repo-root . - displayName: Increment package version - - - bash: | - node common/scripts/install-run-rush.js install - displayName: "Install dependencies" - - # Disabled until packages can be updated to support ES2019 syntax. - # - bash: | - # npm install -g ./common/tools/dev-tool - # npm install ./eng/tools/eng-package-utils - # node ./eng/tools/eng-package-utils/update-samples.js ${{ artifact.name }} - # displayName: Update samples - - - template: /eng/common/pipelines/templates/steps/create-pull-request.yml - parameters: - RepoName: azure-sdk-for-js - PRBranchName: post-release-automation-${{ parameters.ServiceDirectory }}-$(Build.BuildId) - CommitMsg: "Post release automated changes for ${{ artifact.name }}" - PRTitle: "Post release automated changes for ${{ parameters.ServiceDirectory }} releases" - CloseAfterOpenForTesting: '${{ parameters.TestPipeline }}' - - + - ${{ each artifact in parameters.Artifacts }}: + - stage: + variables: + - template: /eng/pipelines/templates/variables/globals.yml + displayName: 'Release: ${{artifact.name}}' + dependsOn: ${{parameters.DependsOn}} + condition: and(succeeded(), ne(variables['SetDevVersion'], 'true'), ne(variables['Skip.Release'], 'true'), ne(variables['Build.Repository.Name'], 'Azure/azure-sdk-for-js-pr')) + jobs: + - deployment: TagRepository + displayName: Create release tag + condition: ne(variables['Skip.TagRepository'], 'true') + environment: github + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + strategy: + runOnce: + deploy: + steps: + - checkout: self + - template: /eng/common/pipelines/templates/steps/retain-run.yml + - template: /eng/common/pipelines/templates/steps/set-test-pipeline-version.yml + parameters: + PackageName: '@azure/template' + ServiceDirectory: template + TestPipeline: ${{ parameters.TestPipeline }} + - template: /eng/common/pipelines/templates/steps/verify-changelog.yml + parameters: + PackageName: ${{artifact.name}} + ServiceName: ${{parameters.ServiceDirectory}} + ForRelease: true + - template: /eng/common/pipelines/templates/steps/verify-restapi-spec-location.yml + parameters: + PackageName: ${{artifact.name}} + ServiceDirectory: ${{parameters.ServiceDirectory}} + ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}} + - pwsh: > + Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} + workingDirectory: $(Pipeline.Workspace) + displayName: Output Visible Artifacts + - template: /eng/common/pipelines/templates/steps/create-tags-and-git-release.yml + parameters: + ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} + PackageRepository: Npm + ReleaseSha: $(Build.SourceVersion) + RepoId: Azure/azure-sdk-for-js + WorkingDirectory: $(System.DefaultWorkingDirectory) + - ${{if ne(artifact.skipPublishPackage, 'true')}}: + - deployment: PublishPackage + displayName: Publish to npmjs + condition: and(succeeded(), ne(variables['Skip.PublishPackage'], 'true')) + environment: npm + dependsOn: TagRepository + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + strategy: + runOnce: + deploy: + steps: + - checkout: self + - script: > + export DETECTED_PACKAGE_NAME=`ls $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz` + + echo "##vso[task.setvariable variable=Package.Archive]$DETECTED_PACKAGE_NAME" + displayName: Detecting package archive + - pwsh: > + write-host "$(Package.Archive)" + + $result = eng/scripts/get-npm-tags.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp + + write-host "Tag: $($result.Tag)" + + write-host "Additional tag: $($result.AdditionalTag)" + + echo "##vso[task.setvariable variable=Tag]$($result.Tag)" + + echo "##vso[task.setvariable variable=AdditionalTag]$($result.AdditionalTag)" + condition: and(succeeded(), ne(variables['Skip.AutoAddTag'], 'true')) + displayName: Set Tag and Additional Tag + - script: > + npm install $(Package.Archive) + displayName: Validating package can be installed + condition: succeeded() + - task: PowerShell@2 + displayName: Publish to npmjs.org + inputs: + targetType: filePath + filePath: eng/tools/publish-to-npm.ps1 + arguments: -pathToArtifacts $(Package.Archive) -accessLevel "public" -tag "$(Tag)" -additionalTag "$(AdditionalTag)" -registry ${{parameters.Registry}} -npmToken $(azure-sdk-npm-token) + pwsh: true + condition: succeeded() + - pwsh: > + write-host "$(Package.Archive)" + + eng/scripts/cleanup-npm-next-tag.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp -npmToken $(azure-sdk-npm-token) + displayName: Cleanup Npm Next Tag + condition: and(succeeded(), ne(variables['Skip.RemoveOldTag'], 'true')) + - ${{if ne(artifact.skipPublishDocMs, 'true')}}: + - deployment: PublishDocs + displayName: Docs.MS Release + condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) + environment: githubio + dependsOn: PublishPackage + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + strategy: + runOnce: + deploy: + steps: + - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml + parameters: + Paths: + - sdk/**/*.md + - .github/CODEOWNERS + - download: current + - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml + - template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml + parameters: + PackageInfoLocations: + - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json + RepoId: Azure/azure-sdk-for-js + WorkingDirectory: $(System.DefaultWorkingDirectory) + TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} + TargetDocRepoName: ${{parameters.TargetDocRepoName}} + Language: javascript + SparseCheckoutPaths: + - docs-ref-services/ + - metadata/ + - ci-configs/packages-latest.json + - ci-configs/packages-preview.json + - ${{if ne(artifact.skipPublishDocGithubIo, 'true')}}: + - deployment: PublishDocsGitHubIO + displayName: Publish Docs to GitHubIO Blob Storage + condition: and(succeeded(), ne(variables['Skip.PublishDocs'], 'true')) + environment: githubio + dependsOn: PublishPackage + pool: + name: azsdk-pool-mms-win-2022-general + image: azsdk-pool-mms-win-2022-1espt + os: windows + strategy: + runOnce: + deploy: + steps: + - checkout: self + - pwsh: > + Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} + workingDirectory: $(Pipeline.Workspace) + displayName: Output Visible Artifacts + - template: /eng/common/pipelines/templates/steps/publish-blobs.yml + parameters: + FolderForUpload: $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} + BlobSASKey: $(azure-sdk-docs-prod-sas) + BlobName: $(azure-sdk-docs-prod-blob-name) + TargetLanguage: javascript + ArtifactLocation: $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}} + ScriptPath: eng/common/scripts/copy-docs-to-blobstorage.ps1 + - ${{if ne(artifact.skipUpdatePackageVersion, 'true')}}: + - deployment: UpdatePackageVersion + displayName: Update Package Version + condition: and(succeeded(), ne(variables['Skip.UpdatePackageVersion'], 'true')) + environment: github + dependsOn: PublishPackage + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + strategy: + runOnce: + deploy: + steps: + - checkout: self + - template: /eng/pipelines/templates/steps/common.yml + - bash: > + npm install + workingDirectory: ./eng/tools/versioning + displayName: Install versioning tool dependencies + - bash: > + node ./eng/tools/versioning/increment.js --artifact-name ${{ artifact.name }} --repo-root . + displayName: Increment package version + - bash: > + node common/scripts/install-run-rush.js install + displayName: Install dependencies + - template: /eng/common/pipelines/templates/steps/create-pull-request.yml + parameters: + RepoName: azure-sdk-for-js + PRBranchName: post-release-automation-${{ parameters.ServiceDirectory }}-$(Build.BuildId) + CommitMsg: Post release automated changes for ${{ artifact.name }} + PRTitle: Post release automated changes for ${{ parameters.ServiceDirectory }} releases + CloseAfterOpenForTesting: ${{ parameters.TestPipeline }} - stage: Integration dependsOn: ${{parameters.DependsOn}} variables: - - template: /eng/pipelines/templates/variables/globals.yml + - template: /eng/pipelines/templates/variables/globals.yml jobs: - - job: PublishPackages - # Run Integration job only if SetDevVersion is set to true or ( SetDevVersion is empty and job is a scheduled CI run) - # If SetDevVersion is set to false then we should skip integration job even for scheduled runs. - condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'))) - displayName: Publish package to daily feed - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - steps: - - checkout: self - - download: current - artifact: ${{parameters.ArtifactName}} - timeoutInMinutes: 5 - - ${{ each artifact in parameters.Artifacts }}: - - ${{if ne(artifact.skipPublishDevFeed, 'true')}}: - - pwsh: | - $detectedPackageName=Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz - Write-Host "Detected package name: $($detectedPackageName)" - if ($detectedPackageName -notmatch "-alpha") - { - Write-Error "Found non alpha version artifact to publish as dev version. Failing publish step. VersionPolicy should be client or core in rush.json to get alpha version build." - exit 1 - } - echo "##vso[task.setvariable variable=Package.Archive]$detectedPackageName" - if ('$(Build.Repository.Name)' -eq 'Azure/azure-sdk-for-js') { - $npmToken="$(azure-sdk-npm-token)" - $registry="${{parameters.Registry}}" - } - else { - $npmToken="$(azure-sdk-devops-npm-token)" - $registry="${{parameters.PrivateRegistry}}" - } - echo "##vso[task.setvariable variable=NpmToken]$npmToken" - echo "##vso[task.setvariable variable=Registry]$registry" - displayName: Detecting package archive_${{artifact.name}} - - - task: PowerShell@2 - displayName: "Publish_${{artifact.name}} to dev feed" - inputs: - targetType: filePath - filePath: "eng/tools/publish-to-npm.ps1" - arguments: '-pathToArtifacts $(Package.Archive) -accessLevel "public" -tag "dev" -registry "$(Registry)" -npmToken "$(NpmToken)"' - - - job: PublishDocsToNightlyBranch - condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'), ne(variables['Skip.PublishDocs'], 'true'))) - dependsOn: PublishPackages - pool: - name: azsdk-pool-mms-ubuntu-2004-general - vmImage: MMSUbuntu20.04 - - steps: - - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml - parameters: - Paths: - - sdk/**/*.md - - .github/CODEOWNERS - - download: current - - pwsh: | - Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.ArtifactName}}/ - displayName: Show visible artifacts - - - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml - - - template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml - parameters: - PackageInfoLocations: - - ${{ each artifact in parameters.Artifacts }}: - - ${{if ne(artifact.skipPublishDocMs, 'true')}}: - - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json - RepoId: Azure/azure-sdk-for-js - WorkingDirectory: $(System.DefaultWorkingDirectory) - TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} - TargetDocRepoName: ${{parameters.TargetDocRepoName}} - Language: 'javascript' - DailyDocsBuild: true - SparseCheckoutPaths: - - docs-ref-services/ - - metadata/ - - ci-configs/packages-latest.json - - ci-configs/packages-preview.json - - - template: /eng/common/pipelines/templates/steps/docsms-ensure-validation.yml + - job: PublishPackages + condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'))) + displayName: Publish package to daily feed + pool: + name: azsdk-pool-mms-ubuntu-2004-general + image: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + steps: + - checkout: self + - download: current + artifact: ${{parameters.ArtifactName}} + timeoutInMinutes: 5 + - ${{ each artifact in parameters.Artifacts }}: + - ${{if ne(artifact.skipPublishDevFeed, 'true')}}: + - pwsh: | + $detectedPackageName=Get-ChildItem $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz + Write-Host "Detected package name: $($detectedPackageName)" + if ($detectedPackageName -notmatch "-alpha") + { + Write-Error "Found non alpha version artifact to publish as dev version. Failing publish step. VersionPolicy should be client or core in rush.json to get alpha version build." + exit 1 + } + echo "##vso[task.setvariable variable=Package.Archive]$detectedPackageName" + if ('$(Build.Repository.Name)' -eq 'Azure/azure-sdk-for-js') { + $npmToken="$(azure-sdk-npm-token)" + $registry=${{parameters.Registry}}" + } + else { + $npmToken="$(azure-sdk-devops-npm-token)" + $registry=${{parameters.PrivateRegistry}}" + } + echo "##vso[task.setvariable variable=NpmToken]$npmToken" + echo "##vso[task.setvariable variable=Registry]$registry" + displayName: Detecting package archive_${{artifact.name}} + - task: PowerShell@2 + displayName: Publish_${{artifact.name}} to dev feed + inputs: + targetType: filePath + filePath: eng/tools/publish-to-npm.ps1 + arguments: -pathToArtifacts $(Package.Archive) -accessLevel "public" -tag "dev" -registry "$(Registry)" -npmToken "$(NpmToken)" + - job: PublishDocsToNightlyBranch + condition: or(eq(variables['SetDevVersion'], 'true'), and(eq(variables['Build.Reason'],'Schedule'), eq(variables['System.TeamProject'], 'internal'), ne(variables['Skip.PublishDocs'], 'true'))) + dependsOn: PublishPackages + pool: + name: azsdk-pool-mms-ubuntu-2004-general + vmImage: azsdk-pool-mms-ubuntu-2004-1espt + os: linux + steps: + - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml + parameters: + Paths: + - sdk/**/*.md + - .github/CODEOWNERS + - download: current + - pwsh: > + Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.ArtifactName}}/ + displayName: Show visible artifacts + - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml + - template: /eng/common/pipelines/templates/steps/update-docsms-metadata.yml + parameters: + PackageInfoLocations: + - ${{ each artifact in parameters.Artifacts }}: + - ${{if ne(artifact.skipPublishDocMs, 'true')}}: + - $(Pipeline.Workspace)/${{parameters.ArtifactName}}/PackageInfo/${{artifact.name}}.json + RepoId: Azure/azure-sdk-for-js + WorkingDirectory: $(System.DefaultWorkingDirectory) + TargetDocRepoOwner: ${{parameters.TargetDocRepoOwner}} + TargetDocRepoName: ${{parameters.TargetDocRepoName}} + Language: javascript + DailyDocsBuild: true + SparseCheckoutPaths: + - docs-ref-services/ + - metadata/ + - ci-configs/packages-latest.json + - ci-configs/packages-preview.json + - template: /eng/common/pipelines/templates/steps/docsms-ensure-validation.yml diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml index 823aafc85745..1811aba459a4 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-client.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml @@ -1,3 +1,10 @@ +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + parameters: - name: Artifacts type: object @@ -40,43 +47,65 @@ parameters: type: object default: [] -variables: - - template: ../variables/globals.yml - -stages: - - stage: Build - jobs: - - template: /eng/pipelines/templates/jobs/ci.yml - parameters: - ServiceDirectory: ${{ parameters.ServiceDirectory }} - TestProxy: ${{ parameters.TestProxy }} - Artifacts: ${{ parameters.Artifacts }} - ${{ if eq(parameters.ServiceDirectory, 'template') }}: - TestPipeline: true - RunUnitTests: ${{ parameters.RunUnitTests }} - MatrixConfigs: - - ${{ each config in parameters.MatrixConfigs }}: - - ${{ config }} - - ${{ each config in parameters.AdditionalMatrixConfigs }}: - - ${{ config }} - MatrixFilters: - - TestType=node|browser - - DependencyVersion=^$ - - ${{ each filter in parameters.MatrixFilters }}: - - ${{ filter}} - MatrixReplace: ${{ parameters.MatrixReplace }} - IncludeRelease: ${{ parameters.IncludeRelease }} +extends: + ${{ if eq(variables['System.TeamProject'], 'internal') }}: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + ${{ else }}: + template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + settings: + skipBuildTagsForGitHubPullRequests: true + sdl: + sourceAnalysisPool: + name: azsdk-pool-mms-win-2022-general + image: azsdk-pool-mms-win-2022-1espt + os: windows + eslint: + enabled: false + justificationForDisabling: 'ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3499746' + psscriptanalyzer: + compiled: true + break: true + policy: M365 + credscan: + suppressionsFile: $(Build.SourcesDirectory)/eng/CredScanSuppression.json + toolVersion: 2.3.12.23 + stages: + - stage: Build + jobs: + - template: /eng/pipelines/templates/jobs/ci.yml@self + parameters: + ServiceDirectory: ${{ parameters.ServiceDirectory }} + TestProxy: ${{ parameters.TestProxy }} + Artifacts: ${{ parameters.Artifacts }} + ${{ if eq(parameters.ServiceDirectory, 'template') }}: + TestPipeline: true + RunUnitTests: ${{ parameters.RunUnitTests }} + MatrixConfigs: + - ${{ each config in parameters.MatrixConfigs }}: + - ${{ config }} + - ${{ each config in parameters.AdditionalMatrixConfigs }}: + - ${{ config }} + MatrixFilters: + - TestType=node|browser + - DependencyVersion=^$ + - ${{ each filter in parameters.MatrixFilters }}: + - ${{ filter}} + MatrixReplace: ${{ parameters.MatrixReplace }} + IncludeRelease: ${{ parameters.IncludeRelease }} + variables: + - template: /eng/pipelines/templates/variables/globals.yml@self + - template: /eng/pipelines/templates/variables/image.yml@self - # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. - - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'), eq(parameters.IncludeRelease,true))}}: - - template: archetype-js-release.yml - parameters: - DependsOn: Build - ServiceDirectory: ${{ parameters.ServiceDirectory }} - TestProxy: ${{ parameters.TestProxy }} - Artifacts: ${{ parameters.Artifacts }} - ${{ if eq(parameters.ServiceDirectory, 'template') }}: - TestPipeline: true - ArtifactName: packages - TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} - TargetDocRepoName: ${{ parameters.TargetDocRepoName }} + - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'), eq(parameters.IncludeRelease,true))}}: + - template: archetype-js-release.yml@self + parameters: + DependsOn: Build + ServiceDirectory: ${{ parameters.ServiceDirectory }} + TestProxy: ${{ parameters.TestProxy }} + Artifacts: ${{ parameters.Artifacts }} + ${{ if eq(parameters.ServiceDirectory, 'template') }}: + TestPipeline: true + ArtifactName: packages + TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} + TargetDocRepoName: ${{ parameters.TargetDocRepoName }} diff --git a/eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml b/eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml new file mode 100644 index 000000000000..e6eb543b37fa --- /dev/null +++ b/eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml @@ -0,0 +1,123 @@ +parameters: + - name: PackageName + type: string + default: "" + - name: ServiceDirectory + type: string + default: "" + - name: TestResourceDirectories + type: object + default: + - name: EnvVars + type: object + default: {} + - name: MaxParallel + type: number + default: 0 + - name: TimeoutInMinutes + type: number + default: 60 + - name: PublishCodeCoverage + type: boolean + default: false + - name: Location + type: string + default: "" + - name: Clouds + type: string + default: 'Public' + - name: SupportedClouds + type: string + default: 'Public' + - name: UnsupportedClouds + type: string + default: '' + - name: PreSteps + type: object + default: [] + - name: PostSteps + type: object + default: [] + - name: CloudConfig + type: object + default: + Public: + SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) + Preview: + SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview) + Canary: + SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) + Location: 'centraluseuap' + MatrixFilters: + - OSVmImage=.*Ubuntu.* + - DependencyVersion=^$ + UsGov: + SubscriptionConfiguration: $(sub-config-gov-test-resources) + China: + SubscriptionConfiguration: $(sub-config-cn-test-resources) + - name: MatrixConfigs + type: object + default: + - Name: Js_live_test_base + Path: eng/pipelines/templates/stages/platform-matrix.json + Selection: sparse + GenerateVMJobs: true + - name: AdditionalMatrixConfigs + type: object + default: [] + - name: MatrixFilters + type: object + default: [] + - name: MatrixReplace + type: object + default: [] + +stages: + - ${{ each cloud in parameters.CloudConfig }}: + - ${{ if or(contains(parameters.Clouds, cloud.key), and(contains(variables['Build.DefinitionName'], 'tests-weekly'), contains(parameters.SupportedClouds, cloud.key))) }}: + - ${{ if not(contains(parameters.UnsupportedClouds, cloud.key)) }}: + - stage: ${{ cloud.key }} + dependsOn: [] + variables: + - template: /eng/pipelines/templates/variables/globals.yml + - template: /eng/pipelines/templates/variables/image.yml + jobs: + - template: /eng/common/pipelines/templates/jobs/generate-job-matrix.yml + parameters: + SparseCheckoutPaths: + # JS recording files are implicit excluded here since they are using '.js' file extension. + - "sdk/${{ parameters.ServiceDirectory }}/**/*.json" + JobTemplatePath: /eng/pipelines/templates/jobs/live.tests.yml + OsVmImage: $(LINUXVMIMAGE) + Pool: $(LINUXPOOL) + AdditionalParameters: + PackageName: ${{ parameters.PackageName }} + ServiceDirectory: ${{ parameters.ServiceDirectory }} + EnvVars: ${{ parameters.EnvVars }} + MaxParallel: ${{ parameters.MaxParallel }} + TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }} + TestResourceDirectories: ${{ parameters.TestResourceDirectories }} + PublishCodeCoverage: ${{ parameters.PublishCodeCoverage }} + PreSteps: + - ${{ parameters.PreSteps }} + PostSteps: + - ${{ parameters.PostSteps }} + MatrixConfigs: + # Enumerate platforms and additional platforms based on supported clouds (sparse platform<-->cloud matrix). + - ${{ each config in parameters.MatrixConfigs }}: + - ${{ config }} + - ${{ each config in parameters.AdditionalMatrixConfigs }}: + - ${{ config }} + MatrixFilters: + - ${{ each cloudFilter in cloud.value.MatrixFilters }}: + - ${{ cloudFilter }} + - ${{ parameters.MatrixFilters }} + MatrixReplace: + - ${{ each cloudReplace in cloud.value.MatrixReplace }}: + - ${{ cloudReplace }} + - ${{ parameters.MatrixReplace }} + CloudConfig: + SubscriptionConfiguration: ${{ cloud.value.SubscriptionConfiguration }} + SubscriptionConfigurations: ${{ cloud.value.SubscriptionConfigurations }} + Location: ${{ coalesce(parameters.Location, cloud.value.Location) }} + Cloud: ${{ cloud.key }} diff --git a/eng/pipelines/templates/stages/archetype-sdk-tests.yml b/eng/pipelines/templates/stages/archetype-sdk-tests.yml index 9b6828ddb1d3..d2955f2aecd7 100644 --- a/eng/pipelines/templates/stages/archetype-sdk-tests.yml +++ b/eng/pipelines/templates/stages/archetype-sdk-tests.yml @@ -1,10 +1,16 @@ +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release parameters: - name: PackageName type: string - default: "" + default: '' - name: ServiceDirectory type: string - default: "" + default: '' - name: TestResourceDirectories type: object default: @@ -22,13 +28,13 @@ parameters: default: false - name: Location type: string - default: "" + default: '' - name: Clouds type: string - default: 'Public' + default: Public - name: SupportedClouds type: string - default: 'Public' + default: Public - name: UnsupportedClouds type: string default: '' @@ -47,7 +53,7 @@ parameters: SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources-preview) Canary: SubscriptionConfiguration: $(sub-config-azure-cloud-test-resources) - Location: 'centraluseuap' + Location: centraluseuap MatrixFilters: - OSVmImage=.*Ubuntu.* - DependencyVersion=^$ @@ -72,47 +78,57 @@ parameters: type: object default: [] -stages: -- ${{ each cloud in parameters.CloudConfig }}: - - ${{ if or(contains(parameters.Clouds, cloud.key), and(contains(variables['Build.DefinitionName'], 'tests-weekly'), contains(parameters.SupportedClouds, cloud.key))) }}: - - ${{ if not(contains(parameters.UnsupportedClouds, cloud.key)) }}: - - stage: ${{ cloud.key }} - dependsOn: [] - jobs: - - template: /eng/common/pipelines/templates/jobs/archetype-sdk-tests-generate.yml - parameters: - SparseCheckoutPaths: - # JS recording files are implicit excluded here since they are using '.js' file extension. - - "sdk/${{ parameters.ServiceDirectory }}/**/*.json" - JobTemplatePath: /eng/pipelines/templates/jobs/live.tests.yml - AdditionalParameters: - PackageName: ${{ parameters.PackageName }} - ServiceDirectory: ${{ parameters.ServiceDirectory }} - EnvVars: ${{ parameters.EnvVars }} - MaxParallel: ${{ parameters.MaxParallel }} - TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }} - TestResourceDirectories: ${{ parameters.TestResourceDirectories }} - PublishCodeCoverage: ${{ parameters.PublishCodeCoverage }} - PreSteps: - - ${{ parameters.PreSteps }} - PostSteps: - - ${{ parameters.PostSteps }} - MatrixConfigs: - # Enumerate platforms and additional platforms based on supported clouds (sparse platform<-->cloud matrix). - - ${{ each config in parameters.MatrixConfigs }}: - - ${{ config }} - - ${{ each config in parameters.AdditionalMatrixConfigs }}: - - ${{ config }} - MatrixFilters: - - ${{ each cloudFilter in cloud.value.MatrixFilters }}: - - ${{ cloudFilter }} - - ${{ parameters.MatrixFilters }} - MatrixReplace: - - ${{ each cloudReplace in cloud.value.MatrixReplace }}: - - ${{ cloudReplace }} - - ${{ parameters.MatrixReplace }} - CloudConfig: - SubscriptionConfiguration: ${{ cloud.value.SubscriptionConfiguration }} - SubscriptionConfigurations: ${{ cloud.value.SubscriptionConfigurations }} - Location: ${{ coalesce(parameters.Location, cloud.value.Location) }} - Cloud: ${{ cloud.key }} +extends: + ${{ if eq(variables['System.TeamProject'], 'internal') }}: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + ${{ else }}: + template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + settings: + skipBuildTagsForGitHubPullRequests: true + sdl: + sourceAnalysisPool: + name: azsdk-pool-mms-win-2022-general + image: azsdk-pool-mms-win-2022-1espt + os: windows + eslint: + enabled: false + justificationForDisabling: 'ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3499746' + psscriptanalyzer: + compiled: true + break: true + policy: M365 + credscan: + suppressionsFile: $(Build.SourcesDirectory)/eng/CredScanSuppression.json + toolVersion: 2.3.12.23 + stages: + - template: archetype-sdk-tests-isolated.yml@self + parameters: + PackageName: ${{ parameters.PackageName }} + ServiceDirectory: ${{ parameters.ServiceDirectory }} + TestResourceDirectories: ${{ parameters.TestResourceDirectories }} + EnvVars: ${{ parameters.EnvVars }} + MaxParallel: ${{ parameters.MaxParallel }} + TimeoutInMinutes: ${{ parameters.TimeoutInMinutes }} + PublishCodeCoverage: ${{ parameters.PublishCodeCoverage }} + Location: ${{ parameters.Location }} + Clouds: ${{ parameters.Clouds }} + SupportedClouds: ${{ parameters.SupportedClouds }} + UnsupportedClouds: ${{ parameters.UnsupportedClouds }} + PreSteps: + - ${{ parameters.PreSteps }} + PostSteps: + - ${{ parameters.PostSteps }} + CloudConfig: ${{ parameters.CloudConfig }} + MatrixConfigs: + - ${{ each config in parameters.MatrixConfigs }}: + - ${{ config }} + AdditionalMatrixConfigs: + - ${{ each config in parameters.AdditionalMatrixConfigs }}: + - ${{ config }} + MatrixFilters: + - ${{ each config in parameters.MatrixFilters }}: + - ${{ config }} + MatrixReplace: + - ${{ each config in parameters.MatrixReplace }}: + - ${{ config }} diff --git a/eng/pipelines/templates/stages/cosmos-sdk-client.yml b/eng/pipelines/templates/stages/cosmos-sdk-client.yml index 35410e878afb..d53c28ed80f2 100644 --- a/eng/pipelines/templates/stages/cosmos-sdk-client.yml +++ b/eng/pipelines/templates/stages/cosmos-sdk-client.yml @@ -1,60 +1,90 @@ +resources: + repositories: + - repository: 1ESPipelineTemplates + type: git + name: 1ESPipelineTemplates/1ESPipelineTemplates + ref: refs/tags/release + parameters: -- name: Artifacts - type: object - default: [] -- name: ServiceDirectory - type: string - default: not-specified -- name: RunUnitTests - type: boolean - default: false -- name: TargetDocRepoOwner - type: string - default: MicrosoftDocs -- name: TargetDocRepoName - type: string - default: azure-docs-sdk-node + - name: Artifacts + type: object + default: [] + - name: ServiceDirectory + type: string + default: not-specified + - name: RunUnitTests + type: boolean + default: false + - name: TargetDocRepoOwner + type: string + default: MicrosoftDocs + - name: TargetDocRepoName + type: string + default: azure-docs-sdk-node -variables: - - template: /eng/pipelines/templates/variables/globals.yml +extends: + ${{ if eq(variables['System.TeamProject'], 'internal') }}: + template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates + ${{ else }}: + template: v1/1ES.Unofficial.PipelineTemplate.yml@1ESPipelineTemplates + parameters: + settings: + skipBuildTagsForGitHubPullRequests: true + sdl: + sourceAnalysisPool: + name: azsdk-pool-mms-win-2022-general + image: azsdk-pool-mms-win-2022-1espt + os: windows + eslint: + enabled: false + justificationForDisabling: 'ESLint injected task has failures because it uses an old version of mkdirp. We should not fail for tools not controlled by the repo. See: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3499746' + psscriptanalyzer: + compiled: true + break: true + policy: M365 + credscan: + suppressionsFile: $(Build.SourcesDirectory)/eng/CredScanSuppression.json + toolVersion: 2.3.12.23 + stages: + - stage: Build + jobs: + - template: /eng/pipelines/templates/jobs/ci.yml@self + parameters: + Artifacts: ${{parameters.Artifacts}} + ServiceDirectory: ${{ parameters.ServiceDirectory }} + RunUnitTests: ${{ parameters.RunUnitTests }} + MatrixConfigs: + - Name: Javascript_ci_test_base + Path: eng/pipelines/templates/stages/platform-matrix.json + Selection: sparse + GenerateVMJobs: true + variables: + - template: /eng/pipelines/templates/variables/globals.yml@self + - template: /eng/pipelines/templates/variables/image.yml@self -stages: - - stage: Build - jobs: - - template: /eng/pipelines/templates/jobs/ci.yml + - template: /eng/pipelines/templates/stages/archetype-sdk-tests-isolated.yml@self parameters: - Artifacts: ${{parameters.Artifacts}} - ServiceDirectory: ${{ parameters.ServiceDirectory }} - RunUnitTests: ${{ parameters.RunUnitTests }} - MatrixConfigs: - - Name: Javascript_ci_test_base - Path: eng/pipelines/templates/stages/platform-matrix.json - Selection: sparse - GenerateVMJobs: true - - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml - parameters: - PackageName: "@azure/cosmos" - MatrixFilters: - - TestType=node - - DependencyVersion=^$ - - NodeTestVersion=18.x - - Pool=.*mms-win-2022.* - PreSteps: - - template: /eng/pipelines/templates/steps/cosmos-integration-public.yml - PostSteps: - - template: /eng/pipelines/templates/steps/cosmos-additional-steps.yml - EnvVars: - MOCHA_TIMEOUT: 100000 - NODE_TLS_REJECT_UNAUTHORIZED: 0 + PackageName: '@azure/cosmos' + MatrixFilters: + - TestType=node + - DependencyVersion=^$ + - NodeTestVersion=18.x + - Pool=.*mms-win-2022.* + PreSteps: + - template: /eng/pipelines/templates/steps/cosmos-integration-public.yml@self + PostSteps: + - template: /eng/pipelines/templates/steps/cosmos-additional-steps.yml@self + EnvVars: + MOCHA_TIMEOUT: 100000 + NODE_TLS_REJECT_UNAUTHORIZED: 0 - # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. - - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}: - - template: archetype-js-release.yml - parameters: - DependsOn: Build - ServiceDirectory: ${{parameters.ServiceDirectory}} - Artifacts: ${{parameters.Artifacts}} - ArtifactName: packages - TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} - TargetDocRepoName: ${{ parameters.TargetDocRepoName }} + # The Prerelease and Release stages are conditioned on whether we are building a pull request and the branch. + - ${{if and(ne(variables['Build.Reason'], 'PullRequest'), eq(variables['System.TeamProject'], 'internal'))}}: + - template: archetype-js-release.yml@self + parameters: + DependsOn: Build + ServiceDirectory: ${{parameters.ServiceDirectory}} + Artifacts: ${{parameters.Artifacts}} + ArtifactName: packages + TargetDocRepoOwner: ${{ parameters.TargetDocRepoOwner }} + TargetDocRepoName: ${{ parameters.TargetDocRepoName }} diff --git a/eng/pipelines/templates/stages/platform-matrix.json b/eng/pipelines/templates/stages/platform-matrix.json index 0ffeac1321c7..85b96d2390fd 100644 --- a/eng/pipelines/templates/stages/platform-matrix.json +++ b/eng/pipelines/templates/stages/platform-matrix.json @@ -5,16 +5,16 @@ "matrix": { "Agent": { "windows-2022": { - "OSVmImage": "MMS2022", - "Pool": "azsdk-pool-mms-win-2022-general" + "OSVmImage": "env:WINDOWSVMIMAGE", + "Pool": "env:WINDOWSPOOL" }, "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" }, "macos-11": { - "OSVmImage": "macos-11", - "Pool": "Azure Pipelines" + "OSVmImage": "env:MACVMIMAGE", + "Pool": "env:MACPOOL" } }, "NodeTestVersion": [ @@ -29,8 +29,8 @@ { "Agent": { "windows-2022": { - "OSVmImage": "MMS2022", - "Pool": "azsdk-pool-mms-win-2022-general" + "OSVmImage": "env:WINDOWSVMIMAGE", + "Pool": "env:WINDOWSPOOL" } }, "Scenario": { @@ -53,13 +53,16 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", "NodeTestVersion": "18.x", - "DependencyVersion": ["max", "min"], + "DependencyVersion": [ + "max", + "min" + ], "TestResultsFiles": "**/test-results.xml" } ] diff --git a/eng/pipelines/templates/steps/analyze.yml b/eng/pipelines/templates/steps/analyze.yml index dd3d425d5b3d..f210e844445c 100644 --- a/eng/pipelines/templates/steps/analyze.yml +++ b/eng/pipelines/templates/steps/analyze.yml @@ -20,12 +20,12 @@ steps: ServiceDirectory: "template" TestPipeline: ${{ parameters.TestPipeline }} - - task: PublishPipelineArtifact@1 - condition: succeededOrFailed() - displayName: "Publish Report Artifacts" - inputs: - artifactName: package-diffs - path: $(Build.ArtifactStagingDirectory) + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml + parameters: + ArtifactPath: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'package-diffs' + SbomEnabled: false + - template: /eng/common/pipelines/templates/steps/verify-readme.yml parameters: @@ -104,9 +104,10 @@ steps: flattenFolders: true displayName: "Copy lint reports" - - template: /eng/common/pipelines/templates/steps/publish-artifact.yml + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml parameters: ArtifactPath: '$(Build.ArtifactStagingDirectory)' ArtifactName: 'reports' + SbomEnabled: false - template: /eng/common/pipelines/templates/steps/eng-common-workflow-enforcer.yml diff --git a/eng/pipelines/templates/steps/build.yml b/eng/pipelines/templates/steps/build.yml index a7555dfcd491..d8f28da3ae65 100644 --- a/eng/pipelines/templates/steps/build.yml +++ b/eng/pipelines/templates/steps/build.yml @@ -106,22 +106,11 @@ steps: workingDirectory: $(Pipeline.Workspace) displayName: Create APIView code file - - template: /eng/common/pipelines/templates/steps/publish-artifact.yml + - template: /eng/common/pipelines/templates/steps/publish-1es-artifact.yml parameters: ArtifactPath: '$(Build.ArtifactStagingDirectory)' ArtifactName: 'packages' - - ${{if eq(variables['System.TeamProject'], 'internal') }}: - - task: AzureArtifacts.manifest-generator-task.manifest-generator-task.ManifestGeneratorTask@0 - displayName: 'Upload Package SBOM' - inputs: - BuildDropPath: $(Build.ArtifactStagingDirectory) - - - template: /eng/common/pipelines/templates/steps/publish-artifact.yml - parameters: - ArtifactPath: '$(Build.ArtifactStagingDirectory)/_manifest' - ArtifactName: 'manifest' - - template: /eng/pipelines/templates/steps/create-apireview.yml parameters: Artifacts: ${{ parameters.Artifacts }} diff --git a/eng/pipelines/templates/steps/test.yml b/eng/pipelines/templates/steps/test.yml index 9993cd5b9bf8..2aabf185499c 100644 --- a/eng/pipelines/templates/steps/test.yml +++ b/eng/pipelines/templates/steps/test.yml @@ -2,11 +2,12 @@ parameters: Artifacts: [] ServiceDirectory: not-specified TestProxy: true + OSName: '' steps: - template: /eng/common/pipelines/templates/steps/verify-agent-os.yml parameters: - AgentImage: $(OSVmImage) + AgentImage: ${{ parameters.OSName}} - script: | node common/scripts/install-run-rush.js install diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml index 13a1ea4753ad..5f2759dace7b 100644 --- a/eng/pipelines/templates/variables/globals.yml +++ b/eng/pipelines/templates/variables/globals.yml @@ -5,7 +5,6 @@ variables: skipComponentGovernanceDetection: true coalesceResultFilter: $[ coalesce(variables['packageGlobFilter'], '**') ] ServiceVersion: "" - Package.EnableSBOMSigning: true # Disable CodeQL injections except for where we specifically enable it Codeql.SkipTaskAutoInjection: true # Disable warning until issue 21765 and 21766 are closed diff --git a/eng/pipelines/templates/variables/image.yml b/eng/pipelines/templates/variables/image.yml new file mode 100644 index 000000000000..322e3875f38e --- /dev/null +++ b/eng/pipelines/templates/variables/image.yml @@ -0,0 +1,26 @@ +# Default pool image selection. Set as variable so we can override at pipeline level + +variables: + - name: LINUXPOOL + value: azsdk-pool-mms-ubuntu-2004-general + - name: WINDOWSPOOL + value: azsdk-pool-mms-win-2022-general + - name: MACPOOL + value: Azure Pipelines + + - name: LINUXVMIMAGE + value: azsdk-pool-mms-ubuntu-2004-1espt + - name: LINUXNEXTVMIMAGE + value: azsdk-pool-mms-ubuntu-2204-1espt + - name: WINDOWSVMIMAGE + value: azsdk-pool-mms-win-2022-1espt + - name: MACVMIMAGE + value: macos-11 + + # Values required for pool.os field in 1es pipeline templates + - name: LINUXOS + value: linux + - name: WINDOWSOS + value: windows + - name: MACOS + value: macOS diff --git a/sdk/communication/communication-phone-numbers/phone-numbers-livetest-matrix.json b/sdk/communication/communication-phone-numbers/phone-numbers-livetest-matrix.json index 18c045be47c6..c94e60adb29e 100644 --- a/sdk/communication/communication-phone-numbers/phone-numbers-livetest-matrix.json +++ b/sdk/communication/communication-phone-numbers/phone-numbers-livetest-matrix.json @@ -5,19 +5,19 @@ "matrix": { "Agent": { "windows-2022": { - "OSVmImage": "MMS2022", - "Pool": "azsdk-pool-mms-win-2022-general", + "OSVmImage": "env:WINDOWSVMIMAGE", + "Pool": "env:WINDOWSPOOL", "SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "true" }, "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general", + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", "AZURE_TEST_AGENT": "UBUNTU_2004_NODE14", "SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "false" }, "macos-11": { - "OSVmImage": "macos-11", - "Pool": "Azure Pipelines", + "OSVmImage": "env:MACVMIMAGE", + "Pool": "env:MACPOOL", "SKIP_UPDATE_CAPABILITIES_LIVE_TESTS": "true" } }, @@ -29,8 +29,8 @@ { "Agent": { "windows-2022": { - "OSVmImage": "MMS2022", - "Pool": "azsdk-pool-mms-win-2022-general" + "OSVmImage": "env:WINDOWSVMIMAGE", + "Pool": "env:WINDOWSPOOL" } }, "Scenario": { @@ -58,8 +58,8 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", diff --git a/sdk/keyvault/keyvault-admin/platform-matrix.json b/sdk/keyvault/keyvault-admin/platform-matrix.json index 444880dffe54..edd8ed1e999f 100644 --- a/sdk/keyvault/keyvault-admin/platform-matrix.json +++ b/sdk/keyvault/keyvault-admin/platform-matrix.json @@ -3,8 +3,8 @@ { "Agent": { "ubuntu-20.04_ManagedHSM": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general", + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", "ArmTemplateParameters": "@{ enableHsm = $true }" } }, diff --git a/sdk/keyvault/keyvault-certificates/platform-matrix.json b/sdk/keyvault/keyvault-certificates/platform-matrix.json index 6065fc16ea27..f9a69be168d6 100644 --- a/sdk/keyvault/keyvault-certificates/platform-matrix.json +++ b/sdk/keyvault/keyvault-certificates/platform-matrix.json @@ -3,8 +3,8 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", diff --git a/sdk/keyvault/keyvault-keys/platform-matrix.json b/sdk/keyvault/keyvault-keys/platform-matrix.json index c24868cafd88..25173042d16d 100644 --- a/sdk/keyvault/keyvault-keys/platform-matrix.json +++ b/sdk/keyvault/keyvault-keys/platform-matrix.json @@ -3,8 +3,8 @@ { "Agent": { "ubuntu-20.04_ManagedHSM": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general", + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", "ArmTemplateParameters": "@{ enableHsm = $true }" } }, @@ -14,8 +14,8 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", diff --git a/sdk/keyvault/keyvault-secrets/platform-matrix.json b/sdk/keyvault/keyvault-secrets/platform-matrix.json index 6065fc16ea27..f9a69be168d6 100644 --- a/sdk/keyvault/keyvault-secrets/platform-matrix.json +++ b/sdk/keyvault/keyvault-secrets/platform-matrix.json @@ -3,8 +3,8 @@ { "Agent": { "ubuntu-20.04": { - "OSVmImage": "MMSUbuntu20.04", - "Pool": "azsdk-pool-mms-ubuntu-2004-general" + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL" } }, "TestType": "node", diff --git a/sdk/template/template/tests.yml b/sdk/template/template/tests.yml index 030c35cad2d3..4866820c28c0 100644 --- a/sdk/template/template/tests.yml +++ b/sdk/template/template/tests.yml @@ -1,12 +1,13 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml - parameters: - PackageName: "@azure/template" - ServiceDirectory: template - EnvVars: - AZURE_CLIENT_ID: $(TEMPLATE_CLIENT_ID) - AZURE_CLIENT_SECRET: $(TEMPLATE_CLIENT_SECRET) - AZURE_TENANT_ID: $(TEMPLATE_TENANT_ID) - AZURE_SUBSCRIPTION_ID: $(TEMPLATE_SUBSCRIPTION_ID) + +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml + parameters: + PackageName: "@azure/template" + ServiceDirectory: template + EnvVars: + AZURE_CLIENT_ID: $(TEMPLATE_CLIENT_ID) + AZURE_CLIENT_SECRET: $(TEMPLATE_CLIENT_SECRET) + AZURE_TENANT_ID: $(TEMPLATE_TENANT_ID) + AZURE_SUBSCRIPTION_ID: $(TEMPLATE_SUBSCRIPTION_ID) From ac9424e72c9544038eede6bb752cd113889f7e87 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 11 Mar 2024 17:07:39 -0400 Subject: [PATCH 19/57] Sync eng/common directory with azure-sdk-tools for PR 7854 (#28871) Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7854 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Ben Broderick Phillips --- .../scripts/job-matrix/job-matrix-functions.ps1 | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 index 198d68f00f7f..f20dbe5281b0 100644 --- a/eng/common/scripts/job-matrix/job-matrix-functions.ps1 +++ b/eng/common/scripts/job-matrix/job-matrix-functions.ps1 @@ -96,7 +96,8 @@ function GenerateMatrix( [String]$displayNameFilter = ".*", [Array]$filters = @(), [Array]$replace = @(), - [Array]$nonSparseParameters = @() + [Array]$nonSparseParameters = @(), + [Switch]$skipEnvironmentVariables ) { $matrixParameters, $importedMatrix, $combinedDisplayNameLookup = ` ProcessImport $config.matrixParameters $selectFromMatrixType $nonSparseParameters $config.displayNamesLookup @@ -124,7 +125,9 @@ function GenerateMatrix( $matrix = FilterMatrix $matrix $filters $matrix = ProcessReplace $matrix $replace $combinedDisplayNameLookup - $matrix = ProcessEnvironmentVariableReferences $matrix $combinedDisplayNameLookup + if (!$skipEnvironmentVariables) { + $matrix = ProcessEnvironmentVariableReferences $matrix $combinedDisplayNameLookup + } $matrix = FilterMatrixDisplayName $matrix $displayNameFilter return $matrix } @@ -427,10 +430,14 @@ function ProcessImport([MatrixParameter[]]$matrix, [String]$selection, [Array]$n exit 1 } $importedMatrixConfig = GetMatrixConfigFromFile (Get-Content -Raw $importPath) + # Add skipEnvironmentVariables so we don't process environment variables on import + # because we want top level filters to work against the the env key, not the value. + # The environment variables will get resolved after the import. $importedMatrix = GenerateMatrix ` -config $importedMatrixConfig ` -selectFromMatrixType $selection ` - -nonSparseParameters $nonSparseParameters + -nonSparseParameters $nonSparseParameters ` + -skipEnvironmentVariables $combinedDisplayNameLookup = $importedMatrixConfig.displayNamesLookup foreach ($lookup in $displayNamesLookup.GetEnumerator()) { From ecdb45e61db7c965ee9aae8a7aa0d12f7b4f5012 Mon Sep 17 00:00:00 2001 From: "Scott Beddall (from Dev Box)" Date: Fri, 8 Mar 2024 16:27:13 -0800 Subject: [PATCH 20/57] replace all tests.yml usage w/ extends to archetype-sdk-tests.yml ***NO_CI*** --- sdk/appconfiguration/app-configuration/tests.yml | 4 ++-- sdk/attestation/attestation/tests.yml | 4 ++-- sdk/cognitivelanguage/ai-language-conversations/tests.yml | 4 ++-- sdk/cognitivelanguage/ai-language-text/tests.yml | 4 ++-- sdk/cognitivelanguage/ai-language-textauthoring/tests.yml | 4 ++-- sdk/communication/communication-alpha-ids/tests.yml | 4 ++-- sdk/communication/communication-call-automation/tests.yml | 4 ++-- sdk/communication/communication-chat/tests.yml | 4 ++-- sdk/communication/communication-common/tests.yml | 4 ++-- sdk/communication/communication-email/tests.yml | 4 ++-- sdk/communication/communication-identity/tests.yml | 4 ++-- sdk/communication/communication-messages-rest/tests.yml | 4 ++-- sdk/communication/communication-network-traversal/tests.yml | 4 ++-- sdk/communication/communication-phone-numbers/tests.yml | 4 ++-- .../communication-recipient-verification/tests.yml | 4 ++-- sdk/communication/communication-rooms/tests.yml | 4 ++-- sdk/communication/communication-short-codes/tests.yml | 4 ++-- sdk/communication/communication-sms/tests.yml | 4 ++-- sdk/communication/communication-tiering/tests.yml | 4 ++-- .../communication-toll-free-verification/tests.yml | 4 ++-- sdk/confidentialledger/tests.yml | 4 ++-- sdk/containerregistry/container-registry/tests.yml | 4 ++-- sdk/digitaltwins/digital-twins-core/tests.yml | 4 ++-- .../ai-document-intelligence-rest/tests.yml | 4 ++-- sdk/eventgrid/eventgrid/tests.yml | 4 ++-- sdk/eventhub/event-hubs/tests.yml | 4 ++-- sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml | 4 ++-- sdk/eventhub/eventhubs-checkpointstore-table/tests.yml | 4 ++-- sdk/formrecognizer/ai-form-recognizer/tests.yml | 4 ++-- sdk/identity/identity/tests.yml | 4 ++-- .../opentelemetry-instrumentation-azure-sdk/tests.yml | 4 ++-- sdk/keyvault/keyvault-admin/tests.yml | 4 ++-- sdk/keyvault/keyvault-certificates/tests.yml | 4 ++-- sdk/keyvault/keyvault-keys/tests.yml | 4 ++-- sdk/keyvault/keyvault-secrets/tests.yml | 4 ++-- sdk/maps/maps-geolocation-rest/tests.yml | 4 ++-- sdk/maps/maps-render-rest/tests.yml | 4 ++-- sdk/maps/maps-route-rest/tests.yml | 4 ++-- sdk/maps/maps-search-rest/tests.yml | 4 ++-- sdk/metricsadvisor/ai-metrics-advisor/tests.yml | 4 ++-- sdk/mixedreality/mixed-reality-authentication/tests.yml | 4 ++-- sdk/monitor/monitor-ingestion/tests.yml | 4 ++-- sdk/monitor/monitor-opentelemetry-exporter/tests.yml | 4 ++-- sdk/monitor/monitor-opentelemetry/tests.yml | 4 ++-- sdk/monitor/monitor-query/tests.yml | 4 ++-- sdk/personalizer/ai-personalizer-rest/tests.yml | 4 ++-- sdk/schemaregistry/schema-registry-avro/tests.yml | 4 ++-- sdk/schemaregistry/schema-registry-json/tests.yml | 4 ++-- sdk/schemaregistry/schema-registry/tests.yml | 4 ++-- sdk/search/search-documents/tests.yml | 4 ++-- sdk/servicebus/service-bus/tests.yml | 4 ++-- sdk/storage/storage-blob/tests.yml | 4 ++-- sdk/storage/storage-file-datalake/tests.yml | 4 ++-- sdk/storage/storage-file-share/tests.yml | 4 ++-- sdk/storage/storage-queue/tests.yml | 4 ++-- sdk/tables/data-tables/tests.yml | 4 ++-- sdk/textanalytics/ai-text-analytics/tests.yml | 4 ++-- sdk/translation/ai-translation-text-rest/tests.yml | 4 ++-- sdk/web-pubsub/web-pubsub/tests.yml | 4 ++-- 59 files changed, 118 insertions(+), 118 deletions(-) diff --git a/sdk/appconfiguration/app-configuration/tests.yml b/sdk/appconfiguration/app-configuration/tests.yml index c9b41fc3046f..a13fad4d7b64 100644 --- a/sdk/appconfiguration/app-configuration/tests.yml +++ b/sdk/appconfiguration/app-configuration/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/app-configuration" ServiceDirectory: appconfiguration diff --git a/sdk/attestation/attestation/tests.yml b/sdk/attestation/attestation/tests.yml index 84bf84f57416..e2ee7247b1f2 100644 --- a/sdk/attestation/attestation/tests.yml +++ b/sdk/attestation/attestation/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/attestation" ServiceDirectory: attestation diff --git a/sdk/cognitivelanguage/ai-language-conversations/tests.yml b/sdk/cognitivelanguage/ai-language-conversations/tests.yml index 315e2cc37f0f..44d8d82140fb 100644 --- a/sdk/cognitivelanguage/ai-language-conversations/tests.yml +++ b/sdk/cognitivelanguage/ai-language-conversations/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-language-conversations" EnvVars: diff --git a/sdk/cognitivelanguage/ai-language-text/tests.yml b/sdk/cognitivelanguage/ai-language-text/tests.yml index 5a29e0c5893b..fb80b48d48f7 100644 --- a/sdk/cognitivelanguage/ai-language-text/tests.yml +++ b/sdk/cognitivelanguage/ai-language-text/tests.yml @@ -6,8 +6,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-language-text" ServiceDirectory: cognitivelanguage diff --git a/sdk/cognitivelanguage/ai-language-textauthoring/tests.yml b/sdk/cognitivelanguage/ai-language-textauthoring/tests.yml index 92d54769a006..51e45060b2a6 100644 --- a/sdk/cognitivelanguage/ai-language-textauthoring/tests.yml +++ b/sdk/cognitivelanguage/ai-language-textauthoring/tests.yml @@ -6,8 +6,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-language-textauthoring" ServiceDirectory: cognitivelanguage diff --git a/sdk/communication/communication-alpha-ids/tests.yml b/sdk/communication/communication-alpha-ids/tests.yml index 26ca0dd979bc..34f8c7dd9cae 100644 --- a/sdk/communication/communication-alpha-ids/tests.yml +++ b/sdk/communication/communication-alpha-ids/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-alpha-ids" ServiceDirectory: communication diff --git a/sdk/communication/communication-call-automation/tests.yml b/sdk/communication/communication-call-automation/tests.yml index d38e8e2a6232..61c569791340 100644 --- a/sdk/communication/communication-call-automation/tests.yml +++ b/sdk/communication/communication-call-automation/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-call-automation" ServiceDirectory: communication diff --git a/sdk/communication/communication-chat/tests.yml b/sdk/communication/communication-chat/tests.yml index f3fb50ee0cde..59f77f77d9fd 100644 --- a/sdk/communication/communication-chat/tests.yml +++ b/sdk/communication/communication-chat/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-chat" ServiceDirectory: communication diff --git a/sdk/communication/communication-common/tests.yml b/sdk/communication/communication-common/tests.yml index 12adea725ce5..d7edd83c0d2f 100644 --- a/sdk/communication/communication-common/tests.yml +++ b/sdk/communication/communication-common/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-common" ServiceDirectory: communication diff --git a/sdk/communication/communication-email/tests.yml b/sdk/communication/communication-email/tests.yml index a8892ea4f281..f2a9c7332b84 100644 --- a/sdk/communication/communication-email/tests.yml +++ b/sdk/communication/communication-email/tests.yml @@ -6,8 +6,8 @@ parameters: type: boolean default: false -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-email" ServiceDirectory: communication diff --git a/sdk/communication/communication-identity/tests.yml b/sdk/communication/communication-identity/tests.yml index 41f8c011356c..8f3064f917f0 100644 --- a/sdk/communication/communication-identity/tests.yml +++ b/sdk/communication/communication-identity/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-identity" ServiceDirectory: communication diff --git a/sdk/communication/communication-messages-rest/tests.yml b/sdk/communication/communication-messages-rest/tests.yml index fa20a01d2811..817bc0f930de 100644 --- a/sdk/communication/communication-messages-rest/tests.yml +++ b/sdk/communication/communication-messages-rest/tests.yml @@ -6,8 +6,8 @@ parameters: type: boolean default: false -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/communication-messages" ServiceDirectory: communication diff --git a/sdk/communication/communication-network-traversal/tests.yml b/sdk/communication/communication-network-traversal/tests.yml index bb402d8c5c37..31c40c62444c 100644 --- a/sdk/communication/communication-network-traversal/tests.yml +++ b/sdk/communication/communication-network-traversal/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-network-traversal" ServiceDirectory: communication diff --git a/sdk/communication/communication-phone-numbers/tests.yml b/sdk/communication/communication-phone-numbers/tests.yml index 5e4c1518d83a..2722c1e8a928 100644 --- a/sdk/communication/communication-phone-numbers/tests.yml +++ b/sdk/communication/communication-phone-numbers/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-phone-numbers" ServiceDirectory: communication diff --git a/sdk/communication/communication-recipient-verification/tests.yml b/sdk/communication/communication-recipient-verification/tests.yml index 5a220b503e41..c50f84b602b1 100644 --- a/sdk/communication/communication-recipient-verification/tests.yml +++ b/sdk/communication/communication-recipient-verification/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-recipient-verification" ServiceDirectory: communication diff --git a/sdk/communication/communication-rooms/tests.yml b/sdk/communication/communication-rooms/tests.yml index b21e88b5a278..aacbe11e28c1 100644 --- a/sdk/communication/communication-rooms/tests.yml +++ b/sdk/communication/communication-rooms/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-rooms" ServiceDirectory: communication diff --git a/sdk/communication/communication-short-codes/tests.yml b/sdk/communication/communication-short-codes/tests.yml index 3aef1aedfbf0..4c5dc346860c 100644 --- a/sdk/communication/communication-short-codes/tests.yml +++ b/sdk/communication/communication-short-codes/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-short-codes" ServiceDirectory: communication diff --git a/sdk/communication/communication-sms/tests.yml b/sdk/communication/communication-sms/tests.yml index d01d1aeb9158..f29af967e1c6 100644 --- a/sdk/communication/communication-sms/tests.yml +++ b/sdk/communication/communication-sms/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/communication-sms" ServiceDirectory: communication diff --git a/sdk/communication/communication-tiering/tests.yml b/sdk/communication/communication-tiering/tests.yml index 9a0f31550477..2a95c9266ac3 100644 --- a/sdk/communication/communication-tiering/tests.yml +++ b/sdk/communication/communication-tiering/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-tiering" ServiceDirectory: communication diff --git a/sdk/communication/communication-toll-free-verification/tests.yml b/sdk/communication/communication-toll-free-verification/tests.yml index 9b3deb71ad76..28d647604926 100644 --- a/sdk/communication/communication-toll-free-verification/tests.yml +++ b/sdk/communication/communication-toll-free-verification/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-tools/communication-toll-free-verification" ServiceDirectory: communication diff --git a/sdk/confidentialledger/tests.yml b/sdk/confidentialledger/tests.yml index 77f505a39564..96c61391493b 100644 --- a/sdk/confidentialledger/tests.yml +++ b/sdk/confidentialledger/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/confidential-ledger" ServiceDirectory: confidentialledger diff --git a/sdk/containerregistry/container-registry/tests.yml b/sdk/containerregistry/container-registry/tests.yml index f5a9c8dac61d..7d11931889d0 100644 --- a/sdk/containerregistry/container-registry/tests.yml +++ b/sdk/containerregistry/container-registry/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/container-registry" ServiceDirectory: containerregistry diff --git a/sdk/digitaltwins/digital-twins-core/tests.yml b/sdk/digitaltwins/digital-twins-core/tests.yml index 0cfbed6ee781..ef643c5f75b8 100644 --- a/sdk/digitaltwins/digital-twins-core/tests.yml +++ b/sdk/digitaltwins/digital-twins-core/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/digital-twins-core" ServiceDirectory: digitaltwins diff --git a/sdk/documentintelligence/ai-document-intelligence-rest/tests.yml b/sdk/documentintelligence/ai-document-intelligence-rest/tests.yml index 805cdac774ee..edc529d018e1 100644 --- a/sdk/documentintelligence/ai-document-intelligence-rest/tests.yml +++ b/sdk/documentintelligence/ai-document-intelligence-rest/tests.yml @@ -10,8 +10,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/ai-document-intelligence" ServiceDirectory: documentintelligence diff --git a/sdk/eventgrid/eventgrid/tests.yml b/sdk/eventgrid/eventgrid/tests.yml index 5c802ace4c1c..92a319dbb68a 100644 --- a/sdk/eventgrid/eventgrid/tests.yml +++ b/sdk/eventgrid/eventgrid/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/eventgrid" ServiceDirectory: eventgrid diff --git a/sdk/eventhub/event-hubs/tests.yml b/sdk/eventhub/event-hubs/tests.yml index 0c6e35938d19..80a237ff4728 100644 --- a/sdk/eventhub/event-hubs/tests.yml +++ b/sdk/eventhub/event-hubs/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/event-hubs" ServiceDirectory: eventhub diff --git a/sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml b/sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml index 3bf7161497d4..7da912e12354 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml +++ b/sdk/eventhub/eventhubs-checkpointstore-blob/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/eventhubs-checkpointstore-blob" ServiceDirectory: eventhub diff --git a/sdk/eventhub/eventhubs-checkpointstore-table/tests.yml b/sdk/eventhub/eventhubs-checkpointstore-table/tests.yml index a12b37fddfc0..07f8c698970d 100644 --- a/sdk/eventhub/eventhubs-checkpointstore-table/tests.yml +++ b/sdk/eventhub/eventhubs-checkpointstore-table/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/eventhubs-checkpointstore-table" ServiceDirectory: eventhub diff --git a/sdk/formrecognizer/ai-form-recognizer/tests.yml b/sdk/formrecognizer/ai-form-recognizer/tests.yml index d8238dc886b1..6b7d993e8824 100644 --- a/sdk/formrecognizer/ai-form-recognizer/tests.yml +++ b/sdk/formrecognizer/ai-form-recognizer/tests.yml @@ -10,8 +10,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-form-recognizer" ServiceDirectory: formrecognizer diff --git a/sdk/identity/identity/tests.yml b/sdk/identity/identity/tests.yml index 6f729796cd1e..e9f7a3176445 100644 --- a/sdk/identity/identity/tests.yml +++ b/sdk/identity/identity/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/identity" ServiceDirectory: identity diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/tests.yml b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/tests.yml index bdde61d49358..756cb38e7e3a 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/tests.yml +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/opentelemetry-instrumentation-azure-sdk" ServiceDirectory: instrumentation diff --git a/sdk/keyvault/keyvault-admin/tests.yml b/sdk/keyvault/keyvault-admin/tests.yml index 40d752f767a8..7a01a487dcc5 100644 --- a/sdk/keyvault/keyvault-admin/tests.yml +++ b/sdk/keyvault/keyvault-admin/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/keyvault-admin" ServiceDirectory: keyvault diff --git a/sdk/keyvault/keyvault-certificates/tests.yml b/sdk/keyvault/keyvault-certificates/tests.yml index 537b8c5f6b4e..e23e65669440 100644 --- a/sdk/keyvault/keyvault-certificates/tests.yml +++ b/sdk/keyvault/keyvault-certificates/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/keyvault-certificates" ServiceDirectory: keyvault diff --git a/sdk/keyvault/keyvault-keys/tests.yml b/sdk/keyvault/keyvault-keys/tests.yml index 14b9dd458ea7..5e0cb21dfe89 100644 --- a/sdk/keyvault/keyvault-keys/tests.yml +++ b/sdk/keyvault/keyvault-keys/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/keyvault-keys" ServiceDirectory: keyvault diff --git a/sdk/keyvault/keyvault-secrets/tests.yml b/sdk/keyvault/keyvault-secrets/tests.yml index f8574b1aad07..a473f435ad0e 100644 --- a/sdk/keyvault/keyvault-secrets/tests.yml +++ b/sdk/keyvault/keyvault-secrets/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/keyvault-secrets" ServiceDirectory: keyvault diff --git a/sdk/maps/maps-geolocation-rest/tests.yml b/sdk/maps/maps-geolocation-rest/tests.yml index 524ddf0fe3ba..44e686cda694 100644 --- a/sdk/maps/maps-geolocation-rest/tests.yml +++ b/sdk/maps/maps-geolocation-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/maps-geolocation" ServiceDirectory: maps diff --git a/sdk/maps/maps-render-rest/tests.yml b/sdk/maps/maps-render-rest/tests.yml index 79a754c65281..0bf2b59e43ca 100644 --- a/sdk/maps/maps-render-rest/tests.yml +++ b/sdk/maps/maps-render-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/maps-render" ServiceDirectory: maps diff --git a/sdk/maps/maps-route-rest/tests.yml b/sdk/maps/maps-route-rest/tests.yml index 84beb6a22fb4..7677f75f89b6 100644 --- a/sdk/maps/maps-route-rest/tests.yml +++ b/sdk/maps/maps-route-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/maps-route" ServiceDirectory: maps diff --git a/sdk/maps/maps-search-rest/tests.yml b/sdk/maps/maps-search-rest/tests.yml index 499fba2a84bc..35a3139beeec 100644 --- a/sdk/maps/maps-search-rest/tests.yml +++ b/sdk/maps/maps-search-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/maps-search" ServiceDirectory: maps diff --git a/sdk/metricsadvisor/ai-metrics-advisor/tests.yml b/sdk/metricsadvisor/ai-metrics-advisor/tests.yml index c879b531ca28..b0dabb49f2c3 100644 --- a/sdk/metricsadvisor/ai-metrics-advisor/tests.yml +++ b/sdk/metricsadvisor/ai-metrics-advisor/tests.yml @@ -6,8 +6,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-metrics-advisor" Location: "${{ parameters.Location }}" diff --git a/sdk/mixedreality/mixed-reality-authentication/tests.yml b/sdk/mixedreality/mixed-reality-authentication/tests.yml index d11bcfa759dd..8d1d44d5daba 100644 --- a/sdk/mixedreality/mixed-reality-authentication/tests.yml +++ b/sdk/mixedreality/mixed-reality-authentication/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/mixed-reality-authentication" ServiceDirectory: mixedreality diff --git a/sdk/monitor/monitor-ingestion/tests.yml b/sdk/monitor/monitor-ingestion/tests.yml index a2b6c82b0640..be24a349daa7 100644 --- a/sdk/monitor/monitor-ingestion/tests.yml +++ b/sdk/monitor/monitor-ingestion/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/monitor-ingestion" ServiceDirectory: monitor diff --git a/sdk/monitor/monitor-opentelemetry-exporter/tests.yml b/sdk/monitor/monitor-opentelemetry-exporter/tests.yml index c0c421af4930..5cf47c25d18d 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/tests.yml +++ b/sdk/monitor/monitor-opentelemetry-exporter/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/monitor-opentelemetry-exporter" ServiceDirectory: monitor diff --git a/sdk/monitor/monitor-opentelemetry/tests.yml b/sdk/monitor/monitor-opentelemetry/tests.yml index 5aa87220246c..a64fb948c24e 100644 --- a/sdk/monitor/monitor-opentelemetry/tests.yml +++ b/sdk/monitor/monitor-opentelemetry/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/monitor-opentelemetry" ServiceDirectory: monitor diff --git a/sdk/monitor/monitor-query/tests.yml b/sdk/monitor/monitor-query/tests.yml index d841a637dbeb..57d39753327a 100644 --- a/sdk/monitor/monitor-query/tests.yml +++ b/sdk/monitor/monitor-query/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/monitor-query" ServiceDirectory: monitor diff --git a/sdk/personalizer/ai-personalizer-rest/tests.yml b/sdk/personalizer/ai-personalizer-rest/tests.yml index dd6c2138ffd0..deef3bff7215 100644 --- a/sdk/personalizer/ai-personalizer-rest/tests.yml +++ b/sdk/personalizer/ai-personalizer-rest/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/ai-personalizer" ServiceDirectory: personalizer diff --git a/sdk/schemaregistry/schema-registry-avro/tests.yml b/sdk/schemaregistry/schema-registry-avro/tests.yml index cea4d80d975c..fc4a5a73a65e 100644 --- a/sdk/schemaregistry/schema-registry-avro/tests.yml +++ b/sdk/schemaregistry/schema-registry-avro/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/schema-registry-avro" ServiceDirectory: schemaregistry diff --git a/sdk/schemaregistry/schema-registry-json/tests.yml b/sdk/schemaregistry/schema-registry-json/tests.yml index f02e495f9bb9..d6a6beb63b6a 100644 --- a/sdk/schemaregistry/schema-registry-json/tests.yml +++ b/sdk/schemaregistry/schema-registry-json/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/schema-registry-json" ServiceDirectory: schemaregistry diff --git a/sdk/schemaregistry/schema-registry/tests.yml b/sdk/schemaregistry/schema-registry/tests.yml index 7a059eb3a2eb..1b1fdad4f778 100644 --- a/sdk/schemaregistry/schema-registry/tests.yml +++ b/sdk/schemaregistry/schema-registry/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/schema-registry" ServiceDirectory: schemaregistry diff --git a/sdk/search/search-documents/tests.yml b/sdk/search/search-documents/tests.yml index 07457a9365c4..750a4fb8a5fb 100644 --- a/sdk/search/search-documents/tests.yml +++ b/sdk/search/search-documents/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/search-documents" ServiceDirectory: search diff --git a/sdk/servicebus/service-bus/tests.yml b/sdk/servicebus/service-bus/tests.yml index ca5884b8a610..c806ccc4b630 100644 --- a/sdk/servicebus/service-bus/tests.yml +++ b/sdk/servicebus/service-bus/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/service-bus" ServiceDirectory: servicebus diff --git a/sdk/storage/storage-blob/tests.yml b/sdk/storage/storage-blob/tests.yml index 296394432f09..6b787eb75c3d 100644 --- a/sdk/storage/storage-blob/tests.yml +++ b/sdk/storage/storage-blob/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/storage-blob" ServiceDirectory: storage diff --git a/sdk/storage/storage-file-datalake/tests.yml b/sdk/storage/storage-file-datalake/tests.yml index 8c3caf64e197..c364eaac6d4b 100644 --- a/sdk/storage/storage-file-datalake/tests.yml +++ b/sdk/storage/storage-file-datalake/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/storage-file-datalake" ServiceDirectory: storage diff --git a/sdk/storage/storage-file-share/tests.yml b/sdk/storage/storage-file-share/tests.yml index b779b995d798..e47b9e031cd6 100644 --- a/sdk/storage/storage-file-share/tests.yml +++ b/sdk/storage/storage-file-share/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/storage-file-share" ServiceDirectory: storage diff --git a/sdk/storage/storage-queue/tests.yml b/sdk/storage/storage-queue/tests.yml index f73e3f940e10..051dfd4500b2 100644 --- a/sdk/storage/storage-queue/tests.yml +++ b/sdk/storage/storage-queue/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/storage-queue" ServiceDirectory: storage diff --git a/sdk/tables/data-tables/tests.yml b/sdk/tables/data-tables/tests.yml index 4540355e6ed1..4ae1957c6bc1 100644 --- a/sdk/tables/data-tables/tests.yml +++ b/sdk/tables/data-tables/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/data-tables" ServiceDirectory: tables diff --git a/sdk/textanalytics/ai-text-analytics/tests.yml b/sdk/textanalytics/ai-text-analytics/tests.yml index e2624130e546..d5a321e9cd92 100644 --- a/sdk/textanalytics/ai-text-analytics/tests.yml +++ b/sdk/textanalytics/ai-text-analytics/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/ai-text-analytics" ServiceDirectory: textanalytics diff --git a/sdk/translation/ai-translation-text-rest/tests.yml b/sdk/translation/ai-translation-text-rest/tests.yml index 9829c998c29f..644998cef57d 100644 --- a/sdk/translation/ai-translation-text-rest/tests.yml +++ b/sdk/translation/ai-translation-text-rest/tests.yml @@ -6,8 +6,8 @@ parameters: trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure-rest/ai-translation-text" ServiceDirectory: translation diff --git a/sdk/web-pubsub/web-pubsub/tests.yml b/sdk/web-pubsub/web-pubsub/tests.yml index de5ece863981..24ce5c56fc52 100644 --- a/sdk/web-pubsub/web-pubsub/tests.yml +++ b/sdk/web-pubsub/web-pubsub/tests.yml @@ -1,7 +1,7 @@ trigger: none -stages: - - template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml +extends: + template: /eng/pipelines/templates/stages/archetype-sdk-tests.yml parameters: PackageName: "@azure/web-pubsub" ServiceDirectory: web-pubsub From 303a178bbcea438f4a922e1d72d3e7e3487d4604 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Mon, 11 Mar 2024 18:10:14 -0400 Subject: [PATCH 21/57] [EngSys] automatic rush update --full (#28874) This is an automatic PR generated weekly with changes from running the command rush update --full --- common/config/rush/pnpm-lock.yaml | 3205 ++++++++++++++--------------- 1 file changed, 1576 insertions(+), 1629 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 25bb3fcac03c..cfe5a19f3191 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1165,12 +1165,12 @@ packages: engines: {node: '>=0.10.0'} dev: false - /@ampproject/remapping@2.2.1: - resolution: {integrity: sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==} + /@ampproject/remapping@2.3.0: + resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} dependencies: - '@jridgewell/gen-mapping': 0.3.4 - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 dev: false /@azure/abort-controller@1.1.0: @@ -1366,7 +1366,7 @@ packages: resolution: {integrity: sha512-KxDlhXyMlh2Jhj2ykX6vNEU0Vou4nHr025KoSEiz7cS3BNiHNaZcdECk/DmLkEB0as5T7b/TpRcehJ5yV6NeXQ==} engines: {node: '>=12.0.0'} dependencies: - '@opentelemetry/api': 1.7.0 + '@opentelemetry/api': 1.8.0 tslib: 2.6.2 dev: false @@ -1488,11 +1488,6 @@ packages: engines: {node: '>=0.8.0'} dev: false - /@azure/msal-common@14.5.0: - resolution: {integrity: sha512-Gx5rZbiZV/HiZ2nEKfjfAF/qDdZ4/QWxMvMo2jhIFVz528dVKtaZyFAOtsX2Ak8+TQvRsGCaEfuwJFuXB6tu1A==} - engines: {node: '>=0.8.0'} - dev: false - /@azure/msal-common@14.7.1: resolution: {integrity: sha512-v96btzjM7KrAu4NSEdOkhQSTGOuNUIIsUdB8wlyB9cdgl5KqEKnTonHUZ8+khvZ6Ap542FCErbnTyDWl8lZ2rA==} engines: {node: '>=0.8.0'} @@ -1507,15 +1502,6 @@ packages: keytar: 7.9.0 dev: false - /@azure/msal-node-extensions@1.0.8: - resolution: {integrity: sha512-h7YxOroWRY/Y5B5NEvLhiwhG2tmOiqiDC91EC4CmtNpkMgH/pbr6Ln0iOJXVhDhz9dzBRCKLUL1Afj5MzHHg1g==} - engines: {node: 16 || 18 || 20} - dependencies: - '@azure/msal-common': 14.5.0 - '@azure/msal-node-runtime': 0.13.6-alpha.0 - keytar: 7.9.0 - dev: false - /@azure/msal-node-runtime@0.13.6-alpha.0: resolution: {integrity: sha512-Tu5e4wBFiaiBLrOu7bsJF7FYknFH9XIOvUyCqCnmLJFMMOUnYULZ7fOFYuintFFcNPMOT2u8BVfSCPxETri5ng==} requiresBuild: true @@ -1629,20 +1615,20 @@ packages: engines: {node: '>=6.9.0'} dev: false - /@babel/core@7.23.9: - resolution: {integrity: sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw==} + /@babel/core@7.24.0: + resolution: {integrity: sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw==} engines: {node: '>=6.9.0'} dependencies: - '@ampproject/remapping': 2.2.1 + '@ampproject/remapping': 2.3.0 '@babel/code-frame': 7.23.5 '@babel/generator': 7.23.6 '@babel/helper-compilation-targets': 7.23.6 - '@babel/helper-module-transforms': 7.23.3(@babel/core@7.23.9) - '@babel/helpers': 7.23.9 - '@babel/parser': 7.23.9 - '@babel/template': 7.23.9 - '@babel/traverse': 7.23.9 - '@babel/types': 7.23.9 + '@babel/helper-module-transforms': 7.23.3(@babel/core@7.24.0) + '@babel/helpers': 7.24.0 + '@babel/parser': 7.24.0 + '@babel/template': 7.24.0 + '@babel/traverse': 7.24.0 + '@babel/types': 7.24.0 convert-source-map: 2.0.0 debug: 4.3.4(supports-color@8.1.1) gensync: 1.0.0-beta.2 @@ -1656,9 +1642,9 @@ packages: resolution: {integrity: sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 - '@jridgewell/gen-mapping': 0.3.4 - '@jridgewell/trace-mapping': 0.3.23 + '@babel/types': 7.24.0 + '@jridgewell/gen-mapping': 0.3.5 + '@jridgewell/trace-mapping': 0.3.25 jsesc: 2.5.2 dev: false @@ -1682,31 +1668,31 @@ packages: resolution: {integrity: sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.23.9 - '@babel/types': 7.23.9 + '@babel/template': 7.24.0 + '@babel/types': 7.24.0 dev: false /@babel/helper-hoist-variables@7.22.5: resolution: {integrity: sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.0 dev: false /@babel/helper-module-imports@7.22.15: resolution: {integrity: sha512-0pYVBnDKZO2fnSPCrgM/6WMc7eS20Fbok+0r88fp+YtWVLZrp4CkafFGIp+W0VKw4a22sgebPT99y+FDNMdP4w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.0 dev: false - /@babel/helper-module-transforms@7.23.3(@babel/core@7.23.9): + /@babel/helper-module-transforms@7.23.3(@babel/core@7.24.0): resolution: {integrity: sha512-7bBs4ED9OmswdfDzpz4MpWgSrV7FXlc3zIagvLFjS5H+Mk7Snr21vQ6QwrsoCGMfNC4e4LQPdoULEt4ykz0SRQ==} engines: {node: '>=6.9.0'} peerDependencies: '@babel/core': ^7.0.0 dependencies: - '@babel/core': 7.23.9 + '@babel/core': 7.24.0 '@babel/helper-environment-visitor': 7.22.20 '@babel/helper-module-imports': 7.22.15 '@babel/helper-simple-access': 7.22.5 @@ -1718,14 +1704,14 @@ packages: resolution: {integrity: sha512-n0H99E/K+Bika3++WNL17POvo4rKWZ7lZEp1Q+fStVbUi8nxPQEBOlTmCOxW/0JsS56SKKQ+ojAe2pHKJHN35w==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.0 dev: false /@babel/helper-split-export-declaration@7.22.6: resolution: {integrity: sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g==} engines: {node: '>=6.9.0'} dependencies: - '@babel/types': 7.23.9 + '@babel/types': 7.24.0 dev: false /@babel/helper-string-parser@7.23.4: @@ -1743,13 +1729,13 @@ packages: engines: {node: '>=6.9.0'} dev: false - /@babel/helpers@7.23.9: - resolution: {integrity: sha512-87ICKgU5t5SzOT7sBMfCOZQ2rHjRU+Pcb9BoILMYz600W6DkVRLFBPwQ18gwUVvggqXivaUakpnxWQGbpywbBQ==} + /@babel/helpers@7.24.0: + resolution: {integrity: sha512-ulDZdc0Aj5uLc5nETsa7EPx2L7rM0YJM8r7ck7U73AXi7qOV44IHHRAYZHY6iU1rr3C5N4NtTmMRUJP6kwCWeA==} engines: {node: '>=6.9.0'} dependencies: - '@babel/template': 7.23.9 - '@babel/traverse': 7.23.9 - '@babel/types': 7.23.9 + '@babel/template': 7.24.0 + '@babel/traverse': 7.24.0 + '@babel/types': 7.24.0 transitivePeerDependencies: - supports-color dev: false @@ -1763,30 +1749,30 @@ packages: js-tokens: 4.0.0 dev: false - /@babel/parser@7.23.9: - resolution: {integrity: sha512-9tcKgqKbs3xGJ+NtKF2ndOBBLVwPjl1SHxPQkd36r3Dlirw3xWUeGaTbqr7uGZcTaxkVNwc+03SVP7aCdWrTlA==} + /@babel/parser@7.24.0: + resolution: {integrity: sha512-QuP/FxEAzMSjXygs8v4N9dvdXzEHN4W1oF3PxuWAtPo08UdM17u89RDMgjLn/mlc56iM0HlLmVkO/wgR+rDgHg==} engines: {node: '>=6.0.0'} hasBin: true dev: false - /@babel/runtime@7.23.9: - resolution: {integrity: sha512-0CX6F+BI2s9dkUqr08KFrAIZgNFj75rdBU/DjCyYLIaV/quFjkk6T+EJ2LkZHyZTbEV4L5p97mNkUsHl2wLFAw==} + /@babel/runtime@7.24.0: + resolution: {integrity: sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw==} engines: {node: '>=6.9.0'} dependencies: regenerator-runtime: 0.14.1 dev: false - /@babel/template@7.23.9: - resolution: {integrity: sha512-+xrD2BWLpvHKNmX2QbpdpsBaWnRxahMwJjO+KZk2JOElj5nSmKezyS1B4u+QbHMTX69t4ukm6hh9lsYQ7GHCKA==} + /@babel/template@7.24.0: + resolution: {integrity: sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA==} engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.23.5 - '@babel/parser': 7.23.9 - '@babel/types': 7.23.9 + '@babel/parser': 7.24.0 + '@babel/types': 7.24.0 dev: false - /@babel/traverse@7.23.9: - resolution: {integrity: sha512-I/4UJ9vs90OkBtY6iiiTORVMyIhJ4kAVmsKo9KFc8UOxMeUfi2hvtIBsET5u9GizXE6/GFSuKCTNfgCswuEjRg==} + /@babel/traverse@7.24.0: + resolution: {integrity: sha512-HfuJlI8qq3dEDmNU5ChzzpZRWq+oxCZQyMzIMEqLho+AQnhMnKQUzH6ydo3RBl/YjPCuk68Y6s0Gx0AeyULiWw==} engines: {node: '>=6.9.0'} dependencies: '@babel/code-frame': 7.23.5 @@ -1795,16 +1781,16 @@ packages: '@babel/helper-function-name': 7.23.0 '@babel/helper-hoist-variables': 7.22.5 '@babel/helper-split-export-declaration': 7.22.6 - '@babel/parser': 7.23.9 - '@babel/types': 7.23.9 + '@babel/parser': 7.24.0 + '@babel/types': 7.24.0 debug: 4.3.4(supports-color@8.1.1) globals: 11.12.0 transitivePeerDependencies: - supports-color dev: false - /@babel/types@7.23.9: - resolution: {integrity: sha512-dQjSq/7HaSjRM43FFGnv5keM2HsxpmyV1PfaSVm0nzzjwwTmjOe6J4bC8e3+pTEIgHaHj+1ZlLThRJ2auc/w1Q==} + /@babel/types@7.24.0: + resolution: {integrity: sha512-+j7a5c253RfKh8iABBhywc8NSfP5LURe7Uh4qpsh6jc+aLJguvmIUBdjSdEMQv2bENrCR5MfRdjGo7vzS/ob7w==} engines: {node: '>=6.9.0'} dependencies: '@babel/helper-string-parser': 7.23.4 @@ -2072,17 +2058,12 @@ packages: engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} dev: false - /@fastify/busboy@2.1.0: - resolution: {integrity: sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==} - engines: {node: '>=14'} - dev: false - - /@grpc/grpc-js@1.10.1: - resolution: {integrity: sha512-55ONqFytZExfOIjF1RjXPcVmT/jJqFzbbDqxK9jmRV4nxiYWtL9hENSW1Jfx0SdZfrvoqd44YJ/GJTqfRrawSQ==} - engines: {node: ^8.13.0 || >=10.10.0} + /@grpc/grpc-js@1.10.2: + resolution: {integrity: sha512-lSbgu8iayAod8O0YcoXK3+bMFGThY2svtN35Zlm9VepsB3jfyIcoupKknEht7Kh9Q8ITjsp0J4KpYo9l4+FhNg==} + engines: {node: '>=12.10.0'} dependencies: '@grpc/proto-loader': 0.7.10 - '@types/node': 20.10.8 + '@js-sdsl/ordered-map': 4.4.2 dev: false /@grpc/proto-loader@0.7.10: @@ -2151,13 +2132,13 @@ packages: '@sinclair/typebox': 0.27.8 dev: false - /@jridgewell/gen-mapping@0.3.4: - resolution: {integrity: sha512-Oud2QPM5dHviZNn4y/WhhYKSXksv+1xLEIsNrAbGcFzUN3ubqWRFT5gwPchNc5NuzILOU4tPBDTZ4VwhL8Y7cw==} + /@jridgewell/gen-mapping@0.3.5: + resolution: {integrity: sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg==} engines: {node: '>=6.0.0'} dependencies: - '@jridgewell/set-array': 1.1.2 + '@jridgewell/set-array': 1.2.1 '@jridgewell/sourcemap-codec': 1.4.15 - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/trace-mapping': 0.3.25 dev: false /@jridgewell/resolve-uri@3.1.2: @@ -2165,8 +2146,8 @@ packages: engines: {node: '>=6.0.0'} dev: false - /@jridgewell/set-array@1.1.2: - resolution: {integrity: sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==} + /@jridgewell/set-array@1.2.1: + resolution: {integrity: sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A==} engines: {node: '>=6.0.0'} dev: false @@ -2174,8 +2155,8 @@ packages: resolution: {integrity: sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==} dev: false - /@jridgewell/trace-mapping@0.3.23: - resolution: {integrity: sha512-9/4foRoUKp8s96tSkh8DlAAc5A0Ty8vLXld+l9gjKKY6ckwI8G15f0hskGmuLZu78ZlGa1vtsfOa+lnB4vG6Jg==} + /@jridgewell/trace-mapping@0.3.25: + resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} dependencies: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.4.15 @@ -2188,6 +2169,10 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: false + /@js-sdsl/ordered-map@4.4.2: + resolution: {integrity: sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==} + dev: false + /@jsdoc/salty@0.2.7: resolution: {integrity: sha512-mh8LbS9d4Jq84KLw8pzho7XC2q2/IJGiJss3xwRoLD1A+EE16SjN4PfaG4jRCzKegTFLlN0Zd8SdUPE6XdoPFg==} engines: {node: '>=v12.0.0'} @@ -2195,22 +2180,22 @@ packages: lodash: 4.17.21 dev: false - /@microsoft/api-extractor-model@7.28.13(@types/node@16.18.83): + /@microsoft/api-extractor-model@7.28.13(@types/node@16.18.87): resolution: {integrity: sha512-39v/JyldX4MS9uzHcdfmjjfS6cYGAoXV+io8B5a338pkHiSt+gy2eXQ0Q7cGFJ7quSa1VqqlMdlPrB6sLR/cAw==} dependencies: '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@16.18.83) + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.87) transitivePeerDependencies: - '@types/node' dev: false - /@microsoft/api-extractor-model@7.28.13(@types/node@18.19.18): + /@microsoft/api-extractor-model@7.28.13(@types/node@18.19.22): resolution: {integrity: sha512-39v/JyldX4MS9uzHcdfmjjfS6cYGAoXV+io8B5a338pkHiSt+gy2eXQ0Q7cGFJ7quSa1VqqlMdlPrB6sLR/cAw==} dependencies: '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@18.19.18) + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.22) transitivePeerDependencies: - '@types/node' dev: false @@ -2245,18 +2230,19 @@ packages: - '@types/node' dev: false - /@microsoft/api-extractor@7.41.0(@types/node@16.18.83): - resolution: {integrity: sha512-Wk4fcSqO1i32FspStEm4ak+cfdo2xGsWk/K9uZoYIRQxjQH/roLU78waP+g+GhoAg5OxH63BfY37h6ISkNfQEQ==} + /@microsoft/api-extractor@7.42.3(@types/node@16.18.87): + resolution: {integrity: sha512-JNLJFpGHz6ekjS6bvYXxUBeRGnSHeCMFNvRbCQ+7XXB/ZFrgLSMPwWtEq40AiWAy+oyG5a4RSNwdJTp0B2USvQ==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.28.13(@types/node@16.18.83) + '@microsoft/api-extractor-model': 7.28.13(@types/node@16.18.87) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@16.18.83) + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.87) '@rushstack/rig-package': 0.5.2 - '@rushstack/terminal': 0.10.0(@types/node@16.18.83) - '@rushstack/ts-command-line': 4.17.4(@types/node@16.18.83) + '@rushstack/terminal': 0.10.0(@types/node@16.18.87) + '@rushstack/ts-command-line': 4.19.1(@types/node@16.18.87) lodash: 4.17.21 + minimatch: 3.0.8 resolve: 1.22.8 semver: 7.5.4 source-map: 0.6.1 @@ -2265,18 +2251,19 @@ packages: - '@types/node' dev: false - /@microsoft/api-extractor@7.41.0(@types/node@18.19.18): - resolution: {integrity: sha512-Wk4fcSqO1i32FspStEm4ak+cfdo2xGsWk/K9uZoYIRQxjQH/roLU78waP+g+GhoAg5OxH63BfY37h6ISkNfQEQ==} + /@microsoft/api-extractor@7.42.3(@types/node@18.19.22): + resolution: {integrity: sha512-JNLJFpGHz6ekjS6bvYXxUBeRGnSHeCMFNvRbCQ+7XXB/ZFrgLSMPwWtEq40AiWAy+oyG5a4RSNwdJTp0B2USvQ==} hasBin: true dependencies: - '@microsoft/api-extractor-model': 7.28.13(@types/node@18.19.18) + '@microsoft/api-extractor-model': 7.28.13(@types/node@18.19.22) '@microsoft/tsdoc': 0.14.2 '@microsoft/tsdoc-config': 0.16.2 - '@rushstack/node-core-library': 4.0.2(@types/node@18.19.18) + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.22) '@rushstack/rig-package': 0.5.2 - '@rushstack/terminal': 0.10.0(@types/node@18.19.18) - '@rushstack/ts-command-line': 4.17.4(@types/node@18.19.18) + '@rushstack/terminal': 0.10.0(@types/node@18.19.22) + '@rushstack/ts-command-line': 4.19.1(@types/node@18.19.22) lodash: 4.17.21 + minimatch: 3.0.8 resolve: 1.22.8 semver: 7.5.4 source-map: 0.6.1 @@ -2330,11 +2317,6 @@ packages: '@opentelemetry/api': 1.8.0 dev: false - /@opentelemetry/api@1.7.0: - resolution: {integrity: sha512-AdY5wvN0P2vXBi3b29hxZgSFvdhdxPB9+f0B6s//P9Q8nibRWeA3cHm8UmLpio9ABigkVHJ5NMPk+Mz8VCCyrw==} - engines: {node: '>=8.0.0'} - dev: false - /@opentelemetry/api@1.8.0: resolution: {integrity: sha512-I/s6F7yKUDdtMsoBWXJe8Qz40Tui5vsuKCWJEWVL+5q9sSWRzzx6v2KeNsOBEwd94j0eWkpWCH4yB6rZg9Mf0w==} engines: {node: '>=8.0.0'} @@ -2365,7 +2347,7 @@ packages: peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@grpc/grpc-js': 1.10.1 + '@grpc/grpc-js': 1.10.2 '@opentelemetry/api': 1.8.0 '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) '@opentelemetry/otlp-grpc-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) @@ -2550,7 +2532,7 @@ packages: peerDependencies: '@opentelemetry/api': ^1.0.0 dependencies: - '@grpc/grpc-js': 1.10.1 + '@grpc/grpc-js': 1.10.2 '@opentelemetry/api': 1.8.0 '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) '@opentelemetry/otlp-exporter-base': 0.49.1(@opentelemetry/api@1.8.0) @@ -2609,14 +2591,15 @@ packages: engines: {node: '>=14'} dev: false - /@opentelemetry/resource-detector-azure@0.2.4(@opentelemetry/api@1.8.0): - resolution: {integrity: sha512-H1xXOqF87Ps57cGnGFsMf3+Fj5VdeVlBA6Hl8f0DRQ32eD7+5szx53/qvpvES90o+e+fHGr42KCz8MP+ow6MpQ==} + /@opentelemetry/resource-detector-azure@0.2.5(@opentelemetry/api@1.8.0): + resolution: {integrity: sha512-O/s4MW9UhLtOebNcdtM5sXm2tZ7O8Ow0avkuFqwwZYTeBcI7ipJs9L8mv8q4bP8K9AQabLLBYw+vOOpN7aH/dA==} engines: {node: '>=14'} + peerDependencies: + '@opentelemetry/api': ^1.0.0 dependencies: + '@opentelemetry/api': 1.8.0 '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) '@opentelemetry/semantic-conventions': 1.22.0 - transitivePeerDependencies: - - '@opentelemetry/api' dev: false /@opentelemetry/resources@1.22.0(@opentelemetry/api@1.8.0): @@ -2728,8 +2711,8 @@ packages: dev: false optional: true - /@polka/url@1.0.0-next.24: - resolution: {integrity: sha512-2LuNTFBIO0m7kKIQvvPHN6UE63VjpmL9rnEEaOOaiSPbZK+zUOYIzBAWcED+3XYzhYsd/0mD57VdxAEqqV52CQ==} + /@polka/url@1.0.0-next.25: + resolution: {integrity: sha512-j7P6Rgr3mmtdkeDGTe0E/aYyWEWVtc5yFXtHCRHs28/jptDEWfaVOc5T7cblqy1XKPPfCxJc/8DwQ5YgLOZOVQ==} dev: false /@protobufjs/aspromise@1.1.2: @@ -2792,7 +2775,7 @@ packages: - supports-color dev: false - /@rollup/plugin-commonjs@25.0.7(rollup@4.12.0): + /@rollup/plugin-commonjs@25.0.7(rollup@4.12.1): resolution: {integrity: sha512-nEvcR+LRjEjsaSsc4x3XZfCCvZIaSMenZu/OiwOKGN2UhQpAYI7ru7czFvyWbErlpoGjnSX3D5Ch5FcMA3kRWQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2801,16 +2784,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.0) + '@rollup/pluginutils': 5.1.0(rollup@4.12.1) commondir: 1.0.1 estree-walker: 2.0.2 glob: 8.1.0 is-reference: 1.2.1 - magic-string: 0.30.7 - rollup: 4.12.0 + magic-string: 0.30.8 + rollup: 4.12.1 dev: false - /@rollup/plugin-inject@5.0.5(rollup@4.12.0): + /@rollup/plugin-inject@5.0.5(rollup@4.12.1): resolution: {integrity: sha512-2+DEJbNBoPROPkgTDNe8/1YXWcqxbN5DTjASVIOx8HS+pITXushyNiBV56RB08zuptzz8gT3YfkqriTBVycepg==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2819,13 +2802,13 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.0) + '@rollup/pluginutils': 5.1.0(rollup@4.12.1) estree-walker: 2.0.2 - magic-string: 0.30.7 - rollup: 4.12.0 + magic-string: 0.30.8 + rollup: 4.12.1 dev: false - /@rollup/plugin-json@6.1.0(rollup@4.12.0): + /@rollup/plugin-json@6.1.0(rollup@4.12.1): resolution: {integrity: sha512-EGI2te5ENk1coGeADSIwZ7G2Q8CJS2sF120T7jLw4xFw9n7wIOXHo+kIYRAoVpJAN+kmqZSoO3Fp4JtoNF4ReA==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2834,11 +2817,11 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.0) - rollup: 4.12.0 + '@rollup/pluginutils': 5.1.0(rollup@4.12.1) + rollup: 4.12.1 dev: false - /@rollup/plugin-multi-entry@6.0.1(rollup@4.12.0): + /@rollup/plugin-multi-entry@6.0.1(rollup@4.12.1): resolution: {integrity: sha512-AXm6toPyTSfbYZWghQGbom1Uh7dHXlrGa+HoiYNhQtDUE3Q7LqoUYdVQx9E1579QWS1uOiu+cZRSE4okO7ySgw==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2847,12 +2830,12 @@ packages: rollup: optional: true dependencies: - '@rollup/plugin-virtual': 3.0.2(rollup@4.12.0) + '@rollup/plugin-virtual': 3.0.2(rollup@4.12.1) matched: 5.0.1 - rollup: 4.12.0 + rollup: 4.12.1 dev: false - /@rollup/plugin-node-resolve@15.2.3(rollup@4.12.0): + /@rollup/plugin-node-resolve@15.2.3(rollup@4.12.1): resolution: {integrity: sha512-j/lym8nf5E21LwBT4Df1VD6hRO2L2iwUeUmP7litikRsVp1H6NWx20NEp0Y7su+7XGc476GnXXc4kFeZNGmaSQ==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2861,16 +2844,16 @@ packages: rollup: optional: true dependencies: - '@rollup/pluginutils': 5.1.0(rollup@4.12.0) + '@rollup/pluginutils': 5.1.0(rollup@4.12.1) '@types/resolve': 1.20.2 deepmerge: 4.3.1 is-builtin-module: 3.2.1 is-module: 1.0.0 resolve: 1.22.8 - rollup: 4.12.0 + rollup: 4.12.1 dev: false - /@rollup/plugin-virtual@3.0.2(rollup@4.12.0): + /@rollup/plugin-virtual@3.0.2(rollup@4.12.1): resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2879,10 +2862,10 @@ packages: rollup: optional: true dependencies: - rollup: 4.12.0 + rollup: 4.12.1 dev: false - /@rollup/pluginutils@5.1.0(rollup@4.12.0): + /@rollup/pluginutils@5.1.0(rollup@4.12.1): resolution: {integrity: sha512-XTIWOPPcpvyKI6L1NHo0lFlCyznUEyPmPY1mc3KpPVDYulHSTvyeLNVW00QTLIAFNhR3kYnJTQHeGqU4M3n09g==} engines: {node: '>=14.0.0'} peerDependencies: @@ -2894,107 +2877,107 @@ packages: '@types/estree': 1.0.5 estree-walker: 2.0.2 picomatch: 2.3.1 - rollup: 4.12.0 + rollup: 4.12.1 dev: false - /@rollup/rollup-android-arm-eabi@4.12.0: - resolution: {integrity: sha512-+ac02NL/2TCKRrJu2wffk1kZ+RyqxVUlbjSagNgPm94frxtr+XDL12E5Ll1enWskLrtrZ2r8L3wED1orIibV/w==} + /@rollup/rollup-android-arm-eabi@4.12.1: + resolution: {integrity: sha512-iU2Sya8hNn1LhsYyf0N+L4Gf9Qc+9eBTJJJsaOGUp+7x4n2M9dxTt8UvhJl3oeftSjblSlpCfvjA/IfP3g5VjQ==} cpu: [arm] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-android-arm64@4.12.0: - resolution: {integrity: sha512-OBqcX2BMe6nvjQ0Nyp7cC90cnumt8PXmO7Dp3gfAju/6YwG0Tj74z1vKrfRz7qAv23nBcYM8BCbhrsWqO7PzQQ==} + /@rollup/rollup-android-arm64@4.12.1: + resolution: {integrity: sha512-wlzcWiH2Ir7rdMELxFE5vuM7D6TsOcJ2Yw0c3vaBR3VOsJFVTx9xvwnAvhgU5Ii8Gd6+I11qNHwndDscIm0HXg==} cpu: [arm64] os: [android] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-arm64@4.12.0: - resolution: {integrity: sha512-X64tZd8dRE/QTrBIEs63kaOBG0b5GVEd3ccoLtyf6IdXtHdh8h+I56C2yC3PtC9Ucnv0CpNFJLqKFVgCYe0lOQ==} + /@rollup/rollup-darwin-arm64@4.12.1: + resolution: {integrity: sha512-YRXa1+aZIFN5BaImK+84B3uNK8C6+ynKLPgvn29X9s0LTVCByp54TB7tdSMHDR7GTV39bz1lOmlLDuedgTwwHg==} cpu: [arm64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-darwin-x64@4.12.0: - resolution: {integrity: sha512-cc71KUZoVbUJmGP2cOuiZ9HSOP14AzBAThn3OU+9LcA1+IUqswJyR1cAJj3Mg55HbjZP6OLAIscbQsQLrpgTOg==} + /@rollup/rollup-darwin-x64@4.12.1: + resolution: {integrity: sha512-opjWJ4MevxeA8FhlngQWPBOvVWYNPFkq6/25rGgG+KOy0r8clYwL1CFd+PGwRqqMFVQ4/Qd3sQu5t7ucP7C/Uw==} cpu: [x64] os: [darwin] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm-gnueabihf@4.12.0: - resolution: {integrity: sha512-a6w/Y3hyyO6GlpKL2xJ4IOh/7d+APaqLYdMf86xnczU3nurFTaVN9s9jOXQg97BE4nYm/7Ga51rjec5nfRdrvA==} + /@rollup/rollup-linux-arm-gnueabihf@4.12.1: + resolution: {integrity: sha512-uBkwaI+gBUlIe+EfbNnY5xNyXuhZbDSx2nzzW8tRMjUmpScd6lCQYKY2V9BATHtv5Ef2OBq6SChEP8h+/cxifQ==} cpu: [arm] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-gnu@4.12.0: - resolution: {integrity: sha512-0fZBq27b+D7Ar5CQMofVN8sggOVhEtzFUwOwPppQt0k+VR+7UHMZZY4y+64WJ06XOhBTKXtQB/Sv0NwQMXyNAA==} + /@rollup/rollup-linux-arm64-gnu@4.12.1: + resolution: {integrity: sha512-0bK9aG1kIg0Su7OcFTlexkVeNZ5IzEsnz1ept87a0TUgZ6HplSgkJAnFpEVRW7GRcikT4GlPV0pbtVedOaXHQQ==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-arm64-musl@4.12.0: - resolution: {integrity: sha512-eTvzUS3hhhlgeAv6bfigekzWZjaEX9xP9HhxB0Dvrdbkk5w/b+1Sxct2ZuDxNJKzsRStSq1EaEkVSEe7A7ipgQ==} + /@rollup/rollup-linux-arm64-musl@4.12.1: + resolution: {integrity: sha512-qB6AFRXuP8bdkBI4D7UPUbE7OQf7u5OL+R94JE42Z2Qjmyj74FtDdLGeriRyBDhm4rQSvqAGCGC01b8Fu2LthQ==} cpu: [arm64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-riscv64-gnu@4.12.0: - resolution: {integrity: sha512-ix+qAB9qmrCRiaO71VFfY8rkiAZJL8zQRXveS27HS+pKdjwUfEhqo2+YF2oI+H/22Xsiski+qqwIBxVewLK7sw==} + /@rollup/rollup-linux-riscv64-gnu@4.12.1: + resolution: {integrity: sha512-sHig3LaGlpNgDj5o8uPEoGs98RII8HpNIqFtAI8/pYABO8i0nb1QzT0JDoXF/pxzqO+FkxvwkHZo9k0NJYDedg==} cpu: [riscv64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-gnu@4.12.0: - resolution: {integrity: sha512-TenQhZVOtw/3qKOPa7d+QgkeM6xY0LtwzR8OplmyL5LrgTWIXpTQg2Q2ycBf8jm+SFW2Wt/DTn1gf7nFp3ssVA==} + /@rollup/rollup-linux-x64-gnu@4.12.1: + resolution: {integrity: sha512-nD3YcUv6jBJbBNFvSbp0IV66+ba/1teuBcu+fBBPZ33sidxitc6ErhON3JNavaH8HlswhWMC3s5rgZpM4MtPqQ==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-linux-x64-musl@4.12.0: - resolution: {integrity: sha512-LfFdRhNnW0zdMvdCb5FNuWlls2WbbSridJvxOvYWgSBOYZtgBfW9UGNJG//rwMqTX1xQE9BAodvMH9tAusKDUw==} + /@rollup/rollup-linux-x64-musl@4.12.1: + resolution: {integrity: sha512-7/XVZqgBby2qp/cO0TQ8uJK+9xnSdJ9ct6gSDdEr4MfABrjTyrW6Bau7HQ73a2a5tPB7hno49A0y1jhWGDN9OQ==} cpu: [x64] os: [linux] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-arm64-msvc@4.12.0: - resolution: {integrity: sha512-JPDxovheWNp6d7AHCgsUlkuCKvtu3RB55iNEkaQcf0ttsDU/JZF+iQnYcQJSk/7PtT4mjjVG8N1kpwnI9SLYaw==} + /@rollup/rollup-win32-arm64-msvc@4.12.1: + resolution: {integrity: sha512-CYc64bnICG42UPL7TrhIwsJW4QcKkIt9gGlj21gq3VV0LL6XNb1yAdHVp1pIi9gkts9gGcT3OfUYHjGP7ETAiw==} cpu: [arm64] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-ia32-msvc@4.12.0: - resolution: {integrity: sha512-fjtuvMWRGJn1oZacG8IPnzIV6GF2/XG+h71FKn76OYFqySXInJtseAqdprVTDTyqPxQOG9Exak5/E9Z3+EJ8ZA==} + /@rollup/rollup-win32-ia32-msvc@4.12.1: + resolution: {integrity: sha512-LN+vnlZ9g0qlHGlS920GR4zFCqAwbv2lULrR29yGaWP9u7wF5L7GqWu9Ah6/kFZPXPUkpdZwd//TNR+9XC9hvA==} cpu: [ia32] os: [win32] requiresBuild: true dev: false optional: true - /@rollup/rollup-win32-x64-msvc@4.12.0: - resolution: {integrity: sha512-ZYmr5mS2wd4Dew/JjT0Fqi2NPB/ZhZ2VvPp7SmvPZb4Y1CG/LRcS6tcRo2cYU7zLK5A7cdbhWnnWmUjoI4qapg==} + /@rollup/rollup-win32-x64-msvc@4.12.1: + resolution: {integrity: sha512-n+vkrSyphvmU0qkQ6QBNXCGr2mKjhP08mPRM/Xp5Ck2FV4NrHU+y6axzDeixUrCBHVUS51TZhjqrKBBsHLKb2Q==} cpu: [x64] os: [win32] requiresBuild: true @@ -3019,7 +3002,7 @@ packages: z-schema: 5.0.5 dev: false - /@rushstack/node-core-library@4.0.2(@types/node@16.18.83): + /@rushstack/node-core-library@4.0.2(@types/node@16.18.87): resolution: {integrity: sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==} peerDependencies: '@types/node': '*' @@ -3027,7 +3010,7 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 16.18.83 + '@types/node': 16.18.87 fs-extra: 7.0.1 import-lazy: 4.0.0 jju: 1.4.0 @@ -3036,7 +3019,7 @@ packages: z-schema: 5.0.5 dev: false - /@rushstack/node-core-library@4.0.2(@types/node@18.19.18): + /@rushstack/node-core-library@4.0.2(@types/node@18.19.22): resolution: {integrity: sha512-hyES82QVpkfQMeBMteQUnrhASL/KHPhd7iJ8euduwNJG4mu2GSOKybf0rOEjOm1Wz7CwJEUm9y0yD7jg2C1bfg==} peerDependencies: '@types/node': '*' @@ -3044,7 +3027,7 @@ packages: '@types/node': optional: true dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 fs-extra: 7.0.1 import-lazy: 4.0.0 jju: 1.4.0 @@ -3067,7 +3050,7 @@ packages: strip-json-comments: 3.1.1 dev: false - /@rushstack/terminal@0.10.0(@types/node@16.18.83): + /@rushstack/terminal@0.10.0(@types/node@16.18.87): resolution: {integrity: sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==} peerDependencies: '@types/node': '*' @@ -3075,12 +3058,12 @@ packages: '@types/node': optional: true dependencies: - '@rushstack/node-core-library': 4.0.2(@types/node@16.18.83) - '@types/node': 16.18.83 + '@rushstack/node-core-library': 4.0.2(@types/node@16.18.87) + '@types/node': 16.18.87 supports-color: 8.1.1 dev: false - /@rushstack/terminal@0.10.0(@types/node@18.19.18): + /@rushstack/terminal@0.10.0(@types/node@18.19.22): resolution: {integrity: sha512-UbELbXnUdc7EKwfH2sb8ChqNgapUOdqcCIdQP4NGxBpTZV2sQyeekuK3zmfQSa/MN+/7b4kBogl2wq0vpkpYGw==} peerDependencies: '@types/node': '*' @@ -3088,8 +3071,8 @@ packages: '@types/node': optional: true dependencies: - '@rushstack/node-core-library': 4.0.2(@types/node@18.19.18) - '@types/node': 18.19.18 + '@rushstack/node-core-library': 4.0.2(@types/node@18.19.22) + '@types/node': 18.19.22 supports-color: 8.1.1 dev: false @@ -3102,10 +3085,10 @@ packages: string-argv: 0.3.2 dev: false - /@rushstack/ts-command-line@4.17.4(@types/node@16.18.83): - resolution: {integrity: sha512-XPQQDaxgFqRHFRgt7jjCKnr0vrC75s/+ISU6kGhWpDlGzWl4vig6ZfZTs3HgM6Kh1Bb3wUKSyKQOV+G36cyZfg==} + /@rushstack/ts-command-line@4.19.1(@types/node@16.18.87): + resolution: {integrity: sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==} dependencies: - '@rushstack/terminal': 0.10.0(@types/node@16.18.83) + '@rushstack/terminal': 0.10.0(@types/node@16.18.87) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -3113,10 +3096,10 @@ packages: - '@types/node' dev: false - /@rushstack/ts-command-line@4.17.4(@types/node@18.19.18): - resolution: {integrity: sha512-XPQQDaxgFqRHFRgt7jjCKnr0vrC75s/+ISU6kGhWpDlGzWl4vig6ZfZTs3HgM6Kh1Bb3wUKSyKQOV+G36cyZfg==} + /@rushstack/ts-command-line@4.19.1(@types/node@18.19.22): + resolution: {integrity: sha512-J7H768dgcpG60d7skZ5uSSwyCZs/S2HrWP1Ds8d1qYAyaaeJmpmmLr9BVw97RjFzmQPOYnoXcKA4GkqDCkduQg==} dependencies: - '@rushstack/terminal': 0.10.0(@types/node@18.19.18) + '@rushstack/terminal': 0.10.0(@types/node@18.19.22) '@types/argparse': 1.0.38 argparse: 1.0.10 string-argv: 0.3.2 @@ -3214,13 +3197,13 @@ packages: resolution: {integrity: sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg==} dependencies: '@types/connect': 3.4.38 - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/bunyan@1.8.9: resolution: {integrity: sha512-ZqS9JGpBxVOvsawzmVt30sP++gSQMTejCkIAQ3VdadOcRE8izTyW66hufvwLeH+YEGP6Js2AW7Gz+RMyvrEbmw==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/chai-as-promised@7.1.8: @@ -3242,7 +3225,7 @@ packages: /@types/connect@3.4.38: resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/cookie@0.4.1: @@ -3252,7 +3235,7 @@ packages: /@types/cors@2.8.17: resolution: {integrity: sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/debug@4.1.12: @@ -3264,7 +3247,7 @@ packages: /@types/decompress@4.2.7: resolution: {integrity: sha512-9z+8yjKr5Wn73Pt17/ldnmQToaFHZxK0N1GHysuk/JIPT8RIdQeoInM01wWPgypRcvb6VH1drjuFpQ4zmY437g==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/eslint@8.44.9: @@ -3281,8 +3264,8 @@ packages: /@types/express-serve-static-core@4.17.43: resolution: {integrity: sha512-oaYtiBirUOPQGSWNGPWnzyAFJ0BP3cwvN4oWZQY+zUBwpVIGsKUkpBpSztp74drYcjavs7SKFZ4DX1V2QeN8rg==} dependencies: - '@types/node': 20.10.8 - '@types/qs': 6.9.11 + '@types/node': 18.19.22 + '@types/qs': 6.9.12 '@types/range-parser': 1.2.7 '@types/send': 0.17.4 dev: false @@ -3292,7 +3275,7 @@ packages: dependencies: '@types/body-parser': 1.19.5 '@types/express-serve-static-core': 4.17.43 - '@types/qs': 6.9.11 + '@types/qs': 6.9.12 '@types/serve-static': 1.15.5 dev: false @@ -3300,19 +3283,19 @@ packages: resolution: {integrity: sha512-yTbItCNreRooED33qjunPthRcSjERP1r4MqCZc7wv0u2sUkzTFp45tgUfS5+r7FrZPdmCCNflLhVSP/o+SemsQ==} dependencies: '@types/jsonfile': 6.1.4 - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/fs-extra@8.1.5: resolution: {integrity: sha512-0dzKcwO+S8s2kuF5Z9oUWatQJj5Uq/iqphEtE3GQJVRRYm/tD1LglU2UnXi2A8jLq5umkGouOXOR9y0n613ZwQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/fs-extra@9.0.13: resolution: {integrity: sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==} dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 dev: false /@types/http-errors@2.0.4: @@ -3329,7 +3312,7 @@ packages: /@types/is-buffer@2.0.2: resolution: {integrity: sha512-G6OXy83Va+xEo8XgqAJYOuvOMxeey9xM5XKkvwJNmN8rVdcB+r15HvHsG86hl86JvU0y1aa7Z2ERkNFYWw9ySg==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/istanbul-lib-coverage@2.0.6: @@ -3347,19 +3330,19 @@ packages: /@types/jsonfile@6.1.4: resolution: {integrity: sha512-D5qGUYwjvnNNextdU59/+fI+spnwtTFmyQP0h+PfIOSkNfpU6AOICUOkm4i0OnSk+NyjdPJrxCDro0sJsWlRpQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false - /@types/jsonwebtoken@9.0.5: - resolution: {integrity: sha512-VRLSGzik+Unrup6BsouBeHsf4d1hOEgYWTm/7Nmw1sXoN1+tRly/Gy/po3yeahnP4jfnQWWAhQAqcNfH7ngOkA==} + /@types/jsonwebtoken@9.0.6: + resolution: {integrity: sha512-/5hndP5dCjloafCXns6SZyESp3Ldq7YjH3zwzwczYnjxIT0Fqzk5ROSYVGfFyczIue7IUEj8hkvLbPoLQ18vQw==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/jws@3.2.9: resolution: {integrity: sha512-xAqC7PI7QSBY3fXV1f2pbcdbBFoR4dF8+lH2z6MfZQVcGe14twYVfjzJ3CHhLS1NHxE+DnjUR5xaHu2/U9GGaQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/linkify-it@3.0.5: @@ -3410,22 +3393,22 @@ packages: /@types/mysql@2.15.22: resolution: {integrity: sha512-wK1pzsJVVAjYCSZWQoWHziQZbNggXFDUEIGf54g4ZM/ERuP86uGdWeKZWMYlqTPMZfHJJvLPyogXGvCOg87yLQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/node-fetch@2.6.11: resolution: {integrity: sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 form-data: 4.0.0 dev: false - /@types/node@16.18.83: - resolution: {integrity: sha512-TmBqzDY/GeCEmLob/31SunOQnqYE3ZiiuEh1U9o3HqE1E2cqKZQA5RQg4krEguCY3StnkXyDmCny75qyFLx/rA==} + /@types/node@16.18.87: + resolution: {integrity: sha512-+IzfhNirR/MDbXz6Om5eHV54D9mQlEMGag6AgEzlju0xH3M8baCXYwqQ6RKgGMpn9wSTx6Ltya/0y4Z8eSfdLw==} dev: false - /@types/node@18.19.18: - resolution: {integrity: sha512-80CP7B8y4PzZF0GWx15/gVWRrB5y/bIjNI84NK3cmQJu0WZwvmj2WMA5LcofQFVfLqqCSp545+U2LsrVzX36Zg==} + /@types/node@18.19.22: + resolution: {integrity: sha512-p3pDIfuMg/aXBmhkyanPshdfJuX5c5+bQjYLIikPLXAUycEogij/c50n/C+8XOA5L93cU4ZRXtn+dNQGi0IZqQ==} dependencies: undici-types: 5.26.5 dev: false @@ -3449,7 +3432,7 @@ packages: /@types/pg@8.6.1: resolution: {integrity: sha512-1Kc4oAGzAl7uqUStZCDvaLFqZrW9qWSjXOmBfdgyBP5La7Us6Mg4GBvRlSoaZMhQF/zSj1C8CtKMBkoiT8eL8w==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 pg-protocol: 1.6.0 pg-types: 2.2.0 dev: false @@ -3458,8 +3441,8 @@ packages: resolution: {integrity: sha512-LqAAiGnUqQvBZW0hTGl0pIaL+UeN7KvcxkLyt8+H++WBA1hucdu463mVfGCXmXvJ+uGyW3SyCyW0D6ANNcmB6g==} dev: false - /@types/qs@6.9.11: - resolution: {integrity: sha512-oGk0gmhnEJK4Yyk+oI7EfXsLayXatCWPHary1MtcmbAifkobT9cM9yutG/hZKIseOU0MqbIwQ/u2nn/Gb+ltuQ==} + /@types/qs@6.9.12: + resolution: {integrity: sha512-bZcOkJ6uWrL0Qb2NAWKa7TBU+mJHPzhx9jjLL1KHF+XpzEcR7EXHvjbHlGtR/IsP1vyPrehuS6XqkmaePy//mg==} dev: false /@types/range-parser@1.2.7: @@ -3469,7 +3452,7 @@ packages: /@types/readdir-glob@1.1.5: resolution: {integrity: sha512-raiuEPUYqXu+nvtY2Pe8s8FEmZ3x5yAH4VkLdihcPdalvsHltomrRC9BzuStrJ9yk06470hS0Crw0f1pXqD+Hg==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/resolve@1.20.2: @@ -3488,7 +3471,7 @@ packages: resolution: {integrity: sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA==} dependencies: '@types/mime': 1.3.5 - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/serve-static@1.15.5: @@ -3496,7 +3479,7 @@ packages: dependencies: '@types/http-errors': 2.0.4 '@types/mime': 3.0.4 - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/shimmer@1.0.5: @@ -3516,13 +3499,13 @@ packages: /@types/stoppable@1.1.3: resolution: {integrity: sha512-7wGKIBJGE4ZxFjk9NkjAxZMLlIXroETqP1FJCdoSvKmEznwmBxQFmTB1dsCkAvVcNemuSZM5qkkd9HE/NL2JTw==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/through@0.0.33: resolution: {integrity: sha512-HsJ+z3QuETzP3cswwtzt2vEIiHBk/dCcHGhbmG5X3ecnwFD/lPrMpliGXxSCg03L9AhrdwA4Oz/qfspkDW+xGQ==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/trusted-types@2.0.7: @@ -3532,7 +3515,7 @@ packages: /@types/tunnel@0.0.3: resolution: {integrity: sha512-sOUTGn6h1SfQ+gbgqC364jLFBw2lnFqkgF3q0WovEHRLMrVD1sd5aufqi/aJObLekJO+Aq5z646U4Oxy6shXMA==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/underscore@1.11.15: @@ -3550,13 +3533,13 @@ packages: /@types/ws@7.4.7: resolution: {integrity: sha512-JQbbmxZTZehdc2iszGKs5oC3NFnjeay7mtAWrdt7qNtAVK0g19muApzAy4bm9byz79xa2ZnO/BOBC2R8RC5Lww==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/ws@8.5.10: resolution: {integrity: sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A==} dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false /@types/wtfnode@0.7.2: @@ -3577,7 +3560,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.8 + '@types/node': 18.19.22 dev: false optional: true @@ -3728,7 +3711,7 @@ packages: resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} dev: false - /@vitest/browser@1.3.1(playwright@1.41.2)(vitest@1.3.1): + /@vitest/browser@1.3.1(playwright@1.42.1)(vitest@1.3.1): resolution: {integrity: sha512-pRof8G8nqRWwg3ouyIctyhfIVk5jXgF056uF//sqdi37+pVtDz9kBI/RMu0xlc8tgCyJ2aEMfbgJZPUydlEVaQ==} peerDependencies: playwright: '*' @@ -3744,10 +3727,10 @@ packages: optional: true dependencies: '@vitest/utils': 1.3.1 - magic-string: 0.30.7 - playwright: 1.41.2 + magic-string: 0.30.8 + playwright: 1.42.1 sirv: 2.0.4 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) dev: false /@vitest/coverage-istanbul@1.3.1(vitest@1.3.1): @@ -3764,7 +3747,7 @@ packages: magicast: 0.3.3 picocolors: 1.0.0 test-exclude: 6.0.0 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - supports-color dev: false @@ -3788,7 +3771,7 @@ packages: /@vitest/snapshot@1.3.1: resolution: {integrity: sha512-EF++BZbt6RZmOlE3SuTPu/NfwBF6q4ABS37HHXzs2LUVPBLx2QoY/K0fKpRChSo8eLiuxcbCVfqKgx/dplCDuQ==} dependencies: - magic-string: 0.30.7 + magic-string: 0.30.8 pathe: 1.1.2 pretty-format: 29.7.0 dev: false @@ -3960,29 +3943,30 @@ packages: default-require-extensions: 3.0.1 dev: false - /archiver-utils@5.0.1: - resolution: {integrity: sha512-MMAoLdMvT/nckofX1tCLrf7uJce4jTNkiT6smA2u57AOImc1nce7mR3EDujxL5yv6/MnILuQH4sAsPtDS8kTvg==} + /archiver-utils@5.0.2: + resolution: {integrity: sha512-wuLJMmIBQYCsGZgYLTy5FIB2pF6Lfb6cXMSF8Qywwk3t20zWnAi7zLcQFdKQmIB8wyZpY5ER38x08GbwtR2cLA==} engines: {node: '>= 14'} dependencies: glob: 10.3.10 graceful-fs: 4.2.11 + is-stream: 2.0.1 lazystream: 1.0.1 lodash: 4.17.21 normalize-path: 3.0.0 - readable-stream: 3.6.2 + readable-stream: 4.5.2 dev: false - /archiver@7.0.0: - resolution: {integrity: sha512-R9HM9egs8FfktSqUqyjlKmvF4U+CWNqm/2tlROV+lOFg79MLdT67ae1l3hU47pGy8twSXxHoiefMCh43w0BriQ==} + /archiver@7.0.1: + resolution: {integrity: sha512-ZcbTaIqJOfCc03QwD468Unz/5Ir8ATtvAHsK+FdXbDIbGfihqh9mrvdcYunQzqn4HrvWWaFyaxJhGZagaJJpPQ==} engines: {node: '>= 14'} dependencies: - archiver-utils: 5.0.1 + archiver-utils: 5.0.2 async: 3.2.5 buffer-crc32: 1.0.0 readable-stream: 4.5.2 readdir-glob: 1.1.3 tar-stream: 3.1.7 - zip-stream: 6.0.0 + zip-stream: 6.0.1 dev: false /archy@1.0.0: @@ -4021,7 +4005,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 get-intrinsic: 1.2.4 is-string: 1.0.7 dev: false @@ -4037,7 +4021,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-array-method-boxes-properly: 1.0.0 is-string: 1.0.7 dev: false @@ -4048,7 +4032,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-errors: 1.3.0 es-shim-unscopables: 1.0.2 dev: false @@ -4059,7 +4043,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-shim-unscopables: 1.0.2 dev: false @@ -4069,7 +4053,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-shim-unscopables: 1.0.2 dev: false @@ -4080,7 +4064,7 @@ packages: array-buffer-byte-length: 1.0.1 call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-errors: 1.3.0 get-intrinsic: 1.2.4 is-array-buffer: 3.0.4 @@ -4137,17 +4121,17 @@ packages: resolution: {integrity: sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==} dev: false - /bare-events@2.2.0: - resolution: {integrity: sha512-Yyyqff4PIFfSuthCZqLlPISTWHmnQxoPuAvkmgzsJEmG3CesdIv6Xweayl0JkCZJSB2yYIdJyEz97tpxNhgjbg==} + /bare-events@2.2.1: + resolution: {integrity: sha512-9GYPpsPFvrWBkelIhOhTWtkeZxVxZOdb3VnFTCzlOo3OjvmTvzLoZFUT8kNFACx0vJej6QPney1Cf9BvzCNE/A==} requiresBuild: true dev: false optional: true - /bare-fs@2.2.0: - resolution: {integrity: sha512-+VhW202E9eTVGkX7p+TNXtZC4RTzj9JfJW7PtfIbZ7mIQ/QT9uOafQTx7lx2n9ERmWsXvLHF4hStAFn4gl2mQw==} + /bare-fs@2.2.1: + resolution: {integrity: sha512-+CjmZANQDFZWy4PGbVdmALIwmt33aJg8qTkVjClU6X4WmZkTPBDxRHiBn7fpqEWEfF3AC2io++erpViAIQbSjg==} requiresBuild: true dependencies: - bare-events: 2.2.0 + bare-events: 2.2.1 bare-os: 2.2.0 bare-path: 2.1.0 streamx: 2.16.1 @@ -4177,8 +4161,8 @@ packages: engines: {node: ^4.5.0 || >= 5.9} dev: false - /basic-ftp@5.0.4: - resolution: {integrity: sha512-8PzkB0arJFV4jJWSGOYR+OEic6aeKMu/osRhBULN6RY0ykby6LKhbmuQ5ublvaas5BOwboah5D87nrHyuh8PPA==} + /basic-ftp@5.0.5: + resolution: {integrity: sha512-4Bcg1P8xhUuqcii/S0Z9wiHIrQVPMermM1any+MX5GeGD7faD3/msQUDGLol9wOcz4/jbg/WJnGqoJF6LiBdtg==} engines: {node: '>=10.0.0'} dev: false @@ -4206,24 +4190,6 @@ packages: resolution: {integrity: sha512-XpNj6GDQzdfW+r2Wnn7xiSAd7TM3jzkxGXBGTtWKuSXv1xUV+azxAm8jdWZN06QTQk+2N2XB9jRDkvbmQmcRtg==} dev: false - /body-parser@1.20.1: - resolution: {integrity: sha512-jWi7abTbYwajOytWCQc37VulmWiRae5RyTpaCyDcS5/lMdtwSz5lOpDE67srw/HYe35f1z3fDQw+3txg7gNtWw==} - engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} - dependencies: - bytes: 3.1.2 - content-type: 1.0.5 - debug: 2.6.9 - depd: 2.0.0 - destroy: 1.2.0 - http-errors: 2.0.0 - iconv-lite: 0.4.24 - on-finished: 2.4.1 - qs: 6.11.0 - raw-body: 2.5.1 - type-is: 1.6.18 - unpipe: 1.0.0 - dev: false - /body-parser@1.20.2: resolution: {integrity: sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA==} engines: {node: '>= 0.8', npm: 1.2.8000 || >= 1.4.16} @@ -4271,8 +4237,8 @@ packages: engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} hasBin: true dependencies: - caniuse-lite: 1.0.30001589 - electron-to-chromium: 1.4.681 + caniuse-lite: 1.0.30001597 + electron-to-chromium: 1.4.700 node-releases: 2.0.14 update-browserslist-db: 1.0.13(browserslist@4.23.0) dev: false @@ -4375,7 +4341,7 @@ packages: es-errors: 1.3.0 function-bind: 1.1.2 get-intrinsic: 1.2.4 - set-function-length: 1.2.1 + set-function-length: 1.2.2 dev: false /callsites@3.1.0: @@ -4393,8 +4359,8 @@ packages: engines: {node: '>=10'} dev: false - /caniuse-lite@1.0.30001589: - resolution: {integrity: sha512-vNQWS6kI+q6sBlHbh71IIeC+sRwK2N3EDySc/updIGhIee2x5z00J4c1242/5/d6EpEMdOnk/m+6tuk4/tcsqg==} + /caniuse-lite@1.0.30001597: + resolution: {integrity: sha512-7LjJvmQU6Sj7bL0j5b5WY/3n7utXUJvAe1lxhsHDbLmwX9mdL86Yjtr+5SRCyf8qME4M7pU2hswj0FpyBVCv9w==} dev: false /catharsis@0.9.0: @@ -4521,8 +4487,8 @@ packages: resolution: {integrity: sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==} dev: false - /chromium-bidi@0.5.10(devtools-protocol@0.0.1249869): - resolution: {integrity: sha512-4hsPE1VaLLM/sgNK/SlLbI24Ra7ZOuWAjA3rhw1lVCZ8ZiUgccS6cL5L/iqo4hjRcl5vwgYJ8xTtbXdulA9b6Q==} + /chromium-bidi@0.5.12(devtools-protocol@0.0.1249869): + resolution: {integrity: sha512-sZMgEBWKbupD0Q7lyFu8AWkrE+rs5ycE12jFkGwIgD/VS8lDPtelPlXM7LYaq4zrkZ/O2L3f4afHUHL0ICdKog==} peerDependencies: devtools-protocol: '*' dependencies: @@ -4639,12 +4605,13 @@ packages: resolution: {integrity: sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==} dev: false - /compress-commons@6.0.1: - resolution: {integrity: sha512-l7occIJn8YwlCEbWUCrG6gPms9qnJTCZSaznCa5HaV+yJMH4kM8BDc7q9NyoQuoiB2O6jKgTcTeY462qw6MyHw==} + /compress-commons@6.0.2: + resolution: {integrity: sha512-6FqVXeETqWPoGcfzrXb37E50NP0LXT8kAMu5ooZayhWWdgEY4lBEEcbQNXtkuKQsGduxiIcI4gOTsxTmuq/bSg==} engines: {node: '>= 14'} dependencies: crc-32: 1.2.2 crc32-stream: 6.0.0 + is-stream: 2.0.1 normalize-path: 3.0.0 readable-stream: 4.5.2 dev: false @@ -4797,8 +4764,8 @@ packages: which: 2.0.2 dev: false - /csv-parse@5.5.3: - resolution: {integrity: sha512-v0KW6C0qlZzoGjk6u5tLmVfyZxNgPGXZsWTXshpAgKVGmGXzaVWGdlCFxNx5iuzcXT/oJN1HHM9DZKwtAtYa+A==} + /csv-parse@5.5.5: + resolution: {integrity: sha512-erCk7tyU3yLWAhk6wvKxnyPtftuy/6Ak622gOO7BCJ05+TYffnPCJF905wmOQm+BpkX54OdAl8pveJwUdpnCXQ==} dev: false /custom-event@1.0.1: @@ -4814,7 +4781,7 @@ packages: resolution: {integrity: sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw==} engines: {node: '>=0.11'} dependencies: - '@babel/runtime': 7.23.9 + '@babel/runtime': 7.24.0 dev: false /date-format@4.0.14: @@ -5088,8 +5055,8 @@ packages: resolution: {integrity: sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow==} dev: false - /electron-to-chromium@1.4.681: - resolution: {integrity: sha512-1PpuqJUFWoXZ1E54m8bsLPVYwIVCRzvaL+n5cjigGga4z854abDnFRc+cTa2th4S79kyGqya/1xoR7h+Y5G5lg==} + /electron-to-chromium@1.4.700: + resolution: {integrity: sha512-40dqKQ3F7C8fbBEmjSeJ+qEHCKzPyrP9SkeIBZ3wSCUH9nhWStrDz030XlDzlhNhlul1Z0fz7TpDFnsIzo4Jtg==} dev: false /emitter-component@1.1.2: @@ -5126,7 +5093,7 @@ packages: dependencies: '@types/cookie': 0.4.1 '@types/cors': 2.8.17 - '@types/node': 20.10.8 + '@types/node': 18.19.22 accepts: 1.3.8 base64id: 2.0.0 cookie: 0.4.2 @@ -5159,8 +5126,8 @@ packages: is-arrayish: 0.2.1 dev: false - /es-abstract@1.22.4: - resolution: {integrity: sha512-vZYJlk2u6qHYxBOTjAeg7qUxHdNfih64Uu2J8QqWgXZ2cri0ZpJAkzDUK/q593+mvKwlxyaxr6F1Q+3LKoQRgg==} + /es-abstract@1.22.5: + resolution: {integrity: sha512-oW69R+4q2wG+Hc3KZePPZxOiisRIqfKBVo/HLx94QcJeWGU/8sZhCvc829rd1kS366vlJbzBfXf9yWwf0+Ko7w==} engines: {node: '>= 0.4'} dependencies: array-buffer-byte-length: 1.0.1 @@ -5179,7 +5146,7 @@ packages: has-property-descriptors: 1.0.2 has-proto: 1.0.3 has-symbols: 1.0.3 - hasown: 2.0.1 + hasown: 2.0.2 internal-slot: 1.0.7 is-array-buffer: 3.0.4 is-callable: 1.2.7 @@ -5193,7 +5160,7 @@ packages: object-keys: 1.1.1 object.assign: 4.1.5 regexp.prototype.flags: 1.5.2 - safe-array-concat: 1.1.0 + safe-array-concat: 1.1.2 safe-regex-test: 1.0.3 string.prototype.trim: 1.2.8 string.prototype.trimend: 1.0.7 @@ -5203,7 +5170,7 @@ packages: typed-array-byte-offset: 1.0.2 typed-array-length: 1.0.5 unbox-primitive: 1.0.2 - which-typed-array: 1.1.14 + which-typed-array: 1.1.15 dev: false /es-array-method-boxes-properly@1.0.0: @@ -5228,13 +5195,13 @@ packages: dependencies: get-intrinsic: 1.2.4 has-tostringtag: 1.0.2 - hasown: 2.0.1 + hasown: 2.0.2 dev: false /es-shim-unscopables@1.0.2: resolution: {integrity: sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw==} dependencies: - hasown: 2.0.1 + hasown: 2.0.2 dev: false /es-to-primitive@1.2.1: @@ -5351,8 +5318,8 @@ packages: resolve: 1.22.8 dev: false - /eslint-module-utils@2.8.0(eslint@8.57.0): - resolution: {integrity: sha512-aWajIYfsqCKRDgUfjEXNN/JlrzauMuSEy5sbd7WXbtW3EH6A6MpwEh42c7qD+MqQo9QMJ6fWLAeIJynx0g6OAw==} + /eslint-module-utils@2.8.1(eslint@8.57.0): + resolution: {integrity: sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q==} engines: {node: '>=4'} peerDependencies: eslint: '*' @@ -5389,8 +5356,8 @@ packages: doctrine: 2.1.0 eslint: 8.57.0 eslint-import-resolver-node: 0.3.9 - eslint-module-utils: 2.8.0(eslint@8.57.0) - hasown: 2.0.1 + eslint-module-utils: 2.8.1(eslint@8.57.0) + hasown: 2.0.2 is-core-module: 2.13.1 is-glob: 4.0.3 minimatch: 3.1.2 @@ -5657,13 +5624,13 @@ packages: engines: {node: '>=6'} dev: false - /express@4.18.2: - resolution: {integrity: sha512-5/PsL6iGPdfQ/lKM1UuielYgv3BUoJfz1aUwU9vHZ+J7gyvwdQXFEBIEIaxeGf0GIcreATNyBExtalisDbuMqQ==} + /express@4.18.3: + resolution: {integrity: sha512-6VyCijWQ+9O7WuVMTRBTl+cjNNIzD5cY5mQ1WM8r/LEkI2u8EYpOotESNwzNlyCn3g+dmjKYI6BmNneSr/FSRw==} engines: {node: '>= 0.10.0'} dependencies: accepts: 1.3.8 array-flatten: 1.1.1 - body-parser: 1.20.1 + body-parser: 1.20.2 content-disposition: 0.5.4 content-type: 1.0.5 cookie: 0.5.0 @@ -6003,7 +5970,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 functions-have-names: 1.2.3 dev: false @@ -6033,7 +6000,7 @@ packages: function-bind: 1.1.2 has-proto: 1.0.3 has-symbols: 1.0.3 - hasown: 2.0.1 + hasown: 2.0.2 dev: false /get-package-type@0.1.0: @@ -6075,8 +6042,8 @@ packages: get-intrinsic: 1.2.4 dev: false - /get-tsconfig@4.7.2: - resolution: {integrity: sha512-wuMsz4leaj5hbGgg4IvDU0bqJagpftG5l5cXIAvo8uZrqn0NJqwtfupTN00VnkQJPcIRrxYrm1Ue24btpCha2A==} + /get-tsconfig@4.7.3: + resolution: {integrity: sha512-ZvkrzoUA0PQZM6fy6+/Hce561s+faD1rsNwhnO5FelNjyy7EMGJ3Rz1AQ8GYDWjhRs/7dBLOEJvhK8MiEJOAFg==} dependencies: resolve-pkg-maps: 1.0.0 dev: false @@ -6085,7 +6052,7 @@ packages: resolution: {integrity: sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==} engines: {node: '>= 14'} dependencies: - basic-ftp: 5.0.4 + basic-ftp: 5.0.5 data-uri-to-buffer: 6.0.2 debug: 4.3.4(supports-color@8.1.1) fs-extra: 11.2.0 @@ -6253,8 +6220,8 @@ packages: type-fest: 0.8.1 dev: false - /hasown@2.0.1: - resolution: {integrity: sha512-1/th4MHjnwncwXsIW6QMzlvYL9kG5e/CpVvLRZe4XPa8TOUNbCELqmvhDmnkNsAjwaG4+I8gJJL0JBvTTLO9qA==} + /hasown@2.0.2: + resolution: {integrity: sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==} engines: {node: '>= 0.4'} dependencies: function-bind: 1.1.2 @@ -6463,8 +6430,8 @@ packages: engines: {node: '>= 0.4'} dependencies: es-errors: 1.3.0 - hasown: 2.0.1 - side-channel: 1.0.5 + hasown: 2.0.2 + side-channel: 1.0.6 dev: false /ip-address@9.0.5: @@ -6552,7 +6519,7 @@ packages: /is-core-module@2.13.1: resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==} dependencies: - hasown: 2.0.1 + hasown: 2.0.2 dev: false /is-date-object@1.0.5: @@ -6694,7 +6661,7 @@ packages: resolution: {integrity: sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw==} engines: {node: '>= 0.4'} dependencies: - which-typed-array: 1.1.14 + which-typed-array: 1.1.15 dev: false /is-typedarray@1.0.0: @@ -6761,7 +6728,7 @@ packages: resolution: {integrity: sha512-BXgQl9kf4WTCPCCpmFGoJkz/+uhvm7h7PFKUYxh7qarQd3ER33vHG//qaE8eN25l07YqZPpHXU9I09l/RD5aGQ==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.23.9 + '@babel/core': 7.24.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 6.3.1 @@ -6773,8 +6740,8 @@ packages: resolution: {integrity: sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==} engines: {node: '>=8'} dependencies: - '@babel/core': 7.23.9 - '@babel/parser': 7.23.9 + '@babel/core': 7.24.0 + '@babel/parser': 7.24.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 6.3.1 @@ -6786,8 +6753,8 @@ packages: resolution: {integrity: sha512-1WUsZ9R1lA0HtBSohTkm39WTPlNKSJ5iFk7UwqXkBLoHQT+hfqPsfsTDVuZdKGaBwn7din9bS7SsnoAr943hvw==} engines: {node: '>=10'} dependencies: - '@babel/core': 7.23.9 - '@babel/parser': 7.23.9 + '@babel/core': 7.24.0 + '@babel/parser': 7.24.0 '@istanbuljs/schema': 0.1.3 istanbul-lib-coverage: 3.2.2 semver: 7.6.0 @@ -6890,7 +6857,7 @@ packages: engines: {node: '>=12.0.0'} hasBin: true dependencies: - '@babel/parser': 7.23.9 + '@babel/parser': 7.24.0 '@jsdoc/salty': 0.2.7 '@types/markdown-it': 12.2.3 bluebird: 3.7.2 @@ -7075,11 +7042,11 @@ packages: is-wsl: 2.2.0 dev: false - /karma-firefox-launcher@2.1.2: - resolution: {integrity: sha512-VV9xDQU1QIboTrjtGVD4NCfzIH7n01ZXqy/qpBhnOeGVOkG5JYPEm8kuSd7psHE6WouZaQ9Ool92g8LFweSNMA==} + /karma-firefox-launcher@2.1.3: + resolution: {integrity: sha512-LMM2bseebLbYjODBOVt7TCPP9OI2vZIXCavIXhkO9m+10Uj5l7u/SKoeRmYx8FYHTVGZSpk6peX+3BMHC1WwNw==} dependencies: is-wsl: 2.2.0 - which: 2.0.2 + which: 3.0.1 dev: false /karma-ie-launcher@1.0.0(karma@6.4.3): @@ -7177,7 +7144,7 @@ packages: rimraf: 3.0.2 socket.io: 4.7.4 source-map: 0.6.1 - tmp: 0.2.1 + tmp: 0.2.3 ua-parser-js: 0.7.37 yargs: 16.2.0 transitivePeerDependencies: @@ -7192,7 +7159,7 @@ packages: requiresBuild: true dependencies: node-addon-api: 4.3.0 - prebuild-install: 7.1.1 + prebuild-install: 7.1.2 dev: false /keyv@4.5.4: @@ -7386,8 +7353,8 @@ packages: '@jridgewell/sourcemap-codec': 1.4.15 dev: false - /magic-string@0.30.7: - resolution: {integrity: sha512-8vBuFF/I/+OSLRmdf2wwFCJCz+nSn0m6DPvGH1fS/KiQoSaR+sETbov0eIk9KhEKy8CYqIkIAnbohxT/4H0kuA==} + /magic-string@0.30.8: + resolution: {integrity: sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ==} engines: {node: '>=12'} dependencies: '@jridgewell/sourcemap-codec': 1.4.15 @@ -7396,8 +7363,8 @@ packages: /magicast@0.3.3: resolution: {integrity: sha512-ZbrP1Qxnpoes8sz47AM0z08U+jW6TyRgZzcWy3Ma3vDhJttwMwAFDMMQFobwdBxByBD46JYmxRzeF7w2+wJEuw==} dependencies: - '@babel/parser': 7.23.9 - '@babel/types': 7.23.9 + '@babel/parser': 7.24.0 + '@babel/types': 7.24.0 source-map-js: 1.0.2 dev: false @@ -7566,6 +7533,12 @@ packages: engines: {node: '>=10'} dev: false + /minimatch@3.0.8: + resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==} + dependencies: + brace-expansion: 1.1.11 + dev: false + /minimatch@3.1.2: resolution: {integrity: sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==} dependencies: @@ -7906,7 +7879,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 dev: false /object.groupby@1.0.2: @@ -7915,7 +7888,7 @@ packages: array.prototype.filter: 1.0.3 call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 es-errors: 1.3.0 dev: false @@ -7925,7 +7898,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 dev: false /on-finished@2.3.0: @@ -8260,18 +8233,18 @@ packages: pathe: 1.1.2 dev: false - /playwright-core@1.41.2: - resolution: {integrity: sha512-VaTvwCA4Y8kxEe+kfm2+uUUw5Lubf38RxF7FpBxLPmGe5sdNkSg5e3ChEigaGrX7qdqT3pt2m/98LiyvU2x6CA==} + /playwright-core@1.42.1: + resolution: {integrity: sha512-mxz6zclokgrke9p1vtdy/COWBH+eOZgYUVVU34C73M+4j4HLlQJHtfcqiqqxpP0o8HhMkflvfbquLX5dg6wlfA==} engines: {node: '>=16'} hasBin: true dev: false - /playwright@1.41.2: - resolution: {integrity: sha512-v0bOa6H2GJChDL8pAeLa/LZC4feoAMbSQm1/jF/ySsWWoaNItvrMP7GEkvEEFyCTUYKMxjQKaTSg5up7nR6/8A==} + /playwright@1.42.1: + resolution: {integrity: sha512-PgwB03s2DZBcNRoW+1w9E+VkLBxweib6KTXM0M3tkiT4jVxKSi6PmVJ591J+0u10LUrgxB7dLRbiJqO5s2QPMg==} engines: {node: '>=16'} hasBin: true dependencies: - playwright-core: 1.41.2 + playwright-core: 1.42.1 optionalDependencies: fsevents: 2.3.2 dev: false @@ -8317,8 +8290,8 @@ packages: xtend: 4.0.2 dev: false - /prebuild-install@7.1.1: - resolution: {integrity: sha512-jAXscXWMcCK8GgCoHOfIr0ODh5ai8mj63L2nWrjuAgXE6tDyYGnx4/8o/rCgU+B4JSyZBKbeZqzhtwtC3ovxjw==} + /prebuild-install@7.1.2: + resolution: {integrity: sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==} engines: {node: '>=10'} hasBin: true dependencies: @@ -8419,7 +8392,7 @@ packages: minimist: 1.2.8 protobufjs: 7.2.6 semver: 7.6.0 - tmp: 0.2.1 + tmp: 0.2.3 uglify-js: 3.17.4 dev: false @@ -8438,7 +8411,7 @@ packages: '@protobufjs/path': 1.1.2 '@protobufjs/pool': 1.1.0 '@protobufjs/utf8': 1.1.0 - '@types/node': 20.10.8 + '@types/node': 18.19.22 long: 5.2.3 dev: false @@ -8486,12 +8459,12 @@ packages: engines: {node: '>=6'} dev: false - /puppeteer-core@22.3.0: - resolution: {integrity: sha512-Ho5Vdpdro05ZyCx/l5Hkc5vHiibKTaY37fIAD9NF9Gi/vDxkVTeX40U/mFnEmeoxyuYALvWCJfi7JTT82R6Tuw==} + /puppeteer-core@22.4.1: + resolution: {integrity: sha512-l9nf8NcirYOHdID12CIMWyy7dqcJCVtgVS+YAiJuUJHg8+9yjgPiG2PcNhojIEEpCkvw3FxvnyITVfKVmkWpjA==} engines: {node: '>=18'} dependencies: '@puppeteer/browsers': 2.1.0 - chromium-bidi: 0.5.10(devtools-protocol@0.0.1249869) + chromium-bidi: 0.5.12(devtools-protocol@0.0.1249869) cross-fetch: 4.0.0 debug: 4.3.4(supports-color@8.1.1) devtools-protocol: 0.0.1249869 @@ -8503,15 +8476,15 @@ packages: - utf-8-validate dev: false - /puppeteer@22.3.0(typescript@5.3.3): - resolution: {integrity: sha512-GC+tyjzYKjaNjhlDAuqRgDM+IOsqOG75Da4L28G4eULNLLxKDt+79x2OOSQ47HheJBgGq7ATSExNE6gayxP6cg==} + /puppeteer@22.4.1(typescript@5.3.3): + resolution: {integrity: sha512-Mag1wRLanzwS4yEUyrDRBUgsKlH3dpL6oAfVwNHG09oxd0+ySsatMvYj7HwjynWy/S+Hg+XHLgjyC/F6CsL/lg==} engines: {node: '>=18'} hasBin: true requiresBuild: true dependencies: '@puppeteer/browsers': 2.1.0 cosmiconfig: 9.0.0(typescript@5.3.3) - puppeteer-core: 22.3.0 + puppeteer-core: 22.4.1 transitivePeerDependencies: - bufferutil - encoding @@ -8529,7 +8502,7 @@ packages: resolution: {integrity: sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==} engines: {node: '>=0.6'} dependencies: - side-channel: 1.0.5 + side-channel: 1.0.6 dev: false /querystringify@2.2.0: @@ -8542,7 +8515,6 @@ packages: /queue-tick@1.0.1: resolution: {integrity: sha512-kJt5qhMxoszgU/62PLP1CJytzd2NKetjSRnyuj31fDd3Rlcz3fzlFdFLD1SItunPwyqEOkca6GbV612BWfaBag==} - requiresBuild: true dev: false /randombytes@2.1.0: @@ -8556,16 +8528,6 @@ packages: engines: {node: '>= 0.6'} dev: false - /raw-body@2.5.1: - resolution: {integrity: sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==} - engines: {node: '>= 0.8'} - dependencies: - bytes: 3.1.2 - http-errors: 2.0.0 - iconv-lite: 0.4.24 - unpipe: 1.0.0 - dev: false - /raw-body@2.5.2: resolution: {integrity: sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA==} engines: {node: '>= 0.8'} @@ -8799,16 +8761,16 @@ packages: glob: 10.3.10 dev: false - /rollup-plugin-polyfill-node@0.13.0(rollup@4.12.0): + /rollup-plugin-polyfill-node@0.13.0(rollup@4.12.1): resolution: {integrity: sha512-FYEvpCaD5jGtyBuBFcQImEGmTxDTPbiHjJdrYIp+mFIwgXiXabxvKUK7ZT9P31ozu2Tqm9llYQMRWsfvTMTAOw==} peerDependencies: rollup: ^1.20.0 || ^2.0.0 || ^3.0.0 || ^4.0.0 dependencies: - '@rollup/plugin-inject': 5.0.5(rollup@4.12.0) - rollup: 4.12.0 + '@rollup/plugin-inject': 5.0.5(rollup@4.12.1) + rollup: 4.12.1 dev: false - /rollup-plugin-visualizer@5.12.0(rollup@4.12.0): + /rollup-plugin-visualizer@5.12.0(rollup@4.12.1): resolution: {integrity: sha512-8/NU9jXcHRs7Nnj07PF2o4gjxmm9lXIrZ8r175bT9dK8qoLlvKTwRMArRCMgpMGlq8CTLugRvEmyMeMXIU2pNQ==} engines: {node: '>=14'} hasBin: true @@ -8820,31 +8782,31 @@ packages: dependencies: open: 8.4.2 picomatch: 2.3.1 - rollup: 4.12.0 + rollup: 4.12.1 source-map: 0.7.4 yargs: 17.7.2 dev: false - /rollup@4.12.0: - resolution: {integrity: sha512-wz66wn4t1OHIJw3+XU7mJJQV/2NAfw5OAk6G6Hoo3zcvz/XOfQ52Vgi+AN4Uxoxi0KBBwk2g8zPrTDA4btSB/Q==} + /rollup@4.12.1: + resolution: {integrity: sha512-ggqQKvx/PsB0FaWXhIvVkSWh7a/PCLQAsMjBc+nA2M8Rv2/HG0X6zvixAB7KyZBRtifBUhy5k8voQX/mRnABPg==} engines: {node: '>=18.0.0', npm: '>=8.0.0'} hasBin: true dependencies: '@types/estree': 1.0.5 optionalDependencies: - '@rollup/rollup-android-arm-eabi': 4.12.0 - '@rollup/rollup-android-arm64': 4.12.0 - '@rollup/rollup-darwin-arm64': 4.12.0 - '@rollup/rollup-darwin-x64': 4.12.0 - '@rollup/rollup-linux-arm-gnueabihf': 4.12.0 - '@rollup/rollup-linux-arm64-gnu': 4.12.0 - '@rollup/rollup-linux-arm64-musl': 4.12.0 - '@rollup/rollup-linux-riscv64-gnu': 4.12.0 - '@rollup/rollup-linux-x64-gnu': 4.12.0 - '@rollup/rollup-linux-x64-musl': 4.12.0 - '@rollup/rollup-win32-arm64-msvc': 4.12.0 - '@rollup/rollup-win32-ia32-msvc': 4.12.0 - '@rollup/rollup-win32-x64-msvc': 4.12.0 + '@rollup/rollup-android-arm-eabi': 4.12.1 + '@rollup/rollup-android-arm64': 4.12.1 + '@rollup/rollup-darwin-arm64': 4.12.1 + '@rollup/rollup-darwin-x64': 4.12.1 + '@rollup/rollup-linux-arm-gnueabihf': 4.12.1 + '@rollup/rollup-linux-arm64-gnu': 4.12.1 + '@rollup/rollup-linux-arm64-musl': 4.12.1 + '@rollup/rollup-linux-riscv64-gnu': 4.12.1 + '@rollup/rollup-linux-x64-gnu': 4.12.1 + '@rollup/rollup-linux-x64-musl': 4.12.1 + '@rollup/rollup-win32-arm64-msvc': 4.12.1 + '@rollup/rollup-win32-ia32-msvc': 4.12.1 + '@rollup/rollup-win32-x64-msvc': 4.12.1 fsevents: 2.3.3 dev: false @@ -8865,8 +8827,8 @@ packages: tslib: 2.6.2 dev: false - /safe-array-concat@1.1.0: - resolution: {integrity: sha512-ZdQ0Jeb9Ofti4hbt5lX3T2JcAamT9hfzYU1MNB+z/jaEbB6wfFfPIR/zEORmZqobkCCJhSjodobH6WHNmJ97dg==} + /safe-array-concat@1.1.2: + resolution: {integrity: sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q==} engines: {node: '>=0.4'} dependencies: call-bind: 1.0.7 @@ -8972,8 +8934,8 @@ packages: resolution: {integrity: sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==} dev: false - /set-function-length@1.2.1: - resolution: {integrity: sha512-j4t6ccc+VsKwYHso+kElc5neZpjtq9EnRICFZtWyBsLojhmeF/ZBd/elqm22WJh/BziDe/SBiOeAt0m2mfLD0g==} + /set-function-length@1.2.2: + resolution: {integrity: sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg==} engines: {node: '>= 0.4'} dependencies: define-data-property: 1.1.4 @@ -9018,8 +8980,8 @@ packages: resolution: {integrity: sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==} dev: false - /side-channel@1.0.5: - resolution: {integrity: sha512-QcgiIWV4WV7qWExbN5llt6frQB/lBven9pqliLXfGPB+K9ZYXxDozp0wLkHS24kWCm+6YXH/f0HhnObZnZOBnQ==} + /side-channel@1.0.6: + resolution: {integrity: sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA==} engines: {node: '>= 0.4'} dependencies: call-bind: 1.0.7 @@ -9068,7 +9030,7 @@ packages: resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==} engines: {node: '>= 10'} dependencies: - '@polka/url': 1.0.0-next.24 + '@polka/url': 1.0.0-next.25 mrmime: 2.0.0 totalist: 3.0.1 dev: false @@ -9232,7 +9194,7 @@ packages: fast-fifo: 1.3.2 queue-tick: 1.0.1 optionalDependencies: - bare-events: 2.2.0 + bare-events: 2.2.1 dev: false /string-argv@0.3.2: @@ -9264,7 +9226,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 dev: false /string.prototype.trimend@1.0.7: @@ -9272,7 +9234,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 dev: false /string.prototype.trimstart@1.0.7: @@ -9280,7 +9242,7 @@ packages: dependencies: call-bind: 1.0.7 define-properties: 1.2.1 - es-abstract: 1.22.4 + es-abstract: 1.22.5 dev: false /string_decoder@0.10.31: @@ -9423,7 +9385,7 @@ packages: pump: 3.0.0 tar-stream: 3.1.7 optionalDependencies: - bare-fs: 2.2.0 + bare-fs: 2.2.1 bare-path: 2.1.0 dev: false @@ -9504,11 +9466,9 @@ packages: os-tmpdir: 1.0.2 dev: false - /tmp@0.2.1: - resolution: {integrity: sha512-76SUhtfqR2Ijn+xllcI5P1oyannHNHByD80W1q447gU3mp9G9PSpGdWmjUOHRDPiHYacIk66W7ubDTuPF3BEtQ==} - engines: {node: '>=8.17.0'} - dependencies: - rimraf: 3.0.2 + /tmp@0.2.3: + resolution: {integrity: sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w==} + engines: {node: '>=14.14'} dev: false /to-buffer@1.1.1: @@ -9563,7 +9523,7 @@ packages: code-block-writer: 12.0.0 dev: false - /ts-node@10.9.2(@types/node@16.18.83)(typescript@5.3.3): + /ts-node@10.9.2(@types/node@16.18.87)(typescript@5.3.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9582,7 +9542,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 16.18.83 + '@types/node': 16.18.87 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9594,7 +9554,7 @@ packages: yn: 3.1.1 dev: false - /ts-node@10.9.2(@types/node@18.19.18)(typescript@5.2.2): + /ts-node@10.9.2(@types/node@18.19.22)(typescript@5.2.2): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9613,7 +9573,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.18 + '@types/node': 18.19.22 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9625,7 +9585,7 @@ packages: yn: 3.1.1 dev: false - /ts-node@10.9.2(@types/node@18.19.18)(typescript@5.3.3): + /ts-node@10.9.2(@types/node@18.19.22)(typescript@5.3.3): resolution: {integrity: sha512-f0FFpIdcHgn8zcPSbf1dRevwt047YMnaiJM3u2w2RewrB+fob/zePZcrOyQoLMMO7aBIddLcQIEK5dYjkLnGrQ==} hasBin: true peerDependencies: @@ -9644,7 +9604,7 @@ packages: '@tsconfig/node12': 1.0.11 '@tsconfig/node14': 1.0.3 '@tsconfig/node16': 1.0.4 - '@types/node': 18.19.18 + '@types/node': 18.19.22 acorn: 8.11.3 acorn-walk: 8.3.2 arg: 4.1.3 @@ -9696,8 +9656,8 @@ packages: strip-bom: 3.0.0 dev: false - /tshy@1.11.1: - resolution: {integrity: sha512-AzATR8weBaUW46Nh4B1k5cfxVuADKJTXe95xHh7BzcI1RjQQy6HeUXQDY+erGEGTLpiv6N6xMFmtEsMMc7x40Q==} + /tshy@1.12.0: + resolution: {integrity: sha512-WooNSTc+uyjLseTdzUFa4Lx3KYMcwxdrJMsWacl39BlfKZKhr30gLjAJkTQWHFkmAO+dj0L4P2jxiIrOo81V3w==} engines: {node: 16 >=16.17 || 18 >=18.15.0 || >=20.6.1} hasBin: true dependencies: @@ -9737,7 +9697,7 @@ packages: hasBin: true dependencies: esbuild: 0.19.12 - get-tsconfig: 4.7.2 + get-tsconfig: 4.7.3 optionalDependencies: fsevents: 2.3.3 dev: false @@ -9911,11 +9871,9 @@ packages: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} dev: false - /undici@6.6.2: - resolution: {integrity: sha512-vSqvUE5skSxQJ5sztTZ/CdeJb1Wq0Hf44hlYMciqHghvz+K88U0l7D6u1VsndoFgskDcnU+nG3gYmMzJVzd9Qg==} + /undici@6.7.1: + resolution: {integrity: sha512-+Wtb9bAQw6HYWzCnxrPTMVEV3Q1QjYanI0E4q02ehReMuquQdLTEFEYbfs7hcImVYKcQkWSwT6buEmSVIiDDtQ==} engines: {node: '>=18.0'} - dependencies: - '@fastify/busboy': 2.1.0 dev: false /unist-util-stringify-position@2.0.3: @@ -9992,7 +9950,7 @@ packages: is-arguments: 1.1.1 is-generator-function: 1.0.10 is-typed-array: 1.1.13 - which-typed-array: 1.1.14 + which-typed-array: 1.1.15 dev: false /utils-merge@1.0.1: @@ -10018,7 +9976,7 @@ packages: resolution: {integrity: sha512-/EH/sDgxU2eGxajKdwLCDmQ4FWq+kpi3uCmBGpw1xJtnAxEjlD8j8PEiGWpCIMIs3ciNAgH0d3TTJiUkYzyZjA==} engines: {node: '>=10.12.0'} dependencies: - '@jridgewell/trace-mapping': 0.3.23 + '@jridgewell/trace-mapping': 0.3.25 '@types/istanbul-lib-coverage': 2.0.6 convert-source-map: 2.0.0 dev: false @@ -10033,7 +9991,7 @@ packages: engines: {node: '>= 0.8'} dev: false - /vite-node@1.3.1(@types/node@18.19.18): + /vite-node@1.3.1(@types/node@18.19.22): resolution: {integrity: sha512-azbRrqRxlWTJEVbzInZCTchx0X69M/XPTCz4H+TLvlTcR/xH/3hkRqhOakT41fMJCMzXTu4UvegkZiEoJAWvng==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -10042,7 +10000,7 @@ packages: debug: 4.3.4(supports-color@8.1.1) pathe: 1.1.2 picocolors: 1.0.0 - vite: 5.1.4(@types/node@18.19.18) + vite: 5.1.6(@types/node@18.19.22) transitivePeerDependencies: - '@types/node' - less @@ -10054,8 +10012,8 @@ packages: - terser dev: false - /vite@5.1.4(@types/node@18.19.18): - resolution: {integrity: sha512-n+MPqzq+d9nMVTKyewqw6kSt+R3CkvF9QAKY8obiQn8g1fwTscKxyfaYnC632HtBXAQGc1Yjomphwn1dtwGAHg==} + /vite@5.1.6(@types/node@18.19.22): + resolution: {integrity: sha512-yYIAZs9nVfRJ/AiOLCA91zzhjsHUgMjB+EigzFb6W2XTLO8JixBCKCjvhKZaye+NKYHCrkv3Oh50dH9EdLU2RA==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true peerDependencies: @@ -10082,15 +10040,15 @@ packages: terser: optional: true dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 esbuild: 0.19.12 postcss: 8.4.35 - rollup: 4.12.0 + rollup: 4.12.1 optionalDependencies: fsevents: 2.3.3 dev: false - /vitest@1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1): + /vitest@1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1): resolution: {integrity: sha512-/1QJqXs8YbCrfv/GPQ05wAZf2eakUPLPa18vkJAKE7RXOKfVHqMZZ1WlTjiwl6Gcn65M5vpNUB6EFLnEdRdEXQ==} engines: {node: ^18.0.0 || >=20.0.0} hasBin: true @@ -10115,8 +10073,8 @@ packages: jsdom: optional: true dependencies: - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/expect': 1.3.1 '@vitest/runner': 1.3.1 '@vitest/snapshot': 1.3.1 @@ -10127,15 +10085,15 @@ packages: debug: 4.3.4(supports-color@8.1.1) execa: 8.0.1 local-pkg: 0.5.0 - magic-string: 0.30.7 + magic-string: 0.30.8 pathe: 1.1.2 picocolors: 1.0.0 std-env: 3.7.0 strip-literal: 2.0.0 tinybench: 2.6.0 tinypool: 0.8.2 - vite: 5.1.4(@types/node@18.19.18) - vite-node: 1.3.1(@types/node@18.19.18) + vite: 5.1.6(@types/node@18.19.22) + vite-node: 1.3.1(@types/node@18.19.22) why-is-node-running: 2.2.2 transitivePeerDependencies: - less @@ -10187,8 +10145,8 @@ packages: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} dev: false - /which-typed-array@1.1.14: - resolution: {integrity: sha512-VnXFiIW8yNn9kIHN88xvZ4yOWchftKDsRJ8fEPacX/wl1lOvBrhsJ/OeJCXq7B0AaijRuqgzSKalJoPk+D8MPg==} + /which-typed-array@1.1.15: + resolution: {integrity: sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA==} engines: {node: '>= 0.4'} dependencies: available-typed-arrays: 1.0.7 @@ -10213,6 +10171,14 @@ packages: isexe: 2.0.0 dev: false + /which@3.0.1: + resolution: {integrity: sha512-XA1b62dzQzLfaEOSQFTCOd5KFf/1VSzZo7/7TUjnya6u0vGGKzU96UQBZTAThCb2j4/xjBAyii1OhRLJEivHvg==} + engines: {node: ^14.17.0 || ^16.13.0 || >=18.0.0} + hasBin: true + dependencies: + isexe: 2.0.0 + dev: false + /why-is-node-running@2.2.2: resolution: {integrity: sha512-6tSwToZxTOcotxHeA+qGCq1mVzKR3CwcJGmVcY+QE8SHy6TnpFnh8PAvPNHYr7EcuVeG0QSMxtYCuO1ta/G/oA==} engines: {node: '>=8'} @@ -10359,8 +10325,8 @@ packages: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} dev: false - /yaml@2.4.0: - resolution: {integrity: sha512-j9iR8g+/t0lArF4V6NE/QCfT+CO7iLqrXAHZbJdo+LfjqP1vR8Fg5bSiaq6Q2lOD1AUEVrEVIgABvBFYojJVYQ==} + /yaml@2.4.1: + resolution: {integrity: sha512-pIXzoImaqmfOrL7teGUBt/T7ZDnyeGBWyXQBvOVhLkWLN37GXv8NMLK406UY6dS51JfcQHsmcW5cJ441bHg6Lg==} engines: {node: '>= 14'} hasBin: true dev: false @@ -10475,12 +10441,12 @@ packages: commander: 9.5.0 dev: false - /zip-stream@6.0.0: - resolution: {integrity: sha512-X0WFquRRDtL9HR9hc1OrabOP/VKJEX7gAr2geayt3b7dLgXgSXI6ucC4CphLQP/aQt2GyHIYgmXxtC+dVdghAQ==} + /zip-stream@6.0.1: + resolution: {integrity: sha512-zK7YHHz4ZXpW89AHXUPbQVGKI7uvkd3hzusTdotCg1UxyaVtg0zFJSTfW/Dq5f7OBBVnq6cZIaC8Ti4hb6dtCA==} engines: {node: '>= 14'} dependencies: - archiver-utils: 5.0.1 - compress-commons: 6.0.1 + archiver-utils: 5.0.2 + compress-commons: 6.0.2 readable-stream: 4.5.2 dev: false @@ -10489,18 +10455,18 @@ packages: name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -10523,10 +10489,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10549,7 +10515,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10567,15 +10533,15 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 - csv-parse: 5.5.3 + csv-parse: 5.5.5 dotenv: 16.4.5 eslint: 8.57.0 esm: 3.2.25 @@ -10593,7 +10559,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10611,10 +10577,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10626,7 +10592,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -10636,7 +10602,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10655,10 +10621,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10670,7 +10636,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -10680,7 +10646,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10698,10 +10664,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -10723,7 +10689,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10742,11 +10708,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.0) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.1) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10768,9 +10734,9 @@ packages: mocha: 10.3.0 prettier: 3.2.5 rimraf: 5.0.5 - rollup: 4.12.0 + rollup: 4.12.1 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10789,11 +10755,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10817,7 +10783,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -10836,12 +10802,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/decompress': 4.2.7 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10865,7 +10831,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10882,9 +10848,9 @@ packages: name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 dotenv: 16.4.5 @@ -10893,7 +10859,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10908,10 +10874,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -10933,7 +10899,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10951,10 +10917,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -10976,7 +10942,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -10995,11 +10961,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -11022,7 +10988,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11040,10 +11006,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -11065,7 +11031,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11098,7 +11064,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -11125,13 +11091,13 @@ packages: name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.0) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.1) '@types/chai': 4.3.12 '@types/inquirer': 8.2.10 '@types/mocha': 10.0.6 '@types/mustache': 4.2.5 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/yargs': 17.0.32 '@types/yargs-parser': 21.0.3 @@ -11148,9 +11114,9 @@ packages: mustache: 4.2.0 prettier: 3.2.5 rimraf: 5.0.5 - rollup: 4.12.0 + rollup: 4.12.1 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -11169,12 +11135,12 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mime': 3.0.4 '@types/mocha': 10.0.6 '@types/mustache': 4.2.5 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/yargs': 17.0.32 '@types/yargs-parser': 21.0.3 @@ -11199,7 +11165,7 @@ packages: prettier: 3.2.5 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -11220,17 +11186,15 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 - cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - esm: 3.2.25 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -11244,11 +11208,9 @@ packages: nock: 12.0.3 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 tsx: 4.7.1 typescript: 5.3.3 - uglify-js: 3.17.4 transitivePeerDependencies: - bufferutil - debug @@ -11262,17 +11224,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11289,16 +11251,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11315,16 +11277,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11341,10 +11303,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11352,7 +11314,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11369,17 +11331,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11396,16 +11358,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11422,17 +11384,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11449,17 +11411,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11475,16 +11437,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11501,10 +11463,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11512,7 +11474,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11529,10 +11491,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11540,7 +11502,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11557,17 +11519,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11583,10 +11545,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -11608,7 +11570,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -11627,10 +11589,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11638,7 +11600,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11654,16 +11616,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11679,17 +11641,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11706,17 +11668,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11732,17 +11694,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11759,17 +11721,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11786,17 +11748,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11813,16 +11775,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11838,16 +11800,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11864,17 +11826,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11891,10 +11853,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11902,7 +11864,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11919,10 +11881,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -11930,7 +11892,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11947,16 +11909,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11973,16 +11935,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -11999,17 +11961,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12026,17 +11988,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12052,16 +12014,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12077,16 +12039,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12104,10 +12066,10 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/arm-cosmosdb': 16.0.0-beta.6 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12115,7 +12077,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12132,17 +12094,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12158,17 +12120,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12184,16 +12146,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12209,16 +12171,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12235,10 +12197,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12246,7 +12208,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12264,10 +12226,10 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12275,7 +12237,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12292,17 +12254,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12319,10 +12281,10 @@ packages: dependencies: '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -12344,7 +12306,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -12363,17 +12325,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12390,10 +12352,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12401,7 +12363,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12418,17 +12380,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12444,17 +12406,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12471,17 +12433,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12498,10 +12460,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12509,7 +12471,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12526,10 +12488,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12537,7 +12499,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12553,10 +12515,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -12578,7 +12540,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -12597,10 +12559,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12608,7 +12570,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12625,10 +12587,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12636,7 +12598,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12653,17 +12615,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12680,17 +12642,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12707,16 +12669,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12733,10 +12695,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12744,7 +12706,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12761,17 +12723,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12788,17 +12750,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12815,16 +12777,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12841,10 +12803,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12852,7 +12814,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12869,16 +12831,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12895,10 +12857,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12906,7 +12868,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12923,10 +12885,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -12934,7 +12896,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12951,16 +12913,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -12977,16 +12939,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13003,10 +12965,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13014,7 +12976,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13031,17 +12993,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13058,16 +13020,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13083,17 +13045,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13110,17 +13072,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13136,17 +13098,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13163,17 +13125,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13190,10 +13152,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13201,7 +13163,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13218,16 +13180,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13244,16 +13206,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13270,17 +13232,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13297,17 +13259,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13324,16 +13286,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13350,17 +13312,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13377,16 +13339,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13403,17 +13365,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13429,17 +13391,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13456,17 +13418,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13483,10 +13445,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13494,7 +13456,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13511,10 +13473,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13522,7 +13484,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13539,17 +13501,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13567,17 +13529,17 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13594,17 +13556,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13620,16 +13582,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13645,17 +13607,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13672,17 +13634,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13699,17 +13661,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13726,16 +13688,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13752,10 +13714,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13763,7 +13725,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13780,17 +13742,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13807,17 +13769,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13834,16 +13796,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13860,10 +13822,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13871,7 +13833,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13888,10 +13850,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13899,7 +13861,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13915,17 +13877,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13942,10 +13904,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -13953,7 +13915,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13970,16 +13932,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -13996,10 +13958,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14007,7 +13969,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14024,10 +13986,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14035,7 +13997,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14052,16 +14014,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14077,17 +14039,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14104,17 +14066,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14131,17 +14093,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14158,17 +14120,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14185,10 +14147,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14196,7 +14158,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14213,17 +14175,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14240,17 +14202,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14267,17 +14229,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14294,10 +14256,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14305,7 +14267,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14321,16 +14283,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14347,17 +14309,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14373,17 +14335,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14399,16 +14361,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14425,17 +14387,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14452,16 +14414,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14478,16 +14440,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14503,17 +14465,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14529,10 +14491,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14553,17 +14515,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14580,17 +14542,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14607,16 +14569,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14632,17 +14594,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14658,17 +14620,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14685,16 +14647,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14710,17 +14672,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14737,17 +14699,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14763,17 +14725,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14789,16 +14751,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14815,10 +14777,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@16.18.83) + '@microsoft/api-extractor': 7.42.3(@types/node@16.18.87) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 16.18.83 + '@types/node': 16.18.87 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14826,7 +14788,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@16.18.83)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@16.18.87)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14842,17 +14804,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14869,17 +14831,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14895,17 +14857,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14922,17 +14884,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14949,16 +14911,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -14975,10 +14937,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -14986,7 +14948,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15003,10 +14965,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15014,7 +14976,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15031,17 +14993,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15057,10 +15019,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -15082,7 +15044,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -15101,10 +15063,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15112,7 +15074,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15129,17 +15091,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15156,16 +15118,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15182,17 +15144,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15209,10 +15171,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15220,7 +15182,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15237,16 +15199,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15263,16 +15225,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15289,17 +15251,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15316,16 +15278,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15342,17 +15304,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15369,10 +15331,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15380,7 +15342,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15396,16 +15358,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15422,10 +15384,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15433,7 +15395,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15449,17 +15411,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15475,17 +15437,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15502,17 +15464,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15528,17 +15490,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15555,10 +15517,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15566,7 +15528,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15583,16 +15545,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15609,17 +15571,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15636,16 +15598,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15662,17 +15624,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15689,16 +15651,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15715,17 +15677,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15742,17 +15704,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15769,10 +15731,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15780,7 +15742,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15797,10 +15759,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15808,7 +15770,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15825,17 +15787,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15852,10 +15814,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15863,7 +15825,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15880,17 +15842,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15908,17 +15870,17 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/arm-network': 32.2.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15935,10 +15897,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -15946,7 +15908,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15963,17 +15925,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -15990,17 +15952,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16017,17 +15979,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16043,16 +16005,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16068,17 +16030,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16095,17 +16057,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16122,17 +16084,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16148,17 +16110,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16175,17 +16137,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16202,17 +16164,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16229,17 +16191,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16256,17 +16218,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16283,17 +16245,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16310,17 +16272,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16337,17 +16299,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16364,10 +16326,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16375,7 +16337,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16391,16 +16353,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16417,17 +16379,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16444,10 +16406,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16455,7 +16417,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16471,10 +16433,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -16496,7 +16458,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -16514,17 +16476,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16541,17 +16503,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16567,17 +16529,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16594,10 +16556,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16605,7 +16567,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16622,17 +16584,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16649,17 +16611,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16676,10 +16638,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16687,7 +16649,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16704,10 +16666,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16715,7 +16677,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16732,17 +16694,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16759,17 +16721,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16786,17 +16748,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16813,10 +16775,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16824,7 +16786,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16840,17 +16802,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16867,17 +16829,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16894,16 +16856,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16920,16 +16882,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16946,16 +16908,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16972,10 +16934,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -16983,7 +16945,7 @@ packages: mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -16999,17 +16961,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17026,16 +16988,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17052,17 +17014,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17079,17 +17041,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17105,16 +17067,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17131,17 +17093,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17157,17 +17119,17 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17184,16 +17146,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17210,17 +17172,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17237,17 +17199,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17264,17 +17226,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17291,16 +17253,16 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17317,17 +17279,17 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17343,16 +17305,16 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 mkdirp: 1.0.4 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -17368,11 +17330,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 buffer: 6.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17399,7 +17361,7 @@ packages: rimraf: 5.0.5 safe-buffer: 5.2.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17419,10 +17381,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17443,7 +17405,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17461,10 +17423,10 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17487,7 +17449,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17507,10 +17469,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/communication-signaling': 1.0.0-beta.22 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17535,7 +17497,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17556,11 +17518,11 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17584,7 +17546,7 @@ packages: mockdate: 3.0.5 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17602,10 +17564,10 @@ packages: name: '@rush-temp/communication-email' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -17625,7 +17587,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 1.14.1 typescript: 5.3.3 transitivePeerDependencies: @@ -17645,10 +17607,10 @@ packages: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 '@azure/msal-node': 1.18.4 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17671,7 +17633,7 @@ packages: process: 0.11.10 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17689,10 +17651,10 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17717,7 +17679,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -17737,10 +17699,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -17751,7 +17713,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -17761,7 +17723,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17779,10 +17741,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 3.4.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -17794,7 +17756,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -17804,7 +17766,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.2.2) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.2.2) tslib: 2.6.2 typescript: 5.2.2 transitivePeerDependencies: @@ -17823,10 +17785,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17850,7 +17812,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17869,10 +17831,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17894,7 +17856,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -17913,10 +17875,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -17939,7 +17901,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -17957,10 +17919,10 @@ packages: name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -17974,7 +17936,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 1.14.1 typescript: 5.3.3 transitivePeerDependencies: @@ -17993,10 +17955,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18019,7 +17981,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -18039,10 +18001,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18064,7 +18026,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18084,10 +18046,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18110,7 +18072,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -18130,10 +18092,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18154,7 +18116,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18172,10 +18134,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18185,7 +18147,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18201,11 +18163,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -18225,7 +18187,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18243,11 +18205,11 @@ packages: name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -18262,12 +18224,12 @@ packages: karma-mocha: 2.0.1 mocha: 10.3.0 process: 0.11.10 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rhea: 3.0.2 rhea-promise: 3.0.1 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18286,18 +18248,18 @@ packages: name: '@rush-temp/core-auth' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18319,18 +18281,18 @@ packages: name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18352,18 +18314,18 @@ packages: name: '@rush-temp/core-client' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18385,17 +18347,17 @@ packages: name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18417,18 +18379,18 @@ packages: name: '@rush-temp/core-lro' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18450,18 +18412,18 @@ packages: name: '@rush-temp/core-paging' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18483,20 +18445,20 @@ packages: name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 http-proxy-agent: 7.0.0 https-proxy-agent: 7.0.2 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18518,19 +18480,19 @@ packages: name: '@rush-temp/core-sse' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) dotenv: 16.4.5 eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.2.2 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18552,18 +18514,18 @@ packages: name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18585,18 +18547,18 @@ packages: name: '@rush-temp/core-util' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18618,20 +18580,20 @@ packages: name: '@rush-temp/core-xml' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 '@types/trusted-types': 2.0.7 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) eslint: 8.57.0 fast-xml-parser: 4.3.5 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -18655,12 +18617,12 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@sinonjs/fake-timers': 11.2.2 '@types/chai': 4.3.12 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/priorityqueuejs': 1.0.4 '@types/semaphore': 1.1.4 '@types/sinon': 17.0.3 @@ -18685,7 +18647,7 @@ packages: semaphore: 1.1.0 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 universal-user-agent: 6.0.1 @@ -18702,10 +18664,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -18726,7 +18688,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18745,10 +18707,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -18771,7 +18733,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18790,12 +18752,12 @@ packages: dependencies: '@_ts/max': /typescript@5.4.2 '@_ts/min': /typescript@4.2.4 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@rollup/plugin-commonjs': 25.0.7(rollup@4.12.0) - '@rollup/plugin-inject': 5.0.5(rollup@4.12.0) - '@rollup/plugin-json': 6.1.0(rollup@4.12.0) - '@rollup/plugin-multi-entry': 6.0.1(rollup@4.12.0) - '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.0) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@rollup/plugin-commonjs': 25.0.7(rollup@4.12.1) + '@rollup/plugin-inject': 5.0.5(rollup@4.12.1) + '@rollup/plugin-json': 6.1.0(rollup@4.12.1) + '@rollup/plugin-multi-entry': 6.0.1(rollup@4.12.1) + '@rollup/plugin-node-resolve': 15.2.3(rollup@4.12.1) '@types/archiver': 6.0.2 '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 @@ -18803,9 +18765,9 @@ packages: '@types/fs-extra': 11.0.4 '@types/minimist': 1.2.5 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/semver': 7.5.8 - archiver: 7.0.0 + archiver: 7.0.1 autorest: 3.7.1 builtin-modules: 3.3.0 c8: 8.0.1 @@ -18825,16 +18787,16 @@ packages: mocha: 10.3.0 prettier: 3.2.5 rimraf: 5.0.5 - rollup: 4.12.0 - rollup-plugin-polyfill-node: 0.13.0(rollup@4.12.0) - rollup-plugin-visualizer: 5.12.0(rollup@4.12.0) + rollup: 4.12.1 + rollup-plugin-polyfill-node: 0.13.0(rollup@4.12.1) + rollup-plugin-visualizer: 5.12.0(rollup@4.12.1) semver: 7.6.0 strip-json-comments: 5.0.1 ts-morph: 21.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 - yaml: 2.4.0 + yaml: 2.4.1 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -18851,10 +18813,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -18866,7 +18828,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -18876,7 +18838,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18894,10 +18856,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -18919,7 +18881,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -18962,7 +18924,7 @@ packages: '@types/estree': 1.0.5 '@types/json-schema': 7.0.15 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@typescript-eslint/eslint-plugin': 5.57.1(@typescript-eslint/parser@5.57.1)(eslint@8.57.0)(typescript@5.3.3) '@typescript-eslint/experimental-utils': 5.57.1(eslint@8.57.0)(typescript@5.3.3) '@typescript-eslint/parser': 5.57.1(eslint@8.57.0)(typescript@5.3.3) @@ -18981,7 +18943,7 @@ packages: prettier: 3.2.5 rimraf: 3.0.2 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -18997,14 +18959,14 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/async-lock': 1.4.2 '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/chai-string': 1.4.5 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -19034,11 +18996,11 @@ packages: mocha: 10.3.0 moment: 2.30.1 process: 0.11.10 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rhea-promise: 3.0.1 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 ws: 8.16.0 @@ -19056,11 +19018,11 @@ packages: name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -19069,7 +19031,6 @@ packages: cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - esm: 3.2.25 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -19083,7 +19044,6 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 tsx: 4.7.1 typescript: 5.3.3 @@ -19102,13 +19062,13 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/chai-string': 1.4.5 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -19132,7 +19092,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19151,13 +19111,13 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/chai-string': 1.4.5 '@types/debug': 4.1.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -19180,7 +19140,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19199,10 +19159,10 @@ packages: dependencies: '@azure/functions': 3.5.1 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -19223,7 +19183,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19243,10 +19203,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19268,7 +19228,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19287,10 +19247,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19312,7 +19272,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19331,10 +19291,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19346,7 +19306,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -19356,7 +19316,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19377,15 +19337,15 @@ packages: '@azure/identity': 4.0.1 '@azure/msal-node': 2.6.4 '@azure/msal-node-extensions': 1.0.12 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/wtfnode': 0.7.2 cross-env: 7.0.3 eslint: 8.57.0 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 tslib: 2.6.2 @@ -19405,12 +19365,12 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/msal-node': 2.6.4 - '@azure/msal-node-extensions': 1.0.8 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@azure/msal-node-extensions': 1.0.12 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/jws': 3.2.9 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 - '@types/qs': 6.9.11 + '@types/node': 18.19.22 + '@types/qs': 6.9.12 '@types/sinon': 17.0.3 cross-env: 7.0.3 dotenv: 16.4.5 @@ -19418,10 +19378,10 @@ packages: inherits: 2.0.4 keytar: 7.9.0 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19440,11 +19400,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/jws': 3.2.9 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 - '@types/qs': 6.9.11 + '@types/node': 18.19.22 + '@types/qs': 6.9.12 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 cross-env: 7.0.3 @@ -19453,10 +19413,10 @@ packages: inherits: 2.0.4 keytar: 7.9.0 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19478,13 +19438,13 @@ packages: '@azure/keyvault-keys': 4.8.0 '@azure/msal-browser': 3.10.0 '@azure/msal-node': 2.6.4 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/jws': 3.2.9 '@types/mocha': 10.0.6 '@types/ms': 0.7.34 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/stoppable': 1.1.3 '@types/uuid': 8.3.4 @@ -19508,11 +19468,11 @@ packages: mocha: 10.3.0 ms: 2.1.3 open: 8.4.2 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 stoppable: 1.1.0 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19532,10 +19492,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 c8: 8.0.1 chai: 4.3.10 @@ -19559,7 +19519,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -19577,10 +19537,10 @@ packages: name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -19603,7 +19563,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -19623,9 +19583,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 c8: 8.0.1 @@ -19637,7 +19597,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -19654,9 +19614,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19675,11 +19635,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19698,19 +19658,19 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 cross-env: 7.0.3 eslint: 8.57.0 esm: 3.2.25 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19729,9 +19689,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19751,11 +19711,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19775,9 +19735,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 cross-env: 7.0.3 @@ -19794,11 +19754,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19818,10 +19778,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 autorest: 3.7.1 c8: 8.0.1 @@ -19844,7 +19804,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 9.0.1 @@ -19862,19 +19822,19 @@ packages: name: '@rush-temp/logger' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) dotenv: 16.4.5 eslint: 8.57.0 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -19897,11 +19857,11 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' @@ -19916,10 +19876,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19941,7 +19901,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -19960,10 +19920,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -19985,7 +19945,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20004,10 +19964,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -20029,7 +19989,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20048,10 +20008,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/maps-common': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -20073,7 +20033,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20090,11 +20050,11 @@ packages: name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -20114,7 +20074,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20134,11 +20094,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 c8: 8.0.1 chai: 4.3.10 @@ -20160,7 +20120,7 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20180,12 +20140,12 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rhea: 3.0.2 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20201,10 +20161,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/pako': 2.0.3 '@types/sinon': 17.0.3 c8: 8.0.1 @@ -20229,7 +20189,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -20247,7 +20207,7 @@ packages: name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@opentelemetry/api': 1.8.0 '@opentelemetry/api-logs': 0.49.1 '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) @@ -20260,18 +20220,15 @@ packages: '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) '@opentelemetry/semantic-conventions': 1.22.0 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 - cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 eslint-plugin-node: 11.1.0(eslint@8.57.0) - esm: 3.2.25 mocha: 10.3.0 nock: 12.0.3 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 tsx: 4.7.1 typescript: 5.3.3 @@ -20285,7 +20242,7 @@ packages: version: 0.0.0 dependencies: '@azure/functions': 3.5.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@microsoft/applicationinsights-web-snippet': 1.1.2 '@opentelemetry/api': 1.8.0 '@opentelemetry/api-logs': 0.49.1 @@ -20298,7 +20255,7 @@ packages: '@opentelemetry/instrumentation-pg': 0.39.1(@opentelemetry/api@1.8.0) '@opentelemetry/instrumentation-redis': 0.37.0(@opentelemetry/api@1.8.0) '@opentelemetry/instrumentation-redis-4': 0.37.0(@opentelemetry/api@1.8.0) - '@opentelemetry/resource-detector-azure': 0.2.4(@opentelemetry/api@1.8.0) + '@opentelemetry/resource-detector-azure': 0.2.5(@opentelemetry/api@1.8.0) '@opentelemetry/resources': 1.22.0(@opentelemetry/api@1.8.0) '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) '@opentelemetry/sdk-metrics': 1.22.0(@opentelemetry/api@1.8.0) @@ -20307,19 +20264,16 @@ packages: '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) '@opentelemetry/semantic-conventions': 1.22.0 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 - cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 eslint-plugin-node: 11.1.0(eslint@8.57.0) - esm: 3.2.25 mocha: 10.3.0 nock: 12.0.3 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 tsx: 4.7.1 typescript: 5.3.3 @@ -20334,21 +20288,20 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@opentelemetry/api': 1.8.0 '@opentelemetry/sdk-trace-base': 1.22.0(@opentelemetry/api@1.8.0) '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - esm: 3.2.25 inherits: 2.0.4 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 @@ -20361,7 +20314,6 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 tsx: 4.7.1 typescript: 5.3.3 @@ -20377,10 +20329,10 @@ packages: name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 dotenv: 16.4.5 @@ -20390,7 +20342,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.3) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.3) @@ -20398,9 +20350,9 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20420,9 +20372,9 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 builtin-modules: 3.3.0 c8: 8.0.1 cross-env: 7.0.3 @@ -20434,7 +20386,7 @@ packages: karma-coverage: 2.2.1 karma-edge-launcher: 0.4.2(karma@6.4.3) karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-json-preprocessor: 0.3.3(karma@6.4.3) karma-json-to-file-reporter: 1.0.1 karma-junit-reporter: 2.0.1(karma@6.4.3) @@ -20442,9 +20394,9 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 3.0.2 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20463,9 +20415,9 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 cross-env: 7.0.3 @@ -20476,7 +20428,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -20487,7 +20439,7 @@ packages: prettier: 2.8.8 rimraf: 3.0.2 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20505,8 +20457,8 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 autorest: 3.7.1 cross-env: 7.0.3 dotenv: 16.4.5 @@ -20522,7 +20474,7 @@ packages: name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@opentelemetry/api': 1.8.0 '@opentelemetry/core': 1.22.0(@opentelemetry/api@1.8.0) '@opentelemetry/instrumentation': 0.49.1(@opentelemetry/api@1.8.0) @@ -20530,14 +20482,13 @@ packages: '@opentelemetry/sdk-trace-node': 1.22.0(@opentelemetry/api@1.8.0) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - esm: 3.2.25 inherits: 2.0.4 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 @@ -20551,7 +20502,6 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 tsx: 4.7.1 typescript: 5.3.3 @@ -20569,11 +20519,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20588,11 +20538,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20606,11 +20556,11 @@ packages: name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20625,11 +20575,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20644,11 +20594,11 @@ packages: version: 0.0.0 dependencies: '@azure/app-configuration': 1.5.0-beta.2 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20662,11 +20612,11 @@ packages: name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20681,17 +20631,17 @@ packages: version: 0.0.0 dependencies: '@types/express': 4.17.21 - '@types/node': 18.19.18 + '@types/node': 18.19.22 concurrently: 8.2.2 dotenv: 16.4.5 eslint: 8.57.0 - express: 4.18.2 + express: 4.18.3 prettier: 2.8.8 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 - undici: 6.6.2 + undici: 6.7.1 transitivePeerDependencies: - '@swc/core' - '@swc/wasm' @@ -20703,11 +20653,11 @@ packages: name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20721,13 +20671,13 @@ packages: name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 moment: 2.30.1 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20742,11 +20692,11 @@ packages: name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20761,12 +20711,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20781,12 +20731,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20802,12 +20752,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20823,12 +20773,12 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20844,11 +20794,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20865,15 +20815,12 @@ packages: '@opentelemetry/api': 1.8.0 '@opentelemetry/api-logs': 0.49.1 '@opentelemetry/sdk-logs': 0.49.1(@opentelemetry/api-logs@0.49.1)(@opentelemetry/api@1.8.0) - '@types/node': 18.19.18 - '@types/uuid': 8.3.4 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 - uuid: 8.3.2 transitivePeerDependencies: - supports-color dev: false @@ -20884,11 +20831,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20903,11 +20850,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20922,11 +20869,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20940,12 +20887,12 @@ packages: name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -20960,11 +20907,11 @@ packages: name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20979,11 +20926,11 @@ packages: version: 0.0.0 dependencies: '@azure/storage-file-datalake': 12.16.0 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -20999,11 +20946,11 @@ packages: version: 0.0.0 dependencies: '@azure/storage-file-share': 12.17.0 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21020,11 +20967,11 @@ packages: dependencies: '@azure/app-configuration': 1.5.0-beta.2 '@azure/identity': 4.0.1 - '@types/node': 18.19.18 + '@types/node': 18.19.22 dotenv: 16.4.5 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21039,10 +20986,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21063,7 +21010,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21081,10 +21028,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21105,7 +21052,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21123,10 +21070,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21138,7 +21085,7 @@ packages: karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) @@ -21148,7 +21095,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21166,10 +21113,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21190,7 +21137,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21209,10 +21156,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21234,7 +21181,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21252,10 +21199,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 autorest: 3.7.1 c8: 8.0.1 chai: 4.3.10 @@ -21277,7 +21224,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21296,10 +21243,10 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/storage-blob': 12.17.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21320,7 +21267,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21341,11 +21288,11 @@ packages: dependencies: '@azure/identity': 4.0.1 '@azure/schema-registry': 1.2.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/uuid': 8.3.4 avsc: 5.7.7 buffer: 6.0.3 @@ -21372,7 +21319,7 @@ packages: process: 0.11.10 rimraf: 5.0.5 stream: 0.0.2 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -21391,9 +21338,9 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 ajv: 8.12.0 c8: 8.0.1 cross-env: 7.0.3 @@ -21414,7 +21361,7 @@ packages: lru-cache: 7.18.3 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21432,9 +21379,9 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 cross-env: 7.0.3 dotenv: 16.4.5 @@ -21453,7 +21400,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -21470,10 +21417,10 @@ packages: name: '@rush-temp/search-documents' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21497,7 +21444,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21517,13 +21464,13 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/debug': 4.1.12 '@types/is-buffer': 2.0.2 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/uuid': 8.3.4 '@types/ws': 7.4.7 @@ -21554,11 +21501,11 @@ packages: moment: 2.30.1 process: 0.11.10 promise: 8.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rhea-promise: 3.0.1 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uuid: 8.3.2 @@ -21578,10 +21525,10 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21604,11 +21551,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21629,10 +21576,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21652,10 +21599,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21676,10 +21623,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21702,11 +21649,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21727,10 +21674,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21751,11 +21698,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21775,10 +21722,10 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21797,10 +21744,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21821,10 +21768,10 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -21843,10 +21790,10 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -21865,11 +21812,11 @@ packages: name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21891,7 +21838,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -21910,11 +21857,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21937,7 +21884,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -21957,11 +21904,11 @@ packages: dependencies: '@azure/abort-controller': 1.1.0 '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -21985,7 +21932,7 @@ packages: rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22003,11 +21950,11 @@ packages: name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22026,7 +21973,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22044,9 +21991,9 @@ packages: name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 cross-env: 7.0.3 eslint: 8.57.0 esm: 3.2.25 @@ -22062,7 +22009,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22080,11 +22027,11 @@ packages: name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22103,7 +22050,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 uglify-js: 3.17.4 @@ -22121,10 +22068,10 @@ packages: name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 cross-env: 7.0.3 @@ -22136,15 +22083,15 @@ packages: karma-coverage: 2.2.1 karma-edge-launcher: 0.4.2(karma@6.4.3) karma-env-preprocessor: 0.1.1 - karma-firefox-launcher: 2.1.2 + karma-firefox-launcher: 2.1.3 karma-junit-reporter: 2.0.1(karma@6.4.3) karma-mocha: 2.0.1 karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 3.0.2 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22164,10 +22111,10 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 @@ -22188,7 +22135,7 @@ packages: nyc: 15.1.0 rimraf: 5.0.5 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22207,11 +22154,11 @@ packages: version: 0.0.0 dependencies: '@azure/identity': 4.0.1 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 eslint: 8.57.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) typescript: 5.3.3 transitivePeerDependencies: - '@swc/core' @@ -22228,14 +22175,14 @@ packages: '@types/express': 4.17.21 '@types/fs-extra': 8.1.5 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 c8: 8.0.1 chai: 4.3.10 concurrently: 8.2.2 cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 - express: 4.18.2 + express: 4.18.3 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -22247,7 +22194,7 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22266,7 +22213,7 @@ packages: dependencies: '@types/fs-extra': 9.0.13 '@types/minimist': 1.2.5 - '@types/node': 18.19.18 + '@types/node': 18.19.22 eslint: 8.57.0 fs-extra: 10.1.0 karma: 6.4.3(debug@4.3.4) @@ -22275,7 +22222,7 @@ packages: karma-env-preprocessor: 0.1.1 minimist: 1.2.8 rimraf: 5.0.5 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22292,12 +22239,12 @@ packages: name: '@rush-temp/test-utils' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@opentelemetry/api': 1.7.0 + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@opentelemetry/api': 1.8.0 '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 chai: 4.3.10 chai-as-promised: 7.1.1(chai@4.3.10) @@ -22311,7 +22258,7 @@ packages: mocha: 10.3.0 rimraf: 5.0.5 sinon: 17.0.1 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22328,21 +22275,21 @@ packages: name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) - '@types/node': 18.19.18 - '@vitest/browser': 1.3.1(playwright@1.41.2)(vitest@1.3.1) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) + '@types/node': 18.19.22 + '@vitest/browser': 1.3.1(playwright@1.42.1)(vitest@1.3.1) '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) cross-env: 7.0.3 eslint: 8.57.0 http-proxy-agent: 7.0.0 https-proxy-agent: 7.0.2 - playwright: 1.41.2 + playwright: 1.42.1 prettier: 3.2.5 rimraf: 5.0.5 - tshy: 1.11.1 + tshy: 1.12.0 tslib: 2.6.2 typescript: 5.3.3 - vitest: 1.3.1(@types/node@18.19.18)(@vitest/browser@1.3.1) + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) transitivePeerDependencies: - '@edge-runtime/vm' - '@vitest/ui' @@ -22364,7 +22311,7 @@ packages: name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: - '@types/node': 18.19.18 + '@types/node': 18.19.22 eslint: 8.57.0 prettier: 3.2.5 rimraf: 3.0.2 @@ -22380,14 +22327,14 @@ packages: version: 0.0.0 dependencies: '@azure/web-pubsub-client': 1.0.0-beta.2 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.17.43 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 c8: 8.0.1 @@ -22397,7 +22344,7 @@ packages: dotenv: 16.4.5 eslint: 8.57.0 esm: 3.2.25 - express: 4.18.2 + express: 4.18.3 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -22416,12 +22363,12 @@ packages: mock-socket: 9.3.1 protobufjs: 7.2.6 protobufjs-cli: 1.1.2(protobufjs@7.2.6) - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 - rollup: 4.12.0 + rollup: 4.12.1 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22441,14 +22388,14 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/chai-as-promised': 7.1.8 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.17.43 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/ws': 7.4.7 buffer: 6.0.3 @@ -22458,7 +22405,7 @@ packages: dotenv: 16.4.5 eslint: 8.57.0 esm: 3.2.25 - express: 4.18.2 + express: 4.18.3 karma: 6.4.3(debug@4.3.4) karma-chrome-launcher: 3.2.0 karma-coverage: 2.2.1 @@ -22472,11 +22419,11 @@ packages: karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 mock-socket: 9.3.1 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 util: 0.12.5 @@ -22496,13 +22443,13 @@ packages: name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/express': 4.17.21 '@types/express-serve-static-core': 4.17.43 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 chai: 4.3.10 @@ -22510,13 +22457,13 @@ packages: dotenv: 16.4.5 eslint: 8.57.0 esm: 3.2.25 - express: 4.18.2 + express: 4.18.3 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 transitivePeerDependencies: @@ -22533,11 +22480,11 @@ packages: name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: - '@microsoft/api-extractor': 7.41.0(@types/node@18.19.18) + '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 - '@types/jsonwebtoken': 9.0.5 + '@types/jsonwebtoken': 9.0.6 '@types/mocha': 10.0.6 - '@types/node': 18.19.18 + '@types/node': 18.19.22 '@types/sinon': 17.0.3 '@types/ws': 8.5.10 c8: 8.0.1 @@ -22557,11 +22504,11 @@ packages: karma-mocha-reporter: 2.2.5(karma@6.4.3) karma-sourcemap-loader: 0.3.8 mocha: 10.3.0 - puppeteer: 22.3.0(typescript@5.3.3) + puppeteer: 22.4.1(typescript@5.3.3) rimraf: 5.0.5 sinon: 17.0.1 source-map-support: 0.5.21 - ts-node: 10.9.2(@types/node@18.19.18)(typescript@5.3.3) + ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 ws: 8.16.0 From 71c5eacaa91f280d6f1f1a3fc3e400d23c0b1336 Mon Sep 17 00:00:00 2001 From: Matthew Podwysocki Date: Tue, 12 Mar 2024 10:38:57 -0400 Subject: [PATCH 22/57] [dev-tool] Update to use vitest (#28876) ### Packages impacted by this PR - @azure/dev-tool ### Issues associated with this PR ### Describe the problem that is addressed by this PR Updates to latest dependencies and move from mocha to vitest. ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --- common/config/rush/pnpm-lock.yaml | 33 +++++-- common/tools/dev-tool/package.json | 28 +++--- common/tools/dev-tool/src/commands/about.ts | 1 - .../src/commands/admin/create-migration.ts | 3 - .../src/commands/admin/list/packages.ts | 7 +- .../commands/admin/list/service-folders.ts | 8 +- .../src/commands/admin/stage-migrations.ts | 4 +- .../src/commands/customization/apply-v2.ts | 1 - .../src/commands/customization/apply.ts | 4 +- common/tools/dev-tool/src/commands/migrate.ts | 2 +- .../dev-tool/src/commands/package/resolve.ts | 3 +- .../dev-tool/src/commands/run/build-test.ts | 25 +++-- .../tools/dev-tool/src/commands/run/bundle.ts | 5 +- .../dev-tool/src/commands/run/check-api.ts | 6 +- .../dev-tool/src/commands/run/extract-api.ts | 8 +- .../src/commands/run/testNodeJSInput.ts | 1 - .../src/commands/run/testNodeTsxJS.ts | 1 - .../dev-tool/src/commands/run/vendored.ts | 5 +- .../src/commands/samples/checkNodeVersions.ts | 8 +- .../dev-tool/src/commands/samples/dev.ts | 3 +- .../dev-tool/src/commands/samples/prep.ts | 3 +- .../dev-tool/src/commands/samples/publish.ts | 2 +- .../dev-tool/src/commands/samples/run.ts | 3 +- .../dev-tool/src/commands/test-proxy/init.ts | 2 +- .../dev-tool/src/config/rollup.base.config.ts | 4 +- .../dev-tool/src/framework/parseOptions.ts | 1 - .../onboard/test-proxy-asset-sync.ts | 3 +- .../tools/dev-tool/src/templates/migration.ts | 1 + .../dev-tool/src/templates/sampleReadme.md.ts | 72 ++++++++------- .../src/util/customization/customize.ts | 3 +- common/tools/dev-tool/src/util/fileTree.ts | 5 +- .../dev-tool/src/util/findMatchingFiles.ts | 2 +- .../tools/dev-tool/src/util/findSamplesDir.ts | 2 +- common/tools/dev-tool/src/util/git.ts | 7 +- common/tools/dev-tool/src/util/migrations.ts | 4 +- common/tools/dev-tool/src/util/pathUtil.ts | 5 +- common/tools/dev-tool/src/util/prettier.ts | 3 + common/tools/dev-tool/src/util/printer.ts | 2 +- .../tools/dev-tool/src/util/resolveProject.ts | 3 +- common/tools/dev-tool/src/util/run.ts | 5 +- .../dev-tool/src/util/samples/convert.ts | 4 +- .../dev-tool/src/util/samples/generation.ts | 6 +- .../dev-tool/src/util/samples/processor.ts | 4 +- .../tools/dev-tool/src/util/samples/syntax.ts | 2 +- .../tools/dev-tool/src/util/testProxyUtils.ts | 6 +- common/tools/dev-tool/src/util/testUtils.ts | 3 + .../src/util/typescript/diagnostic.ts | 2 +- common/tools/dev-tool/test/argParsing.spec.ts | 4 +- .../test/customization/aliases.spec.ts | 10 +- .../test/customization/annotations.spec.ts | 21 +++-- .../test/customization/classes.spec.ts | 92 +++++++++++-------- .../test/customization/exports.spec.ts | 23 +++-- .../test/customization/functions.spec.ts | 18 ++-- .../test/customization/imports.spec.ts | 29 +++--- .../test/customization/interfaces.spec.ts | 52 ++++++----- common/tools/dev-tool/test/framework.spec.ts | 6 +- .../dev-tool/test/resolveProject.spec.ts | 12 +-- .../tools/dev-tool/test/samples/files.spec.ts | 16 ++-- .../tools/dev-tool/test/samples/skips.spec.ts | 3 +- common/tools/dev-tool/vitest.config.ts | 30 ++++++ 60 files changed, 350 insertions(+), 281 deletions(-) create mode 100644 common/tools/dev-tool/vitest.config.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index cfe5a19f3191..80cbd16e48bc 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -3154,8 +3154,8 @@ packages: resolution: {integrity: sha512-C5Mc6rdnsaJDjO3UpGW/CQTHtCKaYlScZTly4JIu97Jxo/odCiH0ITnDXSJPTOrEKk/ycSZ0AOgTmkDtkOsvIA==} dev: false - /@ts-morph/common@0.22.0: - resolution: {integrity: sha512-HqNBuV/oIlMKdkLshXd1zKBqNQCsuPEsgQOkfFQ/eUKjRlwndXW1AjN9LVkBEIukm00gGXSRmfkl0Wv5VXLnlw==} + /@ts-morph/common@0.23.0: + resolution: {integrity: sha512-m7Lllj9n/S6sOkCkRftpM7L24uvmfXQFedlW/4hENcuJH1HHm9u5EgxZb9uVjQSCGrbBWBkOGgcTxNg36r6ywA==} dependencies: fast-glob: 3.3.2 minimatch: 9.0.3 @@ -4553,8 +4553,8 @@ packages: engines: {node: '>=0.8'} dev: false - /code-block-writer@12.0.0: - resolution: {integrity: sha512-q4dMFMlXtKR3XNBHyMHt/3pwYNA69EDk00lloMOaaUMKPUXBw6lpXtbu3MMVG6/uOihGnRDOlkyqsONEUj60+w==} + /code-block-writer@13.0.1: + resolution: {integrity: sha512-c5or4P6erEA69TxaxTNcHUNcIn+oyxSRTOWV+pSYF+z4epXqNvwvJ70XPGjPNgue83oAFAPBRQYwpAJ/Hpe/Sg==} dev: false /color-convert@1.9.3: @@ -9516,11 +9516,11 @@ packages: hasBin: true dev: false - /ts-morph@21.0.1: - resolution: {integrity: sha512-dbDtVdEAncKctzrVZ+Nr7kHpHkv+0JDJb2MjjpBaj8bFeCkePU9rHfMklmhuLFnpeq/EJZk2IhStY6NzqgjOkg==} + /ts-morph@22.0.0: + resolution: {integrity: sha512-M9MqFGZREyeb5fTl6gNHKZLqBQA0TjA1lea+CR48R8EBTDuWrNqW6ccC5QvjNR4s6wDumD3LTCjOFSp9iwlzaw==} dependencies: - '@ts-morph/common': 0.22.0 - code-block-writer: 12.0.0 + '@ts-morph/common': 0.23.0 + code-block-writer: 13.0.1 dev: false /ts-node@10.9.2(@types/node@16.18.87)(typescript@5.3.3): @@ -18746,7 +18746,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-nG09YWhjmXYNV6+T5bq5NgXbetMsZVCsTumlZbkOnyq7pM435jJTDYSC2nsBxvDCYGkqhOQNB2N6gsNs9gZGag==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-g2sD7pNnn7rPJrvryHfXFz/s/IGrGDUBZMXOsyAdH2McMYMOPqIY0cfqOxXEAKY89AWo2yr6h6taU6bvywZDQg==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -18767,6 +18767,7 @@ packages: '@types/mocha': 10.0.6 '@types/node': 18.19.22 '@types/semver': 7.5.8 + '@vitest/coverage-istanbul': 1.3.1(vitest@1.3.1) archiver: 7.0.1 autorest: 3.7.1 builtin-modules: 3.3.0 @@ -18792,17 +18793,29 @@ packages: rollup-plugin-visualizer: 5.12.0(rollup@4.12.1) semver: 7.6.0 strip-json-comments: 5.0.1 - ts-morph: 21.0.1 + ts-morph: 22.0.0 ts-node: 10.9.2(@types/node@18.19.22)(typescript@5.3.3) tslib: 2.6.2 typescript: 5.3.3 + vitest: 1.3.1(@types/node@18.19.22)(@vitest/browser@1.3.1) yaml: 2.4.1 transitivePeerDependencies: + - '@edge-runtime/vm' - '@swc/core' - '@swc/wasm' + - '@vitest/browser' + - '@vitest/ui' - bufferutil - debug + - happy-dom + - jsdom + - less + - lightningcss + - sass + - stylus + - sugarss - supports-color + - terser - utf-8-validate dev: false diff --git a/common/tools/dev-tool/package.json b/common/tools/dev-tool/package.json index 1bc85578841a..20be41c18a84 100644 --- a/common/tools/dev-tool/package.json +++ b/common/tools/dev-tool/package.json @@ -25,7 +25,7 @@ "pack": "npm pack 2>&1", "prebuild": "npm run clean", "unit-test": "npm run unit-test:node", - "unit-test:node": "mocha --require ts-node/register test/**/*.spec.ts test/*.spec.ts", + "unit-test:node": "vitest", "unit-test:browser": "echo skipped", "build:samples": "echo Skipped.", "test": "echo Skipped." @@ -60,35 +60,29 @@ "rollup": "^4.0.0", "rollup-plugin-polyfill-node": "^0.13.0", "rollup-plugin-visualizer": "^5.9.3", - "semver": "^7.5.4", + "semver": "^7.6.0", "strip-json-comments": "^5.0.1", + "ts-morph": "^22.0.0", "ts-node": "^10.9.1", "tslib": "^2.2.0", "typescript": "~5.3.3", - "yaml": "^2.3.4", - "ts-morph": "^21.0.0" + "yaml": "^2.3.4" }, "devDependencies": { - "@microsoft/api-extractor": "^7.31.1", + "@microsoft/api-extractor": "^7.42.3", "@types/archiver": "~6.0.2", - "@types/chai": "^4.1.6", - "@types/chai-as-promised": "^7.1.0", - "@types/decompress": "^4.2.4", + "@types/decompress": "^4.2.7", "@types/fs-extra": "^11.0.4", "@types/minimist": "^1.2.5", - "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", - "@types/semver": "^7.5.6", - "autorest": "^3.5.1", + "@types/semver": "^7.5.8", + "@vitest/coverage-istanbul": "^1.3.1", + "autorest": "^3.7.1", "builtin-modules": "^3.1.0", - "c8": "^8.0.1", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", "cross-env": "^7.0.3", "eslint": "^8.54.0", - "karma": "^6.4.2", "mkdirp": "^3.0.1", - "mocha": "^10.0.0", - "rimraf": "^5.0.5" + "rimraf": "^5.0.5", + "vitest": "^1.3.1" } } diff --git a/common/tools/dev-tool/src/commands/about.ts b/common/tools/dev-tool/src/commands/about.ts index 15a44fa07596..617e6a82e0e3 100644 --- a/common/tools/dev-tool/src/commands/about.ts +++ b/common/tools/dev-tool/src/commands/about.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license import chalk from "chalk"; - import { baseCommands, baseCommandInfo } from "."; import { resolveProject } from "../util/resolveProject"; import { createPrinter } from "../util/printer"; diff --git a/common/tools/dev-tool/src/commands/admin/create-migration.ts b/common/tools/dev-tool/src/commands/admin/create-migration.ts index 85cf8d08c94c..b8716f9e4d16 100644 --- a/common/tools/dev-tool/src/commands/admin/create-migration.ts +++ b/common/tools/dev-tool/src/commands/admin/create-migration.ts @@ -4,13 +4,10 @@ import path from "node:path"; import readline from "node:readline"; import { spawnSync } from "node:child_process"; - import { leafCommand, makeCommandInfo } from "../../framework/command"; import migrationTemplate, { MigrationTemplate } from "../../templates/migration"; import { createPrinter } from "../../util/printer"; - import { ensureDir, pathExists, writeFile } from "fs-extra"; - import { format } from "../../util/prettier"; const log = createPrinter("create-migration"); diff --git a/common/tools/dev-tool/src/commands/admin/list/packages.ts b/common/tools/dev-tool/src/commands/admin/list/packages.ts index 0decbf81e5e0..9408d6ea2524 100644 --- a/common/tools/dev-tool/src/commands/admin/list/packages.ts +++ b/common/tools/dev-tool/src/commands/admin/list/packages.ts @@ -2,12 +2,9 @@ // Licensed under the MIT license. import { leafCommand, makeCommandInfo } from "../../../framework/command"; - -import path from "path"; +import path from "node:path"; import { resolveRoot } from "../../../util/resolveProject"; - -import { readFile } from "fs/promises"; - +import { readFile } from "node:fs/promises"; import stripJsonComments from "strip-json-comments"; export const commandInfo = makeCommandInfo("packages", "list packages defined in the monorepo", { diff --git a/common/tools/dev-tool/src/commands/admin/list/service-folders.ts b/common/tools/dev-tool/src/commands/admin/list/service-folders.ts index d766a9dfa19f..614f9bda4ff4 100644 --- a/common/tools/dev-tool/src/commands/admin/list/service-folders.ts +++ b/common/tools/dev-tool/src/commands/admin/list/service-folders.ts @@ -2,6 +2,9 @@ // Licensed under the MIT license. import { leafCommand, makeCommandInfo } from "../../../framework/command"; +import path from "node:path"; +import { resolveRoot } from "../../../util/resolveProject"; +import { readdir } from "node:fs/promises"; export const commandInfo = makeCommandInfo("packages", "list service folders in the monorepo", { relative: { @@ -12,11 +15,6 @@ export const commandInfo = makeCommandInfo("packages", "list service folders in }, }); -import path from "path"; -import { resolveRoot } from "../../../util/resolveProject"; - -import { readdir } from "fs/promises"; - export async function getServiceFolders(root?: string): Promise { root ??= await resolveRoot(); return ( diff --git a/common/tools/dev-tool/src/commands/admin/stage-migrations.ts b/common/tools/dev-tool/src/commands/admin/stage-migrations.ts index 5c7e097ff683..5017e361d060 100644 --- a/common/tools/dev-tool/src/commands/admin/stage-migrations.ts +++ b/common/tools/dev-tool/src/commands/admin/stage-migrations.ts @@ -1,8 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { readFile, writeFile } from "fs/promises"; -import path from "path"; +import { readFile, writeFile } from "node:fs/promises"; +import path from "node:path"; import { leafCommand, makeCommandInfo } from "../../framework/command"; import { getServiceFolders } from "./list/service-folders"; diff --git a/common/tools/dev-tool/src/commands/customization/apply-v2.ts b/common/tools/dev-tool/src/commands/customization/apply-v2.ts index 884493b8b569..3dad28f876f5 100644 --- a/common/tools/dev-tool/src/commands/customization/apply-v2.ts +++ b/common/tools/dev-tool/src/commands/customization/apply-v2.ts @@ -6,7 +6,6 @@ import { createPrinter } from "../../util/printer"; import { run } from "../../util/run"; import { leafCommand } from "../../framework/command"; import { makeCommandInfo } from "../../framework/command"; - import path from "node:path"; import fs from "node:fs/promises"; import os from "node:os"; diff --git a/common/tools/dev-tool/src/commands/customization/apply.ts b/common/tools/dev-tool/src/commands/customization/apply.ts index 78e3d0bcc8df..591f18378425 100644 --- a/common/tools/dev-tool/src/commands/customization/apply.ts +++ b/common/tools/dev-tool/src/commands/customization/apply.ts @@ -1,13 +1,11 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import path from "path"; - +import path from "node:path"; import { resolveProject } from "../../util/resolveProject"; import { createPrinter } from "../../util/printer"; import { leafCommand } from "../../framework/command"; import { makeCommandInfo } from "../../framework/command"; - import { customize } from "../../util/customization/customize"; const log = createPrinter("apply-customization"); diff --git a/common/tools/dev-tool/src/commands/migrate.ts b/common/tools/dev-tool/src/commands/migrate.ts index ac2f9ba329e1..319ee6c2cab9 100644 --- a/common/tools/dev-tool/src/commands/migrate.ts +++ b/common/tools/dev-tool/src/commands/migrate.ts @@ -5,7 +5,7 @@ import { METADATA_KEY, ProjectInfo, resolveProject, resolveRoot } from "../util/ import { createPrinter } from "../util/printer"; import { leafCommand } from "../framework/command"; import { makeCommandInfo } from "../framework/command"; -import { cwd } from "process"; +import { cwd } from "node:process"; import { listAppliedMigrations, getMigrationById, diff --git a/common/tools/dev-tool/src/commands/package/resolve.ts b/common/tools/dev-tool/src/commands/package/resolve.ts index 966a0a4f1628..4ff8387caed7 100644 --- a/common/tools/dev-tool/src/commands/package/resolve.ts +++ b/common/tools/dev-tool/src/commands/package/resolve.ts @@ -1,8 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import path from "path"; - +import path from "node:path"; import { resolveProject } from "../../util/resolveProject"; import { createPrinter } from "../../util/printer"; import { leafCommand } from "../../framework/command"; diff --git a/common/tools/dev-tool/src/commands/run/build-test.ts b/common/tools/dev-tool/src/commands/run/build-test.ts index 1d91bf8a159b..2139943c5c65 100644 --- a/common/tools/dev-tool/src/commands/run/build-test.ts +++ b/common/tools/dev-tool/src/commands/run/build-test.ts @@ -2,7 +2,15 @@ // Licensed under the MIT license. import path from "node:path"; -import { cpSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs"; +import { + cpSync, + existsSync, + mkdirSync, + readFileSync, + readdirSync, + statSync, + writeFileSync, +} from "node:fs"; import { leafCommand, makeCommandInfo } from "../../framework/command"; import { createPrinter } from "../../util/printer"; import { resolveProject } from "../../util/resolveProject"; @@ -146,7 +154,7 @@ function copyOverrides(type: string, rootDir: string, filePath: string): void { const fileToReplaceWith = path.join( fileParsed.root, fileParsed.dir, - `${fileParsed.name}-${type}.mts` + `${fileParsed.name}-${type}.mts`, ); if (existsSync(fileToReplace) && existsSync(fileToReplaceWith)) { log.info(`Copying over ${fileToReplaceWith} to ${fileToReplace}`); @@ -156,20 +164,20 @@ function copyOverrides(type: string, rootDir: string, filePath: string): void { rootDir, relativeDir, `${fileParsed.name}-${type}.d.mts`, - `${fileParsed.name}.d.ts` + `${fileParsed.name}.d.ts`, ); overrideFile( rootDir, relativeDir, `${fileParsed.name}-${type}.d.mts.map`, - `${fileParsed.name}.d.ts.map` + `${fileParsed.name}.d.ts.map`, ); overrideFile(rootDir, relativeDir, `${fileParsed.name}-${type}.mjs`, `${fileParsed.name}.js`); overrideFile( rootDir, relativeDir, `${fileParsed.name}-${type}.mjs.map`, - `${fileParsed.name}.js.map` + `${fileParsed.name}.js.map`, ); } } @@ -178,7 +186,7 @@ function overrideFile( rootDir: string, relativeDir: string, sourceFile: string, - destinationFile: string + destinationFile: string, ): void { const sourceFileType = path.join(process.cwd(), rootDir, relativeDir, sourceFile); const destFileType = path.join(process.cwd(), rootDir, relativeDir, destinationFile); @@ -189,7 +197,10 @@ function overrideFile( class OverrideSet { public map: Map; - constructor(public type: "esm" | "commonjs", public name: string) { + constructor( + public type: "esm" | "commonjs", + public name: string, + ) { this.map = new Map(); } diff --git a/common/tools/dev-tool/src/commands/run/bundle.ts b/common/tools/dev-tool/src/commands/run/bundle.ts index fb9c0ba65665..588a70a57e78 100644 --- a/common/tools/dev-tool/src/commands/run/bundle.ts +++ b/common/tools/dev-tool/src/commands/run/bundle.ts @@ -1,18 +1,15 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import path from "path"; - +import path from "node:path"; import * as rollup from "rollup"; import nodeBuiltins from "builtin-modules"; - import nodeResolve from "@rollup/plugin-node-resolve"; import cjs from "@rollup/plugin-commonjs"; import nodePolyfills from "rollup-plugin-polyfill-node"; import json from "@rollup/plugin-json"; import multiEntry from "@rollup/plugin-multi-entry"; import inject from "@rollup/plugin-inject"; - import { leafCommand, makeCommandInfo } from "../../framework/command"; import { resolveProject, resolveRoot } from "../../util/resolveProject"; import { createPrinter } from "../../util/printer"; diff --git a/common/tools/dev-tool/src/commands/run/check-api.ts b/common/tools/dev-tool/src/commands/run/check-api.ts index 5dbc0970c06c..478924db328d 100644 --- a/common/tools/dev-tool/src/commands/run/check-api.ts +++ b/common/tools/dev-tool/src/commands/run/check-api.ts @@ -1,10 +1,12 @@ -import { leafCommand, makeCommandInfo } from "../../framework/command"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. +import { leafCommand, makeCommandInfo } from "../../framework/command"; import tsMin from "@_ts/min"; import tsMax from "@_ts/max"; import { createPrinter } from "../../util/printer"; import { resolveProject } from "../../util/resolveProject"; -import path from "path"; +import path from "node:path"; import semver from "semver"; export const commandInfo = makeCommandInfo( diff --git a/common/tools/dev-tool/src/commands/run/extract-api.ts b/common/tools/dev-tool/src/commands/run/extract-api.ts index af691bb14e1d..24f9c9fbc373 100644 --- a/common/tools/dev-tool/src/commands/run/extract-api.ts +++ b/common/tools/dev-tool/src/commands/run/extract-api.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { leafCommand, makeCommandInfo } from "../../framework/command"; import { Extractor, @@ -8,13 +11,12 @@ import { IConfigDtsRollup, IConfigFile, } from "@microsoft/api-extractor"; - import { createPrinter } from "../../util/printer"; import { resolveProject } from "../../util/resolveProject"; import path from "path"; import { readFile } from "fs-extra"; -import { readdir } from "fs/promises"; -import { createReadStream, createWriteStream } from "fs"; +import { readdir } from "node:fs/promises"; +import { createReadStream, createWriteStream } from "node:fs"; import archiver from "archiver"; export const commandInfo = makeCommandInfo( diff --git a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts index 25bb8acc8b65..ad1c698e10c0 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license import { leafCommand, makeCommandInfo } from "../../framework/command"; - import concurrently from "concurrently"; import { createPrinter } from "../../util/printer"; import { isModuleProject } from "../../util/resolveProject"; diff --git a/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts b/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts index 60707e05ef6e..34ae0de6b57e 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license import { leafCommand, makeCommandInfo } from "../../framework/command"; - import concurrently from "concurrently"; import { createPrinter } from "../../util/printer"; import { runTestsWithProxyTool } from "../../util/testUtils"; diff --git a/common/tools/dev-tool/src/commands/run/vendored.ts b/common/tools/dev-tool/src/commands/run/vendored.ts index fa92444e8577..2521d2304257 100644 --- a/common/tools/dev-tool/src/commands/run/vendored.ts +++ b/common/tools/dev-tool/src/commands/run/vendored.ts @@ -7,9 +7,8 @@ */ import fs from "fs-extra"; -import path from "path"; -import { spawn } from "child_process"; - +import path from "node:path"; +import { spawn } from "node:child_process"; import { makeCommandInfo, subCommand } from "../../framework/command"; import { CommandOptions } from "../../framework/CommandInfo"; import { CommandModule } from "../../framework/CommandModule"; diff --git a/common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts b/common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts index 3968fd322162..c3a96a174ebe 100644 --- a/common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts +++ b/common/tools/dev-tool/src/commands/samples/checkNodeVersions.ts @@ -2,10 +2,10 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; -import pr from "child_process"; -import os from "os"; -import { URL } from "url"; +import path from "node:path"; +import pr from "node:child_process"; +import os from "node:os"; +import { URL } from "node:url"; import { createPrinter } from "../../util/printer"; import { leafCommand, makeCommandInfo } from "../../framework/command"; diff --git a/common/tools/dev-tool/src/commands/samples/dev.ts b/common/tools/dev-tool/src/commands/samples/dev.ts index af925bba42f3..a89974b81b1f 100644 --- a/common/tools/dev-tool/src/commands/samples/dev.ts +++ b/common/tools/dev-tool/src/commands/samples/dev.ts @@ -2,8 +2,7 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; - +import path from "node:path"; import { resolveProject } from "../../util/resolveProject"; import { createPrinter } from "../../util/printer"; import { leafCommand, makeCommandInfo } from "../../framework/command"; diff --git a/common/tools/dev-tool/src/commands/samples/prep.ts b/common/tools/dev-tool/src/commands/samples/prep.ts index b065ad11305d..7820f16c1d3a 100644 --- a/common/tools/dev-tool/src/commands/samples/prep.ts +++ b/common/tools/dev-tool/src/commands/samples/prep.ts @@ -2,8 +2,7 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; - +import path from "node:path"; import { createPrinter } from "../../util/printer"; import { findMatchingFiles } from "../../util/findMatchingFiles"; import { resolveProject } from "../../util/resolveProject"; diff --git a/common/tools/dev-tool/src/commands/samples/publish.ts b/common/tools/dev-tool/src/commands/samples/publish.ts index aeb781d7dbc5..04c7bd364544 100644 --- a/common/tools/dev-tool/src/commands/samples/publish.ts +++ b/common/tools/dev-tool/src/commands/samples/publish.ts @@ -8,7 +8,7 @@ * that are eventually used to generate a coherent set of sample programs. */ -import path from "path"; +import path from "node:path"; import { leafCommand, makeCommandInfo } from "../../framework/command"; import { createPrinter } from "../../util/printer"; import { resolveProject } from "../../util/resolveProject"; diff --git a/common/tools/dev-tool/src/commands/samples/run.ts b/common/tools/dev-tool/src/commands/samples/run.ts index 5b4fc5521990..8c4d49d6d0c6 100644 --- a/common/tools/dev-tool/src/commands/samples/run.ts +++ b/common/tools/dev-tool/src/commands/samples/run.ts @@ -2,8 +2,7 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; - +import path from "node:path"; import { findMatchingFiles } from "../../util/findMatchingFiles"; import { createPrinter } from "../../util/printer"; import { leafCommand, makeCommandInfo } from "../../framework/command"; diff --git a/common/tools/dev-tool/src/commands/test-proxy/init.ts b/common/tools/dev-tool/src/commands/test-proxy/init.ts index e7215f4920f8..9cc8b984cac3 100644 --- a/common/tools/dev-tool/src/commands/test-proxy/init.ts +++ b/common/tools/dev-tool/src/commands/test-proxy/init.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { cwd } from "process"; +import { cwd } from "node:process"; import { leafCommand, makeCommandInfo } from "../../framework/command"; import { resolveProject } from "../../util/resolveProject"; import { createAssetsJson } from "../../util/testProxyUtils"; diff --git a/common/tools/dev-tool/src/config/rollup.base.config.ts b/common/tools/dev-tool/src/config/rollup.base.config.ts index 830cea7b9b92..d39a84951a0a 100644 --- a/common/tools/dev-tool/src/config/rollup.base.config.ts +++ b/common/tools/dev-tool/src/config/rollup.base.config.ts @@ -8,14 +8,12 @@ import { RollupLog, WarningHandlerWithDefault, } from "rollup"; - import nodeResolve from "@rollup/plugin-node-resolve"; import cjs from "@rollup/plugin-commonjs"; import multiEntry from "@rollup/plugin-multi-entry"; import json from "@rollup/plugin-json"; -import * as path from "path"; +import * as path from "node:path"; import { readFile } from "node:fs/promises"; - import nodeBuiltins from "builtin-modules"; import { createPrinter } from "../util/printer"; diff --git a/common/tools/dev-tool/src/framework/parseOptions.ts b/common/tools/dev-tool/src/framework/parseOptions.ts index ac48f252e7ea..474a8f8d524e 100644 --- a/common/tools/dev-tool/src/framework/parseOptions.ts +++ b/common/tools/dev-tool/src/framework/parseOptions.ts @@ -2,7 +2,6 @@ // Licensed under the MIT license import getArgs from "minimist"; - import { createPrinter } from "../util/printer"; import { CommandOptions, StringOptionDescription, BooleanOptionDescription } from "./CommandInfo"; diff --git a/common/tools/dev-tool/src/migrations/onboard/test-proxy-asset-sync.ts b/common/tools/dev-tool/src/migrations/onboard/test-proxy-asset-sync.ts index 87f25f3ab297..cf2a93531d2d 100644 --- a/common/tools/dev-tool/src/migrations/onboard/test-proxy-asset-sync.ts +++ b/common/tools/dev-tool/src/migrations/onboard/test-proxy-asset-sync.ts @@ -2,10 +2,9 @@ // Licensed under the MIT license. import { readFile, pathExists } from "fs-extra"; -import path from "path"; +import path from "node:path"; import { createMigration } from "../../util/migrations"; import { runMigrationScript } from "../../util/testProxyUtils"; - import * as git from "../../util/git"; import * as pwsh from "../../util/pwsh"; diff --git a/common/tools/dev-tool/src/templates/migration.ts b/common/tools/dev-tool/src/templates/migration.ts index 166a684e94de..84b1cb5c9f88 100644 --- a/common/tools/dev-tool/src/templates/migration.ts +++ b/common/tools/dev-tool/src/templates/migration.ts @@ -1,5 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. + /** * Information used to instantiate the migration code template. */ diff --git a/common/tools/dev-tool/src/templates/sampleReadme.md.ts b/common/tools/dev-tool/src/templates/sampleReadme.md.ts index fa91dd4de274..e2aa31e1e139 100644 --- a/common/tools/dev-tool/src/templates/sampleReadme.md.ts +++ b/common/tools/dev-tool/src/templates/sampleReadme.md.ts @@ -1,9 +1,8 @@ // Copyright (c) Microsoft corporation. // Licensed under the MIT license. -import path from "path"; +import path from "node:path"; import YAML from "yaml"; - import { SampleReadmeConfiguration } from "../util/samples/info"; import { format } from "../util/prettier"; @@ -82,8 +81,9 @@ function resourceLinks(info: SampleReadmeConfiguration) { function resources(info: SampleReadmeConfiguration) { const resources = Object.entries(info.requiredResources ?? {}); - const header = `You need [an Azure subscription][freesub] ${resources.length > 0 ? "and the following Azure resources " : "" - }to run these sample programs${resources.length > 0 ? ":\n\n" : "."}`; + const header = `You need [an Azure subscription][freesub] ${ + resources.length > 0 ? "and the following Azure resources " : "" + }to run these sample programs${resources.length > 0 ? ":\n\n" : "."}`; return ( header + resources.map(([name]) => `- [${name}][${resourceNameToLinkSlug(name)}]`).join("\n") @@ -134,8 +134,9 @@ function exampleNodeInvocation(info: SampleReadmeConfiguration) { .map((envVar) => `${envVar}="<${envVar.replace(/_/g, " ").toLowerCase()}>"`) .join(" "); - return `${envVars} node ${info.useTypeScript ? "dist/" : "" - }${firstModule.relativeSourcePath.replace(/\.ts$/, ".js")}`; + return `${envVars} node ${ + info.useTypeScript ? "dist/" : "" + }${firstModule.relativeSourcePath.replace(/\.ts$/, ".js")}`; } /** @@ -165,7 +166,8 @@ export default (info: SampleReadmeConfiguration): Promise => { ${info.customSnippets?.header ?? ""} -These sample programs show how to use the ${language} client libraries for ${info.productName +These sample programs show how to use the ${language} client libraries for ${ + info.productName } in some common scenarios. ${table(info)} @@ -175,17 +177,17 @@ ${table(info)} The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). ${(() => { - if (info.useTypeScript) { - return [ - "Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:", - "", - fence("bash", "npm install -g typescript"), - "", - ].join("\n"); - } else { - return ""; - } - })()}\ + if (info.useTypeScript) { + return [ + "Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:", + "", + fence("bash", "npm install -g typescript"), + "", + ].join("\n"); + } else { + return ""; + } +})()}\ ${resources(info)} ${info.customSnippets?.prerequisites ?? ""} @@ -202,28 +204,28 @@ ${step("Install the dependencies using `npm`:")} ${fence("bash", "npm install")} ${(() => { - if (info.useTypeScript) { - return [step("Compile the samples:"), "", fence("bash", "npm run build"), ""].join("\n"); - } else { - return ""; - } - })()} + if (info.useTypeScript) { + return [step("Compile the samples:"), "", fence("bash", "npm run build"), ""].join("\n"); + } else { + return ""; + } +})()} ${step( - "Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.", - )} + "Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.", +)} ${step( - "Run whichever samples you like (note that some samples may require additional setup, see the table above):", - )} + "Run whichever samples you like (note that some samples may require additional setup, see the table above):", +)} ${fence( - "bash", - `node ${(() => { - const firstSource = filterModules(info)[0].relativeSourcePath; - const filePath = info.useTypeScript ? "dist/" : ""; - return filePath + firstSource.replace(/\.ts$/, ".js"); - })()}`, - )} + "bash", + `node ${(() => { + const firstSource = filterModules(info)[0].relativeSourcePath; + const filePath = info.useTypeScript ? "dist/" : ""; + return filePath + firstSource.replace(/\.ts$/, ".js"); + })()}`, +)} Alternatively, run a single sample with the correct environment variables set (setting up the \`.env\` file is not required if you do this), for example (cross-platform): diff --git a/common/tools/dev-tool/src/util/customization/customize.ts b/common/tools/dev-tool/src/util/customization/customize.ts index a3481bd66e0a..c9c744af6ad6 100644 --- a/common/tools/dev-tool/src/util/customization/customize.ts +++ b/common/tools/dev-tool/src/util/customization/customize.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import { copyFile, stat, readFile, writeFile, readdir } from "fs/promises"; +import { copyFile, stat, readFile, writeFile, readdir } from "node:fs/promises"; import { ensureDir, copy } from "fs-extra"; import path from "../pathUtil"; import { @@ -23,7 +23,6 @@ import { augmentTypeAliases } from "./aliases"; import { setCustomizationState, resetCustomizationState } from "./state"; import { getNewCustomFiles } from "./helpers/files"; import { augmentImports } from "./imports"; - import { format } from "../prettier"; import { augmentExports } from "./exports"; diff --git a/common/tools/dev-tool/src/util/fileTree.ts b/common/tools/dev-tool/src/util/fileTree.ts index c07297e45def..c414e02795ab 100644 --- a/common/tools/dev-tool/src/util/fileTree.ts +++ b/common/tools/dev-tool/src/util/fileTree.ts @@ -2,9 +2,8 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import os from "os"; -import path from "path"; - +import os from "node:os"; +import path from "node:path"; import { createPrinter } from "./printer"; import * as git from "./git"; diff --git a/common/tools/dev-tool/src/util/findMatchingFiles.ts b/common/tools/dev-tool/src/util/findMatchingFiles.ts index ce1efcbcc4f6..bb8fec987ed9 100644 --- a/common/tools/dev-tool/src/util/findMatchingFiles.ts +++ b/common/tools/dev-tool/src/util/findMatchingFiles.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license import fs from "fs-extra"; -import path from "path"; +import path from "node:path"; import { createPrinter } from "./printer"; import { shouldSkip } from "./samples/configuration"; diff --git a/common/tools/dev-tool/src/util/findSamplesDir.ts b/common/tools/dev-tool/src/util/findSamplesDir.ts index 3afb7b06e85f..b20fa393f9de 100644 --- a/common/tools/dev-tool/src/util/findSamplesDir.ts +++ b/common/tools/dev-tool/src/util/findSamplesDir.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license import fs from "fs-extra"; -import path from "path"; +import path from "node:path"; export function findSamplesRelativeDir(samplesDir: string): string { const dirs = []; diff --git a/common/tools/dev-tool/src/util/git.ts b/common/tools/dev-tool/src/util/git.ts index 28d91cc9c55c..64ccf2550e2c 100644 --- a/common/tools/dev-tool/src/util/git.ts +++ b/common/tools/dev-tool/src/util/git.ts @@ -1,10 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { spawn } from "child_process"; -import { tmpdir } from "os"; - -import path from "path"; +import { spawn } from "node:child_process"; +import { tmpdir } from "node:os"; +import path from "node:path"; /** * Uses the git command line to ask whether a path has any tracked, unstaged changes (if they would appear in a git diff --git a/common/tools/dev-tool/src/util/migrations.ts b/common/tools/dev-tool/src/util/migrations.ts index 18928001a8e6..ef6fa0086cb0 100644 --- a/common/tools/dev-tool/src/util/migrations.ts +++ b/common/tools/dev-tool/src/util/migrations.ts @@ -2,8 +2,8 @@ // Licensed under the MIT license. import { mkdirp, readFile, rm, stat, Stats, writeFile } from "fs-extra"; -import { userInfo } from "os"; -import path from "path"; +import { userInfo } from "node:os"; +import path from "node:path"; import { panic } from "./assert"; import { findMatchingFiles } from "./findMatchingFiles"; import { createPrinter, Printer } from "./printer"; diff --git a/common/tools/dev-tool/src/util/pathUtil.ts b/common/tools/dev-tool/src/util/pathUtil.ts index 86c6fcaf0f3b..d0739fdd32ca 100644 --- a/common/tools/dev-tool/src/util/pathUtil.ts +++ b/common/tools/dev-tool/src/util/pathUtil.ts @@ -1,4 +1,7 @@ -import path from "path"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import path from "node:path"; function toPosixWrapper any>(f: T): T { const wrapped = (...args: Parameters): ReturnType => { diff --git a/common/tools/dev-tool/src/util/prettier.ts b/common/tools/dev-tool/src/util/prettier.ts index 52ad480b5f6c..b9ecb351141e 100644 --- a/common/tools/dev-tool/src/util/prettier.ts +++ b/common/tools/dev-tool/src/util/prettier.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import * as prettier from "prettier"; import prettierOptions from "../../../eslint-plugin-azure-sdk/prettier.json"; diff --git a/common/tools/dev-tool/src/util/printer.ts b/common/tools/dev-tool/src/util/printer.ts index 441b378ff67d..c0804f9be8fa 100644 --- a/common/tools/dev-tool/src/util/printer.ts +++ b/common/tools/dev-tool/src/util/printer.ts @@ -4,7 +4,7 @@ /* eslint-disable @typescript-eslint/no-explicit-any */ import chalk from "chalk"; -import path from "path"; +import path from "node:path"; const printModes = ["info", "warn", "error", "success", "debug"] as const; diff --git a/common/tools/dev-tool/src/util/resolveProject.ts b/common/tools/dev-tool/src/util/resolveProject.ts index ac2b03410350..be9323461dcd 100644 --- a/common/tools/dev-tool/src/util/resolveProject.ts +++ b/common/tools/dev-tool/src/util/resolveProject.ts @@ -2,8 +2,7 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; - +import path from "node:path"; import { createPrinter } from "./printer"; import { SampleConfiguration } from "./samples/configuration"; diff --git a/common/tools/dev-tool/src/util/run.ts b/common/tools/dev-tool/src/util/run.ts index 4647b1746ca0..7af269b12358 100644 --- a/common/tools/dev-tool/src/util/run.ts +++ b/common/tools/dev-tool/src/util/run.ts @@ -1,4 +1,7 @@ -import { SpawnOptions, spawn } from "child_process"; +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { SpawnOptions, spawn } from "node:child_process"; export interface RunOptions extends SpawnOptions { captureOutput?: boolean; diff --git a/common/tools/dev-tool/src/util/samples/convert.ts b/common/tools/dev-tool/src/util/samples/convert.ts index c0443b04fa8c..8798061e4074 100644 --- a/common/tools/dev-tool/src/util/samples/convert.ts +++ b/common/tools/dev-tool/src/util/samples/convert.ts @@ -1,10 +1,8 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { EOL } from "os"; - +import { EOL } from "node:os"; import ts from "typescript"; - import { createPrinter } from "../printer"; import { format } from "../prettier"; diff --git a/common/tools/dev-tool/src/util/samples/generation.ts b/common/tools/dev-tool/src/util/samples/generation.ts index 38e610877b76..caba85078f81 100644 --- a/common/tools/dev-tool/src/util/samples/generation.ts +++ b/common/tools/dev-tool/src/util/samples/generation.ts @@ -1,5 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import fs from "fs-extra"; -import path from "path"; +import path from "node:path"; import { copy, dir, file, FileTreeFactory, lazy, safeClean, temp } from "../fileTree"; import { findMatchingFiles } from "../findMatchingFiles"; import { createPrinter } from "../printer"; @@ -17,7 +20,6 @@ import { SampleGenerationInfo, } from "./info"; import { processSources } from "./processor"; - import devToolPackageJson from "../../../package.json"; import instantiateSampleReadme from "../../templates/sampleReadme.md"; import { resolveModule } from "./transforms"; diff --git a/common/tools/dev-tool/src/util/samples/processor.ts b/common/tools/dev-tool/src/util/samples/processor.ts index 977fbb807eb0..b5c286eea950 100644 --- a/common/tools/dev-tool/src/util/samples/processor.ts +++ b/common/tools/dev-tool/src/util/samples/processor.ts @@ -2,8 +2,8 @@ // Licensed under the MIT license. import fs from "fs-extra"; -import path from "path"; -import * as ts from "typescript"; +import path from "node:path"; +import ts from "typescript"; import { convert } from "./convert"; import { createPrinter } from "../printer"; import { createAccumulator } from "../typescript/accumulator"; diff --git a/common/tools/dev-tool/src/util/samples/syntax.ts b/common/tools/dev-tool/src/util/samples/syntax.ts index 88f2585a5b94..919e03e1d383 100644 --- a/common/tools/dev-tool/src/util/samples/syntax.ts +++ b/common/tools/dev-tool/src/util/samples/syntax.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import * as ts from "typescript"; +import ts from "typescript"; /** * Tests for syntax compatibility. diff --git a/common/tools/dev-tool/src/util/testProxyUtils.ts b/common/tools/dev-tool/src/util/testProxyUtils.ts index 5767f6536b89..82d0cbb41384 100644 --- a/common/tools/dev-tool/src/util/testProxyUtils.ts +++ b/common/tools/dev-tool/src/util/testProxyUtils.ts @@ -1,14 +1,14 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { ChildProcess, exec, spawn, SpawnOptions } from "child_process"; +import { ChildProcess, exec, spawn, SpawnOptions } from "node:child_process"; import { createPrinter } from "./printer"; import { ProjectInfo, resolveProject, resolveRoot } from "./resolveProject"; import fs from "fs-extra"; -import path from "path"; +import path from "node:path"; import decompress from "decompress"; import envPaths from "env-paths"; -import { promisify } from "util"; +import { promisify } from "node:util"; const log = createPrinter("test-proxy"); const downloadLocation = path.join(envPaths("azsdk-dev-tool").cache, "test-proxy"); diff --git a/common/tools/dev-tool/src/util/testUtils.ts b/common/tools/dev-tool/src/util/testUtils.ts index a53b1f000b27..234835ab3dab 100644 --- a/common/tools/dev-tool/src/util/testUtils.ts +++ b/common/tools/dev-tool/src/util/testUtils.ts @@ -1,3 +1,6 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + import { isProxyToolActive, startTestProxy, TestProxy } from "./testProxyUtils"; import concurrently, { Command as ConcurrentlyCommand } from "concurrently"; import { createPrinter } from "./printer"; diff --git a/common/tools/dev-tool/src/util/typescript/diagnostic.ts b/common/tools/dev-tool/src/util/typescript/diagnostic.ts index dfaad0cd2fe4..03c886dc766e 100644 --- a/common/tools/dev-tool/src/util/typescript/diagnostic.ts +++ b/common/tools/dev-tool/src/util/typescript/diagnostic.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import ts from "typescript"; -import { EOL } from "os"; +import { EOL } from "node:os"; /** * The type of the emitter function. diff --git a/common/tools/dev-tool/test/argParsing.spec.ts b/common/tools/dev-tool/test/argParsing.spec.ts index ae960fc038d7..01f4ec93e0d3 100644 --- a/common/tools/dev-tool/test/argParsing.spec.ts +++ b/common/tools/dev-tool/test/argParsing.spec.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { assert } from "chai"; +import { describe, it, assert, beforeAll } from "vitest"; import { spawn } from "child_process"; import { StrictAllowMultiple } from "../src/framework/command"; import { CommandOptions } from "../src/framework/CommandInfo"; @@ -49,7 +49,7 @@ function shellSplit(args: string): Promise { } describe("argument parsing", function () { - before(silenceLogger); + beforeAll(silenceLogger); it("simple option", async () => { const parsed = parseOptions( diff --git a/common/tools/dev-tool/test/customization/aliases.spec.ts b/common/tools/dev-tool/test/customization/aliases.spec.ts index cc1583e314d8..3ec47e8b960d 100644 --- a/common/tools/dev-tool/test/customization/aliases.spec.ts +++ b/common/tools/dev-tool/test/customization/aliases.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile, TypeAliasDeclaration } from "ts-morph"; import { augmentTypeAliases } from "../../src/util/customization/aliases"; -import { expect } from "chai"; describe("Customization", () => { let project: Project; @@ -25,7 +28,7 @@ describe("Customization", () => { augmentTypeAliases(originalAliases, customAliases, originalFile); - expect(originalFile.getTypeAlias("CustomAlias")).not.to.be.undefined; + assert.isDefined(originalFile.getTypeAlias("CustomAlias")); }); it("should replace existing aliases with custom aliases", () => { @@ -43,7 +46,8 @@ describe("Customization", () => { augmentTypeAliases(originalAliases, customAliases, originalFile); - expect(originalFile.getTypeAlias("OriginalAlias")?.getText()).to.equal( + assert.equal( + originalFile.getTypeAlias("OriginalAlias")?.getText(), "type OriginalAlias = number;", ); }); diff --git a/common/tools/dev-tool/test/customization/annotations.spec.ts b/common/tools/dev-tool/test/customization/annotations.spec.ts index ae67a8e44358..c5808be8c6d0 100644 --- a/common/tools/dev-tool/test/customization/annotations.spec.ts +++ b/common/tools/dev-tool/test/customization/annotations.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile } from "ts-morph"; import { getAnnotation } from "../../src/util/customization/helpers/annotations"; -import { expect } from "chai"; describe("Annotations", () => { let project: Project; @@ -21,7 +24,7 @@ describe("Annotations", () => { }); const annotation = getAnnotation(functionDeclaration); - expect(annotation).to.deep.equal({ type: "remove", param: undefined }); + assert.deepEqual(annotation, { type: "remove", param: undefined }); }); it("should find it in Properties", () => { @@ -38,7 +41,7 @@ describe("Annotations", () => { const propertyDeclaration = interfaceDeclaration.getProperty("myProperty")!; const annotation = getAnnotation(propertyDeclaration); - expect(annotation).to.deep.equal({ type: "remove", param: undefined }); + assert.deepEqual(annotation, { type: "remove", param: undefined }); }); it("should find it in CallSignatures", () => { @@ -54,7 +57,7 @@ describe("Annotations", () => { const callSignatureDeclaration = interfaceDeclaration.getCallSignatures()[0]; const annotation = getAnnotation(callSignatureDeclaration); - expect(annotation).to.deep.equal({ type: "remove", param: undefined }); + assert.deepEqual(annotation, { type: "remove", param: undefined }); }); }); @@ -67,7 +70,7 @@ describe("Annotations", () => { }); const annotation = getAnnotation(functionDeclaration); - expect(annotation).to.deep.equal({ type: "rename", param: "myNewFunction" }); + assert.deepEqual(annotation, { type: "rename", param: "myNewFunction" }); }); it("should find it in Properties", () => { @@ -84,7 +87,7 @@ describe("Annotations", () => { const propertyDeclaration = interfaceDeclaration.getProperty("myProperty")!; const annotation = getAnnotation(propertyDeclaration); - expect(annotation).to.deep.equal({ type: "rename", param: "myNewProperty" }); + assert.deepEqual(annotation, { type: "rename", param: "myNewProperty" }); }); }); }); @@ -97,7 +100,7 @@ describe("Annotations", () => { }); const annotation = getAnnotation(functionDeclaration); - expect(annotation).to.be.undefined; + assert.isUndefined(annotation); }); it("should not find any in Properties", () => { @@ -113,7 +116,7 @@ describe("Annotations", () => { const propertyDeclaration = interfaceDeclaration.getProperty("myProperty")!; const annotation = getAnnotation(propertyDeclaration); - expect(annotation).to.be.undefined; + assert.isUndefined(annotation); }); it("should not find any in CallSignatures", () => { @@ -128,7 +131,7 @@ describe("Annotations", () => { const callSignatureDeclaration = interfaceDeclaration.getCallSignatures()[0]; const annotation = getAnnotation(callSignatureDeclaration); - expect(annotation).to.be.undefined; + assert.isUndefined(annotation); }); }); }); diff --git a/common/tools/dev-tool/test/customization/classes.spec.ts b/common/tools/dev-tool/test/customization/classes.spec.ts index f86c2a1bf950..30aae9c76856 100644 --- a/common/tools/dev-tool/test/customization/classes.spec.ts +++ b/common/tools/dev-tool/test/customization/classes.spec.ts @@ -1,3 +1,7 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach, afterEach } from "vitest"; import { Project, SourceFile, @@ -11,7 +15,6 @@ import { augmentConstructor, augmentMethod, } from "../../src/util/customization/classes"; -import { expect } from "chai"; describe("Classes", () => { let project: Project; @@ -61,16 +64,17 @@ class MyClass {} it("should add a new class to the source file", () => { augmentClass(undefined, customClass, originalFile); - expect(originalFile.getClass("MyClass")).to.not.be.undefined; + assert.isDefined(originalFile.getClass("MyClass")); }); it("should add properties only present in the custom class", () => { originalClass = originalFile.addClass({ name: "MyClass" }); customClass.addProperty({ name: "myProperty", type: "string" }); augmentClass(originalClass, customClass, originalFile); - expect( + assert.equal( originalFile.getClass("MyClass")?.getProperty("myProperty")?.getType().getText(), - ).to.equal("string"); + "string", + ); }); it("should not add the class augmentation property", () => { @@ -78,19 +82,21 @@ class MyClass {} customClass.addProperty({ name: "myProperty", type: "string" }); customClass.addProperty({ name: AUGMENT_CLASS_TOKEN, type: "string" }); augmentClass(originalClass, customClass, originalFile); - expect(originalFile.getClass("MyClass")?.getProperty(AUGMENT_CLASS_TOKEN)).to.be.undefined; - expect( + assert.isUndefined(originalFile.getClass("MyClass")?.getProperty(AUGMENT_CLASS_TOKEN)); + assert.equal( originalFile.getClass("MyClass")?.getProperty("myProperty")?.getType().getText(), - ).to.equal("string"); + "string", + ); }); it("should replace the original property with the custom property", () => { originalClass = originalFile.addClass({ name: "MyClass" }); originalClass.addProperty({ name: "myProperty", type: "number" }); customClass.addProperty({ name: "myProperty", type: "string" }); augmentClass(originalClass, customClass, originalFile); - expect( + assert.equal( originalFile.getClass("MyClass")?.getProperty("myProperty")?.getType().getText(), - ).to.equal("string"); + "string", + ); }); }); @@ -117,7 +123,7 @@ class MyClass {} }); augmentMethod(originalMethod, customMethod, originalClass!); - expect(originalFile.getClass("MyClass")?.getMethod("myMethod")).to.not.be.undefined; + assert.isDefined(originalFile.getClass("MyClass")?.getMethod("myMethod")); }); it("should augment an existing method in the original class", () => { @@ -133,9 +139,10 @@ class MyClass {} augmentMethod(originalMethod, customMethod, originalClass!); - expect( + assert.equal( originalFile.getClass("MyClass")?.getMethod("myMethod")?.getReturnType().getText(), - ).to.equal("number"); + "number", + ); }); it("should replace an existing method in the original class", () => { @@ -151,9 +158,10 @@ class MyClass {} augmentMethod(originalMethod, customMethod, originalClass!); - expect( + assert.equal( originalFile.getClass("MyClass")?.getMethod("myMethod")?.getReturnType().getText(), - ).to.equal("number"); + "number", + ); }); it("should augment existing method with the original one", () => { @@ -195,16 +203,16 @@ class MyClass {} ?.getJsDocs() ?.map((x) => x.getDescription()); - expect(methodBody).to.contain("return originalNumber;"); - expect(methodBody).to.not.contain("return 1;"); + assert.include(methodBody, "return originalNumber;"); + assert.notInclude(methodBody, "return 1;"); - expect(methodDocs).to.have.lengthOf(1); - expect(methodDocs?.[0]).to.equal("Customized docs"); + assert.lengthOf(methodDocs!, 1); + assert.equal(methodDocs?.[0], "Customized docs"); - expect(privateMethodBody).to.not.contain("return originalNumber;"); - expect(privateMethodBody).to.contain("return 1;"); + assert.notInclude(privateMethodBody, "return originalNumber;"); + assert.include(privateMethodBody, "return 1;"); - expect(originalFile.getClass("MyClass")?.getProperty(AUGMENT_CLASS_TOKEN)).to.be.undefined; + assert.isUndefined(originalFile.getClass("MyClass")?.getProperty(AUGMENT_CLASS_TOKEN)); }); }); @@ -229,7 +237,7 @@ class MyClass {} }); augmentConstructor(customConstructor, originalClass!); - expect(originalFile.getClass("MyClass")?.getConstructors().length).to.equal(1); + assert.lengthOf(originalFile.getClass("MyClass")?.getConstructors()!, 1); }); it("should replace the original constructor with the custom constructor", () => { @@ -241,11 +249,11 @@ class MyClass {} }); augmentConstructor(customConstructor, originalClass!); - expect(originalFile.getClass("MyClass")?.getConstructors().length).to.equal(1); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("foo")).to.not.be - .undefined; - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("bar")).to.be - .undefined; + assert.lengthOf(originalFile.getClass("MyClass")?.getConstructors()!, 1); + assert.isDefined(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("foo")); + assert.isUndefined( + originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("bar"), + ); }); it("should augment constructor with original constructor", () => { @@ -277,24 +285,32 @@ class MyClass {} augmentConstructor(customConstructor, originalClass!); - expect(originalFile.getClass("MyClass")?.getConstructors().length).to.equal(1); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getJsDocs().length).to.equal(1); - expect( + assert.lengthOf(originalFile.getClass("MyClass")?.getConstructors()!, 1); + assert.equal(originalFile.getClass("MyClass")?.getConstructors()[0].getJsDocs().length, 1); + assert.equal( originalFile.getClass("MyClass")?.getConstructors()[0].getJsDocs()[0].getDescription(), - ).to.equal("Customized docs"); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("endpoint")).to.not - .be.undefined; - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("baseUrl")).to.be; - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getText()).to.include( + "Customized docs", + ); + assert.isDefined( + originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("endpoint"), + ); + assert.isUndefined( + originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("baseUrl"), + ); + assert.include( + originalFile.getClass("MyClass")?.getConstructors()[0].getText(), "console.log('custom');", ); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getText()).to.include( + assert.include( + originalFile.getClass("MyClass")?.getConstructors()[0].getText(), "console.log('original');", ); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getText()).to.not.include( + assert.notInclude( + originalFile.getClass("MyClass")?.getConstructors()[0].getText(), "// @azsdk-constructor-end", ); - expect(originalFile.getClass("MyClass")?.getConstructors()[0].getText()).to.include( + assert.include( + originalFile.getClass("MyClass")?.getConstructors()[0].getText(), "console.log('finish custom');", ); }); diff --git a/common/tools/dev-tool/test/customization/exports.spec.ts b/common/tools/dev-tool/test/customization/exports.spec.ts index b0509cc3ce31..6f104b9804e4 100644 --- a/common/tools/dev-tool/test/customization/exports.spec.ts +++ b/common/tools/dev-tool/test/customization/exports.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile } from "ts-morph"; import { augmentExports } from "../../src/util/customization/exports"; -import { expect } from "chai"; describe("Exports", () => { let project: Project; @@ -20,14 +23,14 @@ describe("Exports", () => { it("should add custom exports to the original file", () => { augmentExports(customFile, originalFile); - expect(originalFile.getExportDeclarations()).to.have.lengthOf(1); + assert.equal(originalFile.getExportDeclarations().length, 1); const exportDeclaration = originalFile.getExportDeclarations()[0]; - expect(exportDeclaration.getModuleSpecifier()?.getLiteralValue()).to.equal("./module"); + assert.equal(exportDeclaration.getModuleSpecifier()?.getLiteralValue(), "./module"); const namedExports = exportDeclaration.getNamedExports(); - expect(namedExports).to.have.lengthOf(1); - expect(namedExports[0].getName()).to.equal("Foo"); + assert.lengthOf(namedExports, 1); + assert.equal(namedExports[0].getName(), "Foo"); }); it("should add named exports to the existing module export if it exists", () => { @@ -38,14 +41,14 @@ describe("Exports", () => { augmentExports(customFile, originalFile); - expect(originalFile.getExportDeclarations()).to.have.lengthOf(1); + assert.equal(originalFile.getExportDeclarations().length, 1); const exportDeclaration = originalFile.getExportDeclarations()[0]; - expect(exportDeclaration.getModuleSpecifier()?.getLiteralValue()).to.equal("./module"); + assert.equal(exportDeclaration.getModuleSpecifier()?.getLiteralValue(), "./module"); const namedExports = exportDeclaration.getNamedExports(); - expect(namedExports).to.have.lengthOf(2); - expect(namedExports.map((e) => e.getName())).contains("Foo"); - expect(namedExports.map((e) => e.getName())).contains("Bar"); + assert.lengthOf(namedExports, 2); + const namedExportNames = namedExports.map((e) => e.getName()); + assert.includeMembers(namedExportNames, ["Foo", "Bar"]); }); }); diff --git a/common/tools/dev-tool/test/customization/functions.spec.ts b/common/tools/dev-tool/test/customization/functions.spec.ts index 50af34464fc0..9a0488aa363e 100644 --- a/common/tools/dev-tool/test/customization/functions.spec.ts +++ b/common/tools/dev-tool/test/customization/functions.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile, FunctionDeclaration } from "ts-morph"; import { augmentFunction } from "../../src/util/customization/functions"; -import { expect } from "chai"; describe("Functions", () => { let project: Project; @@ -23,7 +26,7 @@ describe("Functions", () => { it("should add custom functions to the original file", () => { augmentFunction(customFunction, originalFunction, originalFile); - expect(originalFile.getFunction("myFunction")).not.to.be.undefined; + assert.isDefined(originalFile.getFunction("myFunction")); }); it("should replace existing functions with custom functions", () => { @@ -34,9 +37,10 @@ describe("Functions", () => { augmentFunction(customFunction, originalFunction, originalFile); - expect( + assert.equal( originalFile.getFunction("myFunction")?.getParameter("param")?.getType().getText(), - ).to.equal("string"); + "string", + ); }); it("should convert existing functions to private functions", () => { @@ -49,8 +53,8 @@ describe("Functions", () => { augmentFunction(customFunction, originalFunction, originalFile); - expect(originalFile.getFunction("myFunction")).to.not.be.undefined; - expect(originalFile.getFunction("_myFunction")).to.not.be.undefined; - expect(originalFile.getFunction("myFunction")?.getText()).to.include("_myFunction"); + assert.isDefined(originalFile.getFunction("myFunction")); + assert.isDefined(originalFile.getFunction("_myFunction")); + assert.include(originalFile.getFunction("myFunction")?.getText(), "_myFunction"); }); }); diff --git a/common/tools/dev-tool/test/customization/imports.spec.ts b/common/tools/dev-tool/test/customization/imports.spec.ts index 09790fcd2fe5..a78e47bd3753 100644 --- a/common/tools/dev-tool/test/customization/imports.spec.ts +++ b/common/tools/dev-tool/test/customization/imports.spec.ts @@ -1,6 +1,9 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach, afterEach } from "vitest"; import { ImportDeclaration, Project } from "ts-morph"; import { augmentImports } from "../../src/util/customization/imports"; -import { expect } from "chai"; import { resetCustomizationState, setCustomizationState } from "../../src/util/customization/state"; describe("Imports", () => { @@ -27,7 +30,7 @@ describe("Imports", () => { augmentImports(imports, customFile.getImportDeclarations(), originalFile); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(0); + assert.equal(augmentedImports.length, 0); }); it("should remove self imports on Windows", () => { @@ -49,7 +52,7 @@ describe("Imports", () => { augmentImports(imports, customFile.getImportDeclarations(), originalFile); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(0); + assert.equal(augmentedImports.length, 0); }); it("should rewrite relative imports to the source directory", () => { @@ -75,11 +78,11 @@ describe("Imports", () => { resetCustomizationState(); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(2); + assert.lengthOf(augmentedImports, 2); const rewrittenImportSpecifier = augmentedImports[0].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier).to.equal("./anotherFile.js"); + assert.equal(rewrittenImportSpecifier, "./anotherFile.js"); const rewrittenImportSpecifier2 = augmentedImports[1].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier2).to.equal("../rest/file.js"); + assert.equal(rewrittenImportSpecifier2, "../rest/file.js"); }); it("rewrite relative imports to the source directory on Windows", () => { @@ -106,11 +109,11 @@ describe("Imports", () => { resetCustomizationState(); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(2); + assert.lengthOf(augmentedImports, 2); const rewrittenImportSpecifier = augmentedImports[0].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier).to.equal("./anotherFile.js"); + assert.equal(rewrittenImportSpecifier, "./anotherFile.js"); const rewrittenImportSpecifier2 = augmentedImports[1].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier2).to.equal("../rest/file.js"); + assert.equal(rewrittenImportSpecifier2, "../rest/file.js"); }); it("should rewrite relative imports to the source directory when nested", () => { @@ -133,9 +136,9 @@ describe("Imports", () => { resetCustomizationState(); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(1); + assert.lengthOf(augmentedImports, 1); const rewrittenImportSpecifier = augmentedImports[0].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier).to.equal("../anotherFile.js"); + assert.equal(rewrittenImportSpecifier, "../anotherFile.js"); }); it("should rewrite relative imports to new files from customization", () => { @@ -158,8 +161,8 @@ describe("Imports", () => { resetCustomizationState(); const augmentedImports = originalFile.getImportDeclarations(); - expect(augmentedImports).to.have.lengthOf(1); + assert.lengthOf(augmentedImports, 1); const rewrittenImportSpecifier = augmentedImports[0].getModuleSpecifierValue(); - expect(rewrittenImportSpecifier).to.equal("../anotherFile.js"); + assert.equal(rewrittenImportSpecifier, "../anotherFile.js"); }); }); diff --git a/common/tools/dev-tool/test/customization/interfaces.spec.ts b/common/tools/dev-tool/test/customization/interfaces.spec.ts index 7573f616f681..bcc208f86b25 100644 --- a/common/tools/dev-tool/test/customization/interfaces.spec.ts +++ b/common/tools/dev-tool/test/customization/interfaces.spec.ts @@ -1,5 +1,8 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { describe, it, assert, beforeEach } from "vitest"; import { Project, SourceFile, InterfaceDeclaration } from "ts-morph"; -import { expect } from "chai"; import { augmentInterface, augmentInterfaces } from "../../src/util/customization/interfaces"; import { getOriginalDeclarationsMap } from "../../src/util/customization/customize"; @@ -24,7 +27,7 @@ describe("Interfaces", () => { it("should add custom interface to the original file", () => { augmentInterface(customInterface, originalInterface, originalFile); - expect(originalFile.getInterface("myInterface")).not.to.be.undefined; + assert.isDefined(originalFile.getInterface("myInterface")); }); it("should replace existing properties with custom properties", () => { @@ -35,17 +38,19 @@ describe("Interfaces", () => { augmentInterface(customInterface, originalInterface, originalFile); - expect(originalFile.getInterface("myInterface")).not.to.be.undefined; - expect(originalFile.getInterface("myInterface")?.getProperties()).to.have.lengthOf(2); - expect(originalFile.getInterface("myInterface")?.getProperty("foo")).to.not.be.undefined; - expect( + assert.isDefined(originalFile.getInterface("myInterface")); + assert.lengthOf(originalFile.getInterface("myInterface")?.getProperties()!, 2); + assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("foo")); + assert.equal( originalFile.getInterface("myInterface")?.getProperty("foo")?.getType().getText(), - ).to.equal("string"); + "string", + ); - expect(originalFile.getInterface("myInterface")?.getProperty("bar")).to.not.be.undefined; - expect( + assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("bar")); + assert.equal( originalFile.getInterface("myInterface")?.getProperty("bar")?.getType().getText(), - ).to.equal("number"); + "number", + ); }); it("should remove property marked with @azsdk-remove", () => { @@ -61,19 +66,21 @@ describe("Interfaces", () => { augmentInterface(customInterface, originalInterface, originalFile); - expect(originalFile.getInterface("myInterface")).not.to.be.undefined; - expect(originalFile.getInterface("myInterface")?.getProperties()).to.have.lengthOf(2); - expect(originalFile.getInterface("myInterface")?.getProperty("foo")).to.not.be.undefined; - expect(originalFile.getInterface("myInterface")?.getProperty("baz")).to.not.be.undefined; + assert.isDefined(originalFile.getInterface("myInterface")); + assert.lengthOf(originalFile.getInterface("myInterface")?.getProperties()!, 2); + assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("foo")); + assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("baz")); - expect(originalFile.getInterface("myInterface")?.getProperty("bar")).to.be.undefined; - expect( + assert.isUndefined(originalFile.getInterface("myInterface")?.getProperty("bar")); + assert.equal( originalFile.getInterface("myInterface")?.getProperty("foo")?.getType().getText(), - ).to.equal("string"); + "string", + ); - expect( + assert.equal( originalFile.getInterface("myInterface")?.getProperty("baz")?.getType().getText(), - ).to.equal("boolean"); + "boolean", + ); }); it("should rename an interface marked with @azsdk-rename", () => { @@ -94,9 +101,10 @@ describe("Interfaces", () => { augmentInterfaces(originalMap.interfaces, customFile.getInterfaces(), originalFile); - expect(originalFile.getInterface("Dog")).to.be.undefined; - expect(originalFile.getInterface("Pet")).not.to.be.undefined; - expect(originalFile.getInterface("Human")?.getProperty("pets")?.getType().getText()).to.equal( + assert.isUndefined(originalFile.getInterface("Dog")); + assert.isDefined(originalFile.getInterface("Pet")); + assert.equal( + originalFile.getInterface("Human")?.getProperty("pets")?.getType().getText(), "Pet[]", ); }); diff --git a/common/tools/dev-tool/test/framework.spec.ts b/common/tools/dev-tool/test/framework.spec.ts index 879567a55184..52652bce945a 100644 --- a/common/tools/dev-tool/test/framework.spec.ts +++ b/common/tools/dev-tool/test/framework.spec.ts @@ -1,11 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { assert } from "chai"; - +import { describe, it, assert, beforeAll } from "vitest"; import { parseOptions } from "../src/framework/parseOptions"; import { makeCommandInfo, subCommand, leafCommand } from "../src/framework/command"; - import { silenceLogger } from "./util"; const simpleCommandInfo = makeCommandInfo("simple", "a simple command", { @@ -24,7 +22,7 @@ interface SimpleExpectedOptionsType { } describe("Command Framework", () => { - before(silenceLogger); + beforeAll(silenceLogger); describe("subCommand", () => { it("simple dispatcher", async () => { diff --git a/common/tools/dev-tool/test/resolveProject.spec.ts b/common/tools/dev-tool/test/resolveProject.spec.ts index ba46643fc39b..1f0a948904e4 100644 --- a/common/tools/dev-tool/test/resolveProject.spec.ts +++ b/common/tools/dev-tool/test/resolveProject.spec.ts @@ -1,22 +1,18 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import { assert, use as chaiUse } from "chai"; -import chaiPromises from "chai-as-promised"; -chaiUse(chaiPromises); - -import path from "path"; - +import { describe, it, assert, expect } from "vitest"; +import path from "node:path"; import { resolveProject } from "../src/util/resolveProject"; describe("Project Resolution", () => { it("resolution halts at monorepo root", async () => { - await assert.isRejected(resolveProject(path.join(__dirname, "..", "..")), /monorepo root/); + await expect(resolveProject(path.join(__dirname, "..", ".."))).rejects.toThrow(/monorepo root/); }); it("resolution halts at filesystem root", async () => { const p = path.join(__dirname, "..", "..", "..", "..", ".."); - await assert.isRejected(resolveProject(p), /filesystem root/); + await expect(resolveProject(p)).rejects.toThrow(/filesystem root/); }); it("resolution finds dev-tool package", async () => { diff --git a/common/tools/dev-tool/test/samples/files.spec.ts b/common/tools/dev-tool/test/samples/files.spec.ts index 56baa50f606e..7b8fd1d569bb 100644 --- a/common/tools/dev-tool/test/samples/files.spec.ts +++ b/common/tools/dev-tool/test/samples/files.spec.ts @@ -1,14 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { describe, it, assert } from "vitest"; import fs from "fs-extra"; -import os from "os"; -import path from "path"; +import os from "node:os"; +import path from "node:path"; import { makeSamplesFactory } from "../../src/util/samples/generation"; - import * as git from "../../src/util/git"; - -import { assert } from "chai"; import { findMatchingFiles } from "../../src/util/findMatchingFiles"; import { METADATA_KEY } from "../../src/util/resolveProject"; @@ -17,7 +15,7 @@ import { METADATA_KEY } from "../../src/util/resolveProject"; const INPUT_PATH = path.join(__dirname, "files", "inputs"); const EXPECT_PATH = path.join(__dirname, "files", "expectations"); -describe("File content tests", async function () { +describe("File content tests", { timeout: 50000 }, async function () { const shouldWriteExpectations = process.env.TEST_MODE === "record"; if (shouldWriteExpectations) { @@ -44,7 +42,7 @@ describe("File content tests", async function () { for (const dir of inputDirectories) { const name = path.basename(dir); - it(name, async function () { + it(name, { timeout: 50000 }, async function () { const tempOutputDir = await fs.mkdtemp(path.join(os.tmpdir(), "devToolTest")); const version = name.includes("@") ? name.split("@")[1] : "1.0.0"; @@ -115,6 +113,6 @@ describe("File content tests", async function () { await fs.emptyDir(tempOutputDir); await fs.rmdir(tempOutputDir); } - }).timeout(50000); + }); } -}).timeout(50000); +}); diff --git a/common/tools/dev-tool/test/samples/skips.spec.ts b/common/tools/dev-tool/test/samples/skips.spec.ts index 41514fc28dbe..228fae3b2a6a 100644 --- a/common/tools/dev-tool/test/samples/skips.spec.ts +++ b/common/tools/dev-tool/test/samples/skips.spec.ts @@ -1,8 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { assert } from "chai"; - +import { describe, it, assert } from "vitest"; import { FileInfo } from "../../src/util/findMatchingFiles"; import { shouldSkip } from "../../src/util/samples/configuration"; diff --git a/common/tools/dev-tool/vitest.config.ts b/common/tools/dev-tool/vitest.config.ts new file mode 100644 index 000000000000..16d0436c006f --- /dev/null +++ b/common/tools/dev-tool/vitest.config.ts @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { defineConfig } from "vitest/config"; + +export default defineConfig({ + test: { + reporters: ["basic", "junit"], + outputFile: { + junit: "test-results.xml", + }, + fakeTimers: { + toFake: ["setTimeout", "Date"], + }, + watch: false, + include: ["test/**/*.spec.ts", "test/*.spec.ts"], + coverage: { + include: ["src/**/*.ts"], + exclude: [ + "src/**/*-browser.mts", + "src/**/*-react-native.mts", + "vitest*.config.ts", + "samples-dev/**/*.ts", + ], + provider: "istanbul", + reporter: ["text", "json", "html"], + reportsDirectory: "coverage", + }, + }, +}); From c2c7d17a1779dbef29ea28e95a5237af195e7ff0 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Tue, 12 Mar 2024 11:41:22 -0700 Subject: [PATCH 23/57] [EngSys] Use tsx for min/max testing (#28890) ### Packages impacted by this PR N/A ### Issues associated with this PR Build failures ### Describe the problem that is addressed by this PR `esm` is slowly becoming a larger problem for us and we've been on a mission to remove it. min/max tests fail because esm is unable to handle safe-navigation operators (?.) While a separate PR switches tests to use tsx, this PR focuses on min/max tests and can be merged separately. ### Provide a list of related PRs _(if any)_ #28826 --- eng/tools/dependency-testing/templates/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/tools/dependency-testing/templates/package.json b/eng/tools/dependency-testing/templates/package.json index 69f281c2def4..32a19a377451 100644 --- a/eng/tools/dependency-testing/templates/package.json +++ b/eng/tools/dependency-testing/templates/package.json @@ -9,7 +9,7 @@ "scripts": { "build": "tsc -p .", "integration-test:browser": "karma start --single-run", - "integration-test:node": "mocha -r esm-workaround.js -r esm --require source-map-support/register --reporter mocha-multi-reporter.js --reporter-option output=test-results.xml --timeout 350000 --full-trace \"dist-esm/**/{,!(browser)/**/}*.spec.js\" --exit", + "integration-test:node": "mocha --require tsx --require source-map-support/register --reporter mocha-multi-reporter.js --reporter-option output=test-results.xml --timeout 350000 --full-trace \"dist-esm/**/{,!(browser)/**/}*.spec.js\" --exit", "integration-test": "npm run integration-test:node && npm run integration-test:browser" }, "repository": { From e3aaa5abef8e1443cf27cf88650b6c85b56f93e0 Mon Sep 17 00:00:00 2001 From: Maor Leger Date: Tue, 12 Mar 2024 12:32:59 -0700 Subject: [PATCH 24/57] remove use-esm-workaround (#28826) Builds off of Matt's work on moving to tsx in #28801 by removing the `use-esm-workaround` flag from packages that needed it before we moved to tsx. There's additional cleanup to be had, but I am trying not to cause a build storm. We are at a point where we can delete `esm` globally! Contributes to #28617 which can be completed with a no-ci change to remove `esm` globally ****NO_CI**** --- .../tools/dev-tool/src/commands/run/index.ts | 3 +- .../src/commands/run/testNodeJSInput.ts | 24 ++-------- .../src/commands/run/testNodeTsxJS.ts | 44 ------------------- .../app-configuration/package.json | 2 +- .../ai-language-text/package.json | 2 +- sdk/eventgrid/eventgrid/package.json | 2 +- sdk/eventhub/event-hubs/package.json | 2 +- .../package.json | 2 +- sdk/keyvault/keyvault-admin/package.json | 4 +- .../keyvault-certificates/package.json | 4 +- sdk/keyvault/keyvault-keys/package.json | 4 +- sdk/keyvault/keyvault-secrets/package.json | 4 +- .../monitor-opentelemetry/package.json | 2 +- sdk/monitor/monitor-query/package.json | 2 +- .../schema-registry-avro/package.json | 2 +- .../web-pubsub-client-protobuf/package.json | 2 +- 16 files changed, 21 insertions(+), 84 deletions(-) delete mode 100644 common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts diff --git a/common/tools/dev-tool/src/commands/run/index.ts b/common/tools/dev-tool/src/commands/run/index.ts index 944fc7e3b06e..f0c856869174 100644 --- a/common/tools/dev-tool/src/commands/run/index.ts +++ b/common/tools/dev-tool/src/commands/run/index.ts @@ -1,13 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license -import { subCommand, makeCommandInfo } from "../../framework/command"; +import { makeCommandInfo, subCommand } from "../../framework/command"; export const commandInfo = makeCommandInfo("run", "run scripts such as test:node"); export default subCommand(commandInfo, { "test:node-tsx-ts": () => import("./testNodeTsxTS"), - "test:node-tsx-js": () => import("./testNodeTsxJS"), "test:node-ts-input": () => import("./testNodeTSInput"), "test:node-js-input": () => import("./testNodeJSInput"), "test:browser": () => import("./testBrowser"), diff --git a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts index ad1c698e10c0..60707e05ef6e 100644 --- a/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts +++ b/common/tools/dev-tool/src/commands/run/testNodeJSInput.ts @@ -2,9 +2,9 @@ // Licensed under the MIT license import { leafCommand, makeCommandInfo } from "../../framework/command"; + import concurrently from "concurrently"; import { createPrinter } from "../../util/printer"; -import { isModuleProject } from "../../util/resolveProject"; import { runTestsWithProxyTool } from "../../util/testUtils"; export const commandInfo = makeCommandInfo( @@ -17,31 +17,13 @@ export const commandInfo = makeCommandInfo( default: false, description: "whether to run with test-proxy", }, - "use-esm-workaround": { - shortName: "uew", - kind: "boolean", - default: false, - description: - "when true, uses the `esm` npm package for tests. Otherwise uses esm4mocha if needed", - }, }, ); export default leafCommand(commandInfo, async (options) => { - const isModule = await isModuleProject(); - let esmLoaderArgs = ""; - - if (isModule === false) { - if (options["use-esm-workaround"] === false) { - esmLoaderArgs = "--loader=../../../common/tools/esm4mocha.mjs"; - } else { - esmLoaderArgs = "-r ../../../common/tools/esm-workaround -r esm"; - } - } - const reporterArgs = "--reporter ../../../common/tools/mocha-multi-reporter.js --reporter-option output=test-results.xml"; - const defaultMochaArgs = `${esmLoaderArgs} -r source-map-support/register.js ${reporterArgs} --full-trace`; + const defaultMochaArgs = `-r source-map-support/register.js ${reporterArgs} --full-trace`; const updatedArgs = options["--"]?.map((opt) => opt.includes("**") && !opt.startsWith("'") && !opt.startsWith('"') ? `"${opt}"` : opt, ); @@ -49,7 +31,7 @@ export default leafCommand(commandInfo, async (options) => { ? updatedArgs.join(" ") : '--timeout 5000000 "dist-esm/test/{,!(browser)/**/}/*.spec.js"'; const command = { - command: `c8 mocha ${defaultMochaArgs} ${mochaArgs}`, + command: `c8 mocha --require tsx ${defaultMochaArgs} ${mochaArgs}`, name: "node-tests", }; diff --git a/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts b/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts deleted file mode 100644 index 34ae0de6b57e..000000000000 --- a/common/tools/dev-tool/src/commands/run/testNodeTsxJS.ts +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT license - -import { leafCommand, makeCommandInfo } from "../../framework/command"; -import concurrently from "concurrently"; -import { createPrinter } from "../../util/printer"; -import { runTestsWithProxyTool } from "../../util/testUtils"; - -export const commandInfo = makeCommandInfo( - "test:node-js-input", - "runs the node tests using mocha with the default and the provided options; starts the proxy-tool in record and playback modes", - { - "no-test-proxy": { - shortName: "ntp", - kind: "boolean", - default: false, - description: "whether to run with test-proxy", - }, - }, -); - -export default leafCommand(commandInfo, async (options) => { - const reporterArgs = - "--reporter ../../../common/tools/mocha-multi-reporter.js --reporter-option output=test-results.xml"; - const defaultMochaArgs = `-r source-map-support/register.js ${reporterArgs} --full-trace`; - const updatedArgs = options["--"]?.map((opt) => - opt.includes("**") && !opt.startsWith("'") && !opt.startsWith('"') ? `"${opt}"` : opt, - ); - const mochaArgs = updatedArgs?.length - ? updatedArgs.join(" ") - : '--timeout 5000000 "dist-esm/test/{,!(browser)/**/}/*.spec.js"'; - const command = { - command: `c8 mocha --require tsx ${defaultMochaArgs} ${mochaArgs}`, - name: "node-tests", - }; - - if (!options["no-test-proxy"]) { - return runTestsWithProxyTool(command); - } - - createPrinter("test-info").info("Running tests without test-proxy"); - await concurrently([command]).result; - return true; -}); diff --git a/sdk/appconfiguration/app-configuration/package.json b/sdk/appconfiguration/app-configuration/package.json index 98b8cb8a81b2..6703c94fa2a8 100644 --- a/sdk/appconfiguration/app-configuration/package.json +++ b/sdk/appconfiguration/app-configuration/package.json @@ -53,7 +53,7 @@ "pack": "npm pack 2>&1", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "npm run build:test && dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-tsx-js -- --timeout 180000 'dist-esm/test/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 'dist-esm/test/**/*.spec.js'", "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser", "test:node": "npm run clean && npm run build:test && npm run unit-test:node", "test": "npm run test:node && npm run test:browser", diff --git a/sdk/cognitivelanguage/ai-language-text/package.json b/sdk/cognitivelanguage/ai-language-text/package.json index 0eb94954798e..bb0f08cc7c9c 100644 --- a/sdk/cognitivelanguage/ai-language-text/package.json +++ b/sdk/cognitivelanguage/ai-language-text/package.json @@ -73,7 +73,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", diff --git a/sdk/eventgrid/eventgrid/package.json b/sdk/eventgrid/eventgrid/package.json index d56fc80c4fe1..67f0fef1903e 100644 --- a/sdk/eventgrid/eventgrid/package.json +++ b/sdk/eventgrid/eventgrid/package.json @@ -76,7 +76,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md && node ./scripts/setPathToEmpty.js", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-tsx-js -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 \"dist-esm/test/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", diff --git a/sdk/eventhub/event-hubs/package.json b/sdk/eventhub/event-hubs/package.json index 9def17528196..d45f75cd7acf 100644 --- a/sdk/eventhub/event-hubs/package.json +++ b/sdk/eventhub/event-hubs/package.json @@ -52,7 +52,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate-certs": "node ./scripts/generateCerts.js", "integration-test:browser": "cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true karma start --single-run", - "integration-test:node": "cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true dev-tool run test:node-js-input --no-test-proxy=true --use-esm-workaround=true -- --timeout 600000 \"dist-esm/test/internal/*.spec.js\" \"dist-esm/test/public/*.spec.js\" \"dist-esm/test/public/**/*.spec.js\" \"dist-esm/test/internal/**/*.spec.js\"", + "integration-test:node": "cross-env TEST_TARGET=live DISABLE_MULTI_VERSION_TESTING=true dev-tool run test:node-js-input --no-test-proxy=true -- --timeout 600000 \"dist-esm/test/internal/*.spec.js\" \"dist-esm/test/public/*.spec.js\" \"dist-esm/test/public/**/*.spec.js\" \"dist-esm/test/internal/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", diff --git a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json index 7fc7f291d676..10cc151168dc 100644 --- a/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json +++ b/sdk/instrumentation/opentelemetry-instrumentation-azure-sdk/package.json @@ -30,7 +30,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript ./swagger/README.md", "integration-test:browser": "karma start --single-run", - "integration-test:node": "dev-tool run test:node-tsx-js --no-test-proxy=true", + "integration-test:node": "dev-tool run test:node-js-input --no-test-proxy=true", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", diff --git a/sdk/keyvault/keyvault-admin/package.json b/sdk/keyvault/keyvault-admin/package.json index 4a7a109cc65d..8661f0004ab5 100644 --- a/sdk/keyvault/keyvault-admin/package.json +++ b/sdk/keyvault/keyvault-admin/package.json @@ -56,8 +56,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 180000 --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", - "integration-test:node:no-timeout": "dev-tool run test:node-js-input --use-esm-workaround=true -- --no-timeouts --full-trace --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", + "integration-test:node:no-timeout": "dev-tool run test:node-js-input -- --no-timeouts --full-trace --exclude \"dist-esm/**/*.browser.spec.js\" \"dist-esm/**/*.spec.js\"", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json src --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src --ext .ts", diff --git a/sdk/keyvault/keyvault-certificates/package.json b/sdk/keyvault/keyvault-certificates/package.json index 8e36b53c5345..a0da17e87549 100644 --- a/sdk/keyvault/keyvault-certificates/package.json +++ b/sdk/keyvault/keyvault-certificates/package.json @@ -51,8 +51,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"samples-dev/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 350000 'dist-esm/**/*.spec.js'", - "integration-test:node:no-timeout": "dev-tool run test:node-js-input --use-esm-workaround=true -- --no-timeouts 'dist-esm/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 350000 'dist-esm/**/*.spec.js'", + "integration-test:node:no-timeout": "dev-tool run test:node-js-input -- --no-timeouts 'dist-esm/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index fa20d127f457..5b9d4c79cdbc 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -57,8 +57,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 5000000 'dist-esm/**/*.spec.js'", - "integration-test:node:no-timeout": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 9999999 'dist-esm/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/**/*.spec.js'", + "integration-test:node:no-timeout": "dev-tool run test:node-js-input -- --timeout 9999999 'dist-esm/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index f6bfb08d3a7f..170d4198f5ba 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -52,8 +52,8 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/README.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 350000 'dist-esm/**/*.spec.js'", - "integration-test:node:no-timeout": "dev-tool run test:node-js-input --use-esm-workaround=true -- --no-timeout 'dist-esm/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 350000 'dist-esm/**/*.spec.js'", + "integration-test:node:no-timeout": "dev-tool run test:node-js-input -- --no-timeout 'dist-esm/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", diff --git a/sdk/monitor/monitor-opentelemetry/package.json b/sdk/monitor/monitor-opentelemetry/package.json index 35fbd739f19e..7c01800a690c 100644 --- a/sdk/monitor/monitor-opentelemetry/package.json +++ b/sdk/monitor/monitor-opentelemetry/package.json @@ -26,7 +26,7 @@ "test:browser": "npm run unit-test:browser", "unit-test:browser": "echo skipped", "unit-test:node": "dev-tool run test:node-tsx-ts --no-test-proxy=true -- --timeout 1200000 \"test/internal/unit/**/*.test.ts\"", - "unit-test:node:debug": "dev-tool run test:node-tsx-js --no-test-proxy=true -- --inspect-brk --timeout 1200000 \"test/internal/unit/**/*.test.ts\"", + "unit-test:node:debug": "dev-tool run test:node-js-input --no-test-proxy=true -- --inspect-brk --timeout 1200000 \"test/internal/unit/**/*.test.ts\"", "unit-test": "npm run unit-test:node && npm run unit-test:browser", "integration-test:browser": "echo skipped", "integration-test:node": "dev-tool run test:node-ts-input --no-test-proxy=true -- \"test/internal/functional/**/*.test.ts\"", diff --git a/sdk/monitor/monitor-query/package.json b/sdk/monitor/monitor-query/package.json index 07a25550b58f..5fed2553bcf6 100644 --- a/sdk/monitor/monitor-query/package.json +++ b/sdk/monitor/monitor-query/package.json @@ -50,7 +50,7 @@ "generate:client:metrics-namespaces": "autorest --typescript swagger/metric-namespaces.md", "generate:client:metrics-definitions": "autorest --typescript swagger/metric-definitions.md", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-tsx-js -- --timeout 5000000 'dist-esm/test/**/*.spec.js' 'dist-esm/test/**/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js' 'dist-esm/test/**/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --format unix --ext .ts", diff --git a/sdk/schemaregistry/schema-registry-avro/package.json b/sdk/schemaregistry/schema-registry-avro/package.json index 3d3df5b55ac8..78aeb4769ba2 100644 --- a/sdk/schemaregistry/schema-registry-avro/package.json +++ b/sdk/schemaregistry/schema-registry-avro/package.json @@ -23,7 +23,7 @@ "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "dev-tool run test:browser", - "integration-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", + "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json README.md src test --ext .ts,.javascript,.js", diff --git a/sdk/web-pubsub/web-pubsub-client-protobuf/package.json b/sdk/web-pubsub/web-pubsub-client-protobuf/package.json index 9fec3b14abf6..f9a5be63de6e 100644 --- a/sdk/web-pubsub/web-pubsub-client-protobuf/package.json +++ b/sdk/web-pubsub/web-pubsub-client-protobuf/package.json @@ -33,7 +33,7 @@ "test:node": "npm run build:test && npm run unit-test:node && npm run integration-test:node", "test": "npm run build:test && npm run unit-test && npm run integration-test", "unit-test:browser": "echo skipped", - "unit-test:node": "dev-tool run test:node-js-input --use-esm-workaround=true --no-test-proxy=true", + "unit-test:node": "dev-tool run test:node-js-input --no-test-proxy=true", "unit-test": "npm run unit-test:node && npm run unit-test:browser" }, "files": [ From 8f687c5229fcf19aba3bb0d273dd8f997cd25ffc Mon Sep 17 00:00:00 2001 From: Ronnie Geraghty Date: Tue, 12 Mar 2024 14:57:15 -0700 Subject: [PATCH 25/57] Turn on EnforceMaxLifeOfIssues (#28878) Turning on GitHub Action to enforce the max life of issues. "Close stale issues" --- .github/event-processor.config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/event-processor.config b/.github/event-processor.config index 3cecb54ae77d..52e731644b0f 100644 --- a/.github/event-processor.config +++ b/.github/event-processor.config @@ -22,5 +22,5 @@ "IdentifyStalePullRequests": "On", "CloseAddressedIssues": "On", "LockClosedIssues": "On", - "EnforceMaxLifeOfIssues": "Off" + "EnforceMaxLifeOfIssues": "On" } From 0337985bbdcc16eb90082cb73f256cd991d1eb76 Mon Sep 17 00:00:00 2001 From: Scott Beddall <45376673+scbedd@users.noreply.github.com> Date: Tue, 12 Mar 2024 15:21:27 -0700 Subject: [PATCH 26/57] Resolve failing `nightly` PublishDocs and PublishPackage (#28894) Correcting some autoformatting stuff that was introduced in my `1es-template` PR. There were two nightly failures: - Failure in `Publish package to daily feed` (addressed by balancing quotes) - Failure to run `PublishDocsToNightlyBranch` (addressed by updating `vmImage` -> `image` in the pool settings for the job.) I have kicked a couple test builds: - [Template Release](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3589129&view=results) - [Template Release Nightly](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=3589156&view=results) --- .../templates/stages/archetype-js-release.yml | 38 ++++++++++--------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/eng/pipelines/templates/stages/archetype-js-release.yml b/eng/pipelines/templates/stages/archetype-js-release.yml index a357ec660dda..bf3792a6f48d 100644 --- a/eng/pipelines/templates/stages/archetype-js-release.yml +++ b/eng/pipelines/templates/stages/archetype-js-release.yml @@ -75,22 +75,16 @@ stages: deploy: steps: - checkout: self - - script: > + - script: | export DETECTED_PACKAGE_NAME=`ls $(Pipeline.Workspace)/${{parameters.ArtifactName}}/${{artifact.name}}/*.tgz` - echo "##vso[task.setvariable variable=Package.Archive]$DETECTED_PACKAGE_NAME" displayName: Detecting package archive - - pwsh: > + - pwsh: | write-host "$(Package.Archive)" - $result = eng/scripts/get-npm-tags.ps1 -packageArtifact $(Package.Archive) -workingDirectory $(System.DefaultWorkingDirectory)/temp - write-host "Tag: $($result.Tag)" - write-host "Additional tag: $($result.AdditionalTag)" - echo "##vso[task.setvariable variable=Tag]$($result.Tag)" - echo "##vso[task.setvariable variable=AdditionalTag]$($result.AdditionalTag)" condition: and(succeeded(), ne(variables['Skip.AutoAddTag'], 'true')) displayName: Set Tag and Additional Tag @@ -162,7 +156,7 @@ stages: deploy: steps: - checkout: self - - pwsh: > + - pwsh: | Get-ChildItem -Recurse ${{parameters.ArtifactName}}/${{artifact.name}} workingDirectory: $(Pipeline.Workspace) displayName: Output Visible Artifacts @@ -190,16 +184,26 @@ stages: steps: - checkout: self - template: /eng/pipelines/templates/steps/common.yml - - bash: > + - bash: | npm install workingDirectory: ./eng/tools/versioning displayName: Install versioning tool dependencies - - bash: > + + - bash: | node ./eng/tools/versioning/increment.js --artifact-name ${{ artifact.name }} --repo-root . displayName: Increment package version - - bash: > + + - bash: | node common/scripts/install-run-rush.js install - displayName: Install dependencies + displayName: "Install dependencies" + + # Disabled until packages can be updated to support ES2019 syntax. + # - bash: | + # npm install -g ./common/tools/dev-tool + # npm install ./eng/tools/eng-package-utils + # node ./eng/tools/eng-package-utils/update-samples.js ${{ artifact.name }} + # displayName: Update samples + - template: /eng/common/pipelines/templates/steps/create-pull-request.yml parameters: RepoName: azure-sdk-for-js @@ -237,11 +241,11 @@ stages: echo "##vso[task.setvariable variable=Package.Archive]$detectedPackageName" if ('$(Build.Repository.Name)' -eq 'Azure/azure-sdk-for-js') { $npmToken="$(azure-sdk-npm-token)" - $registry=${{parameters.Registry}}" + $registry="${{parameters.Registry}}" } else { $npmToken="$(azure-sdk-devops-npm-token)" - $registry=${{parameters.PrivateRegistry}}" + $registry="${{parameters.PrivateRegistry}}" } echo "##vso[task.setvariable variable=NpmToken]$npmToken" echo "##vso[task.setvariable variable=Registry]$registry" @@ -257,7 +261,7 @@ stages: dependsOn: PublishPackages pool: name: azsdk-pool-mms-ubuntu-2004-general - vmImage: azsdk-pool-mms-ubuntu-2004-1espt + image: azsdk-pool-mms-ubuntu-2004-1espt os: linux steps: - template: /eng/common/pipelines/templates/steps/sparse-checkout.yml @@ -266,7 +270,7 @@ stages: - sdk/**/*.md - .github/CODEOWNERS - download: current - - pwsh: > + - pwsh: | Get-ChildItem -Recurse $(Pipeline.Workspace)/${{parameters.ArtifactName}}/ displayName: Show visible artifacts - template: /eng/pipelines/templates/steps/install-rex-validation-tool.yml From 7ee995b5486bf6e3fbdb564210b756fcbcc3f4a6 Mon Sep 17 00:00:00 2001 From: Hector Hernandez <39923391+hectorhdzg@users.noreply.github.com> Date: Tue, 12 Mar 2024 16:25:34 -0700 Subject: [PATCH 27/57] [Azure Monitor OpenTelemetry] Update standard metric names (#28756) ### Packages impacted by this PR @azure/monitor-opentelemetry Updating names to align with other SDKs, these should not be available for customer to directly query so this is not a breaking change --- .../src/metrics/standardMetrics.ts | 19 ++++++++++--------- .../src/metrics/types.ts | 14 +++++++------- .../src/metrics/utils.ts | 9 +++++---- .../unit/metrics/standardMetrics.test.ts | 10 +++++----- 4 files changed, 27 insertions(+), 25 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts index a967486b9661..10bbabde4881 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/standardMetrics.ts @@ -21,6 +21,7 @@ import { isSyntheticLoad, isTraceTelemetry, } from "./utils"; +import { StandardMetricIds } from "./types"; /** * Azure Monitor Standard Metrics @@ -45,35 +46,35 @@ export class StandardMetrics { */ constructor(config: InternalConfig, options?: { collectionInterval: number }) { this._config = config; - const meterProviderConfig: MeterProviderOptions = { - resource: this._config.resource, - }; - this._meterProvider = new MeterProvider(meterProviderConfig); this._azureExporter = new AzureMonitorMetricExporter(this._config.azureMonitorExporterOptions); const metricReaderOptions: PeriodicExportingMetricReaderOptions = { exporter: this._azureExporter as any, exportIntervalMillis: options?.collectionInterval || this._collectionInterval, }; this._metricReader = new PeriodicExportingMetricReader(metricReaderOptions); - this._meterProvider.addMetricReader(this._metricReader); + const meterProviderConfig: MeterProviderOptions = { + resource: this._config.resource, + readers: [this._metricReader], + }; + this._meterProvider = new MeterProvider(meterProviderConfig); this._meter = this._meterProvider.getMeter("AzureMonitorStandardMetricsMeter"); this._incomingRequestDurationHistogram = this._meter.createHistogram( - "azureMonitor.http.requestDuration", + StandardMetricIds.REQUEST_DURATION, { valueType: ValueType.DOUBLE, }, ); this._outgoingRequestDurationHistogram = this._meter.createHistogram( - "azureMonitor.http.dependencyDuration", + StandardMetricIds.DEPENDENCIES_DURATION, { valueType: ValueType.DOUBLE, }, ); - this._exceptionsCounter = this._meter.createCounter("azureMonitor.exceptionCount", { + this._exceptionsCounter = this._meter.createCounter(StandardMetricIds.EXCEPTIONS_COUNT, { valueType: ValueType.INT, }); - this._tracesCounter = this._meter.createCounter("azureMonitor.traceCount", { + this._tracesCounter = this._meter.createCounter(StandardMetricIds.TRACES_COUNT, { valueType: ValueType.INT, }); } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/types.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/types.ts index bf531a1e5826..ac1875a94618 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/types.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/types.ts @@ -27,13 +27,6 @@ export interface MetricDependencyDimensions extends StandardMetricBaseDimensions operationSynthetic?: string; } -export enum StandardMetricNames { - HTTP_REQUEST_DURATION = "azureMonitor.http.requestDuration", - HTTP_DEPENDENCY_DURATION = "azureMonitor.http.dependencyDuration", - EXCEPTION_COUNT = "azureMonitor.exceptionCount", - TRACE_COUNT = "azureMonitor.traceCount", -} - export enum PerformanceCounterMetricNames { PRIVATE_BYTES = "\\Process(??APP_WIN32_PROC??)\\Private Bytes", AVAILABLE_BYTES = "\\Memory\\Available Bytes", @@ -71,3 +64,10 @@ export const StandardMetricPropertyNames: { [key in MetricDimensionTypeKeys]: st metricId: "_MS.MetricId", IsAutocollected: "_MS.IsAutocollected", }; + +export enum StandardMetricIds { + REQUEST_DURATION = "requests/duration", + DEPENDENCIES_DURATION = "dependencies/duration", + EXCEPTIONS_COUNT = "exceptions/count", + TRACES_COUNT = "traces/count", +} diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts index b5c6ebf6bd75..eeebd84c87cd 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/utils.ts @@ -12,6 +12,7 @@ import { MetricDimensionTypeKeys, MetricRequestDimensions, StandardMetricBaseDimensions, + StandardMetricIds, StandardMetricPropertyNames, } from "./types"; import { LogRecord } from "@opentelemetry/sdk-logs"; @@ -19,7 +20,7 @@ import { Resource } from "@opentelemetry/resources"; export function getRequestDimensions(span: ReadableSpan): Attributes { const dimensions: MetricRequestDimensions = getBaseDimensions(span.resource); - dimensions.metricId = "requests/duration"; + dimensions.metricId = StandardMetricIds.REQUEST_DURATION; const statusCode = String(span.attributes["http.status_code"]); dimensions.requestResultCode = statusCode; dimensions.requestSuccess = statusCode === "200" ? "True" : "False"; @@ -31,7 +32,7 @@ export function getRequestDimensions(span: ReadableSpan): Attributes { export function getDependencyDimensions(span: ReadableSpan): Attributes { const dimensions: MetricDependencyDimensions = getBaseDimensions(span.resource); - dimensions.metricId = "dependencies/duration"; + dimensions.metricId = StandardMetricIds.DEPENDENCIES_DURATION; const statusCode = String(span.attributes["http.status_code"]); dimensions.dependencyTarget = getDependencyTarget(span.attributes); dimensions.dependencyResultCode = statusCode; @@ -45,13 +46,13 @@ export function getDependencyDimensions(span: ReadableSpan): Attributes { export function getExceptionDimensions(resource: Resource): Attributes { const dimensions: StandardMetricBaseDimensions = getBaseDimensions(resource); - dimensions.metricId = "exceptions/count"; + dimensions.metricId = StandardMetricIds.EXCEPTIONS_COUNT; return dimensions as Attributes; } export function getTraceDimensions(resource: Resource): Attributes { const dimensions: StandardMetricBaseDimensions = getBaseDimensions(resource); - dimensions.metricId = "traces/count"; + dimensions.metricId = StandardMetricIds.TRACES_COUNT; return dimensions as Attributes; } diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts index f225a8a5ed65..2c03d458c47b 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/standardMetrics.test.ts @@ -104,10 +104,10 @@ describe("#StandardMetricsHandler", () => { assert.strictEqual(scopeMetrics.length, 1, "scopeMetrics count"); const metrics = scopeMetrics[0].metrics; assert.strictEqual(metrics.length, 4, "metrics count"); - assert.strictEqual(metrics[0].descriptor.name, "azureMonitor.http.requestDuration"); - assert.strictEqual(metrics[1].descriptor.name, "azureMonitor.http.dependencyDuration"); - assert.strictEqual(metrics[2].descriptor.name, "azureMonitor.exceptionCount"); - assert.strictEqual(metrics[3].descriptor.name, "azureMonitor.traceCount"); + assert.strictEqual(metrics[0].descriptor.name, "requests/duration"); + assert.strictEqual(metrics[1].descriptor.name, "dependencies/duration"); + assert.strictEqual(metrics[2].descriptor.name, "exceptions/count"); + assert.strictEqual(metrics[3].descriptor.name, "traces/count"); // Requests assert.strictEqual(metrics[0].dataPoints.length, 2, "dataPoints count"); @@ -211,7 +211,7 @@ describe("#StandardMetricsHandler", () => { assert.strictEqual(scopeMetrics.length, 1, "scopeMetrics count"); const metrics = scopeMetrics[0].metrics; assert.strictEqual(metrics.length, 1, "metrics count"); - assert.strictEqual(metrics[0].descriptor.name, "azureMonitor.http.requestDuration"); + assert.strictEqual(metrics[0].descriptor.name, "requests/duration"); assert.equal(metrics[0].dataPoints[0].attributes["operation/synthetic"], "True"); }); From 75526c0e954ccf648170556ac50cdd3d76cad287 Mon Sep 17 00:00:00 2001 From: Jackson Weber <47067795+JacksonWeber@users.noreply.github.com> Date: Tue, 12 Mar 2024 18:15:45 -0700 Subject: [PATCH 28/57] [Monitor OpenTelemetry] Update Configuration Documentation to Include Log/Span Processors and Use SpanProcessors in Default Config (#28597) ### Packages impacted by this PR @monitor-opentelemetry ### Describe the problem that is addressed by this PR README should account for all configuration options. We should not rely on the deprecated `SpanProcessor` field on the SDK config. --- sdk/monitor/monitor-opentelemetry/README.md | 20 +++++++++++-------- .../monitor-opentelemetry/src/index.ts | 2 +- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry/README.md b/sdk/monitor/monitor-opentelemetry/README.md index 8ccffd80b0e8..e0956f04cd0c 100644 --- a/sdk/monitor/monitor-opentelemetry/README.md +++ b/sdk/monitor/monitor-opentelemetry/README.md @@ -61,7 +61,7 @@ const options: AzureMonitorOpenTelemetryOptions = { }, samplingRatio: 1, instrumentationOptions: { - // Instrumentations generating traces + // Instrumentations generating traces azureSdk: { enabled: true }, http: { enabled: true }, mongoDb: { enabled: true }, @@ -79,6 +79,8 @@ const options: AzureMonitorOpenTelemetryOptions = { connectionString: "", }, resource: resource + logRecordProcessors: [], + spanProcessors: [] }; useAzureMonitor(options); @@ -88,14 +90,16 @@ useAzureMonitor(options); |Property|Description|Default| | ------------------------------- |------------------------------------------------------------------------------------------------------------|-------| -| azureMonitorExporterOptions | Azure Monitor OpenTelemetry Exporter Configuration. [More info here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/monitor-opentelemetry-exporter) | | | | -| samplingRatio | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. | 1| +| azureMonitorExporterOptions | Azure Monitor OpenTelemetry Exporter Configuration. [More info here](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/monitor/monitor-opentelemetry-exporter) | | | | +| samplingRatio | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. | 1| | instrumentationOptions| Allow configuration of OpenTelemetry Instrumentations. | {"http": { enabled: true },"azureSdk": { enabled: false },"mongoDb": { enabled: false },"mySql": { enabled: false },"postgreSql": { enabled: false },"redis": { enabled: false },"bunyan": { enabled: false }}| -| browserSdkLoaderOptions| Allow configuration of Web Instrumentations. | { enabled: false, connectionString: "" } -| resource | Opentelemetry Resource. [More info here](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources) || -| samplingRatio | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. -| enableLiveMetrics | Enable/Disable Live Metrics. -| enableStandardMetrics | Enable/Disable Standard Metrics. +| browserSdkLoaderOptions| Allow configuration of Web Instrumentations. | { enabled: false, connectionString: "" } | +| resource | Opentelemetry Resource. [More info here](https://github.com/open-telemetry/opentelemetry-js/tree/main/packages/opentelemetry-resources) || +| samplingRatio | Sampling ratio must take a value in the range [0,1], 1 meaning all data will sampled and 0 all Tracing data will be sampled out. | +| enableLiveMetrics | Enable/Disable Live Metrics. | +| enableStandardMetrics | Enable/Disable Standard Metrics. | +| logRecordProcessors | Array of log record processors to register to the global logger provider. | +| spanProcessors | Array of span processors to register to the global tracer provider. | Options could be set using configuration file `applicationinsights.json` located under root folder of @azure/monitor-opentelemetry package installation folder, Ex: `node_modules/@azure/monitor-opentelemetry`. These configuration values will be applied to all AzureMonitorOpenTelemetryClient instances. diff --git a/sdk/monitor/monitor-opentelemetry/src/index.ts b/sdk/monitor/monitor-opentelemetry/src/index.ts index 1ee9b22f36b8..c9db6c67ce69 100644 --- a/sdk/monitor/monitor-opentelemetry/src/index.ts +++ b/sdk/monitor/monitor-opentelemetry/src/index.ts @@ -65,7 +65,7 @@ export function useAzureMonitor(options?: AzureMonitorOpenTelemetryOptions) { logRecordProcessor: logHandler.getAzureLogRecordProcessor(), resource: config.resource, sampler: traceHandler.getSampler(), - spanProcessor: traceHandler.getAzureMonitorSpanProcessor(), + spanProcessors: [traceHandler.getAzureMonitorSpanProcessor()], }; sdk = new NodeSDK(sdkConfig); setSdkPrefix(); From d561c634b4f6dcd0fd0cbff01e028b5192dcd4b8 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Wed, 13 Mar 2024 09:16:00 +0800 Subject: [PATCH 29/57] Deprecate baseurl and use endpoint instead for ts-http-runtime (#28850) fixes https://github.com/Azure/autorest.typescript/issues/2050 --- .../review/ts-http-runtime.api.md | 7 ++++--- .../src/client/clientHelpers.ts | 8 ++++---- sdk/core/ts-http-runtime/src/client/common.ts | 5 +++++ .../ts-http-runtime/src/client/getClient.ts | 14 +++++++------- .../ts-http-runtime/src/client/urlHelpers.ts | 18 +++++++++--------- 5 files changed, 29 insertions(+), 23 deletions(-) diff --git a/sdk/core/ts-http-runtime/review/ts-http-runtime.api.md b/sdk/core/ts-http-runtime/review/ts-http-runtime.api.md index 10c7710313f6..37ca69ae2bb0 100644 --- a/sdk/core/ts-http-runtime/review/ts-http-runtime.api.md +++ b/sdk/core/ts-http-runtime/review/ts-http-runtime.api.md @@ -36,7 +36,7 @@ export interface AccessToken { } // @public -export function addCredentialPipelinePolicy(pipeline: Pipeline, baseUrl: string, options?: AddCredentialPipelinePolicyOptions): void; +export function addCredentialPipelinePolicy(pipeline: Pipeline, endpoint: string, options?: AddCredentialPipelinePolicyOptions): void; // @public export interface AddCredentialPipelinePolicyOptions { @@ -129,6 +129,7 @@ export type ClientOptions = PipelineOptions & { apiKeyHeaderName?: string; }; baseUrl?: string; + endpoint?: string; apiVersion?: string; allowInsecureConnection?: boolean; additionalPolicies?: AdditionalPolicyConfig[]; @@ -262,10 +263,10 @@ export interface FullOperationResponse extends PipelineResponse { } // @public -export function getClient(baseUrl: string, options?: ClientOptions): Client; +export function getClient(endpoint: string, options?: ClientOptions): Client; // @public -export function getClient(baseUrl: string, credentials?: TokenCredential | KeyCredential, options?: ClientOptions): Client; +export function getClient(endpoint: string, credentials?: TokenCredential | KeyCredential, options?: ClientOptions): Client; // @public export function getDefaultProxySettings(proxyUrl?: string): ProxySettings | undefined; diff --git a/sdk/core/ts-http-runtime/src/client/clientHelpers.ts b/sdk/core/ts-http-runtime/src/client/clientHelpers.ts index 1dc927985468..19a61ee79b34 100644 --- a/sdk/core/ts-http-runtime/src/client/clientHelpers.ts +++ b/sdk/core/ts-http-runtime/src/client/clientHelpers.ts @@ -33,7 +33,7 @@ export interface AddCredentialPipelinePolicyOptions { */ export function addCredentialPipelinePolicy( pipeline: Pipeline, - baseUrl: string, + endpoint: string, options: AddCredentialPipelinePolicyOptions = {}, ): void { const { credential, clientOptions } = options; @@ -44,7 +44,7 @@ export function addCredentialPipelinePolicy( if (isTokenCredential(credential)) { const tokenPolicy = bearerTokenAuthenticationPolicy({ credential, - scopes: clientOptions?.credentials?.scopes ?? `${baseUrl}/.default`, + scopes: clientOptions?.credentials?.scopes ?? `${endpoint}/.default`, }); pipeline.addPolicy(tokenPolicy); } else if (isKeyCredential(credential)) { @@ -63,7 +63,7 @@ export function addCredentialPipelinePolicy( * Creates a default rest pipeline to re-use accross Rest Level Clients */ export function createDefaultPipeline( - baseUrl: string, + endpoint: string, credential?: TokenCredential | KeyCredential, options: ClientOptions = {}, ): Pipeline { @@ -71,7 +71,7 @@ export function createDefaultPipeline( pipeline.addPolicy(apiVersionPolicy(options)); - addCredentialPipelinePolicy(pipeline, baseUrl, { credential, clientOptions: options }); + addCredentialPipelinePolicy(pipeline, endpoint, { credential, clientOptions: options }); return pipeline; } diff --git a/sdk/core/ts-http-runtime/src/client/common.ts b/sdk/core/ts-http-runtime/src/client/common.ts index bbd4af675d56..0f3a2e64322a 100644 --- a/sdk/core/ts-http-runtime/src/client/common.ts +++ b/sdk/core/ts-http-runtime/src/client/common.ts @@ -317,8 +317,13 @@ export type ClientOptions = PipelineOptions & { }; /** * Base url for the client + * @deprecated This property is deprecated and will be removed soon, please use endpoint instead */ baseUrl?: string; + /** + * Endpoint for the client + */ + endpoint?: string; /** * Options for setting a custom apiVersion. */ diff --git a/sdk/core/ts-http-runtime/src/client/getClient.ts b/sdk/core/ts-http-runtime/src/client/getClient.ts index d1f5c29d8ea8..1fa1f44aa38d 100644 --- a/sdk/core/ts-http-runtime/src/client/getClient.ts +++ b/sdk/core/ts-http-runtime/src/client/getClient.ts @@ -20,23 +20,23 @@ import { PipelineOptions } from "../createPipelineFromOptions.js"; /** * Creates a client with a default pipeline - * @param baseUrl - Base endpoint for the client + * @param endpoint - Base endpoint for the client * @param options - Client options */ -export function getClient(baseUrl: string, options?: ClientOptions): Client; +export function getClient(endpoint: string, options?: ClientOptions): Client; /** * Creates a client with a default pipeline - * @param baseUrl - Base endpoint for the client + * @param endpoint - Base endpoint for the client * @param credentials - Credentials to authenticate the requests * @param options - Client options */ export function getClient( - baseUrl: string, + endpoint: string, credentials?: TokenCredential | KeyCredential, options?: ClientOptions, ): Client; export function getClient( - baseUrl: string, + endpoint: string, credentialsOrPipelineOptions?: (TokenCredential | KeyCredential) | ClientOptions, clientOptions: ClientOptions = {}, ): Client { @@ -49,7 +49,7 @@ export function getClient( } } - const pipeline = createDefaultPipeline(baseUrl, credentials, clientOptions); + const pipeline = createDefaultPipeline(endpoint, credentials, clientOptions); if (clientOptions.additionalPolicies?.length) { for (const { policy, position } of clientOptions.additionalPolicies) { // Sign happens after Retry and is commonly needed to occur @@ -64,7 +64,7 @@ export function getClient( const { allowInsecureConnection, httpClient } = clientOptions; const client = (path: string, ...args: Array) => { const getUrl = (requestOptions: RequestParameters): string => - buildRequestUrl(baseUrl, path, args, { allowInsecureConnection, ...requestOptions }); + buildRequestUrl(endpoint, path, args, { allowInsecureConnection, ...requestOptions }); return { get: (requestOptions: RequestParameters = {}): StreamableMethod => { diff --git a/sdk/core/ts-http-runtime/src/client/urlHelpers.ts b/sdk/core/ts-http-runtime/src/client/urlHelpers.ts index c36dc09b11ce..7e77d312d649 100644 --- a/sdk/core/ts-http-runtime/src/client/urlHelpers.ts +++ b/sdk/core/ts-http-runtime/src/client/urlHelpers.ts @@ -5,14 +5,14 @@ import { RequestParameters } from "./common.js"; /** * Builds the request url, filling in query and path parameters - * @param baseUrl - base url which can be a template url - * @param routePath - path to append to the baseUrl + * @param endpoint - base url which can be a template url + * @param routePath - path to append to the endpoint * @param pathParameters - values of the path parameters * @param options - request parameters including query parameters * @returns a full url with path and query parameters */ export function buildRequestUrl( - baseUrl: string, + endpoint: string, routePath: string, pathParameters: string[], options: RequestParameters = {}, @@ -20,9 +20,9 @@ export function buildRequestUrl( if (routePath.startsWith("https://") || routePath.startsWith("http://")) { return routePath; } - baseUrl = buildBaseUrl(baseUrl, options); + endpoint = buildBaseUrl(endpoint, options); routePath = buildRoutePath(routePath, pathParameters, options); - const requestUrl = appendQueryParams(`${baseUrl}/${routePath}`, options); + const requestUrl = appendQueryParams(`${endpoint}/${routePath}`, options); const url = new URL(requestUrl); return ( @@ -71,9 +71,9 @@ function skipQueryParameterEncoding(url: URL): URL { return url; } -export function buildBaseUrl(baseUrl: string, options: RequestParameters): string { +export function buildBaseUrl(endpoint: string, options: RequestParameters): string { if (!options.pathParameters) { - return baseUrl; + return endpoint; } const pathParams = options.pathParameters; for (const [key, param] of Object.entries(pathParams)) { @@ -87,9 +87,9 @@ export function buildBaseUrl(baseUrl: string, options: RequestParameters): strin if (!options.skipUrlEncoding) { value = encodeURIComponent(param); } - baseUrl = replaceAll(baseUrl, `{${key}}`, value) ?? ""; + endpoint = replaceAll(endpoint, `{${key}}`, value) ?? ""; } - return baseUrl; + return endpoint; } function buildRoutePath( From 00504e6d46728530a500bb7c5a2556f00c9d4b86 Mon Sep 17 00:00:00 2001 From: Jackson Weber <47067795+JacksonWeber@users.noreply.github.com> Date: Tue, 12 Mar 2024 18:42:53 -0700 Subject: [PATCH 30/57] [Azure Monitor OpenTelemetry] Update Code Samples in README (#28759) ### Packages impacted by this PR @azure/monitor-opentelemetry ### Describe the problem that is addressed by this PR Code samples should be consistent and be syntactically correct in TypeScript #28744 ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [x] Added a changelog (if necessary) --- sdk/monitor/monitor-opentelemetry/README.md | 126 ++++++++++---------- 1 file changed, 62 insertions(+), 64 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry/README.md b/sdk/monitor/monitor-opentelemetry/README.md index e0956f04cd0c..5e14a6482d37 100644 --- a/sdk/monitor/monitor-opentelemetry/README.md +++ b/sdk/monitor/monitor-opentelemetry/README.md @@ -29,7 +29,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP ```typescript -const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry"); +import { useAzureMonitor, AzureMonitorOpenTelemetryOptions } from "@azure/monitor-opentelemetry"; const options: AzureMonitorOpenTelemetryOptions = { azureMonitorExporterOptions: { @@ -46,8 +46,8 @@ useAzureMonitor(options); ```typescript -const { AzureMonitorOpenTelemetryClient, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry"); -const { Resource } = require("@opentelemetry/resources"); +import { AzureMonitorOpenTelemetryOptions, useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { Resource } from "@opentelemetry/resources"; const resource = new Resource({ "testAttribute": "testValue" }); const options: AzureMonitorOpenTelemetryOptions = { @@ -57,7 +57,8 @@ const options: AzureMonitorOpenTelemetryOptions = { // Automatic retries disableOfflineStorage: false, // Application Insights Connection String - connectionString: process.env["APPLICATIONINSIGHTS_CONNECTION_STRING"] || "", + connectionString: + process.env["APPLICATIONINSIGHTS_CONNECTION_STRING"] || "", }, samplingRatio: 1, instrumentationOptions: { @@ -84,7 +85,6 @@ const options: AzureMonitorOpenTelemetryOptions = { }; useAzureMonitor(options); - ``` @@ -116,7 +116,6 @@ Options could be set using configuration file `applicationinsights.json` located }, ... } - ``` Custom JSON file could be provided using `APPLICATIONINSIGHTS_CONFIGURATION_FILE` environment variable. @@ -153,21 +152,20 @@ The following OpenTelemetry Instrumentation libraries are included as part of Az Other OpenTelemetry Instrumentations are available [here](https://github.com/open-telemetry/opentelemetry-js-contrib/tree/main/plugins/node) and could be added using TracerProvider in AzureMonitorOpenTelemetryClient. ```typescript - const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); - const { metrics, trace } = require("@opentelemetry/api"); - const { registerInstrumentations } = require("@opentelemetry/instrumentation"); - const { ExpressInstrumentation } = require('@opentelemetry/instrumentation-express'); - - useAzureMonitor(); - const instrumentations = [ - new ExpressInstrumentation(), - ]; - registerInstrumentations({ - tracerProvider: trace.getTracerProvider(), - meterProvider: metrics.getMeterProvider(), - instrumentations: instrumentations, - }); - +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { metrics, trace } from "@opentelemetry/api"; +import { registerInstrumentations } from "@opentelemetry/instrumentation"; +import { ExpressInstrumentation } from "@opentelemetry/instrumentation-express"; + +useAzureMonitor(); +const instrumentations = [ + new ExpressInstrumentation(), +]; +registerInstrumentations({ + tracerProvider: trace.getTracerProvider(), + meterProvider: metrics.getMeterProvider(), + instrumentations: instrumentations, +}); ``` ### Application Insights Browser SDK Loader @@ -187,9 +185,9 @@ You might set the Cloud Role Name and the Cloud Role Instance via [OpenTelemetry ```typescript -const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry"); -const { Resource } = require("@opentelemetry/resources"); -const { SemanticResourceAttributes } = require("@opentelemetry/semantic-conventions"); +import { useAzureMonitor, AzureMonitorOpenTelemetryOptions } from "@azure/monitor-opentelemetry"; +import { Resource } from "@opentelemetry/resources"; +import { SemanticResourceAttributes } from "@opentelemetry/semantic-conventions"; // ---------------------------------------- // Setting role name and role instance @@ -228,11 +226,11 @@ Any [attributes](#add-span-attributes) you add to spans are exported as custom p Use a custom processor: ```typescript -const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); -const { trace } = require("@opentelemetry/api"); -const { ReadableSpan, Span, SpanProcessor } = require("@opentelemetry/sdk-trace-base"); -const { NodeTracerProvider } = require("@opentelemetry/sdk-trace-node"); -const { SemanticAttributes } = require("@opentelemetry/semantic-conventions"); +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { ProxyTracerProvider, trace } from "@opentelemetry/api"; +import { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base"; +import { NodeTracerProvider } from "@opentelemetry/sdk-trace-node"; +import { SemanticAttributes } from "@opentelemetry/semantic-conventions"; useAzureMonitor(); @@ -251,7 +249,7 @@ class SpanEnrichingProcessor implements SpanProcessor{ } } -const tracerProvider = trace.getTracerProvider().getDelegate(); +const tracerProvider = (trace.getTracerProvider() as ProxyTracerProvider).getDelegate() as NodeTracerProvider; tracerProvider.addSpanProcessor(new SpanEnrichingProcessor()); ``` @@ -264,10 +262,10 @@ You might use the following ways to filter out telemetry before it leaves your a The following example shows how to exclude a certain URL from being tracked by using the [HTTP/HTTPS instrumentation library](https://github.com/open-telemetry/opentelemetry-js/tree/main/experimental/packages/opentelemetry-instrumentation-http): ```typescript - const { useAzureMonitor, AzureMonitorOpenTelemetryOptions } = require("@azure/monitor-opentelemetry"); - const { IncomingMessage } = require("http"); - const { RequestOptions } = require("https"); - const { HttpInstrumentationConfig }= require("@opentelemetry/instrumentation-http"); + import { useAzureMonitor, AzureMonitorOpenTelemetryOptions } from "@azure/monitor-opentelemetry"; + import { IncomingMessage } from "http"; + import { RequestOptions } from "https"; + import { HttpInstrumentationConfig } from "@opentelemetry/instrumentation-http"; const httpInstrumentationConfig: HttpInstrumentationConfig = { enabled: true, @@ -288,11 +286,10 @@ You might use the following ways to filter out telemetry before it leaves your a }; const options : AzureMonitorOpenTelemetryOptions = { instrumentationOptions: { - http: httpInstrumentationConfig, + http: httpInstrumentationConfig, } }; useAzureMonitor(options); - ``` 1. Use a custom processor. You can use a custom span processor to exclude certain spans from being exported. To mark spans to not be exported, set `TraceFlag` to `DEFAULT`. @@ -301,10 +298,11 @@ Use the add [custom property example](#add-a-custom-property-to-a-trace), but re ```typescript ... import { SpanKind, TraceFlags } from "@opentelemetry/api"; - - class SpanEnrichingProcessor implements SpanProcessor{ + import { ReadableSpan, SpanProcessor } from "@opentelemetry/sdk-trace-base"; + + class SpanEnrichingProcessor implements SpanProcessor { ... - + onEnd(span: ReadableSpan) { if(span.kind == SpanKind.INTERNAL){ span.spanContext().traceFlags = TraceFlags.NONE; @@ -341,27 +339,27 @@ The [OpenTelemetry Specification](https://github.com/open-telemetry/opentelemetr describes the instruments and provides examples of when you might use each one. ```typescript - const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); - const { metrics } = require("@opentelemetry/api"); - - useAzureMonitor(); - const meter = metrics.getMeter("testMeter"); - - let histogram = meter.createHistogram("histogram"); - let counter = meter.createCounter("counter"); - let gauge = meter.createObservableGauge("gauge"); - gauge.addCallback((observableResult: ObservableResult) => { - let randomNumber = Math.floor(Math.random() * 100); - observableResult.observe(randomNumber, {"testKey": "testValue"}); - }); - - histogram.record(1, { "testKey": "testValue" }); - histogram.record(30, { "testKey": "testValue2" }); - histogram.record(100, { "testKey2": "testValue" }); - - counter.add(1, { "testKey": "testValue" }); - counter.add(5, { "testKey2": "testValue" }); - counter.add(3, { "testKey": "testValue2" }); +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { ObservableResult, metrics } from "@opentelemetry/api"; + +useAzureMonitor(); +const meter = metrics.getMeter("testMeter"); + +let histogram = meter.createHistogram("histogram"); +let counter = meter.createCounter("counter"); +let gauge = meter.createObservableGauge("gauge"); +gauge.addCallback((observableResult: ObservableResult) => { + let randomNumber = Math.floor(Math.random() * 100); + observableResult.observe(randomNumber, {"testKey": "testValue"}); +}); + +histogram.record(1, { "testKey": "testValue" }); +histogram.record(30, { "testKey": "testValue2" }); +histogram.record(100, { "testKey2": "testValue" }); + +counter.add(1, { "testKey": "testValue" }); +counter.add(5, { "testKey2": "testValue" }); +counter.add(3, { "testKey": "testValue2" }); ``` @@ -373,8 +371,8 @@ For instance, exceptions caught by your code are *not* ordinarily not reported, and thus draw attention to them in relevant experiences including the failures blade and end-to-end transaction view. ```typescript -const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); -const { trace } = require("@opentelemetry/api"); +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { trace } from "@opentelemetry/api"; useAzureMonitor(); const tracer = trace.getTracer("testMeter"); @@ -395,8 +393,8 @@ catch(error){ Azure Monitor OpenTelemetry uses the OpenTelemetry API Logger for internal logs. To enable it, use the following code: ```typescript -const { useAzureMonitor } = require("@azure/monitor-opentelemetry"); -const { DiagLogLevel } = require("@opentelemetry/api"); +import { useAzureMonitor } from "@azure/monitor-opentelemetry"; +import { DiagLogLevel } from "@opentelemetry/api"; process.env.APPLICATIONINSIGHTS_INSTRUMENTATION_LOGGING_LEVEL = "VERBOSE"; process.env.APPLICATIONINSIGHTS_LOG_DESTINATION = "file"; From bd7de1db1358e25d18743530471b4e9d161f3dec Mon Sep 17 00:00:00 2001 From: Timo van Veenendaal Date: Wed, 13 Mar 2024 09:54:38 -0700 Subject: [PATCH 31/57] [core] Prepare release of all Core packages that have been migrated to ESM (#28897) ### Packages impacted by this PR - `@azure/abort-controller` - `@azure/core-auth` - `@azure-rest/core-client` - `@azure/core-client` - `@azure/core-http-compat` - `@azure/core-lro` - `@azure/core-paging` - `@azure/core-rest-pipeline` - `@azure/core-sse` - `@azure/core-tracing` - `@azure/core-util` - `@azure/logger` ### Describe the problem that is addressed by this PR Preparing for upcoming Core release. We are doing a minor version bump for all packages which we have migrated to ESM. --- sdk/core/abort-controller/CHANGELOG.md | 11 ++++------- sdk/core/abort-controller/package.json | 2 +- sdk/core/core-auth/CHANGELOG.md | 11 ++++------- sdk/core/core-auth/package.json | 2 +- sdk/core/core-client-rest/CHANGELOG.md | 7 ++++--- sdk/core/core-client-rest/package.json | 2 +- sdk/core/core-client/CHANGELOG.md | 11 ++++------- sdk/core/core-client/package.json | 2 +- sdk/core/core-http-compat/CHANGELOG.md | 11 ++++------- sdk/core/core-http-compat/package.json | 2 +- sdk/core/core-lro/CHANGELOG.md | 11 ++++------- sdk/core/core-lro/package.json | 2 +- sdk/core/core-paging/CHANGELOG.md | 11 ++++------- sdk/core/core-paging/package.json | 2 +- sdk/core/core-rest-pipeline/CHANGELOG.md | 8 +++----- sdk/core/core-rest-pipeline/package.json | 2 +- sdk/core/core-rest-pipeline/src/constants.ts | 2 +- sdk/core/core-sse/CHANGELOG.md | 11 ++++------- sdk/core/core-sse/package.json | 2 +- sdk/core/core-tracing/CHANGELOG.md | 11 ++++------- sdk/core/core-tracing/package.json | 2 +- sdk/core/core-util/CHANGELOG.md | 11 ++++------- sdk/core/core-util/package.json | 2 +- sdk/core/core-xml/CHANGELOG.md | 11 ++++------- sdk/core/core-xml/package.json | 2 +- sdk/core/logger/CHANGELOG.md | 11 ++++------- sdk/core/logger/package.json | 2 +- 27 files changed, 65 insertions(+), 99 deletions(-) diff --git a/sdk/core/abort-controller/CHANGELOG.md b/sdk/core/abort-controller/CHANGELOG.md index 274e1bfba833..12b095a5173c 100644 --- a/sdk/core/abort-controller/CHANGELOG.md +++ b/sdk/core/abort-controller/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 2.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 2.1.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 2.0.0 (2024-01-05) ### Breaking Changes diff --git a/sdk/core/abort-controller/package.json b/sdk/core/abort-controller/package.json index d194b1645806..f5f5ac0cec41 100644 --- a/sdk/core/abort-controller/package.json +++ b/sdk/core/abort-controller/package.json @@ -1,7 +1,7 @@ { "name": "@azure/abort-controller", "sdk-type": "client", - "version": "2.0.1", + "version": "2.1.0", "description": "Microsoft Azure SDK for JavaScript - Aborter", "author": "Microsoft Corporation", "license": "MIT", diff --git a/sdk/core/core-auth/CHANGELOG.md b/sdk/core/core-auth/CHANGELOG.md index bef94d9bf651..a8af446fb720 100644 --- a/sdk/core/core-auth/CHANGELOG.md +++ b/sdk/core/core-auth/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.6.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.7.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.6.0 (2024-02-01) ### Features Added diff --git a/sdk/core/core-auth/package.json b/sdk/core/core-auth/package.json index bcd65de80c50..f9ca48bab2b5 100644 --- a/sdk/core/core-auth/package.json +++ b/sdk/core/core-auth/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-auth", - "version": "1.6.1", + "version": "1.7.0", "description": "Provides low-level interfaces and helper methods for authentication in Azure SDK", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-client-rest/CHANGELOG.md b/sdk/core/core-client-rest/CHANGELOG.md index 1aaa50f27e76..788b0d658483 100644 --- a/sdk/core/core-client-rest/CHANGELOG.md +++ b/sdk/core/core-client-rest/CHANGELOG.md @@ -1,19 +1,20 @@ # Release History -## 1.2.1 (Unreleased) +## 1.3.0 (2024-03-12) ### Features Added - Allow customers to set request content type by `option.contentType` or `content-type` request headers. -### Breaking Changes - ### Bugs Fixed - Set the content-type as `undefined` if it's a non-json string in the body and we are unknown of the content-type, but remain to be `application/json` if it's json string. ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.2.0 (2024-02-01) ### Features Added diff --git a/sdk/core/core-client-rest/package.json b/sdk/core/core-client-rest/package.json index 43dc2367576e..04b8675fb324 100644 --- a/sdk/core/core-client-rest/package.json +++ b/sdk/core/core-client-rest/package.json @@ -1,6 +1,6 @@ { "name": "@azure-rest/core-client", - "version": "1.2.1", + "version": "1.3.0", "description": "Core library for interfacing with Azure Rest Clients", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-client/CHANGELOG.md b/sdk/core/core-client/CHANGELOG.md index 5d73fe62da34..370ac5ea2b54 100644 --- a/sdk/core/core-client/CHANGELOG.md +++ b/sdk/core/core-client/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.8.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.9.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.8.0 (2024-02-01) ### Bugs Fixed diff --git a/sdk/core/core-client/package.json b/sdk/core/core-client/package.json index 594945eeadb6..733c364ebc2a 100644 --- a/sdk/core/core-client/package.json +++ b/sdk/core/core-client/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-client", - "version": "1.8.1", + "version": "1.9.0", "description": "Core library for interfacing with AutoRest generated code", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-http-compat/CHANGELOG.md b/sdk/core/core-http-compat/CHANGELOG.md index 3f6cc20b6a19..a6fe8faa1e2b 100644 --- a/sdk/core/core-http-compat/CHANGELOG.md +++ b/sdk/core/core-http-compat/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 2.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 2.1.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 2.0.1 (2023-04-06) ### Bugs Fixed diff --git a/sdk/core/core-http-compat/package.json b/sdk/core/core-http-compat/package.json index cf8a37a8d5c4..a647a39f6164 100644 --- a/sdk/core/core-http-compat/package.json +++ b/sdk/core/core-http-compat/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-http-compat", - "version": "2.0.2", + "version": "2.1.0", "description": "Core HTTP Compatibility Library to bridge the gap between Core V1 & V2 packages.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-lro/CHANGELOG.md b/sdk/core/core-lro/CHANGELOG.md index c2fcfecce9a5..2f46e2b039c3 100644 --- a/sdk/core/core-lro/CHANGELOG.md +++ b/sdk/core/core-lro/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 2.6.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 2.7.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 2.6.0 (2024-02-01) ### Other Changes diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index 719b6f72501d..f025123476c0 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -3,7 +3,7 @@ "author": "Microsoft Corporation", "sdk-type": "client", "type": "module", - "version": "2.6.1", + "version": "2.7.0", "description": "Isomorphic client library for supporting long-running operations in node.js and browser.", "exports": { "./package.json": "./package.json", diff --git a/sdk/core/core-paging/CHANGELOG.md b/sdk/core/core-paging/CHANGELOG.md index 1fd3eafb8c77..04c84740bea6 100644 --- a/sdk/core/core-paging/CHANGELOG.md +++ b/sdk/core/core-paging/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.5.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.6.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.5.0 (2023-02-02) ### Features Added diff --git a/sdk/core/core-paging/package.json b/sdk/core/core-paging/package.json index b6ad22f732b8..1474539fb80f 100644 --- a/sdk/core/core-paging/package.json +++ b/sdk/core/core-paging/package.json @@ -2,7 +2,7 @@ "name": "@azure/core-paging", "author": "Microsoft Corporation", "sdk-type": "client", - "version": "1.5.1", + "version": "1.6.0", "description": "Core types for paging async iterable iterators", "type": "module", "main": "./dist/commonjs/index.js", diff --git a/sdk/core/core-rest-pipeline/CHANGELOG.md b/sdk/core/core-rest-pipeline/CHANGELOG.md index dd966237d560..ec475434c42e 100644 --- a/sdk/core/core-rest-pipeline/CHANGELOG.md +++ b/sdk/core/core-rest-pipeline/CHANGELOG.md @@ -1,10 +1,6 @@ # Release History -## 1.14.1 (Unreleased) - -### Features Added - -### Breaking Changes +## 1.15.0 (2024-03-12) ### Bugs Fixed @@ -13,6 +9,8 @@ ### Other Changes - In the browser, `formDataPolicy` once again uses `multipartPolicy` when content type is `multipart/form-data`. This functionality was removed in 1.14.0, but has now been re-enabled. +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. ## 1.14.0 (2024-02-01) diff --git a/sdk/core/core-rest-pipeline/package.json b/sdk/core/core-rest-pipeline/package.json index 9548be998c46..26a3d1043a57 100644 --- a/sdk/core/core-rest-pipeline/package.json +++ b/sdk/core/core-rest-pipeline/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-rest-pipeline", - "version": "1.14.1", + "version": "1.15.0", "description": "Isomorphic client library for making HTTP requests in node.js and browser.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-rest-pipeline/src/constants.ts b/sdk/core/core-rest-pipeline/src/constants.ts index 54250c836e2b..8bb7e027f01d 100644 --- a/sdk/core/core-rest-pipeline/src/constants.ts +++ b/sdk/core/core-rest-pipeline/src/constants.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.14.1"; +export const SDK_VERSION: string = "1.15.0"; export const DEFAULT_RETRY_POLICY_COUNT = 3; diff --git a/sdk/core/core-sse/CHANGELOG.md b/sdk/core/core-sse/CHANGELOG.md index 96ce115e15f5..174d4ba1f0c8 100644 --- a/sdk/core/core-sse/CHANGELOG.md +++ b/sdk/core/core-sse/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 2.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 2.1.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 2.0.0 (2024-01-02) ### Features Added diff --git a/sdk/core/core-sse/package.json b/sdk/core/core-sse/package.json index ac671056dcfc..9842c511ca66 100644 --- a/sdk/core/core-sse/package.json +++ b/sdk/core/core-sse/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-sse", - "version": "2.0.1", + "version": "2.1.0", "description": "Implementation of the Server-sent events protocol for Node.js and browsers.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-tracing/CHANGELOG.md b/sdk/core/core-tracing/CHANGELOG.md index 0019056bf643..2cc9fee1c44f 100644 --- a/sdk/core/core-tracing/CHANGELOG.md +++ b/sdk/core/core-tracing/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.0.2 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.1.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.0.1 (2022-05-05) ### Other Changes diff --git a/sdk/core/core-tracing/package.json b/sdk/core/core-tracing/package.json index 7210f2b64a43..7bebbc676a41 100644 --- a/sdk/core/core-tracing/package.json +++ b/sdk/core/core-tracing/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-tracing", - "version": "1.0.2", + "version": "1.1.0", "description": "Provides low-level interfaces and helper methods for tracing in Azure SDK", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-util/CHANGELOG.md b/sdk/core/core-util/CHANGELOG.md index 19eedf1f53ad..7a925ac5e776 100644 --- a/sdk/core/core-util/CHANGELOG.md +++ b/sdk/core/core-util/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.7.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.8.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.7.0 (2024-02-01) ### Other Changes diff --git a/sdk/core/core-util/package.json b/sdk/core/core-util/package.json index b3344bc4e774..6d036d682648 100644 --- a/sdk/core/core-util/package.json +++ b/sdk/core/core-util/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-util", - "version": "1.7.1", + "version": "1.8.0", "description": "Core library for shared utility methods", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-xml/CHANGELOG.md b/sdk/core/core-xml/CHANGELOG.md index 7569ff78ab37..df6f4a7aea92 100644 --- a/sdk/core/core-xml/CHANGELOG.md +++ b/sdk/core/core-xml/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.3.5 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.4.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.3.4 (2023-06-20) ### Other Changes diff --git a/sdk/core/core-xml/package.json b/sdk/core/core-xml/package.json index 88f7ccd87c22..0256b22ce0d4 100644 --- a/sdk/core/core-xml/package.json +++ b/sdk/core/core-xml/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-xml", - "version": "1.3.5", + "version": "1.4.0", "description": "Core library for interacting with XML payloads", "sdk-type": "client", "type": "module", diff --git a/sdk/core/logger/CHANGELOG.md b/sdk/core/logger/CHANGELOG.md index 64cd41c60e6e..a5906c4ef573 100644 --- a/sdk/core/logger/CHANGELOG.md +++ b/sdk/core/logger/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History -## 1.0.5 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed +## 1.1.0 (2024-03-12) ### Other Changes +- Migrated the codebase to ESM. This change is internal and should not affect customers. +- Migrated unit tests to vitest. + ## 1.0.4 (2023-03-02) ### Other Changes diff --git a/sdk/core/logger/package.json b/sdk/core/logger/package.json index 47753d5a86f1..6e6d409890d3 100644 --- a/sdk/core/logger/package.json +++ b/sdk/core/logger/package.json @@ -1,7 +1,7 @@ { "name": "@azure/logger", "sdk-type": "client", - "version": "1.0.5", + "version": "1.1.0", "description": "Microsoft Azure SDK for JavaScript - Logger", "type": "module", "main": "./dist/commonjs/index.js", From 185fc3fecafc015978e6058c3611218635158d01 Mon Sep 17 00:00:00 2001 From: Sarangan Rajamanickam Date: Wed, 13 Mar 2024 10:42:36 -0700 Subject: [PATCH 32/57] [@azure/eventgrid] Adding new events for EG Version 5.3.0 (#28891) ### Packages impacted by this PR @azure/eventgrid ### Issues associated with this PR NA ### Describe the problem that is addressed by this PR The EventGrid Service Team has added 2 new events. The SDK must be regenerated to include the code changes related to these 2 new events. The SDK minor version has been updated. - `Microsoft.ApiCenter.ApiDefinitionAdded` - `Microsoft.ApiCenter.ApiDefinitionUpdated` ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? There are no specific/complex design scenarios for this task. It is a straightforward regenerate and some standard changes to the custom layer of the code. ### Are there test cases added in this PR? _(If not, why?)_ No. This item is standard and we need not add test cases for every new events. The existing cases would be sufficient. ### Provide a list of related PRs _(if any)_ - https://github.com/Azure/azure-sdk-for-js/pull/27384 (This is the PR that adds similar events to the SDK in the 4.15.0 release) - https://github.com/Azure/azure-sdk-for-js/pull/26939 (This is the PR that adds similar events to the SDK in the 4.14.0 release) - https://github.com/Azure/azure-sdk-for-js/pull/26020 (This is the PR that adds similar events to the SDK in the 4.13.0 release) - https://github.com/Azure/azure-sdk-for-js/pull/28176 (This is the PR that adds similar events to the SDK in the 5.1.0 release) - https://github.com/Azure/azure-sdk-for-js/pull/28513 (This is the PR that adds similar events to the SDK in the 5.2.0 release) ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ `autorest --typescript swagger\README.md` ### Checklists - [X] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [X] Added a changelog (if necessary) --- sdk/eventgrid/eventgrid/CHANGELOG.md | 9 +- sdk/eventgrid/eventgrid/package.json | 2 +- .../eventgrid/review/eventgrid.api.md | 22 +++++ .../src/generated/generatedClientContext.ts | 2 +- .../eventgrid/src/generated/models/index.ts | 28 +++++++ .../eventgrid/src/generated/models/mappers.ts | 83 +++++++++++++++++++ sdk/eventgrid/eventgrid/src/index.ts | 3 + sdk/eventgrid/eventgrid/src/predicates.ts | 6 ++ sdk/eventgrid/eventgrid/src/tracing.ts | 2 +- sdk/eventgrid/eventgrid/swagger/README.md | 4 +- 10 files changed, 151 insertions(+), 10 deletions(-) diff --git a/sdk/eventgrid/eventgrid/CHANGELOG.md b/sdk/eventgrid/eventgrid/CHANGELOG.md index 8aabd391daf5..4cc8427e2544 100644 --- a/sdk/eventgrid/eventgrid/CHANGELOG.md +++ b/sdk/eventgrid/eventgrid/CHANGELOG.md @@ -1,14 +1,13 @@ # Release History -## 5.2.1 (Unreleased) +## 5.3.0 (2024-03-13) ### Features Added -### Breaking Changes - -### Bugs Fixed +- Added new System Events: -### Other Changes + - `Microsoft.ApiCenter.ApiDefinitionAdded` + - `Microsoft.ApiCenter.ApiDefinitionUpdated` ## 5.2.0 (2024-02-08) diff --git a/sdk/eventgrid/eventgrid/package.json b/sdk/eventgrid/eventgrid/package.json index 67f0fef1903e..73a804aee41e 100644 --- a/sdk/eventgrid/eventgrid/package.json +++ b/sdk/eventgrid/eventgrid/package.json @@ -3,7 +3,7 @@ "sdk-type": "client", "author": "Microsoft Corporation", "description": "An isomorphic client library for the Azure Event Grid service.", - "version": "5.2.1", + "version": "5.3.0", "keywords": [ "node", "azure", diff --git a/sdk/eventgrid/eventgrid/review/eventgrid.api.md b/sdk/eventgrid/eventgrid/review/eventgrid.api.md index a41672a4bf71..645f3f1dea25 100644 --- a/sdk/eventgrid/eventgrid/review/eventgrid.api.md +++ b/sdk/eventgrid/eventgrid/review/eventgrid.api.md @@ -514,6 +514,26 @@ export interface AcsUserDisconnectedEventData { // @public export type AcsUserEngagement = string; +// @public +export interface ApiCenterApiDefinitionAddedEventData { + description: string; + specification: ApiCenterApiSpecification; + title: string; +} + +// @public +export interface ApiCenterApiDefinitionUpdatedEventData { + description: string; + specification: ApiCenterApiSpecification; + title: string; +} + +// @public +export interface ApiCenterApiSpecification { + name: string; + version: string; +} + // @public export interface ApiManagementApiCreatedEventData { resourceUri: string; @@ -2448,6 +2468,8 @@ export interface SubscriptionValidationEventData { // @public export interface SystemEventNameToEventData { + "Microsoft.ApiCenter.ApiDefinitionAdded": ApiCenterApiDefinitionAddedEventData; + "Microsoft.ApiCenter.ApiDefinitionUpdated": ApiCenterApiDefinitionUpdatedEventData; "Microsoft.ApiManagement.APICreated": ApiManagementApiCreatedEventData; "Microsoft.ApiManagement.APIDeleted": ApiManagementApiDeletedEventData; "Microsoft.ApiManagement.APIReleaseCreated": ApiManagementApiReleaseCreatedEventData; diff --git a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts index c34451a0752b..09353b40d951 100644 --- a/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts +++ b/sdk/eventgrid/eventgrid/src/generated/generatedClientContext.ts @@ -26,7 +26,7 @@ export class GeneratedClientContext extends coreClient.ServiceClient { requestContentType: "application/json; charset=utf-8" }; - const packageDetails = `azsdk-js-eventgrid/5.2.1`; + const packageDetails = `azsdk-js-eventgrid/5.3.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/eventgrid/eventgrid/src/generated/models/index.ts b/sdk/eventgrid/eventgrid/src/generated/models/index.ts index cde66beadd7e..b08c38ec9a20 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/index.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/index.ts @@ -2721,6 +2721,34 @@ export interface AvsScriptExecutionEventData { output: string[]; } +/** Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionAdded event. */ +export interface ApiCenterApiDefinitionAddedEventData { + /** API definition title. */ + title: string; + /** API definition description. */ + description: string; + /** API specification details. */ + specification: ApiCenterApiSpecification; +} + +/** API specification details. */ +export interface ApiCenterApiSpecification { + /** Specification name. */ + name: string; + /** Specification version. */ + version: string; +} + +/** Schema of the data property of an EventGridEvent for a Microsoft.ApiCenter.ApiDefinitionUpdated event. */ +export interface ApiCenterApiDefinitionUpdatedEventData { + /** API definition title. */ + title: string; + /** API definition description. */ + description: string; + /** API specification details. */ + specification: ApiCenterApiSpecification; +} + /** Event data for Microsoft.EventGrid.MQTTClientCreatedOrUpdated event. */ export type EventGridMqttClientCreatedOrUpdatedEventData = EventGridMqttClientEventData & { /** Configured state of the client. The value could be Enabled or Disabled */ diff --git a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts index 173c9f2d0dd3..7ce605986d47 100644 --- a/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts +++ b/sdk/eventgrid/eventgrid/src/generated/models/mappers.ts @@ -7946,6 +7946,89 @@ export const AvsScriptExecutionEventData: coreClient.CompositeMapper = { } }; +export const ApiCenterApiDefinitionAddedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiCenterApiDefinitionAddedEventData", + modelProperties: { + title: { + serializedName: "title", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + specification: { + serializedName: "specification", + type: { + name: "Composite", + className: "ApiCenterApiSpecification" + } + } + } + } +}; + +export const ApiCenterApiSpecification: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiCenterApiSpecification", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String" + } + }, + version: { + serializedName: "version", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ApiCenterApiDefinitionUpdatedEventData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiCenterApiDefinitionUpdatedEventData", + modelProperties: { + title: { + serializedName: "title", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String" + } + }, + specification: { + serializedName: "specification", + type: { + name: "Composite", + className: "ApiCenterApiSpecification" + } + } + } + } +}; + export const EventGridMqttClientCreatedOrUpdatedEventData: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/eventgrid/eventgrid/src/index.ts b/sdk/eventgrid/eventgrid/src/index.ts index 304372580c14..514b263396d0 100644 --- a/sdk/eventgrid/eventgrid/src/index.ts +++ b/sdk/eventgrid/eventgrid/src/index.ts @@ -334,4 +334,7 @@ export { KnownAcsEmailDeliveryReportStatus, KnownAcsUserEngagement, KnownHealthcareFhirResourceType, + ApiCenterApiDefinitionAddedEventData, + ApiCenterApiDefinitionUpdatedEventData, + ApiCenterApiSpecification, } from "./generated/models"; diff --git a/sdk/eventgrid/eventgrid/src/predicates.ts b/sdk/eventgrid/eventgrid/src/predicates.ts index 5bc4167933db..aefbb8993040 100644 --- a/sdk/eventgrid/eventgrid/src/predicates.ts +++ b/sdk/eventgrid/eventgrid/src/predicates.ts @@ -204,6 +204,8 @@ import { StorageTaskAssignmentCompletedEventData, AvsClusterUpdatedEventData, AvsClusterFailedEventData, + ApiCenterApiDefinitionAddedEventData, + ApiCenterApiDefinitionUpdatedEventData, } from "./generated/models"; import { CloudEvent, EventGridEvent } from "./models"; @@ -622,6 +624,10 @@ export interface SystemEventNameToEventData { "Microsoft.AVS.ClusterUpdated": AvsClusterUpdatedEventData; /** An interface for the event data of a "Microsoft.AVS.ClusterFailed" event. */ "Microsoft.AVS.ClusterFailed": AvsClusterFailedEventData; + /** An interface for the event data of a "Microsoft.ApiCenter.ApiDefinitionAdded" event. */ + "Microsoft.ApiCenter.ApiDefinitionAdded": ApiCenterApiDefinitionAddedEventData; + /** An interface for the event data of a "Microsoft.ApiCenter.ApiDefinitionUpdated" event. */ + "Microsoft.ApiCenter.ApiDefinitionUpdated": ApiCenterApiDefinitionUpdatedEventData; } /** diff --git a/sdk/eventgrid/eventgrid/src/tracing.ts b/sdk/eventgrid/eventgrid/src/tracing.ts index 3f2d35906375..baa82fc90103 100644 --- a/sdk/eventgrid/eventgrid/src/tracing.ts +++ b/sdk/eventgrid/eventgrid/src/tracing.ts @@ -10,5 +10,5 @@ import { createTracingClient } from "@azure/core-tracing"; export const tracingClient = createTracingClient({ namespace: "Microsoft.Messaging.EventGrid", packageName: "@azure/event-grid", - packageVersion: "5.2.1", + packageVersion: "5.3.0", }); diff --git a/sdk/eventgrid/eventgrid/swagger/README.md b/sdk/eventgrid/eventgrid/swagger/README.md index 20eb28f027a3..f46bfdea7709 100644 --- a/sdk/eventgrid/eventgrid/swagger/README.md +++ b/sdk/eventgrid/eventgrid/swagger/README.md @@ -5,9 +5,9 @@ ## Configuration ```yaml -require: "https://github.com/Azure/azure-rest-api-specs/blob/46e9f311c397352c1f9b60c5277bf6f982c3c172/specification/eventgrid/data-plane/readme.md" +require: "https://github.com/Azure/azure-rest-api-specs/blob/64819c695760764afa059d799fc7320d3fee33de/specification/eventgrid/data-plane/readme.md" package-name: "@azure/eventgrid" -package-version: "5.2.1" +package-version: "5.3.0" title: GeneratedClient description: EventGrid Client generate-metadata: false From 62ee255e445acfa9dc6c79b3e2791e815204037c Mon Sep 17 00:00:00 2001 From: Timo van Veenendaal Date: Wed, 13 Mar 2024 11:22:21 -0700 Subject: [PATCH 33/57] [keyvault] Migrate remaining Key Vault packages to keyvault-common (#26875) ### Packages impacted by this PR - `@azure/keyvault-keys` - `@azure/keyvault-secrets` ### Issues associated with this PR - Fix #22705 ### Describe the problem that is addressed by this PR Brings Keys and Secrets up to speed with the latest keyvault-common goodness --- sdk/keyvault/keyvault-keys/api-extractor.json | 2 +- sdk/keyvault/keyvault-keys/package.json | 14 +++++++------- .../src/cryptography/remoteCryptographyProvider.ts | 2 +- sdk/keyvault/keyvault-keys/src/identifier.ts | 2 +- sdk/keyvault/keyvault-keys/src/index.ts | 2 +- .../keyvault-keys/test/internal/userAgent.spec.ts | 4 ++-- sdk/keyvault/keyvault-keys/tsconfig.json | 7 +------ sdk/keyvault/keyvault-secrets/api-extractor.json | 2 +- sdk/keyvault/keyvault-secrets/package.json | 6 +++--- sdk/keyvault/keyvault-secrets/src/identifier.ts | 2 +- sdk/keyvault/keyvault-secrets/src/index.ts | 2 +- .../test/internal/userAgent.spec.ts | 4 ++-- sdk/keyvault/keyvault-secrets/tsconfig.json | 7 +------ 13 files changed, 23 insertions(+), 33 deletions(-) diff --git a/sdk/keyvault/keyvault-keys/api-extractor.json b/sdk/keyvault/keyvault-keys/api-extractor.json index 3afc3e69a5ea..24dc512f9c4c 100644 --- a/sdk/keyvault/keyvault-keys/api-extractor.json +++ b/sdk/keyvault/keyvault-keys/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/keyvault-keys/src/index.d.ts", + "mainEntryPointFilePath": "types/src/index.d.ts", "docModel": { "enabled": true }, diff --git a/sdk/keyvault/keyvault-keys/package.json b/sdk/keyvault/keyvault-keys/package.json index 5b9d4c79cdbc..134ef4c925c0 100644 --- a/sdk/keyvault/keyvault-keys/package.json +++ b/sdk/keyvault/keyvault-keys/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "main": "./dist/index.js", - "module": "dist-esm/keyvault-keys/src/index.js", + "module": "dist-esm/src/index.js", "types": "./types/keyvault-keys.d.ts", "engines": { "node": ">=18.0.0" @@ -28,18 +28,17 @@ "files": [ "types/keyvault-keys.d.ts", "dist/", - "dist-esm/keyvault-keys/src", - "dist-esm/keyvault-common/src", + "dist-esm/src", "README.md", "LICENSE" ], "browser": { "os": false, "process": false, - "./dist-esm/keyvault-keys/src/cryptography/crypto.js": "./dist-esm/keyvault-keys/src/cryptography/crypto.browser.js", - "./dist-esm/keyvault-keys/src/cryptography/rsaCryptographyProvider.js": "./dist-esm/keyvault-keys/src/cryptography/rsaCryptographyProvider.browser.js", - "./dist-esm/keyvault-keys/src/cryptography/aesCryptographyProvider.js": "./dist-esm/keyvault-keys/src/cryptography/aesCryptographyProvider.browser.js", - "./dist-esm/keyvault-keys/test/utils/base64url.js": "./dist-esm/keyvault-keys/test/utils/base64url.browser.js" + "./dist-esm/src/cryptography/crypto.js": "./dist-esm/src/cryptography/crypto.browser.js", + "./dist-esm/src/cryptography/rsaCryptographyProvider.js": "./dist-esm/src/cryptography/rsaCryptographyProvider.browser.js", + "./dist-esm/src/cryptography/aesCryptographyProvider.js": "./dist-esm/src/cryptography/aesCryptographyProvider.browser.js", + "./dist-esm/test/utils/base64url.js": "./dist-esm/test/utils/base64url.browser.js" }, "scripts": { "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", @@ -111,6 +110,7 @@ "@azure/core-lro": "^2.2.0", "@azure/core-paging": "^1.1.1", "@azure/core-tracing": "^1.0.0", + "@azure/keyvault-common": "^1.0.0", "@azure/logger": "^1.0.0", "tslib": "^2.2.0" }, diff --git a/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts b/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts index b2f38d12fe3e..3bc0e8ef9c67 100644 --- a/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts +++ b/sdk/keyvault/keyvault-keys/src/cryptography/remoteCryptographyProvider.ts @@ -34,7 +34,7 @@ import { getKeyFromKeyBundle } from "../transformations"; import { createHash } from "./crypto"; import { CryptographyProvider, CryptographyProviderOperation } from "./models"; import { logger } from "../log"; -import { createKeyVaultChallengeCallbacks } from "../../../keyvault-common/src"; +import { createKeyVaultChallengeCallbacks } from "@azure/keyvault-common"; import { tracingClient } from "../tracing"; /** diff --git a/sdk/keyvault/keyvault-keys/src/identifier.ts b/sdk/keyvault/keyvault-keys/src/identifier.ts index 0c4866c9d006..ebd180cc0c96 100644 --- a/sdk/keyvault/keyvault-keys/src/identifier.ts +++ b/sdk/keyvault/keyvault-keys/src/identifier.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { parseKeyVaultIdentifier } from "../../keyvault-common/src"; +import { parseKeyVaultIdentifier } from "@azure/keyvault-common"; /** * Represents the segments that compose a Key Vault Key Id. diff --git a/sdk/keyvault/keyvault-keys/src/index.ts b/sdk/keyvault/keyvault-keys/src/index.ts index 79b08b40c33e..ee4aa8cf82c5 100644 --- a/sdk/keyvault/keyvault-keys/src/index.ts +++ b/sdk/keyvault/keyvault-keys/src/index.ts @@ -19,7 +19,7 @@ import { } from "./generated/models"; import { KeyVaultClient } from "./generated/keyVaultClient"; import { SDK_VERSION } from "./constants"; -import { createKeyVaultChallengeCallbacks } from "../../keyvault-common/src"; +import { createKeyVaultChallengeCallbacks } from "@azure/keyvault-common"; import { DeleteKeyPoller } from "./lro/delete/poller"; import { RecoverDeletedKeyPoller } from "./lro/recover/poller"; diff --git a/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts index 3d84c95fa7e3..73f04e84b645 100644 --- a/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts @@ -45,9 +45,9 @@ describe("Keys client's user agent", () => { version = fileContents.version; } catch { // The integration-test script has this test file in a considerably different place, - // Along the lines of: dist-esm/keyvault-keys/test/internal/userAgent.spec.ts + // Along the lines of: dist-esm/test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }), + fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-keys/tsconfig.json b/sdk/keyvault/keyvault-keys/tsconfig.json index 593cf16cd84d..d1b1b2b6d52e 100644 --- a/sdk/keyvault/keyvault-keys/tsconfig.json +++ b/sdk/keyvault/keyvault-keys/tsconfig.json @@ -9,10 +9,5 @@ "@azure/keyvault-keys": ["./src/index"] } }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "../keyvault-common/src/**/*.ts", - "samples-dev/**/*.ts" - ] + "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] } diff --git a/sdk/keyvault/keyvault-secrets/api-extractor.json b/sdk/keyvault/keyvault-secrets/api-extractor.json index 3ae6cbeedc67..7a4d1e7f8cfb 100644 --- a/sdk/keyvault/keyvault-secrets/api-extractor.json +++ b/sdk/keyvault/keyvault-secrets/api-extractor.json @@ -1,6 +1,6 @@ { "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", - "mainEntryPointFilePath": "types/keyvault-secrets/src/index.d.ts", + "mainEntryPointFilePath": "types/src/index.d.ts", "docModel": { "enabled": true }, diff --git a/sdk/keyvault/keyvault-secrets/package.json b/sdk/keyvault/keyvault-secrets/package.json index 170d4198f5ba..b447b05b1def 100644 --- a/sdk/keyvault/keyvault-secrets/package.json +++ b/sdk/keyvault/keyvault-secrets/package.json @@ -20,7 +20,7 @@ "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "main": "./dist/index.js", - "module": "dist-esm/keyvault-secrets/src/index.js", + "module": "dist-esm/src/index.js", "types": "./types/keyvault-secrets.d.ts", "engines": { "node": ">=18.0.0" @@ -28,8 +28,7 @@ "files": [ "types/keyvault-secrets.d.ts", "dist/", - "dist-esm/keyvault-secrets/src", - "dist-esm/keyvault-common/src", + "dist-esm/src", "README.md", "LICENSE" ], @@ -109,6 +108,7 @@ "@azure/core-lro": "^2.2.0", "@azure/core-paging": "^1.1.1", "@azure/core-tracing": "^1.0.0", + "@azure/keyvault-common": "^1.0.0", "@azure/logger": "^1.0.0", "tslib": "^2.2.0" }, diff --git a/sdk/keyvault/keyvault-secrets/src/identifier.ts b/sdk/keyvault/keyvault-secrets/src/identifier.ts index 61a14a20f68b..38bd3e1a32fa 100644 --- a/sdk/keyvault/keyvault-secrets/src/identifier.ts +++ b/sdk/keyvault/keyvault-secrets/src/identifier.ts @@ -1,7 +1,7 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { parseKeyVaultIdentifier } from "../../keyvault-common/src"; +import { parseKeyVaultIdentifier } from "@azure/keyvault-common"; /** * Represents the segments that compose a Key Vault Secret Id. diff --git a/sdk/keyvault/keyvault-secrets/src/index.ts b/sdk/keyvault/keyvault-secrets/src/index.ts index 93b807bfabcd..6970cb19a64c 100644 --- a/sdk/keyvault/keyvault-secrets/src/index.ts +++ b/sdk/keyvault/keyvault-secrets/src/index.ts @@ -18,7 +18,7 @@ import { SecretBundle, } from "./generated/models"; import { KeyVaultClient } from "./generated/keyVaultClient"; -import { createKeyVaultChallengeCallbacks } from "../../keyvault-common/src"; +import { createKeyVaultChallengeCallbacks } from "@azure/keyvault-common"; import { DeleteSecretPoller } from "./lro/delete/poller"; import { RecoverDeletedSecretPoller } from "./lro/recover/poller"; diff --git a/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts b/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts index 1d6d850e87ea..650276e6aafe 100644 --- a/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts +++ b/sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts @@ -44,9 +44,9 @@ describe("Secrets client's user agent (only in Node, because of fs)", () => { version = fileContents.version; } catch { // The integration-test script has this test file in a considerably different place, - // Along the lines of: dist-esm/keyvault-keys/test/internal/userAgent.spec.ts + // Along the lines of: dist-esm/test/internal/userAgent.spec.ts const fileContents = JSON.parse( - fs.readFileSync(path.join(__dirname, "../../../../package.json"), { encoding: "utf-8" }), + fs.readFileSync(path.join(__dirname, "../../../package.json"), { encoding: "utf-8" }), ); version = fileContents.version; } diff --git a/sdk/keyvault/keyvault-secrets/tsconfig.json b/sdk/keyvault/keyvault-secrets/tsconfig.json index a377b7b11846..4cbb26181ea3 100644 --- a/sdk/keyvault/keyvault-secrets/tsconfig.json +++ b/sdk/keyvault/keyvault-secrets/tsconfig.json @@ -9,10 +9,5 @@ "@azure/keyvault-secrets": ["./src/index"] } }, - "include": [ - "./src/**/*.ts", - "./test/**/*.ts", - "../keyvault-common/src/**/*.ts", - "samples-dev/**/*.ts" - ] + "include": ["./src/**/*.ts", "./test/**/*.ts", "samples-dev/**/*.ts"] } From 017d7166761b3c994a539c2263f52d4322cf6310 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Wed, 13 Mar 2024 15:36:15 -0400 Subject: [PATCH 34/57] Sync eng/common directory with azure-sdk-tools for PR 7821 (#28905) Sync eng/common directory with azure-sdk-tools for PR --- eng/common/scripts/Create-APIReview.ps1 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/eng/common/scripts/Create-APIReview.ps1 b/eng/common/scripts/Create-APIReview.ps1 index c3c8f4a46dc6..3d1f549458b7 100644 --- a/eng/common/scripts/Create-APIReview.ps1 +++ b/eng/common/scripts/Create-APIReview.ps1 @@ -15,7 +15,7 @@ Param ( ) # Submit API review request and return status whether current revision is approved or pending or failed to create review -function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $releaseStatus) +function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $releaseStatus, $packageVersion) { $multipartContent = [System.Net.Http.MultipartFormDataContent]::new() $FileStream = [System.IO.FileStream]::new($filePath, [System.IO.FileMode]::Open) @@ -35,6 +35,13 @@ function Submit-APIReview($packagename, $filePath, $uri, $apiKey, $apiLabel, $re $multipartContent.Add($stringContent) Write-Host "Request param, label: $apiLabel" + $versionParam = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") + $versionParam.Name = "packageVersion" + $versionContent = [System.Net.Http.StringContent]::new($packageVersion) + $versionContent.Headers.ContentDisposition = $versionParam + $multipartContent.Add($versionContent) + Write-Host "Request param, packageVersion: $packageVersion" + if ($releaseStatus -and ($releaseStatus -ne "Unreleased")) { $compareAllParam = [System.Net.Http.Headers.ContentDispositionHeaderValue]::new("form-data") @@ -106,6 +113,7 @@ if ($packages) # Get package info from json file created before updating version to daily dev $pkgInfo = Get-Content $pkgPropPath | ConvertFrom-Json $version = [AzureEngSemanticVersion]::ParseVersionString($pkgInfo.Version) + $versionString = $pkgInfo.Version if ($version -eq $null) { Write-Host "Version info is not available for package $PackageName, because version '$(pkgInfo.Version)' is invalid. Please check if the version follows Azure SDK package versioning guidelines." @@ -121,7 +129,7 @@ if ($packages) if ( ($SourceBranch -eq $DefaultBranch) -or (-not $version.IsPrerelease)) { Write-Host "Submitting API Review for package $($pkg)" - $respCode = Submit-APIReview -packagename $pkg -filePath $pkgPath -uri $APIViewUri -apiKey $APIKey -apiLabel $APILabel -releaseStatus $pkgInfo.ReleaseStatus + $respCode = Submit-APIReview -packagename $pkg -filePath $pkgPath -uri $APIViewUri -apiKey $APIKey -apiLabel $APILabel -releaseStatus $pkgInfo.ReleaseStatus -packageVersion $versionString Write-Host "HTTP Response code: $($respCode)" # HTTP status 200 means API is in approved status if ($respCode -eq '200') From 2409cdeb44ab48b4dfce072eb513fcbd66a078f3 Mon Sep 17 00:00:00 2001 From: Jeff Fisher Date: Wed, 13 Mar 2024 14:52:23 -0500 Subject: [PATCH 35/57] [monitor] Fix pipeline issue from missing dependency (#28906) ### Packages impacted by this PR `@azure/monitor-opentelemetry` `@azure/monitor-opentelemetry-exporter` ### Describe the problem that is addressed by this PR `cross-env` was removed from the devdeps of monitor-opentelemetry and monitor-opentelemetry-exporter which causes pipeline failures when running the test pipeline since the integration test command uses this binary. --- common/config/rush/pnpm-lock.yaml | 767 +++++++++--------- .../package.json | 1 + .../monitor-opentelemetry/package.json | 1 + 3 files changed, 385 insertions(+), 384 deletions(-) diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 80cbd16e48bc..965c60703634 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10451,7 +10451,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-6KmwcmAc6Zw8aAD3MJMfxMFu/eU1by4j5WCbNbMnTh+SAEBmhRppxYLE57CHk/4zJEAr+ssjbLGmiSDO9XWAqg==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-iNr+bUFLjcImxSkKGfTvrMXdvN+Xr2uo0pe1VAQ5yxDLRwekMIoD0LJTgxqbMH9X+0ZTQdvANRTXKGf0Vg5gMQ==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -10484,7 +10484,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-1gJtIqsdb3A7n3iKVYX+cO9GlxwAx98jKfiFw+9rOmBZzyH3+AVNwCR5y/qego33s7BOEtVBYTBfE+RE2g+u7A==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-wAQvtrrdmX+2Bva2/aeO1N4UYS/nOcPQrPdBDFE6ZWAOzeOF7/EozfYF/754AYKYjmWhJ1eVKk6fwkDsPZvqEQ==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -10528,7 +10528,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-4RFMxeQv1SvqJCIIXuHWetqcaZypgMXBD4y5KRpyYJTn5IqgypkpxQDlU5Fzau51QjuGovlngIFGYhUK6ChHZw==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-1D5XNSIsMuHod/Ga1MvLOMSZ7SnsmJ1C1QQps7z/Lu3Bn2HeE/PaprRY6oLdG0lpFv2QImE5IXWffLrL6VG08g==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -10572,7 +10572,7 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-6lwZLHLgH7pSNwF2YBkR18lySMvokaRLXby1EOj1ARxHwO1txv3VJzB4MkbITljyQAwwf0LBy7FZWGq++7wHKQ==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-pKa4o99jHH5JO9Y0rzBJC9xekW78nEjxZ549EGZAum2Ro6+cUR3x3l/EGL5Re5dHyhfljfxpX2MYvNFIBAMvkw==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: @@ -10615,7 +10615,7 @@ packages: dev: false file:projects/ai-document-intelligence.tgz: - resolution: {integrity: sha512-BzeiADIeoIIlJ8LRyX4rq6JouqAj7vz9S+/YE9KQXRP9URaP0ke8pY0Wzi4mOEW7dIrecN0ePd0TJqxrImmrdQ==, tarball: file:projects/ai-document-intelligence.tgz} + resolution: {integrity: sha512-K1pn4bMflvrhHSOp2OIfBXRZaHGszteFE7TxUJQW1yv6OsRM02nnclIcKavqg9fboSWrDg5cWjyPBgzC2hKrvA==, tarball: file:projects/ai-document-intelligence.tgz} name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: @@ -10659,7 +10659,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-nJmJTeS99cjSGz7F593eBVWe9e8z5MlBcL/RPYc1X7GqLarVvQDy8CRvNotVwlKqZXIDFU5SZQfm79ariToNEA==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-dWR4dFSVukPRd0wgny/m2a0LUBL1vlLQHpVTzjunyoM71gap1ZUGhPiSZ+6HVEu9KgEEp65QtUYp4Oic2fsXdA==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -10702,7 +10702,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-diW8HFTJtQYPHtBCCTcY5ijE8lH5+MrWF36K19IFl6McafkYs8mh5/oXLXV/PBTnXtUk00gDT58b2X6iC4mrXA==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-obvG9Pyeh3oCfjyjfZIdiWnUUh3QHYdQ+oWUO9bE4ZT+Nqa3Ix7v4UJnm70eedgqTtK1/QNQDQXTqc2ANnXUJg==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -10749,7 +10749,7 @@ packages: dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-zgE5BUWLB90nEH+Nd+UHPHz7t08SHyUzrjQ/EgBiUuoHTBkP2q7cHziIl7AlO9LjBIU1zMe+zQyYPihhvP0SNw==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-SmlaqC8pKs7sb67AsLVRmaIn0+f3npLN63yN7BHhFdpf+Rth+DLDhZ1dzhLjqXUZQdPkFqriSrWJkV0ROs5iMQ==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: @@ -10797,7 +10797,7 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-qnXx4I2V8KgR+lYOuTi6Ku4zWlgMz8WmYssVtNG3LDQtrcDmi8eqHQhCYuz51S2LebSDT0e4HOX0QVsNibqHEw==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-Xxb9oGASDhz+Qjv4Lmb1oyjsToKVg0s+vXlaizxhh/t6q1lZaADyNAa/vOdKz8ycOcGbuBNY4mE1G4nudGrLQg==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: @@ -10844,7 +10844,7 @@ packages: dev: false file:projects/ai-language-textauthoring.tgz: - resolution: {integrity: sha512-L55Jdp4pix57yOZRUz3E61njkW4SsdSaxP7pTkl37rWvz0uWdz7hngTuxyiVNkq0ILjlMsI9nEdce5cZOkl64Q==, tarball: file:projects/ai-language-textauthoring.tgz} + resolution: {integrity: sha512-+t8Q7pUW63hRFCgAA14Kg2ypyBKvBH9fI/Zta/k1fegdI78goRNjsExAMBGrk/fV18C6qHIzON8C6GGhJTjPfA==, tarball: file:projects/ai-language-textauthoring.tgz} name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: @@ -10869,7 +10869,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-ywS2xkL3j+OT/TGdNqEnlS3sn6dCjDmjdc7Tq0S6WG5UWtP7jJxV+xViqzVI/ND4MB7YpZDSdaw4J49XttTxDA==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-LHiJRXI1Y8vFpannHomfmMKM10Amp/vSzyZoIF+NwHc2ZJdsmsqWdctyXNmOYTFVNIogKt0CryjLZpiGp534YQ==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -10912,7 +10912,7 @@ packages: dev: false file:projects/ai-personalizer.tgz: - resolution: {integrity: sha512-1YSdKuRqIO9U6bdAngcYXnJAqg1sFvk+fNl0D/2cOL56RV0lNrbTaxnJEo4yvM7/aQ4/JojgOP4i48BnP1fQWg==, tarball: file:projects/ai-personalizer.tgz} + resolution: {integrity: sha512-8pWBjymcvSVHxWk4tougH/CzuZYnHVWNeFDGkMpMX3u34GMs4EqoTCTZZxz8cGt66RmJND3A08pOmtVwkaK+yA==, tarball: file:projects/ai-personalizer.tgz} name: '@rush-temp/ai-personalizer' version: 0.0.0 dependencies: @@ -10955,7 +10955,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-xIVLnFsYlJw7fjbKeTAjnneKWoeSgvcEK7QPZG6LLZfQpoErjPDJh/1VinYhM+kfuuDFkddCtZ9IGK2uZ1o9Dw==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-z21IyncrTycb7fJSyH486fdoc3bfSICN5efEkp+/N1Ed26rKd2HSw9HUgEbqJXUyMAkFlD+XzbhIc2LGs/a6rw==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -11001,7 +11001,7 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-ETbxAv2PSXMdT9s2t6fy84Th7wl4mon7K0lOInT5nWAMd9MeqdjPxQ1ivqW9jDA1vovsKQ8qUaPIuBYn5QrnhQ==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-PwMYx4S6HQOcwVprsWOXUQcIy13EeJm7xcDNfd4VShU6STuGTgNdf0F5+pp24+LLfZ5fcOWxfqOxfGemcwettw==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: @@ -11044,7 +11044,7 @@ packages: dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-tKgHLBvnEh7Q9FyyOC6WnpAFb4NJxOK2LFfaAWiZSEVwi1vlfkdAckelu0lPxqSiY7rwllrC8VsBGAWcQ415/Q==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-BTGRoZOmU+cmrNgx8b5wgrZ3PqbiO0rSQ+8jGNwVZP6TUcBN1Ne9nYHnIQxZCaGB2vf+4uKJ6NCMCw2TkLsu0Q==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: @@ -11087,7 +11087,7 @@ packages: dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: - resolution: {integrity: sha512-4Rktgk3WHldMSBL7EMvssgkC2lds/H6eF789SNkPmwvTv8lrk/BQhpO3gkltFpJ4MNolcsuLVfs47kgqFndM3g==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} + resolution: {integrity: sha512-ILWxIgL8Fu+WN9uD8SqwoDsJGBAKDKlgXHhB0ggTzXayZ/890ADv+LJxN65P+TvxfAlzsE9NMg/JrtsU2DCvsg==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: @@ -11129,7 +11129,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-Wyj3HbKSuoSY7eNvMUldvhnMqi5kKO8QXcP5Kab2D+RI76V1TYiDNB/1ffC+jN96ZsLOvaOH1xpFeGIcRfnjgw==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-ryd7sqfaOWJhxOOsThaBeSvhi2vuX6n4budqkOZyjeTNTYHhvme7eK+BZYSuB8EPjTr27FcsT3QkB5oSadhnIg==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -11180,7 +11180,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-yZ5eoxFyedjpLHPzgkwFAv2HhPvIWNHm1yn/sa8fqSp+SLfb/D2gOciNlANeEiiUgy9xldH4WXfTONmn+Wsf4w==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-hdktXjbcBGvA0FHTn22UDjSVXhFlQU56GwYbHaqj+rphRrYSM4gply8nms7Ob6wguO7YPdwkFlkXIFcVmX/AtQ==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -11219,7 +11219,7 @@ packages: dev: false file:projects/arm-advisor.tgz: - resolution: {integrity: sha512-ROD8jk3cSov/vE48keG4Nu0rftlbMlbMwQbuL8cw564ZjyxcYvmKwW/mj+dyWtjYbuCj27/MTG11+baciBUgEw==, tarball: file:projects/arm-advisor.tgz} + resolution: {integrity: sha512-OTfKEJPA4yb4uvJh4k/vEuleTC8VFATTm6fufuGRo/tfZzh1sl4h7YXjBvr4UbSUOeNxHEwV/xsVJHGh1jvXbA==, tarball: file:projects/arm-advisor.tgz} name: '@rush-temp/arm-advisor' version: 0.0.0 dependencies: @@ -11245,7 +11245,7 @@ packages: dev: false file:projects/arm-agrifood.tgz: - resolution: {integrity: sha512-Eq8GFhNd/oJociPIg1rktInQeN9SNAGJzOhamq2MgkU56XwmS6wcBn1JOti8JJeKaE/QXO3yKpewSyct3g+Qjg==, tarball: file:projects/arm-agrifood.tgz} + resolution: {integrity: sha512-KHlACz3MiXabvxhbQZNVZ76eLFAPV8hlyR9XYb3vpYJ0rC8o+oFVimtXtjIvS/5t77FUwscIeIq6VmHDRKlGxQ==, tarball: file:projects/arm-agrifood.tgz} name: '@rush-temp/arm-agrifood' version: 0.0.0 dependencies: @@ -11271,7 +11271,7 @@ packages: dev: false file:projects/arm-analysisservices.tgz: - resolution: {integrity: sha512-K60F16ABp0NPA67efoMfwVPIevG22mZLc9IDlRWUsF1sEI+r0j87PM1XpcvxyPaBwdj/m9hJlA1YncxM7iNxJg==, tarball: file:projects/arm-analysisservices.tgz} + resolution: {integrity: sha512-gKdDM68eaEu4Lxc2m/MZBfsrYuve36VXh36B8GkQhr2Fy74fkB0hxVIaybXwRkBQe+NFheOV2nR2eWjU8VkCOQ==, tarball: file:projects/arm-analysisservices.tgz} name: '@rush-temp/arm-analysisservices' version: 0.0.0 dependencies: @@ -11297,7 +11297,7 @@ packages: dev: false file:projects/arm-apicenter.tgz: - resolution: {integrity: sha512-+pRFPielS0gDX8JVCaOPr0hufVi5RDa6CVbp3lRglARFGjy3zK2Cf6/QJUZXmoxEdYTFqKjwgIcJdkCJk+bwFQ==, tarball: file:projects/arm-apicenter.tgz} + resolution: {integrity: sha512-I7XVaUB5zLRaozqNoPd0XDmfpMBMbEicQxn8lFbAe5pm1C9l3C07LLk6jU6UkwO7XMZ6KHmtvvGmsdP/83W4IQ==, tarball: file:projects/arm-apicenter.tgz} name: '@rush-temp/arm-apicenter' version: 0.0.0 dependencies: @@ -11325,7 +11325,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-JzZWr0hc/ZNg1TekAQAKyht82tdhGnk+NZG0fJ36AqsfwWP3xm9la0zFq2S6OdhG/pEzmFW32Gt/ewJ2No6zWg==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-ju2yrtwuRTesvgr/BfJcgDWjH4/TgLJsKospTQ64cZEpJgkiVjKf96UNryaVel4MxuxM85NKYxarul71R6mN2Q==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -11352,7 +11352,7 @@ packages: dev: false file:projects/arm-appcomplianceautomation.tgz: - resolution: {integrity: sha512-maN4MPboagaxwfe8eh2nHyfAicYFfJGj3qAcGGKNEQ86MCXL6cC00xIdUT08QO5Mu2AF/u17gCs6znuDHwKDvw==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-NtiILsjaOd0fwgZhEL7+SaP2a02m4zETgRa8/34N9PNcn8MN/tZFmvmDh6ZjROqIg1X/GIxyKIpwnQSfhE/+/w==, tarball: file:projects/arm-appcomplianceautomation.tgz} name: '@rush-temp/arm-appcomplianceautomation' version: 0.0.0 dependencies: @@ -11378,7 +11378,7 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-gtrl3Hqq0gmpifajc4RgLdCXIH7sT72oPGIklzYW37Y4fssGQNeoWMXwvP5d4vLG/Apz3WXyPyxs4rcPCNQwBA==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-4v96saBHfbHekdsUuRpNLycDOlo+7v5dYJCPOaomud0XrAdl5c2hbpPNag7Mu5FxywXPMyc3NiCdi5etZY8WAQ==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: @@ -11405,7 +11405,7 @@ packages: dev: false file:projects/arm-appcontainers.tgz: - resolution: {integrity: sha512-7WPgejLGKgOh2vPVgdi0dMKg+iBkbUeoopTskBmNemYPZv/IbY2L07kru2erL0s11m3teLBDro/ssrPrqDboCA==, tarball: file:projects/arm-appcontainers.tgz} + resolution: {integrity: sha512-IvoH/GAa4+uOxQ54m9x2GHYy/18gIvzXH6tZmbH4IHkMn9BiBIDq3Z0Bg0RoQ3fnf79sRjhN4TpNq9jW1rD0EQ==, tarball: file:projects/arm-appcontainers.tgz} name: '@rush-temp/arm-appcontainers' version: 0.0.0 dependencies: @@ -11432,7 +11432,7 @@ packages: dev: false file:projects/arm-appinsights.tgz: - resolution: {integrity: sha512-I34zQkAWNFmMo89ZFt2EM4nUwIymNs3zAmF640abJkJh/L+GNu2fMfy2dI5IrOhj/f1+KTrpGRpDPTz/IrnnDQ==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-WveWOZAHZWF58vZvK3pdvIx84fyR4VWrcCydr3F/UStxrXcgPVpW5qZYEucy6sdsql1keOff0i5QEpvySgvT9A==, tarball: file:projects/arm-appinsights.tgz} name: '@rush-temp/arm-appinsights' version: 0.0.0 dependencies: @@ -11457,7 +11457,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-+qvA56xDmFhYVyBkJSMPw5rssZ7dcUPhEsdUoENLA6hLLgauw7hoyagObPLVJrEGXNCgkABSR5V8+bTf3uWtQQ==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-kWl3JeqgYBz4K19XI76Pq2kdLSwC8yG+PtqruJng/HadLD47zI49erNs4te6JNytsobVRzc9GLcXwL7G1xSdPQ==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -11485,7 +11485,7 @@ packages: dev: false file:projects/arm-appservice-1.tgz: - resolution: {integrity: sha512-n9SiDwWNM6NvRyxLXP85XacmYutdry1HFVz14/Ku6TF6yvZ5/VLx9unSPUKd1kKaG/GiwcrXn4v/xlKfAqi+Wg==, tarball: file:projects/arm-appservice-1.tgz} + resolution: {integrity: sha512-oCf1w1dQgRqUaU8CuQI+35t3/VOmv9NqUnRe4kKetJWZNDj2BsOeqOnLLewVUsYYwSCowOeX3L+zOiyxQvbpqw==, tarball: file:projects/arm-appservice-1.tgz} name: '@rush-temp/arm-appservice-1' version: 0.0.0 dependencies: @@ -11513,7 +11513,7 @@ packages: dev: false file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-mkO1V5mAXU3DXRK51F/22W8UVpQtDdbq8T7Eqa0yOdByJjdBLB4FBnqwJmcYKTIdyUT7vmS3FqT6kQuOOzEPcg==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-TwZgQgk0vsQbAgaGZjjA9QH+89/zcVRTkZqB/8BMnYP4CyjGWj46pRc92Aj9ef03vC5/I6sxyZUhfZZtZ0mZfw==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-appservice-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -11540,7 +11540,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-njmusO6mmbSKbVWfPaO5s8ZxhbVPJdCUBSqrB32Zz1XGljPg1TyEwNoYxVEaN12vcwvSmcwQBqnhx/2/9D2/hQ==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-/QFWX/YoXfT4/nIu3WtRXEWrCHYS4rIyFHhm76cNjBIBWjONfbQQZt+jKkrmd7dlUik5t3CUF632KC9zn8vcAA==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -11583,7 +11583,7 @@ packages: dev: false file:projects/arm-astro.tgz: - resolution: {integrity: sha512-pfLYFPuJdkULAxrnj9El8VyRO+vaLNJgInb0OAgAWYtrvXpn5IUO2uSSrnAFHcQbi405BS+X6gCMQDZhmPC+DA==, tarball: file:projects/arm-astro.tgz} + resolution: {integrity: sha512-9WhXfWQ2IRgbLqxa1ZPCCpAHEIgBGTbEGhQDzaF6tiaOb8iBnU4o2Tjk2WhoN7opuV+opjcsYQOmMfOGsH0iFg==, tarball: file:projects/arm-astro.tgz} name: '@rush-temp/arm-astro' version: 0.0.0 dependencies: @@ -11611,7 +11611,7 @@ packages: dev: false file:projects/arm-attestation.tgz: - resolution: {integrity: sha512-W9YXfJPtPSHsFheKhG9b0Z6mwPLgf0W//VXP/Y6WmgUwddcKGxG4ltBYSvVGIsweYmCgblAAQ2QeLb9rbR4JmA==, tarball: file:projects/arm-attestation.tgz} + resolution: {integrity: sha512-CC5FeafaJaQQUVap3hU16FnRfk/dH+MQstKPMluYUN3yOSwoSnzOYpUhE2A8A/X3ntd5ZayS3eCQ8KQoDttPqQ==, tarball: file:projects/arm-attestation.tgz} name: '@rush-temp/arm-attestation' version: 0.0.0 dependencies: @@ -11636,7 +11636,7 @@ packages: dev: false file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-4YEuNADyUOVmwESJbnO5v1amsCokgIjVBv1+7JDeFyeVOHwYIsI5CBWBccu40Y5lXa+OuuinEf6SyRF8+hFq6Q==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-SE+y4mqIuScTDDH6hBlhT41I+8QTNBR9wA9540ymYjYAlchKpYGojSrxiTZnxKGnQ9ioWaikEWPkoKY9eALJdA==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-authorization-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -11662,7 +11662,7 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-UAaYVqdL+QU7UGdM4HnWbie2G6uofI3o9ATwno6B8gPQoWXO6u77l7yXPVX79p84dqt9HnJxMFwwjQXfm6wkVw==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-y3ID88BoTobWQ90d8h8i21UIMdjhhjnCfkIaHG4XYDzucNddjyvRl1LYHCRIheUBgbp6sKuUsIUymAmOh8870w==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: @@ -11689,7 +11689,7 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-WZJfe67gslSRoYPk6z6Qfoi1fwxp2GEwDB8elkicB5wKc7o10NsgpKrPHJr180zGEaqgP5AVjDXU4i9qDMox4g==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-TrPitisx+wX1fn+WDN5+Imn4wpDYRRki5hMTk2AxNwAVSTekGwdrgahKvchCEybBAw+Ow6UVvpBnxtCddFQ6bw==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: @@ -11715,7 +11715,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-fU4K8Q56JPN5PdbmdhCozG+AxiyjQnD2yV3AQC4UmhSYtQqnf5iw+98MMNS2Rv3fybvvFJ6gBKF/O0am/EhX4A==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-ZYcv8NIFOEDa/+Hr6hyv6D411e5d6jgSvcDP3R4o+XPXVYeBgHnfJuFkHiawfZ9lsfupgr4jZvXodhkB+MCe1Q==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -11742,7 +11742,7 @@ packages: dev: false file:projects/arm-avs.tgz: - resolution: {integrity: sha512-vvOMpwBsj6dUZhJa2p8KBuZ76OXRloJt9IzrwLN3OduAcirG/1kXWajm7ttOKv7kbgdkgYosdoVW/y5K3+ZdUg==, tarball: file:projects/arm-avs.tgz} + resolution: {integrity: sha512-LK0uvecM2hEjGv0O4sWN3GU2z/Aq5IuFulZuA4/GBWMeKaLG26v15677xEJ9aTVSOHttQG5A7VubPKPy2hhnjg==, tarball: file:projects/arm-avs.tgz} name: '@rush-temp/arm-avs' version: 0.0.0 dependencies: @@ -11769,7 +11769,7 @@ packages: dev: false file:projects/arm-azureadexternalidentities.tgz: - resolution: {integrity: sha512-rjtKIBKvq6ND8N2gDtElANgFd5mLw7fQFEA8cC+7OomaKl5R5QvAjeeLv6fAKgMZK5qpFIGFVzb3yhBrduc34g==, tarball: file:projects/arm-azureadexternalidentities.tgz} + resolution: {integrity: sha512-D2DwhGegbgi6zoaZVoPaiWck6nevz5Nr5XjYDXCEneOhKC5yXdC4d+tJ2RVGHO7lXqmQD0CXbpnm+VZoHHxKaA==, tarball: file:projects/arm-azureadexternalidentities.tgz} name: '@rush-temp/arm-azureadexternalidentities' version: 0.0.0 dependencies: @@ -11795,7 +11795,7 @@ packages: dev: false file:projects/arm-azurestack.tgz: - resolution: {integrity: sha512-wrt99LenEOf4kvtZZgZ0KjUceMo53uXxApffabcRTHH+Ld/YJuj+Mc3O7n8VE4nrQm7XkBrNotHyZ5o0WBBqKQ==, tarball: file:projects/arm-azurestack.tgz} + resolution: {integrity: sha512-hK5vGbD/wzs92bRHzjfoiMgmtULUmvBX/Dy4glEGxjdB2nVJj2YJQnHrEJEGqXsxsrAKCi4HLkPN7JOgzS+uIQ==, tarball: file:projects/arm-azurestack.tgz} name: '@rush-temp/arm-azurestack' version: 0.0.0 dependencies: @@ -11820,7 +11820,7 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-GsBAUCcQuPH/hPNL/XTrlL2Z9og7Em4vq/WV2UL54qxKYd9CPCyHr8hm30qhvLDVoe9OB6Nf5emR0FEbdpzm3A==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-wnd5b+JTHJgKEzDePeSWPoY+ff9OT9kOF8KTRhjLNDQzuXvkt6fBpQujQ2DxsPazK2eT0jC6WFff4Bn5qd67Og==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: @@ -11847,7 +11847,7 @@ packages: dev: false file:projects/arm-baremetalinfrastructure.tgz: - resolution: {integrity: sha512-KurIkPZ2lUf3lMlZ4lNcbkzxlmTtzgoENoiODXck+4dtqb1FvRFugG35AOdhIH9F+gblOhQV6faOpVq/N00bDw==, tarball: file:projects/arm-baremetalinfrastructure.tgz} + resolution: {integrity: sha512-kFoYePU/3fnaxe08ofujx8mhP9UXbkLl78TUGykAWG68KD66Q5lMFfhKxbu3tL34Q/h13YSKCqETwwHk4Yq1Kw==, tarball: file:projects/arm-baremetalinfrastructure.tgz} name: '@rush-temp/arm-baremetalinfrastructure' version: 0.0.0 dependencies: @@ -11875,7 +11875,7 @@ packages: dev: false file:projects/arm-batch.tgz: - resolution: {integrity: sha512-fdcZKOWwbBbDHqIbe0j8phG0vzRbjF1ZqKG1d/9FafYnu5l3QtPaCboBY/RYlw+CRarYp9yxdFrEnM8IcrJRSQ==, tarball: file:projects/arm-batch.tgz} + resolution: {integrity: sha512-pWMLj2SwHE9cooxAADD0taGAJlO+ZNiwbqFHUrgUHzmEAg/MRGrjZrq5wnhLTaR7XBWXue7nfwdd8sN9yCV94w==, tarball: file:projects/arm-batch.tgz} name: '@rush-temp/arm-batch' version: 0.0.0 dependencies: @@ -11903,7 +11903,7 @@ packages: dev: false file:projects/arm-billing.tgz: - resolution: {integrity: sha512-GEUeAL6i+mZgPNLvk9zwai9NrPtFdscZzU1L/CeLqcKntRJQeYYZWU31LlbwaLQsoiwJm1u2Z4ESqXswcHqsQg==, tarball: file:projects/arm-billing.tgz} + resolution: {integrity: sha512-8Ar2AtBLcmHBiIqIcd0WaKxupb6+mw5/2dV01aDSOELTcJiUesXoPCWHXBeNlOCsp0ozacWvBcs7my/kOCt/2Q==, tarball: file:projects/arm-billing.tgz} name: '@rush-temp/arm-billing' version: 0.0.0 dependencies: @@ -11929,7 +11929,7 @@ packages: dev: false file:projects/arm-billingbenefits.tgz: - resolution: {integrity: sha512-A65JYJp+n/aj/DdNeMs3KEE1iPkRUbVk4L2dCidglVInOSYGdvCv8tAyBxEbJo82KcN4lpRUlXl/T95na3nNDw==, tarball: file:projects/arm-billingbenefits.tgz} + resolution: {integrity: sha512-mnDKuxl54/MRRwmaR2neH1bb23gs8aMaZOwCPOIsALGwGAvoGyWJFH5TbSMo+eVhkfMSlvgVSB7pxpwFWV2PTw==, tarball: file:projects/arm-billingbenefits.tgz} name: '@rush-temp/arm-billingbenefits' version: 0.0.0 dependencies: @@ -11955,7 +11955,7 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-0J61YSYrnqNHnwt+3iVjsB7P8iw6OfCyp+jAKIAE6QMciS0iVzTAXepo6yQdTTgPUOhKyD5a9nZnBVRfStofAg==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-TEuEGBl+SWiYAmnrlhJbDiF0cYhEjQ700OYM/bk5Ol0Wepc0hEF7vGqDthzObsjy6MSvNhbKzQEWWEieliC5Sg==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: @@ -11982,7 +11982,7 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-G2My3ELDLnMAu1hU1+U8cWflO3o4jnvXZoRl5tc7kbzjKk2/olbkV79sTEHsFWDzn6B6OWtXCE422YKUD89Vrw==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-hdoZpJkxaB/yaRxVRdvNAraroDsYzLyO+glVTjNQ1AMaxOmTBt/Lh7QGjbqRlOLViXBCom9kBxoJ8L3NHTqfMw==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: @@ -12009,7 +12009,7 @@ packages: dev: false file:projects/arm-changeanalysis.tgz: - resolution: {integrity: sha512-DsaCiFJEbPuBwYg10wpaeEdE3xRlpV73CgAEi8nWif9kv+JRH+AiYndpFgazGrJcnHbXoWy1HRoihs4uSRqlkQ==, tarball: file:projects/arm-changeanalysis.tgz} + resolution: {integrity: sha512-wr+WPh67FWR2NRQKgrbkqsy/U4CvwO7/gbotwbxLolAiDKZxPmVw+OV8UHihBcgaJ2l80xeHbOvTlg8KAwH/8Q==, tarball: file:projects/arm-changeanalysis.tgz} name: '@rush-temp/arm-changeanalysis' version: 0.0.0 dependencies: @@ -12034,7 +12034,7 @@ packages: dev: false file:projects/arm-changes.tgz: - resolution: {integrity: sha512-b9VZ25FT7P33XmmdcqIuurof8/qlDCefvuFzJZcP5W8vww54laviQp3OZMe21gZNoTF0tJCAsisUwCRFtGkfaQ==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-n3UKJZpU3gfZLABS+bNjCW0zmXeYr49am/B9uSITckGvuhu/JqN8O+MqSKG2yhZ+0+rcH68DRD1+xN4EfTObEg==, tarball: file:projects/arm-changes.tgz} name: '@rush-temp/arm-changes' version: 0.0.0 dependencies: @@ -12059,7 +12059,7 @@ packages: dev: false file:projects/arm-chaos.tgz: - resolution: {integrity: sha512-AYe2IRqlS5udUUwHLB+nBpfwEGN+g3f+4mU3aYzFq4VPJa0+sn4WyhR9uq1kH2ZM1N7mHyMOwqmbF16k95RXrA==, tarball: file:projects/arm-chaos.tgz} + resolution: {integrity: sha512-D/9pHkYWHNIGglI/J6hu38+kHRLQI9k+XjIhJBi4LcFHzCKJ8vrF3lbO05y+p338a2mteTddG749eNGnfpRDQA==, tarball: file:projects/arm-chaos.tgz} name: '@rush-temp/arm-chaos' version: 0.0.0 dependencies: @@ -12088,7 +12088,7 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-9v35I+3xKtYLWq9DIAQqu5k0btXBqcThaBewMC4E5FjwyNUb8eEHi2c/602OiAx8MP7UgxJm05ZTmxCOkamXYw==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-ceoamDcbMZIYDtblhTT5SzwQB/f/ZfOeZTKmgCrIWOgRqq7EblaCWEsPgE81I8b5xs6If+DdhtgT+Ihysyz+Pw==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: @@ -12115,7 +12115,7 @@ packages: dev: false file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-KtJEFzp8CujGIy5qfF93himm77C3TyZBSIWoYy+S3Blenj+D7Sx4IRCSG18goRF2MZPzBk8+DaADJ9jysCci2g==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-cuP9Lj6fq8aOX+H2Gb/o7cKZQ+IOaADcMQ19mgt5epCNgWsNZeXqYm0ypDcyAo1D5FdU2NbQ8576vKXphvX39w==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-commerce-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12141,7 +12141,7 @@ packages: dev: false file:projects/arm-commerce.tgz: - resolution: {integrity: sha512-rDkddX2oFvwSl3L1L46ftJvLhW889lRV9x814MVYX3SPzba70rjRpF9i/WtgcePpk/GO50bly0HEhSRA+5+g4g==, tarball: file:projects/arm-commerce.tgz} + resolution: {integrity: sha512-YBAusB0+e3cjkTEQMfr3Q8xAxRRS0JbcnVmnt9cyB3MC02XeXGB+oIjKP/TY08cq1IT9HHTKosMrWfKKStGf9g==, tarball: file:projects/arm-commerce.tgz} name: '@rush-temp/arm-commerce' version: 0.0.0 dependencies: @@ -12166,7 +12166,7 @@ packages: dev: false file:projects/arm-commitmentplans.tgz: - resolution: {integrity: sha512-8E4bEbSKH3YBk46CzI7NvKJMvaydAv8IPy8jGbu8MoLoDjp2RiGVWu2VyExx6Fw99kt1AGk+V46xF0e4PTwtcg==, tarball: file:projects/arm-commitmentplans.tgz} + resolution: {integrity: sha512-JJ0/r61xKy+uCmtVCD0p+dATwjU3ygUHe93NgfBnGqM6n5k2+Ai3qKIJqz3Wi44e2XEDEFywK6aN76zOZZToBw==, tarball: file:projects/arm-commitmentplans.tgz} name: '@rush-temp/arm-commitmentplans' version: 0.0.0 dependencies: @@ -12191,7 +12191,7 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-uPS2+p1oI2HYbDoM/nIA24Zp4g4luf44EwFtnc/IcqJbC5WXGUyw5XpP521K/LRjqrhcpvYnJUTXvsihMjAXGg==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-28goF7jU56MIHXDocfXRU5JuIZswJWtgWggniRkeihyxhqHlKZ8C/piQs9oz4H66tkJT1hZJyNfBdUZTXIOjKg==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: @@ -12219,7 +12219,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-2pDKAUFh7gYxN+AxznwxTdgYakg6UZrlVhES6ckbX0YlQnf4DeDXa8Pa6HUMK9ubYaaVjuH8KQOLN/cJoeIDiA==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-j5ZxYBDOMNSO0GulYlTmjT9vYMOd4CgHsYczwi5yMg9IeCAVscfPlXCKwC5rt2B8DpSxbqDGuBlUJc5bkWOQHQ==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -12248,7 +12248,7 @@ packages: dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-sugpl9M5blLaRNbg6GQn76g7xom9iu1jKejYj5KeNhn5iHgbpHPXjo4OQcs8IRmwd2tRnkLwksIuAxm2W6QuYw==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-wSxjWtY7Gayq5u+Vrbc5SF8S65rlr/heUQBVi59n/ceKQ9wwSmFFIANjvHGBCVjeEV8h/STQRyo9ohorR1BqGA==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-compute-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12275,7 +12275,7 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-nnxE+DnW6deUaCiJsb6Vdz1zOTzv6uoW3B0vNx42bn8LVf7O84d/0k60ls7Nbp77vr2C97NnkISLcLPWhUmzwg==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-rfM24fKeGnO3k+9xouP8VC9tZO37dejzMq69JJfgX+QQ03NhhI0+7W1Sfydq6z+nHpvT0rZ5dq55sG24fSouGA==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: @@ -12319,7 +12319,7 @@ packages: dev: false file:projects/arm-confidentialledger.tgz: - resolution: {integrity: sha512-3wcjT0JV7C63qdIAx0daBkxtRYAD86cGgwmM8bUNhScppREhP+LDLpAQKr07Dc+CNmtDTZyIf1+CvOlChK3NYw==, tarball: file:projects/arm-confidentialledger.tgz} + resolution: {integrity: sha512-pBzv+N2QSgppOXMHAJzMkaE/qaiUmi/ecnoLl+UGY6ejTy3yIhiM2pgeAULdLqwe2J7L8R+LIzhAbNz+tv1O6Q==, tarball: file:projects/arm-confidentialledger.tgz} name: '@rush-temp/arm-confidentialledger' version: 0.0.0 dependencies: @@ -12346,7 +12346,7 @@ packages: dev: false file:projects/arm-confluent.tgz: - resolution: {integrity: sha512-2vzIrVRG8t/kToRBElJNytrUk5YKVVhc1c0boPHZ/FZzHvRT6cLvfpXN1XTyNQdUWde5jpLMPe6vSC1w9fkHUQ==, tarball: file:projects/arm-confluent.tgz} + resolution: {integrity: sha512-nJjOjZ00EbI/BClYWgzLvAPYRKzxdXuf+OCzB7A5p8nOTHL+IiOJc0H+4FNsc3CNJxCWBoOSEYIpL0GKnygItQ==, tarball: file:projects/arm-confluent.tgz} name: '@rush-temp/arm-confluent' version: 0.0.0 dependencies: @@ -12374,7 +12374,7 @@ packages: dev: false file:projects/arm-connectedvmware.tgz: - resolution: {integrity: sha512-w1gIubjRTzBHfnaTbZz/c1dP5955JMMUqizIoyNLeoTWTDWehQxSVqZNYnch91imOTmzB+TxU7GlIsntOJwL+g==, tarball: file:projects/arm-connectedvmware.tgz} + resolution: {integrity: sha512-T5BQynIcWR+pR0OBRmCgiNLPARef7bQptKTgvCsnPfsewfWLV3YMa85iAcoPLMduQ5/JtR5DCET5pyDFPjKoEA==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' version: 0.0.0 dependencies: @@ -12401,7 +12401,7 @@ packages: dev: false file:projects/arm-consumption.tgz: - resolution: {integrity: sha512-2FDsNPauBwRkdMElXzq9rWo4XkrVxbLu9qqIOG6riyhoLTT+LgA0TJEV+iG6gu/NgRng840zTpNo8yuPQGGWQA==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-gIGza2f9pMwhSMoWvuoOMowtkiBRZ4FLs4eo3jWkQOdfUV8yW7Aqs4pcve0CLxCtD7juxoQ+VsCyAbJNwiPIag==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' version: 0.0.0 dependencies: @@ -12427,7 +12427,7 @@ packages: dev: false file:projects/arm-containerinstance.tgz: - resolution: {integrity: sha512-xJAXM2Ld+QXlUS+lRl2h8kvvABj5+B04QH+tBPup9lHEzMW058av9Zg1Q2FTerpNTXl9AtrIY7fiOLzPoS/UaA==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-Jh00YMt5IjPlB570BSjOupuw8nrDwcPaRinDvCspv1XfVTn8ca64lljJkn6YVvg7Ewka5vm+k2xjgje+wgHJug==, tarball: file:projects/arm-containerinstance.tgz} name: '@rush-temp/arm-containerinstance' version: 0.0.0 dependencies: @@ -12454,7 +12454,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-UtNY5pFfILJVY5uKq3grSAj/eX8knsdw/pjkfvOgFOUMLn+Zc2KTgJ4sX1fqUGLFz4o1OJ4NAc9uSbOIdBd5Cw==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-eGal/cz0lUPpDx7YSpPlprQK9yKIV0jJ52YANdbKgTKQi11dEyXhB+NFfUmBxpk/hGAYSCYdQRtXEij3gUSDWg==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -12482,7 +12482,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-CgE1+0qzGsKIGBfvZjAaeQ3jI+BkFnyy2s1J2hS/GDxqqS6ONXukQkR+wtq8chLjG5/Rkp3E7vNw8UO/iYLsAw==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-6T0lGGJ3XCcGfzzlWPbJImUGNvh0mPDht6imcPFhw/LHb4eLsVi53/Kp6JLQKbAS8UTpXuWtQwGAHP3blgWguA==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -12510,7 +12510,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-mnoUjEOVqAMufPECqy+8yqBMX/PI8zFX8yfgbPgXC6vtxk26pLTAqEo9NfVkzboai86QG1zLE8Bjy98RhV4gOw==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-EEAj4QAchBgQ5gEyUXlyVFbt6rYVQlyQsmNDEl/xF/4/9fZe25OPTHhbQqBjg3BhyCzPI/vzVpFu6PxaKHBKVQ==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -12553,7 +12553,7 @@ packages: dev: false file:projects/arm-containerservicefleet.tgz: - resolution: {integrity: sha512-/O2LUTrmXAZhj+9FnT4Ai7koBQY/Mjl6hgjFNcIvWhv/DZV/sOUAdGUE+1L6X37a/NMegSmFEzrvwA/7w1Zvsw==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-L7FZF+zECSYP3h0lGOxlcba5MIoAaS4cLDcLw9uI7OgkNOeXvwVp3AIyVM0gY0zQtqMMV8yOHSdMnb0aBGNa5w==, tarball: file:projects/arm-containerservicefleet.tgz} name: '@rush-temp/arm-containerservicefleet' version: 0.0.0 dependencies: @@ -12581,7 +12581,7 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-ZLOw/zxspfcaDH8PvlS0yHmTEUeyQZ4JAW3tBxOgiAoLllY0qXvrfYEYH/WY8bq8dL5elf1Krb9WuKe0IH3PxQ==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-D1OaeYIGlvVSBRKL77fzRSsc7CLEJfB/VT+MeX7zxhr04M6LNfpT8M3Gxs19IFYtRy3V069aQ0MbeSLQ2nyHBw==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: @@ -12609,7 +12609,7 @@ packages: dev: false file:projects/arm-cosmosdbforpostgresql.tgz: - resolution: {integrity: sha512-1kFWZx86s/1MB7d50kKIqEXOd20/HYaa76Vr6znMZ1oi7VhNM82bwcFXhqr/Ha8QJp7+tp95dRGyOkZPX4Q6OQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} + resolution: {integrity: sha512-oolLtC+bh7x7BChJYnlqD3JM5TOeiyN4KMITqWQnVrzp4kL8W9CSGoT3eCJptWWGLIIdDds5pUx07PbB2VyK2w==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} name: '@rush-temp/arm-cosmosdbforpostgresql' version: 0.0.0 dependencies: @@ -12636,7 +12636,7 @@ packages: dev: false file:projects/arm-costmanagement.tgz: - resolution: {integrity: sha512-tU2jx2ArM2PKoHgCaJni2AJbDbwV6tUw5nsXggsmpilbQrbIrbgkiyj5NqHpsH82QI1Y+SE9R0hPPVtotb6JQQ==, tarball: file:projects/arm-costmanagement.tgz} + resolution: {integrity: sha512-RnC0T5i0CFwhUqicfDmIHEAcGBzNptHyVaS3nWy9Cm1l5+Up5PUf63HnwYcDtIn+E/BZZFFRQa4f5mBJ1eWzSw==, tarball: file:projects/arm-costmanagement.tgz} name: '@rush-temp/arm-costmanagement' version: 0.0.0 dependencies: @@ -12663,7 +12663,7 @@ packages: dev: false file:projects/arm-customerinsights.tgz: - resolution: {integrity: sha512-DaJqL0jm0XwPs/tGBQilxBHgPGeQSxZOP20x3p5LYEE6M+cX0BFf7KPt+aI9ORzB0VFehMh+c2HNMepUy8ksjA==, tarball: file:projects/arm-customerinsights.tgz} + resolution: {integrity: sha512-7oyjRjn4wwCMSoO2yAYUGqE35HvvvmD+b1b72A/XlCjKky+i0yJBhx49yXxOttek4WzzoaOxDA+CMNaRZKTfwg==, tarball: file:projects/arm-customerinsights.tgz} name: '@rush-temp/arm-customerinsights' version: 0.0.0 dependencies: @@ -12689,7 +12689,7 @@ packages: dev: false file:projects/arm-dashboard.tgz: - resolution: {integrity: sha512-FUpsLqJ868RBg6ZQlqON83WYnD0bGYjQbMUrRS4Gj5qM6W2oU6+ne/9ixmbnWm5Ol7MjkM/C/yo5HFpKKELZCw==, tarball: file:projects/arm-dashboard.tgz} + resolution: {integrity: sha512-CkZcQ41MBIbPmZsddog4V7xZvYQmGMNe5bJ26IBeELZMLvZdC1U+CEteUQCd+bWEIhm+3SHZeoPohmgvbyHqRQ==, tarball: file:projects/arm-dashboard.tgz} name: '@rush-temp/arm-dashboard' version: 0.0.0 dependencies: @@ -12717,7 +12717,7 @@ packages: dev: false file:projects/arm-databox.tgz: - resolution: {integrity: sha512-95x+lKer6oJ/LYK5mUj//gdCQO3LciDM45igpyBCF0nkTXEddLM2MfM7Puiiozs0FfyykLUwVBxpnoLHE7IdvQ==, tarball: file:projects/arm-databox.tgz} + resolution: {integrity: sha512-9Ho7a21W7lc5nfCXQMrjEatGfcwGbA4n+tEiRUwhFc5iF6BCdw5yP+qU192soLinMW1WHagom40zXT3/suIJ4w==, tarball: file:projects/arm-databox.tgz} name: '@rush-temp/arm-databox' version: 0.0.0 dependencies: @@ -12744,7 +12744,7 @@ packages: dev: false file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-aUw/CoDH0URZhZMkb1n15XCPdGJ6kMIZTRxR3Aiio1FEy+s02GYAmtiwWDybhHtfy89U1x2deFaqmMmN5ggDiw==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-2KU2P7WPFDddoatPMuhvDwICItynOhnR0YGUzONCXjgcyZ5nwmA/Nb/X9T5NHrjLxP72sOSMHnhwVu47fHoPTQ==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12771,7 +12771,7 @@ packages: dev: false file:projects/arm-databoxedge.tgz: - resolution: {integrity: sha512-qoayTHHIiQQzO5sYgATMJ/TdqpfGaInAWAwUa4RB12pw19AhyrcUj19X0F4npIHhWcA1E8W40sg+xPO0j4K4Ig==, tarball: file:projects/arm-databoxedge.tgz} + resolution: {integrity: sha512-DWu7ADx8EkbeH9DsufkkjANTx0p+g301D4mFVpbJMXC0MarD64knAGX8Q9PTD3Hb8TdNRK5GRkwnRPyR1Eygvg==, tarball: file:projects/arm-databoxedge.tgz} name: '@rush-temp/arm-databoxedge' version: 0.0.0 dependencies: @@ -12797,7 +12797,7 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-n/SMNzAiyfN/lFpt5YJzd32fES9ze8jGLUbLkIxNW7w6TdqkPVXTMB7B6EcLuqmxFJPfek4A2LMJu2dBx+UhcA==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-WAtAXKJCfNKF/uJy3vZmZ+CE/PXZa8uOReOOz0NbfHdUo9ompAUAH291ZpBMP/oyMavRNBCIqrHFcUbnLVnHdw==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: @@ -12825,7 +12825,7 @@ packages: dev: false file:projects/arm-datacatalog.tgz: - resolution: {integrity: sha512-iG9whd+FoDBL6MT9pzGFw7LY7lhcOx8OOZR6WzTzzkxD/PPfJDSNxMICeWrIwseaUKHEQ9urN2FhDCkAnTQ7tQ==, tarball: file:projects/arm-datacatalog.tgz} + resolution: {integrity: sha512-G3ZU/CjjEMr60xcEIdmS9mKFc0xdvut+pWl3VouNsC564gB21KvYoyzay77yUzbBJlU99fAmkWyUovFoO5fdSA==, tarball: file:projects/arm-datacatalog.tgz} name: '@rush-temp/arm-datacatalog' version: 0.0.0 dependencies: @@ -12851,7 +12851,7 @@ packages: dev: false file:projects/arm-datadog.tgz: - resolution: {integrity: sha512-m7YpvxhygnEI2hacwst8DGNvAY77ZK1NpYENUa1210NPWMZgEl1HKQOKJ1yL6vLwC0x5i99k7cOhiSVVU/qZJw==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-zdSyPOGITXN9mRdxHC+LFI4f3ZOh+hP/ZckLNl84YXRVqSQoB1QQKawY2SCvqJ0tncIqBASHXMfRUt3KzC7gdQ==, tarball: file:projects/arm-datadog.tgz} name: '@rush-temp/arm-datadog' version: 0.0.0 dependencies: @@ -12879,7 +12879,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-QKVsn1q48eaGWWjThiViemDuRkhUPRV7LbClKMNFHVQ34AvGNqq0MudYx9QuAqXOKtYelXwZb5fjlPcNDRolxA==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-DEESanPBKFpZDHHeIkAkVYya0p+L95cmwlI/3B7V6ZcagEEX34to4tLeGIqW3yQ+Gx0P9z5XxWilDnbI6iP6jg==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -12907,7 +12907,7 @@ packages: dev: false file:projects/arm-datalake-analytics.tgz: - resolution: {integrity: sha512-QL5xwYAg2Qkccprt0iBNs1d9gQmavTnls/LgX+lQlCDTafSagMzKyRkLU/5xFFtNaDK0O/cAo/JePDAxi7lD+g==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-yzVw8Q2+JxjUvyeRTbq/j0vQhkEHW8t6TR3fZ9mECDlaG8Q+N+NKmrbTAomwbRbNPlgFKukLP7r+rHjXunD69w==, tarball: file:projects/arm-datalake-analytics.tgz} name: '@rush-temp/arm-datalake-analytics' version: 0.0.0 dependencies: @@ -12933,7 +12933,7 @@ packages: dev: false file:projects/arm-datamigration.tgz: - resolution: {integrity: sha512-2tfaY9yVh5aJuPz8eS1/PbLP9E3nJIbyWHVanL347BOpqPIQkYe2zHSsxoUahOBqJqB90g36FOQWNo/m6Eiu7w==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-kv/yjdIuPAYgY/6GWaiPjnu31bSTCwHvfHaqsZVaKR/4+4b7AauMO3KuDdr8UkkWRyhIkUFI2RvxjHmi2b5+Gg==, tarball: file:projects/arm-datamigration.tgz} name: '@rush-temp/arm-datamigration' version: 0.0.0 dependencies: @@ -12959,7 +12959,7 @@ packages: dev: false file:projects/arm-dataprotection.tgz: - resolution: {integrity: sha512-RqdUOXE/gW+7zXfFneqfQFn9j7PgM9AsXFc0n8xMzrRGrCz+Uqh6ia4cGW3A4wehnQpz2gYXDW9wJHMLQeT7Rw==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-JtJ/t64GsctvAnLtCM4/55fMH379WeaFMASG1sW5DJ3x2C+n02sPVRM8Z6Mu/T32JXZwJf0KSj+7wzXBQhAjIQ==, tarball: file:projects/arm-dataprotection.tgz} name: '@rush-temp/arm-dataprotection' version: 0.0.0 dependencies: @@ -12987,7 +12987,7 @@ packages: dev: false file:projects/arm-defendereasm.tgz: - resolution: {integrity: sha512-cgw3iDKW2y2/oMPVBzv5NqsaTleca6OtAVz8eE2oNT+F9oQqPazDj4faSRDacLp5f6KqK6xFic6QjskNxXjcqA==, tarball: file:projects/arm-defendereasm.tgz} + resolution: {integrity: sha512-ivDbQzCDJKN8hQwxYGFMkn+vJAjxdvzQ8lYzHqyMxBc/3qifsKwEPAOcZ+TUiD8+c8hsKTmRPaHu4UZKaJHsIA==, tarball: file:projects/arm-defendereasm.tgz} name: '@rush-temp/arm-defendereasm' version: 0.0.0 dependencies: @@ -13014,7 +13014,7 @@ packages: dev: false file:projects/arm-deploymentmanager.tgz: - resolution: {integrity: sha512-L1tbQid0NzP48zct5cpTnU7J/5GrGMKoQFjx/pvenb9fY8mSPQre8CHc73Y5zyerehemv6eRjKy7eU8NDcV1zg==, tarball: file:projects/arm-deploymentmanager.tgz} + resolution: {integrity: sha512-tfRJMGzxOftlogx/5EpDXnGQCHTYaHfKmkt4VKXB3LI5phOLpybJQt3GwHzErp5a3xz/TcpYT2otMdZBGoNLlA==, tarball: file:projects/arm-deploymentmanager.tgz} name: '@rush-temp/arm-deploymentmanager' version: 0.0.0 dependencies: @@ -13040,7 +13040,7 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-L7sX1Hp5EvvKokbHuNAvLkgBkFbo915Y+RGdasvN1LT81KW0AceqnoWLIQksovU/wM6I7FN0OGIEFisODYzsIg==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-zV09nRqplUpK5w5By61XKVG/v70haO0z+1yA3ZtgMinQyV6qwGyRf8BQAt1VPWV5sgUiL6MtkFPKrJe3oNgctA==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: @@ -13066,7 +13066,7 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-CSmAgzjlR+IZFb5bp67z2SVFs9NQ9LS0VRLKZzpwCRkplrQBfMMPeu7/z/5vlc2QaHUyj5GEXWcUl3tqa3Yk0A==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-J2lsKIst4SNdWTPVT4yPLwK8a/PL+6OBYrjvqM6kqp/MTpGbVppzDEgpjYLyf2F/YGMT0vKsCx2OZmdfz3TTvQ==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: @@ -13093,7 +13093,7 @@ packages: dev: false file:projects/arm-devhub.tgz: - resolution: {integrity: sha512-aCEH3Yr5kA48YQh5EE7OIP0hieQ37FXMh7vNdh7xvd45KAI1e77Q99uhvqvNAam+mNYNo8jo+nn3Rl7cpqv4mg==, tarball: file:projects/arm-devhub.tgz} + resolution: {integrity: sha512-0OwGVUxeTCi2Z67hUZA+iIq2OcgIaU8R0S+EGFKN3DZ/tQlkV0iLLcXHPO3BNl5Qjc42eLPPIvlUbCa94hSQ9Q==, tarball: file:projects/arm-devhub.tgz} name: '@rush-temp/arm-devhub' version: 0.0.0 dependencies: @@ -13119,7 +13119,7 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-mL5ybtkui/g7nDHobTu3HbF5JqO4Z6MjqZaWUuvR0OnDCTqOsHdS835yDQ5tQeKHLwlZjQF4YexqsrD49yZVkA==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-95AnQnzoBbVQSuQVQqWUOiZc43cePOTKXhWpdg5G3Ve65GIdqhBhkV8c5DuHMPMJl4Cr+5PNpiEjmMqn04uTqg==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: @@ -13146,7 +13146,7 @@ packages: dev: false file:projects/arm-deviceupdate.tgz: - resolution: {integrity: sha512-qmHGIRkfxEpsumb3kK5HiS61itFrmyxboJ5AYdNG8gmprcTfyyZ8GQxQz+yh9JkdCoEE1tI/K0O5PmGnIBtEZg==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-7Y0eayeF8+fcdXu5cybX7y411bbB2aD21zJAhQmui4/1i1x/VS95rRsUd5L0KgZbl9axpafTRqbho/m1W4EphQ==, tarball: file:projects/arm-deviceupdate.tgz} name: '@rush-temp/arm-deviceupdate' version: 0.0.0 dependencies: @@ -13174,7 +13174,7 @@ packages: dev: false file:projects/arm-devspaces.tgz: - resolution: {integrity: sha512-9iJ3t2A5kZDOfeDbN//2WclIOfqc47Ys6GOkIThF9UrcMcT4T9UKsun8jG9qATAciA98dOUgczW0QAiPH1K8bQ==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-t2kMrMDwxJGkX+Cm5qWFejx4SsnEO34Dmgema+0z3FcNXpawASFceufwbyfWuy4Ub3dTqK8N3x5TW5qWK2sKGw==, tarball: file:projects/arm-devspaces.tgz} name: '@rush-temp/arm-devspaces' version: 0.0.0 dependencies: @@ -13200,7 +13200,7 @@ packages: dev: false file:projects/arm-devtestlabs.tgz: - resolution: {integrity: sha512-se54K80CkdLHAtjR5pbWbWxJnpmHkHvG8/n9d9b5/16ROIXe1IpZzFVO6HAtSEPZgDClzhLwYKcZIBCO+HuS5g==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-7Zzxwb9A/reKClHoux8ig3fRjvmHzNFmAvMYmbz6hc/gK9cbdQ08CeAaT+juiwIdscGYQVaNdWj1ELzhxb37xA==, tarball: file:projects/arm-devtestlabs.tgz} name: '@rush-temp/arm-devtestlabs' version: 0.0.0 dependencies: @@ -13226,7 +13226,7 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-nAmmiAhrzWJJ8jWgSXh8cWEbGYaHQd6aOnAWjzjK9Tkq2mJ+3JOWDNhuVb0gIWu0dFQl1S7FQ3Vl1gOgI2NEug==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-3nmEXmnL1Uwz8iFOjAlKHXxewcyB4vWwTdjDlgI/pv3getqmbI2iv/kQhv6TQTI6sUeVo4s4+HAho7Dc2+6Eow==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: @@ -13253,7 +13253,7 @@ packages: dev: false file:projects/arm-dns-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Ci2u7IAGUdydHCe2wmCAROKWx7T97dNixQuMMRDfRUNcOqnSaVHljSUcZPtBehVzkzDP+bNsvAhkIdBsjTGzGA==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-d1Amw85hvHEi/fTzEtmnf75J/sbvzr8FTa9dot50CZR1l43/LMX0k0TS0bWsQ7j61uRJNYjGsShJdpu1aSGzzw==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-dns-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13280,7 +13280,7 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-IB9vkq0I4UsJ8zRn5BmXyLzCuKzl3cPQIGa/cBw2hRdOrv7RZd3NjArVx5AMlCGli2KZGd1R+yFc3CyRKK+Z8g==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-BhOUzgZYYDM/0qGf0/B2G8VQRK7fvaRdojljK9iRXReGDUrPGGjNDmDEFh3gjHzmjIQllwvOdmatLSf7FmjHyg==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: @@ -13306,7 +13306,7 @@ packages: dev: false file:projects/arm-dnsresolver.tgz: - resolution: {integrity: sha512-wB8nKJdqPLraKxFYvDlWZWIZSQHuwm0kvnly/tEntmuwJmTx3Z4vYCJyCSvoJ1FXFqsf7A4IrlZXP7E3ynOKQw==, tarball: file:projects/arm-dnsresolver.tgz} + resolution: {integrity: sha512-3xFMt7gl5l4keq9+6rGly8556taKv/ZLgtXzRbcTibxkP/1OiyPEQ/+77Q0P01I/c45VW9NioiyKz9D8W8br6w==, tarball: file:projects/arm-dnsresolver.tgz} name: '@rush-temp/arm-dnsresolver' version: 0.0.0 dependencies: @@ -13333,7 +13333,7 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-nOFIdKFHWkJiat01An1GtkiOo5zpzhr2q4ZIm8wjPi0rBAVhoMA3pk7iJLacN0DfsSkw2/WWjBpLIReXRoTp9w==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-DLla3k4VcNjF3GugA2DkkwdrqrBU4w+VyNQYn2pNBlsYZFaqnVCtv4dv4lyKf485Y01n+HfcH/Ca5Hatmseudg==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: @@ -13359,7 +13359,7 @@ packages: dev: false file:projects/arm-dynatrace.tgz: - resolution: {integrity: sha512-Aj7evbmiifblx0tOWQ7wU1HUeoYcuWE2M+aemxezXhfnFGmyUCMOS2UBbSUJpOToJXH7zuh+LPM0VcLaCBKyfw==, tarball: file:projects/arm-dynatrace.tgz} + resolution: {integrity: sha512-AB3PZ5K/JTl3MC2yI6ya929462uDf1rcl9TStJ5OAn+lMOGwiMZN2jBbBYZvuzG3827jYUfjS3BglFpE++rd5A==, tarball: file:projects/arm-dynatrace.tgz} name: '@rush-temp/arm-dynatrace' version: 0.0.0 dependencies: @@ -13386,7 +13386,7 @@ packages: dev: false file:projects/arm-education.tgz: - resolution: {integrity: sha512-mlkeCAjcXwuHm0TrydOWkbReaCgch+H9eUV6MByE4Fex73ndrHtZ+eH2b4WdtOwxgV9SaIiVilqNbLZ7MqT/eQ==, tarball: file:projects/arm-education.tgz} + resolution: {integrity: sha512-bIEvXOy/NdGOKIIjzI8zDrrtBg+Qop15BbWcuEtvThiFjqMmHnVvl+vkwe2atDsGemd5fVxGN1mHh+E/lKgz/Q==, tarball: file:projects/arm-education.tgz} name: '@rush-temp/arm-education' version: 0.0.0 dependencies: @@ -13412,7 +13412,7 @@ packages: dev: false file:projects/arm-elastic.tgz: - resolution: {integrity: sha512-OMj/8g2mHmFPvJ4nvNgV1BK9Rd1Zg1jY9z3rL0iyVGdzMyCXPcM5oWUUALKDGv8o1bdcZzB03PQAQxPHeAdxsA==, tarball: file:projects/arm-elastic.tgz} + resolution: {integrity: sha512-OrQ9rRDwqORmRGVNe6r7BiUadq9NM8FbNVLLLTdeIAdjZsA7iwnIHefGOWfpNwh73E9tSXqqsEfqFEHddi0Ipw==, tarball: file:projects/arm-elastic.tgz} name: '@rush-temp/arm-elastic' version: 0.0.0 dependencies: @@ -13439,7 +13439,7 @@ packages: dev: false file:projects/arm-elasticsan.tgz: - resolution: {integrity: sha512-EAUd2c4BeOeBXQ89uLiqr+PY5EVB2DFZ5PBaRUdUkk+uRa0xQBikVl/SNur7Xv+l29yMfxqnNYc5OSbiAoeolA==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-vmNI5cI19QbV3WiP6J23i7VSh8K+hglsYTvs7l6p9s/sgdSCMobVPvdfCihIfQ2DgGnPYthVVajHhmT1Jm/DYA==, tarball: file:projects/arm-elasticsan.tgz} name: '@rush-temp/arm-elasticsan' version: 0.0.0 dependencies: @@ -13467,7 +13467,7 @@ packages: dev: false file:projects/arm-eventgrid.tgz: - resolution: {integrity: sha512-pjBiFum5B8TaJzHGpvGCKvAoOKORPC1LVWvdsNMXjXHMynJOGKP+Ve+W1yI9pOBb6mMLArsYK4kpx4Fzwp5Hgg==, tarball: file:projects/arm-eventgrid.tgz} + resolution: {integrity: sha512-fWLIetf7dckzxUe5esh6TNETTQ0XfcKoZIqRfRTPq6n/lRjLshLxpSlMNZJri6eBjMZZoVFCCbAMhca9UA6MyA==, tarball: file:projects/arm-eventgrid.tgz} name: '@rush-temp/arm-eventgrid' version: 0.0.0 dependencies: @@ -13495,7 +13495,7 @@ packages: dev: false file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-CCLqoFVy77SjW2XxQWJkTpISynFVFrdyMhOJAglpXoPkZ/5cDrNTcxGIcsi7TaHVmnEzPpOH3jwr4sGgwuZ8kQ==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-JAaJGD1tnTE0ly7rneoYftcgHWBC64ka+7joqNSggH+TH3XRml7r5pVvhaYfbCAyivAAuIK6YPwrziNFSkW0ew==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-eventhub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13522,7 +13522,7 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-yGdta9jk/Vv76SSabezPlh12nUpX1Jt3FBfknm7qjO5/58bdTbUOJ7NM+EGKaMxtBTbChFClqJmMueUb/3mcVQ==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-0mmGr7D+JOpiJmS4UXxLghHuH96mMVP+3ad9lHIoIWhmySSHg8KHa218RFech9nrMoH6tE/0ETFsBit0XMbTLg==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: @@ -13550,7 +13550,7 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-6yXtaEcYAXCnPk0yNAQGCfB4NK2NZea1Gbu0UuPWLdHEAcHPzKS3tGvz4NtTj9QsQw02RgTK8QU465Jlf/XVWg==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-K25YK0qmvnTcoNnQ80TAqKTbaGV1kHFLsjH0TF4Ed4UT0kyntsECs/3qRcadj8ODgTxmEl1sQV33khegU1IZoA==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: @@ -13577,7 +13577,7 @@ packages: dev: false file:projects/arm-features.tgz: - resolution: {integrity: sha512-fVMZ3HspsXWI4G4RiWvzZ7wzL5eKJKCI3v8px+tJN5FWi4Eoy32qVrjqVtNn77IzE0JyWwe6DugT3sRu9JrkCw==, tarball: file:projects/arm-features.tgz} + resolution: {integrity: sha512-9f1c5YSs+FnI8FP18n/TY9yv2Qt9s9yXnLVIOJx4NAbmwCgbSA8qORK+hw9tmKrt8yLKxFg3tRKZXPyqAse4Jw==, tarball: file:projects/arm-features.tgz} name: '@rush-temp/arm-features' version: 0.0.0 dependencies: @@ -13602,7 +13602,7 @@ packages: dev: false file:projects/arm-fluidrelay.tgz: - resolution: {integrity: sha512-mu/7lmKqtBZiHUmLgoRX+DUNMGli60POYBkX/oInW/lhte2lDMpUwT2CfNwaIsa5lIzcmukdPs8pyPCZkFYs9A==, tarball: file:projects/arm-fluidrelay.tgz} + resolution: {integrity: sha512-cxV8lGIc6qBho8Z/P9SDEfvPT7QkEHkcqTrAQBnm7XEyUR90jXUumTais+DGwYd9TuUOaySAE3Cq9TOtsD8n3Q==, tarball: file:projects/arm-fluidrelay.tgz} name: '@rush-temp/arm-fluidrelay' version: 0.0.0 dependencies: @@ -13628,7 +13628,7 @@ packages: dev: false file:projects/arm-frontdoor.tgz: - resolution: {integrity: sha512-izX2d+tCBAsTArlKXWZPE7dC+JZBwf6RzZexfi2O8YH4SEGaWKE7Z5+ufBxxlM03MhE36tvrdZozWb0hjGDICA==, tarball: file:projects/arm-frontdoor.tgz} + resolution: {integrity: sha512-WiPoeP0wmVQm+wF3/1No2z4+1dhaNHMpIczIEj2lgvSqDZOUg7Vsky2Ypwf6ayRCyWG1xMqxkHn8VSsxSGjhrA==, tarball: file:projects/arm-frontdoor.tgz} name: '@rush-temp/arm-frontdoor' version: 0.0.0 dependencies: @@ -13655,7 +13655,7 @@ packages: dev: false file:projects/arm-graphservices.tgz: - resolution: {integrity: sha512-lVSPNDsTFpmn+0NfABQU2ulAqE1fDBeW4at7Yo+/1dbqblsyiYQxRKsfhMcS3bmcVMo7/F5TLrzcbY3PnSs33A==, tarball: file:projects/arm-graphservices.tgz} + resolution: {integrity: sha512-TwgY8kp0XnjxyGXghLjmT7SQTJGtSWEZlccxWvN5Kizah5FW0QaoVFqrT2KGq1efS40TUxbUUJ/wD9fvxq0crw==, tarball: file:projects/arm-graphservices.tgz} name: '@rush-temp/arm-graphservices' version: 0.0.0 dependencies: @@ -13682,7 +13682,7 @@ packages: dev: false file:projects/arm-hanaonazure.tgz: - resolution: {integrity: sha512-HgPgdOYD0GC1VbSniyOKV+k8NQP+Nf4Y8gUcQgmvkpd4GmKGOYWIOJLAGRVkXJcP1JUhHn7XxsR0XGAiWNKu4Q==, tarball: file:projects/arm-hanaonazure.tgz} + resolution: {integrity: sha512-ws5mhvxHYC6HQl5DHRne0d5IWSVunp5PZ10NqYgl0hA+Kx3X4gVPg5/6olxJapbpymXfUAbms09JK56bSdk6Tw==, tarball: file:projects/arm-hanaonazure.tgz} name: '@rush-temp/arm-hanaonazure' version: 0.0.0 dependencies: @@ -13708,7 +13708,7 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-nA6QiHAbJBIynUYqo4VaqLyU9i5lp3F+yUocs6dmVSuhohHAx7bfe0FAnCDl/UezrO71wAykb5moe276qXWXsw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-wTxwkOtBLi68wc50lodK3gaUoHAEEDM/UumdXLQJGzV0GzJi2nzWqJvHlDBMuOJ14paiEwYfUeqEwAncAqm4nw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: @@ -13736,7 +13736,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-NPqD1UGqFAN0iiYxgzsD+5UYekqhoKTquGDR/5AlUB2wJYIebyhSzCelZvqbn+xhrBELw+MsVhNYwVJmK+LXyA==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-AC1nlOLofqoFh7fIxslrXKueMzH9NBzsDBagOJirMUvR2561t8SOiZQJ99hOechNEzV9rYi5jL7hMJHU2rc9UA==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -13763,7 +13763,7 @@ packages: dev: false file:projects/arm-hdinsightcontainers.tgz: - resolution: {integrity: sha512-MKVqAlcqZxOros4bknf/8NHB4o2X21VtvvBZ0byeh1/Or/OB9rlp0FqUC9A8KEPLWXyV/ddYOhJ/rAyYnbT54w==, tarball: file:projects/arm-hdinsightcontainers.tgz} + resolution: {integrity: sha512-rss20Yb178oeAFD0Se5k6req3ISEo18wahvChMulBOBrxgLuWIe5M0YGHwGAOFPDgF75jyiS6MoKcQylsviBqA==, tarball: file:projects/arm-hdinsightcontainers.tgz} name: '@rush-temp/arm-hdinsightcontainers' version: 0.0.0 dependencies: @@ -13790,7 +13790,7 @@ packages: dev: false file:projects/arm-healthbot.tgz: - resolution: {integrity: sha512-5FFjCGmPTl6jhVc22w++BvTUb2LwQaR+/exnnJCnQBf7GGRpJOeTcpmBm2rlmS2wbyr1T6Qzih2q9w4eyqxCAw==, tarball: file:projects/arm-healthbot.tgz} + resolution: {integrity: sha512-VMLVDqZrBva4XSc96fyZ+yEc6gPnmw3MGVaXEvCQZAtaT+kyOQQfE+QGIIbCFCAUX5UfWk8nHE6wS8QzdT1Dpw==, tarball: file:projects/arm-healthbot.tgz} name: '@rush-temp/arm-healthbot' version: 0.0.0 dependencies: @@ -13816,7 +13816,7 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-3DAcFCisgyQlaYSKkCZyYAOLHl51ed8wiK+2FsTcObuCx7Fq7/K86fl2Btoy6/Lhx5TntW74MHB2dSnkknSFxQ==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-yiiLuQ9PmrsGf1M8W+ZROkF2y+egwrM0Cv0Yct9fRk/lE28ZJjVxofNp64nDZBEVULtRy8uexYek5rTIcHERKA==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: @@ -13844,7 +13844,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-t6yBBcu+y9ZiyK7+HgWwHELlBzDvihFx3gVys1hfo+5iF3p/DxqYWBVsEwJIEMYl7T27WwzL7ddt5JlKoPeBXA==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-dp7VY5hqr4kKMHm8E8voKdabfPeIvwHqpt3/v2t/hdvnrnNFkAh6e4Ktipn+NGfw4icTjtFjy2ePN5l1SZCoZQ==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -13872,7 +13872,7 @@ packages: dev: false file:projects/arm-hybridconnectivity.tgz: - resolution: {integrity: sha512-UoXd//VD88eyTFXh7pK2KjKfWCN9iJgKuAJpTiJlOPjtNsyGKBKrrBCNFjPpsZ+cbBGJ72C9+03J49tpcXDb6w==, tarball: file:projects/arm-hybridconnectivity.tgz} + resolution: {integrity: sha512-ei3dXbw0SPBO7472e5Lc2k2U4zGgoVaLnKd3Cj6jTia88sTZW/GkmmZHfRChOthiaU/skOzZ/Nmlvj6DFoah6w==, tarball: file:projects/arm-hybridconnectivity.tgz} name: '@rush-temp/arm-hybridconnectivity' version: 0.0.0 dependencies: @@ -13898,7 +13898,7 @@ packages: dev: false file:projects/arm-hybridcontainerservice.tgz: - resolution: {integrity: sha512-Sy5p8Gfs1IANvvG1j35dRubNwpi2rK4VlhhlLhXRN6f3Laxxy6f0KR9wz658HF/AOYA/SEkt703waCeBfyYlyw==, tarball: file:projects/arm-hybridcontainerservice.tgz} + resolution: {integrity: sha512-jaQ9mOdgkp1Q0iioQI3CH4Vd96kQQICbN61iuDmabjybD9YDPkkcGsgs9s3k+DLLy2z00nHtugf2NngsUqmCmA==, tarball: file:projects/arm-hybridcontainerservice.tgz} name: '@rush-temp/arm-hybridcontainerservice' version: 0.0.0 dependencies: @@ -13926,7 +13926,7 @@ packages: dev: false file:projects/arm-hybridkubernetes.tgz: - resolution: {integrity: sha512-QhFL8mPuYVp9XnRzSKBav++afPgp0MkdhTaB14//IOFCS6yaY6XOmVKQhshoHk7lPeBw+XcxiMGZvbn9hrlKYw==, tarball: file:projects/arm-hybridkubernetes.tgz} + resolution: {integrity: sha512-eOGMj0hE798uQgwsFhk07Tlv+X5v3J5CHViZcVkP3T5Q3PDwAGWKImRY5KoNCVRn5OhlNaqP1jfASv75hAsTPg==, tarball: file:projects/arm-hybridkubernetes.tgz} name: '@rush-temp/arm-hybridkubernetes' version: 0.0.0 dependencies: @@ -13952,7 +13952,7 @@ packages: dev: false file:projects/arm-hybridnetwork.tgz: - resolution: {integrity: sha512-xqfMYQWliSpAFgm11vF2rQSeJhfxgUiTcXSarj2PKbb+IQ+3nH21YDs/ftJuyOOLihLFbmxlQvT8eKuQStRoeQ==, tarball: file:projects/arm-hybridnetwork.tgz} + resolution: {integrity: sha512-dgmRfWg1hnBn5L4dbm0/A55CP747c1U6ut/GG2FeUHQ+fiHB94z0CrCknyX6cer3nUI44R1WntdRtR03JG9vPw==, tarball: file:projects/arm-hybridnetwork.tgz} name: '@rush-temp/arm-hybridnetwork' version: 0.0.0 dependencies: @@ -13980,7 +13980,7 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-jtoCXQudxlOMVFYekAyBSLImoRlpAvAFvXFEgBb/GVXscEzSeDsTd5VCUH1Zvrs8B9CTqy7U2nA0NaveCXa06A==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-EDPsPyOrfkNm5eGS2F0IhirUBQidpeOBlKVDj/uByJzVznz56yxIAuRTRxWbNYUZfC2fLSgRmdgTN+q6ahd6cA==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: @@ -14008,7 +14008,7 @@ packages: dev: false file:projects/arm-iotcentral.tgz: - resolution: {integrity: sha512-+d/6wcGG3OeAnrexKwryshVou4efDM5mhgKeICKfzTozbGhN1osPZREFQKN8cBa5X9WATQ7kVyTPyUlIfwv7SQ==, tarball: file:projects/arm-iotcentral.tgz} + resolution: {integrity: sha512-EzFNFoH25ciLltRS5mTnby6xKHJxrPqArc8bizMXffyEkUioNgMQPehlooRg2YTXa1DwQGeoOBDW1Zr2R16JRw==, tarball: file:projects/arm-iotcentral.tgz} name: '@rush-temp/arm-iotcentral' version: 0.0.0 dependencies: @@ -14034,7 +14034,7 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-WjogQNEjuVkfiAN9gnaphl5L0qQxUQQeHY9TIv1ntiGFcHFuK4X5irE3erwuZa8aBPCE3lBEnFWIGTfk/ix7Jw==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-TVCRaGPO1/PFRav4n7v79oTPfBsAUROLR/IAhd/zuhPM9eVfXFjB2yzPzpbtKEe+GxREpOgCEy4qxpbBTYpE/g==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: @@ -14060,7 +14060,7 @@ packages: dev: false file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-ndygVizo0cHx1f9cVvkvxX0NSLNi1b03leE9VYaa4ZL6YWG0FcpldvUyWXjXtqnXfT8Gt1pYvxde74aSj/XgOA==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ap+Z6OrBcTh8HXomCKUgo84XPUgrCbp4GSxGaXRqIeU/pT+yjcB8hL+xz3Qy4VODIqnEiGiq5i37BCWxqo9I3g==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-iothub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14087,7 +14087,7 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-Fv0lEr32w1wHSr/++mppG8Usw+fDCsdWCd3L3n3nXd05meGuVEjlNbrUGj7orLoFQE5v839JlAUec5uPIGxL7Q==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-IK93gDYqcxLAd5/fprkJBfMYWTwFE+jKSZTY8+CkfWrx8v8sFEUMndDu9C8wkylqpZ9ahvqe560fsI7/WDoTGw==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: @@ -14114,7 +14114,7 @@ packages: dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-srfYMkQo+2vzcw1FuYDN4ygHKff8u0p5DmS8/WQme9KmSrnoXSebMFYNfWlLhESHwI3TZoq7jngKYriebz/C/Q==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-lT/DvF/9sFj5AUJnqnxHx13A+C+KGWWdg1oTPTE5YcVSyvCiMANU/0kVsi5llBXbgvjR5iE0ZLNertZGj0bjVg==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-keyvault-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14141,7 +14141,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-CxgUmA5b8mNXEHzxim6ap/evv1p6YZIAdfmet9qsbu74tcwSb+ty+Fkit7xwvyqlEZ3XAggzmkuH8g8qUPZjQw==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-5J26dX52OdiglGFO2C5HEYBHJ/cAglmw0+6C0/h5GI0K9i991TwZyhu2drE/InXY0Bye+DafznjMfbworbcHRQ==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -14169,7 +14169,7 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-FzzUjDedwl6PgApeoOoQPbh9TRWMq5pfolQ3g1C5Xa/VGPz/Qdy0HvFswt00uHSeyuoAi4+aQZvr2VI9M0Wb1w==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-UCuOUS8jLbg9fqrFldv65BoWTCv7zUtY7GcAsPmWjktn5avFyR1CVa25VrzmEwI7Kz3MAe4NQ4kd+5yeSd38tg==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: @@ -14196,7 +14196,7 @@ packages: dev: false file:projects/arm-kusto.tgz: - resolution: {integrity: sha512-+S9nWXmKnozmTEeevAyzGORODSi4S4kUjzZe+m2101+ualinDLfkkBjRHy635Y0pHmJ1i7ywNv0BcfhMHiH7og==, tarball: file:projects/arm-kusto.tgz} + resolution: {integrity: sha512-ZGcWF+8qoEOWnZt2LVMCrlOAlPkHlWG+icwN+7HgD0GWrhp2aQbk2FQxyXEcM5KZ/xFyC+Usl9YYUbCJRuiibQ==, tarball: file:projects/arm-kusto.tgz} name: '@rush-temp/arm-kusto' version: 0.0.0 dependencies: @@ -14223,7 +14223,7 @@ packages: dev: false file:projects/arm-labservices.tgz: - resolution: {integrity: sha512-i64F2+sfyinjeI6+7ZM+hJfYeF075HeRGm43IPoMmYILG/GY06SMB/4oelcoTDd+Ct8eboNVQB3iRCWd3c1NDA==, tarball: file:projects/arm-labservices.tgz} + resolution: {integrity: sha512-5B7F/ARVRCMje4lEBtAYKO2cchl/bCdYxsEe1UzVx2LC9dH5oKFSehKkMBUIb5VVI5lUOZ0WwQ/FeG8O1DOQSg==, tarball: file:projects/arm-labservices.tgz} name: '@rush-temp/arm-labservices' version: 0.0.0 dependencies: @@ -14250,7 +14250,7 @@ packages: dev: false file:projects/arm-largeinstance.tgz: - resolution: {integrity: sha512-lO9Q5RIVa9eIxfL1ni3r8h27ysSkSdC+KH9mcgBsRJkhSZywAvepIqnn+aPtnRxyx4L25Ca9FRJTdTHOttlgnA==, tarball: file:projects/arm-largeinstance.tgz} + resolution: {integrity: sha512-sdpJjnXZnSAusOEmdMUO8AKVbVh1efEc0pv+nmGJrlqgv5Ky6h+elrHR2FwrAtdZsodoubh0owGBeqCccqA4Kg==, tarball: file:projects/arm-largeinstance.tgz} name: '@rush-temp/arm-largeinstance' version: 0.0.0 dependencies: @@ -14278,7 +14278,7 @@ packages: dev: false file:projects/arm-links.tgz: - resolution: {integrity: sha512-McQK4lLqTDACdrIbX2PQoRk/AAJDDcFYBzGhsUhPSkhAPXQHJNG3iP3L3kstgzBYfYRlNGPHXMhV9wbn0XMOwg==, tarball: file:projects/arm-links.tgz} + resolution: {integrity: sha512-0MrD1N27J/zHy0WuJWhDnH5yigl/7ideSPOq8jvphElPaf63WPsKt/y+zZA6yX85LwTs5xW9dlMTZ1GCHrgHFg==, tarball: file:projects/arm-links.tgz} name: '@rush-temp/arm-links' version: 0.0.0 dependencies: @@ -14303,7 +14303,7 @@ packages: dev: false file:projects/arm-loadtesting.tgz: - resolution: {integrity: sha512-yYDAiubQWvh5dv2HkaSZkXBnPUGgmu2bppWeY+OctiD0kdWuziv3+dlQJTcsYHJYbIXak8mRgp8D+fOpOIUpUw==, tarball: file:projects/arm-loadtesting.tgz} + resolution: {integrity: sha512-3mNR1SA2SXx+lyCzHchx0WGoDaGhN0HN/hLwql+FWr0YbBWO38ys0TVsRhJWYyE9Sd+2NkgnSVVLUwINmcDzrg==, tarball: file:projects/arm-loadtesting.tgz} name: '@rush-temp/arm-loadtesting' version: 0.0.0 dependencies: @@ -14330,7 +14330,7 @@ packages: dev: false file:projects/arm-locks-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-aP3BKP6x6VloB97Z64xb5PGsb41pzAHamL8fD6lj2EyKKxoBW1Fo4GgUw6gvRELhSl0KbDg3n7TmAGlu2furgw==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-MM1YQWv+Djqo44GlUOaVms1ry8pZN/XdPPXF1UTnGy5T/Z+rPHHX/9cpSBjKVzdOnhfBnbIDh8BhLamBGvDB6w==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-locks-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14356,7 +14356,7 @@ packages: dev: false file:projects/arm-locks.tgz: - resolution: {integrity: sha512-3gK+FF8jTwpVOwgkkgdPqTNmFL+txflMo4lPDggW4M0u1vnOqa5+wCoi/RihWA8lhjhPTMwBmqIk1KgCau2P6w==, tarball: file:projects/arm-locks.tgz} + resolution: {integrity: sha512-NvQ3Z1c6s2jwz+1CCF/Soh6x1iaBCUR3sK6PbLQXyUBOMEAZ0TvjiMrk3SsTq5Ib04nNDnBAGTNECI+/txCtQw==, tarball: file:projects/arm-locks.tgz} name: '@rush-temp/arm-locks' version: 0.0.0 dependencies: @@ -14381,7 +14381,7 @@ packages: dev: false file:projects/arm-logic.tgz: - resolution: {integrity: sha512-MOQTVkl5V1eisNyW/TEDd8g2pHY9PdnPxyQ15+cZhdOlVx8JrptUVrgr1UUeEYSUqMK03eT9bouUa71zzipIbQ==, tarball: file:projects/arm-logic.tgz} + resolution: {integrity: sha512-a/dJxaYa/V4zraMumW+JUERMqiWJRJmCADrtAi8vN534bHzFD2bpOPrnqRs7+IhTtqSpS3y6AHSFry0krduxow==, tarball: file:projects/arm-logic.tgz} name: '@rush-temp/arm-logic' version: 0.0.0 dependencies: @@ -14408,7 +14408,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-75hb8WOyINOoDc38e7gYKDr/Sz8SrFz10wxhWkQ7DHoZ9FQLCH3j41TwEBCnuXy27mzedozklcZxVbE189VgZQ==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-R6LzfhCCd2XgsGzXan+Ah1PjWvAVBKrK16boVBCJq0baPh+zamTG8CxBrMrvrY1xsFQfoHh98qnb/7FfpS1O+w==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -14434,7 +14434,7 @@ packages: dev: false file:projects/arm-machinelearningcompute.tgz: - resolution: {integrity: sha512-I9FNymQpc2olKVXL9gws1OZ/MAPvu1IYEnYyEHeTI0PJTUTOaLAimaitGRPvUGS6VSiERUPMP8ZVK8WqwMJw3Q==, tarball: file:projects/arm-machinelearningcompute.tgz} + resolution: {integrity: sha512-clysHmuJIoRN6GLbav2Ef0LbI/9Kgg+AJbuzndElf6okICaBW709mzH9q95y/kU8xLA1Pv+6VK5+kKGUQs8JQA==, tarball: file:projects/arm-machinelearningcompute.tgz} name: '@rush-temp/arm-machinelearningcompute' version: 0.0.0 dependencies: @@ -14460,7 +14460,7 @@ packages: dev: false file:projects/arm-machinelearningexperimentation.tgz: - resolution: {integrity: sha512-GHFW6M81BuG7EZUBBrSUNvnhiwmu0MonuTL2iBFC4wHOo1FCFrD+zeJzMhb3PGoWqVmjRrwC9XRr4ZXRtLAytw==, tarball: file:projects/arm-machinelearningexperimentation.tgz} + resolution: {integrity: sha512-zzTrdQzKuDO7WB7aZSDSj82VDrf4+ampa4FaZIkKjnvXPqZ/8RG5oZUSfhKt6IGu38i/lkFmEw9i5zVT08YeEA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} name: '@rush-temp/arm-machinelearningexperimentation' version: 0.0.0 dependencies: @@ -14486,7 +14486,7 @@ packages: dev: false file:projects/arm-maintenance.tgz: - resolution: {integrity: sha512-9dEsnfcOz/nNTOcpaoekSTPdI2wIes9gC7r3dI2xU6LbEx980+RAVnK5hPWgnQ75w9PMbbHEWESKauF1gOEZoQ==, tarball: file:projects/arm-maintenance.tgz} + resolution: {integrity: sha512-yuidOEP7AWn1zvqUEAM7WI8rTRCKeQAPmzfZ3NZMRK5SK/kbfHd31ckhcG6FUPQX33lj8QA2d4TI5+1PqMzqGg==, tarball: file:projects/arm-maintenance.tgz} name: '@rush-temp/arm-maintenance' version: 0.0.0 dependencies: @@ -14509,7 +14509,7 @@ packages: dev: false file:projects/arm-managedapplications.tgz: - resolution: {integrity: sha512-xcC2gXy4yMak1dsAQZ90+L15G7r5c3yFMkyh9OKosi8wG87lhAc55k1jk+nWS2B6WoqIwKWbWdF3xAuQLTjurw==, tarball: file:projects/arm-managedapplications.tgz} + resolution: {integrity: sha512-x45e4cSI4uAh1K8TZKBjIEBa8ONrS2pndGLkNJALxeCF0WnPfnjnin9ievz0SEn33vCQYHDWhA0mTa9T1j71SA==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' version: 0.0.0 dependencies: @@ -14536,7 +14536,7 @@ packages: dev: false file:projects/arm-managednetworkfabric.tgz: - resolution: {integrity: sha512-p7RcdA+wL3TCKxLeVjpurjFLU7ETSE6NZJbSst/2SDe85kIRjxNa0v9oZL/c6Bwxjk3ABOcxiM87qPXVHhW2Kg==, tarball: file:projects/arm-managednetworkfabric.tgz} + resolution: {integrity: sha512-UpgMeaPtnHKpfIJveCbCBFBvALedwS5J1ZmylwfWWnVk8Fk4wJkBphLdCbPP9VtJrcG7+7mopGb9gNMuinGdog==, tarball: file:projects/arm-managednetworkfabric.tgz} name: '@rush-temp/arm-managednetworkfabric' version: 0.0.0 dependencies: @@ -14563,7 +14563,7 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-B7O4vAu0ZU9NLnrC+9XEoEnaCqZsofKWeeJBJf4iqLBNpXPyEr9S4vegeinuponSHgkPX7K3VMWoJGl9u52a4Q==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-naErVuF6NP7dUvNRnLnQyQLAxhBrG4vClYWBBeBcue01sG1H+yPsKTMHRWF0FvrNKkhJ2QXJ7cUE3bBfIDwdkw==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: @@ -14589,7 +14589,7 @@ packages: dev: false file:projects/arm-managementpartner.tgz: - resolution: {integrity: sha512-RnwjZkNbDxsLU7STx1Wjie0EcbmMzKLQsef/yx5VrilY/pa7kKLerawjMVYn1iM7rOYV/itMxBOzEnXM7Umu+w==, tarball: file:projects/arm-managementpartner.tgz} + resolution: {integrity: sha512-V/5vfpNX3DzXMWL1Doz+af2hWGrnRM+5vO7FOTK86appRUuPA3CDBza8uYQFsGvTJFdbeDhJNYo7rbYbV2IK9w==, tarball: file:projects/arm-managementpartner.tgz} name: '@rush-temp/arm-managementpartner' version: 0.0.0 dependencies: @@ -14615,7 +14615,7 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-LBFxDOR4MDgM8ER2PIIvO4v48K+xhHLFwr4agj29JVtWGnP+qU3NiUtBIYcCjzF2P9yh3K0l2WVuxOIRcmgX/w==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-iyevSHmaCF3/3r0HnXyLeD+UDAnu0eFFC7l+B+6KS7w6002PbA8qI3wZKIKtkNJ3EjD00Jl/KjiZszXPqLJ4fg==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: @@ -14641,7 +14641,7 @@ packages: dev: false file:projects/arm-mariadb.tgz: - resolution: {integrity: sha512-vE2H9yszk8Fsmt6okk93OVMRjd2TaPLGhVlbQn7MaQiXI2qxQmIN76gmmuTWph50SiWT+FmUNqJniY0aD9M67A==, tarball: file:projects/arm-mariadb.tgz} + resolution: {integrity: sha512-MWtCbkD8+NPqz7gEONslSXEIAZistS7cxUuk5IcobtAre+TCY0r5ePIIto9A1J4Ry2E1kI4PgbJoKyzzlo2T8A==, tarball: file:projects/arm-mariadb.tgz} name: '@rush-temp/arm-mariadb' version: 0.0.0 dependencies: @@ -14667,7 +14667,7 @@ packages: dev: false file:projects/arm-marketplaceordering.tgz: - resolution: {integrity: sha512-mvbBWVanivDkhML7A+B7Ajhc9viR+MWRsejF0xf3vLJCtHC7uZ8oHUDEc9f6PRf71jnrCdNMe8t7onC4rZpmww==, tarball: file:projects/arm-marketplaceordering.tgz} + resolution: {integrity: sha512-BFieCiiReWqBU4Bn90MT/nct9TfLeElIIWVJRvM350z7is07/Zhj7EiKkGL7w/iT+lZhfE9LwiKXd9ooU8WqrQ==, tarball: file:projects/arm-marketplaceordering.tgz} name: '@rush-temp/arm-marketplaceordering' version: 0.0.0 dependencies: @@ -14693,7 +14693,7 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-7QLoLg9/16IN1LvSC4Rg4l8ZVz5teMzswqgyy5OXwrTv645DTrO1Uscm3ghbiE6yG6po17T+ElxlwmF3Q5HyQQ==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-CDOlz7BXiXRyWt8iUyf4eVpx3NEErWajEeIQABkPjeIWyoIvv8D0pAMQNzl+niGGkgGLTsBfVKby3Sl+GHP96w==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: @@ -14720,7 +14720,7 @@ packages: dev: false file:projects/arm-migrate.tgz: - resolution: {integrity: sha512-LsBo7tCSvyNR+fMaTJfJ3+tEm28s2yDvosgL/AcDjZCuxDaEnH8NI1k7NVTmBnXJx+5TuZ3mK3/VjNlSyFZW7A==, tarball: file:projects/arm-migrate.tgz} + resolution: {integrity: sha512-v8R/vweVHlHPNNLDAoQvKfeRVQ7oXpt4YEeV8G7PylAKGAJVG4tKpsiG6Kkg5xAWUwF+5CQjIrsFgyU8SV+23g==, tarball: file:projects/arm-migrate.tgz} name: '@rush-temp/arm-migrate' version: 0.0.0 dependencies: @@ -14746,7 +14746,7 @@ packages: dev: false file:projects/arm-mixedreality.tgz: - resolution: {integrity: sha512-Q+psd8EPbLB0M9BQ0/FhxytuM9rslkjHw0NXLagRgQ0wIIsdOAKtupBgnkaXN/dqu7hRxTMkvkaUqQCFXnakzw==, tarball: file:projects/arm-mixedreality.tgz} + resolution: {integrity: sha512-sYBluPy2FMEuhw35LFzDGCUBt5tRNZ+s32SdZQ4X4lZxTgyYunBA8u8XOaZNM4fKGdkRFwLg6EjLIvDp4cTwfQ==, tarball: file:projects/arm-mixedreality.tgz} name: '@rush-temp/arm-mixedreality' version: 0.0.0 dependencies: @@ -14771,7 +14771,7 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-vFnMCn9qVBX91fybM9i+Grl1zb9IvgR/SbdqrpsS0K3edmMJVahXhR44CSBI/bD2zrzFlZnCnibVWDIq3Um2fQ==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-szV/QySx5b2H7nf86GrReqVlXdKlnnwJ/I6RYZvbJSC+0m/4VKwjh91uUPls/8lJeKNikrJ9JwSO3dewJREKpA==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: @@ -14799,7 +14799,7 @@ packages: dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-HWAbTdMI2a3v/HGSyijai42JPgzaSxRgspUTGnIIxw5f+8w+50s1IyVFQHNJeQKkxg01eu2ue0MHnziLnv37DA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-cofYNg0UFFy+EfxpFwqzS3po2NIGuMeY5658PhcuwFK4JrF3B6KqtIx5PFFaMiZlnv6nTB9W0yXqKrnnxaQLUA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-monitor-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14825,7 +14825,7 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-LGe1iNUoZQYZrNM4/RNoR1/+EF8IbcjoApmtx/watdJQTkPGiiGJoZCf4s6VitBSLdthc+xSJ9+72cKXFvPLEw==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-Efshfh+xTjfC56URQqDUCrE4Uz4CXRgP+O22PnXhrrmtufY52ttt0ChaeKHzhFIcliTi2BIKbWNPc5dBAppl9g==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: @@ -14852,7 +14852,7 @@ packages: dev: false file:projects/arm-msi.tgz: - resolution: {integrity: sha512-Lwn16GKLfnJfDlPBpQQ3S7AVMHDUZABIS+e1mWDYgukN4ZPVPn0pXNuc9WoT970JtF8eaVdKJwjzzRLfB+UUXA==, tarball: file:projects/arm-msi.tgz} + resolution: {integrity: sha512-wdc183yCbS5B1hWay56jl87v8C15ofpipmg/LkjC/96X05HiBgCE6mo0JXtUi01lyqMV55sJshDIan7SCF1U1w==, tarball: file:projects/arm-msi.tgz} name: '@rush-temp/arm-msi' version: 0.0.0 dependencies: @@ -14878,7 +14878,7 @@ packages: dev: false file:projects/arm-mysql-flexible.tgz: - resolution: {integrity: sha512-8ct3yqJVZgtDf4RG5p0cEoWq3Diu67dixpHz/vJT6XppTF9LFC9Eg6phTc2Mdv/R5KqE6fas1XrbhT0YiVsHeQ==, tarball: file:projects/arm-mysql-flexible.tgz} + resolution: {integrity: sha512-2OWuTKr2dm2jloyaQUujNd02bDOpBxP/mFFlYz3b9Om6U+6LHk96HbnNawaFE0r/i/ni+JhdedEqx1bgJuUkdQ==, tarball: file:projects/arm-mysql-flexible.tgz} name: '@rush-temp/arm-mysql-flexible' version: 0.0.0 dependencies: @@ -14905,7 +14905,7 @@ packages: dev: false file:projects/arm-mysql.tgz: - resolution: {integrity: sha512-h+BTVXYteK0CeDUVTBqwDmwB1ZpRjOftvYOtLgwwt1K0GU8n0RNNANLYQLCpV3I5QchUFHZDMWpgMzFschmzhw==, tarball: file:projects/arm-mysql.tgz} + resolution: {integrity: sha512-ezWS1P7whjPMUjyfb6m9BSZbKg7kCA874ldLoYbNytscFviQn2p8StF4pBLwxqD6m2GGKQxeaHo38Pn1r0nWmg==, tarball: file:projects/arm-mysql.tgz} name: '@rush-temp/arm-mysql' version: 0.0.0 dependencies: @@ -14931,7 +14931,7 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-NRbSU4tJHEd86VfwKHMbcal8t80wxgIPUPDqTeSleNgMA45Ri9gMA2nly60ouqM7yEO4OdIF9GTPflKSfSMPIg==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-iOr22rUz3RnnZpiCDvp3RSo4bmPK1WzN4Xu5OF8wdmzW5Yg59oQVQlTOHhwNzvs/cA11omf0ttR4TmNaj/F68Q==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: @@ -14959,7 +14959,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-+/uTgvdvzxGR+YCty75Sy6WOIEQArVbrpD6ZzEfrxrRpqW36HQjs72d77+73qPVQ08fpigR5eCASUK5H0DsCGA==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-kcCcRRDpCucKA17wiiYbOvna84m4alTq68FhRTv6QtZa5OGACaE/se+vJokITCz1d5toOujUCyZ6jjkdbrWSPA==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -14987,7 +14987,7 @@ packages: dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-LCineChGQdQRI2T/DTEtrG+i/A+XZrp7h/j8/2CxbveH94qQpxWrqVnCLlPgEEG9jXAlu2Q/unYxGu5o2OK7VQ==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-tSqD3NQBVDjJ+3SxQNTPVkexM1HlO5maMeh7wYvJD42PMPni4uH7ojYnTtDXoUu7KlkQ66laBwSvr/XNDiYHng==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-network-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15014,7 +15014,7 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-JoKUmprfuOrjFxiY68Y8NQlfVMoMGjoxRmQokRHL4mxgPkO1vcm/1o0r5+9JHnN9y+rYta/43v/eluNHt0c2WQ==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-jI23ki0LYxtwy59OFvnMY3sYBbrtpuJZP84Rdyv3R7JzlyB3LVfaoT7PsPkQcdjCs6OfiNBbpI48qMK/DgG95Q==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: @@ -15057,7 +15057,7 @@ packages: dev: false file:projects/arm-networkanalytics.tgz: - resolution: {integrity: sha512-eVa07skT/98o2bwqgqQbEN1y/UwzoFOOIfUg/YWFWz8w7iYzktIN8GyeblJMnmB2J2/Lo8hQdgD8mfK3XVu9AA==, tarball: file:projects/arm-networkanalytics.tgz} + resolution: {integrity: sha512-C379kFhClyqTlThUmNlHIfBUkJ/D7Bpz8FpPPH/VxT9PFHeBOBRugg8DETWzEFhPjgFTB6GbV2YiXE5dGkApkQ==, tarball: file:projects/arm-networkanalytics.tgz} name: '@rush-temp/arm-networkanalytics' version: 0.0.0 dependencies: @@ -15085,7 +15085,7 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-NCBJCvly9qFhObxV7wLo7M/LaYkwfSx1Aw4mXzOYDNsukmrH3pHUnwZi80tUh4+oiAVd4NSa9MEiTqDlZd9llQ==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-/jywTEuTPqjudCfBCxEYW/HQdRkNeifVdr4jPMhulVTRwsMRLBRijaAuf2gWNlDb61k5Wwyx3lvLpneaQJy/WQ==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: @@ -15112,7 +15112,7 @@ packages: dev: false file:projects/arm-networkfunction.tgz: - resolution: {integrity: sha512-Z34SPZJ2yJ6iyU2XhNtss2so3u9r700aK+jrSIBHDlHUi7SCVr+srrWXHViolEwnARFFTCjkFPcGICjr9S7ccw==, tarball: file:projects/arm-networkfunction.tgz} + resolution: {integrity: sha512-W0xCa7YjUaJ8KWL48v+dSChszFcpar9VYJkckqzrqqtr+rVpXA+Qlghmmq4UwuFPSKpzdWCQztTz3tMxuTv38A==, tarball: file:projects/arm-networkfunction.tgz} name: '@rush-temp/arm-networkfunction' version: 0.0.0 dependencies: @@ -15138,7 +15138,7 @@ packages: dev: false file:projects/arm-newrelicobservability.tgz: - resolution: {integrity: sha512-OX7qpyv3z9EQxyDSzQt4K0iwOacNu/o0r58CHC8k5kHRHquAVDia5sE6j0tN5Q+odhvdxZKUooXw4LRQC8FG5g==, tarball: file:projects/arm-newrelicobservability.tgz} + resolution: {integrity: sha512-fSwUreQRzyD3E2QvkZ7RHVaq++ZpZHYwV4igjsiBXi/xKjbtGOgxjABDnUimkTz5kHjBAGpNmNy1wQG3znpwkw==, tarball: file:projects/arm-newrelicobservability.tgz} name: '@rush-temp/arm-newrelicobservability' version: 0.0.0 dependencies: @@ -15165,7 +15165,7 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-LoqehVB1afT29IOfLh7Qk5tO0L+Shm6R2NDTuhARtR741dNCcFgJGvcwfG15h9SoMvNE0r9dToFU1gMloGTLsw==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-UWfk58+Oa2IygrftoJrMt9kBO7RG4+g5qZrjrOz9AU8m2sC8BJFh7NybgRl9wgLy8ESHQR6HuUNpy3X5ef7wwg==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: @@ -15193,7 +15193,7 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-jKI293g20PoBmUCOGlCyMaqSELaMO10wwcclQyqOwdJJrophygB6lLXXFW8APhhlo8DhtAOv1/jIf9OWzodipQ==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-I1FS9xc0y545E4Q8dJFj1uFhkbykV2RJVI61eqy8nL3bh2R0Z8cxMbtd/rYIRdiy/l62QCC8iX7KomAWsO6NSQ==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: @@ -15219,7 +15219,7 @@ packages: dev: false file:projects/arm-oep.tgz: - resolution: {integrity: sha512-gxo797QyCyQe7orCyMnvnzy7u436O0VJn71cbCBolurYom8f8ljS0PWt9hfT8NQ+dYvnWncGkHRALMAwaGdm+w==, tarball: file:projects/arm-oep.tgz} + resolution: {integrity: sha512-uEx7/GpRn6UiRy0iVP38og9AaR6FB9yQES8mDcS21TuazUwMYteEONiHCz5snmQiLTSG8eqD6Q1naHUo7Sq/OA==, tarball: file:projects/arm-oep.tgz} name: '@rush-temp/arm-oep' version: 0.0.0 dependencies: @@ -15245,7 +15245,7 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-Wyb7Eb0ySdtcocGGKaKgFkednNki++RMfltXBtWGvyC097tud2IQz/QxM26dqlIzLkHhgpRR+BbZBzAi0wHvuw==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-LnXw8KN1Xetot9SxduGDGub5SJlIHcZVAfvHYknMEK7laeFsthbDtaJhMLBnDVmuhWSGv0Pp35c91zEdPf+iYQ==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: @@ -15272,7 +15272,7 @@ packages: dev: false file:projects/arm-operations.tgz: - resolution: {integrity: sha512-dpgWL0kDJp4/hfPNsEYozAAg6YMwwi6cXfHn7wsmv7R+qktlTa2PEQyuirfoDQIFD1chTEgquQ7WtpwI+KN7nw==, tarball: file:projects/arm-operations.tgz} + resolution: {integrity: sha512-hXOQDmMAllVkylM7KYMMgtQIZUJ12DH/6RowMWU961RYR1Q/E0ilHMu7Y2tdT/TIzBpS+8ksmF7giXlFsiStpA==, tarball: file:projects/arm-operations.tgz} name: '@rush-temp/arm-operations' version: 0.0.0 dependencies: @@ -15298,7 +15298,7 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-i4wi1IyjC0rtnSs3znILZx+jLnUHejlGb9wB0SGRr8hWCRMhlUqLnYmA19ex923NQwU/Vc53Z6mSNTSe/WeEVQ==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-tXA9+IdDIWnwYyeoe6bUpNT3Q5rcPnA7BsBtGaIsdW6oN+nqpbg9098U6BT5Q8ak36o0TBiT+dx/Tu6dEWhL8w==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: @@ -15325,7 +15325,7 @@ packages: dev: false file:projects/arm-paloaltonetworksngfw.tgz: - resolution: {integrity: sha512-+s2/hTPQ+ei20+UDdn8CBJQzWlXSJvPHr3Bg4OuBmN1MVrpQXVDOHYCWWiNTNX2slbijSSYxFj92QWohThNHXQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} + resolution: {integrity: sha512-SaodGf9bzBLZLfAkVcSdAodHHLKlf3LHYIN2WpwkAdXKzm4OPV/+MD7F+IMZmQRDH8jY8pfipka6l5UBUFbLbA==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} name: '@rush-temp/arm-paloaltonetworksngfw' version: 0.0.0 dependencies: @@ -15353,7 +15353,7 @@ packages: dev: false file:projects/arm-peering.tgz: - resolution: {integrity: sha512-nwxqfuEt8kAizeFNun74U6uy9qPQRHbNIkGqAIEmcjcw141TAaSdPe5vYH1pyoxaO4WajA1b6cH5FqC5aMV4dQ==, tarball: file:projects/arm-peering.tgz} + resolution: {integrity: sha512-bMJcA6Z2q0AZlFEFmf3swnCUS9Uh+SzdjCFhkrNbLtb4uhvCUrzzuf5bvfXxR/sDz9Hltv7lHIev3DigcFc8aA==, tarball: file:projects/arm-peering.tgz} name: '@rush-temp/arm-peering' version: 0.0.0 dependencies: @@ -15378,7 +15378,7 @@ packages: dev: false file:projects/arm-playwrighttesting.tgz: - resolution: {integrity: sha512-uvMCb4UDoIroxhOOohR+imdakfekXiJkBk0ltX3gJ7i+as7tkqfauzRGRzpSTJCaEVDXSW50P2nBUFZp63xKtQ==, tarball: file:projects/arm-playwrighttesting.tgz} + resolution: {integrity: sha512-CJf33p9Vv7ylIvsbdEzMuXFikIrP2QojqX601qJoHwFanjrU05ADROulvioErYQgMjafcnUV2TaxQRv7e89mbA==, tarball: file:projects/arm-playwrighttesting.tgz} name: '@rush-temp/arm-playwrighttesting' version: 0.0.0 dependencies: @@ -15406,7 +15406,7 @@ packages: dev: false file:projects/arm-policy-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-Wa8k5UqQgrp4U/+GrOitGrrx3hiG+b8O3t3wc2d1ijEMSyKSyuFYg56HQlGWsbZBIJpz0lQxL5l1nU9nEnAUlQ==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ScDB/DBpaVYtx/VyVsUvIlGLL38Ob0vFMj6kOdTvwtBz3GBW8YK76hHbwzq5p9UY+3CWNFlGdWBPM3ogPqzU/Q==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-policy-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15432,7 +15432,7 @@ packages: dev: false file:projects/arm-policy.tgz: - resolution: {integrity: sha512-aB2FSfveainXfLvZI6RowqO90yRj2xCFke52+mVFnXAwv03jGxQ6ewsf+MKp3ALHsSrIDfMcSOX/sWwfbSABaA==, tarball: file:projects/arm-policy.tgz} + resolution: {integrity: sha512-AEZgoj/i7SNLMWguRNvmLssudvwgZ0S6IiPxj/EKZrFJjIYgQdWuQA2RlzjIIB2jz217+VolAwO9XRXSZfylyA==, tarball: file:projects/arm-policy.tgz} name: '@rush-temp/arm-policy' version: 0.0.0 dependencies: @@ -15458,7 +15458,7 @@ packages: dev: false file:projects/arm-policyinsights.tgz: - resolution: {integrity: sha512-KRYQKocGsCeJ+CDRWzkV4vweX0Qxgil7Y7lrTNhsWdBXLYmMIEn4IBmDb6uTOao+klGCGhqZp9R+Sa7EecLJ+Q==, tarball: file:projects/arm-policyinsights.tgz} + resolution: {integrity: sha512-qvjuosuqlOAfGzKH5kr3XKzeDrE1zmd/u2c0gML81dz3Cah1tSdeZaXED4uziqro4WLTdrn5PSN6m6XvVUDfiA==, tarball: file:projects/arm-policyinsights.tgz} name: '@rush-temp/arm-policyinsights' version: 0.0.0 dependencies: @@ -15485,7 +15485,7 @@ packages: dev: false file:projects/arm-portal.tgz: - resolution: {integrity: sha512-OT6lsn37reuBJ5wweEPXg+Sx4K0Q7Vz0qhnzVETQutPDn/h7TzRtc5XW/znrdI1cmelSl+nJaY4FLAxGc4eBSw==, tarball: file:projects/arm-portal.tgz} + resolution: {integrity: sha512-2/pAo489o9F6JvBw1qjuFgPRxbNqM/LqqvH2N3eCuHF+o6jPWCaFrnUaduvRvITU+90e7wnKy0ma1xpNYHzKug==, tarball: file:projects/arm-portal.tgz} name: '@rush-temp/arm-portal' version: 0.0.0 dependencies: @@ -15511,7 +15511,7 @@ packages: dev: false file:projects/arm-postgresql-flexible.tgz: - resolution: {integrity: sha512-l0Hc7dJBOdXsPU6AZ4XQwmwsq9bjfTIm4CLaCTTbS9wrvs3lJn/HshqsF+shfCdRhQPCX9zkLOIhKutTsWr3QQ==, tarball: file:projects/arm-postgresql-flexible.tgz} + resolution: {integrity: sha512-l0vG6NpEp/wDV8Fotsu59mf16K2gelt+zcA4oj2F0rlCR/LPDYIs29GS0P6hbBz8cvJhbeYGxLENs6r1RVKIXw==, tarball: file:projects/arm-postgresql-flexible.tgz} name: '@rush-temp/arm-postgresql-flexible' version: 0.0.0 dependencies: @@ -15539,7 +15539,7 @@ packages: dev: false file:projects/arm-postgresql.tgz: - resolution: {integrity: sha512-M5ds2idICzu8Gw/+v6o/xYvp+2UaYke3IJtoyy11KRvqmT/DF4v4VZTAw5INVRx5nFbtQN/lp72ZvLWGOI/K5g==, tarball: file:projects/arm-postgresql.tgz} + resolution: {integrity: sha512-LBmz0Y4Rka9qVxtNekE7hUZHzSJ1Wak5pvO7qAps4xrRGVJ3D35Q5FUSDQOxtb44FxX5i+z7a2LyfREpI+MhnA==, tarball: file:projects/arm-postgresql.tgz} name: '@rush-temp/arm-postgresql' version: 0.0.0 dependencies: @@ -15565,7 +15565,7 @@ packages: dev: false file:projects/arm-powerbidedicated.tgz: - resolution: {integrity: sha512-5Qa8t92V81IOeEsn/1yi4cDf9lxui561+EnV2MezUq247fD8P3UFhb4ocRMIWsQ2AWawtCPvOsBOeAG6FVXWxw==, tarball: file:projects/arm-powerbidedicated.tgz} + resolution: {integrity: sha512-ajCMyddRyk4S7o5Dg51r82VCn7kiC7w6CUWJLjceafh+4eU3vkSERS8Gatw9JWS6vyP3quxJzh0J7SiJnH8XAA==, tarball: file:projects/arm-powerbidedicated.tgz} name: '@rush-temp/arm-powerbidedicated' version: 0.0.0 dependencies: @@ -15592,7 +15592,7 @@ packages: dev: false file:projects/arm-powerbiembedded.tgz: - resolution: {integrity: sha512-yZSYyun5j0/HNDTHSfmHp6ox5vHB1zRvVfqfKkLUUBay2wVhMbo26tK0dkHUB5easM8bxI9NfrAjp/deGVPg1A==, tarball: file:projects/arm-powerbiembedded.tgz} + resolution: {integrity: sha512-dbkP9c/pUaT6jXZOv2usIoT8Vcd6HRfVFu/GzZbGZiMENqRBdMQ/bXMNtPRSExqpP1y6AsNNVUTPSBSNJO4p9A==, tarball: file:projects/arm-powerbiembedded.tgz} name: '@rush-temp/arm-powerbiembedded' version: 0.0.0 dependencies: @@ -15618,7 +15618,7 @@ packages: dev: false file:projects/arm-privatedns.tgz: - resolution: {integrity: sha512-iaQLjspd71wTIt4eSsvbIAP45CTozAm5paQyI7fWVcJzWrIGC6mFOTz+OBeeuupKzUcoAR0X8VMCUMWvlde7uw==, tarball: file:projects/arm-privatedns.tgz} + resolution: {integrity: sha512-Go/oNw0Y+VzYySaXVplOaAjQ808KKCytP2QRoJoad34bj7SIF1PzpzX0G0nGAQTMimCUD8KjeY5QbKrVXHfYiw==, tarball: file:projects/arm-privatedns.tgz} name: '@rush-temp/arm-privatedns' version: 0.0.0 dependencies: @@ -15645,7 +15645,7 @@ packages: dev: false file:projects/arm-purview.tgz: - resolution: {integrity: sha512-x+zC/tSdWxGQIAXh4IQtQygsK+VO7Z+ndKNFvHighw+pDeyCOqabJ/EDBfYRiUbKKsHG9cZZ9dHrBpD/8eAldg==, tarball: file:projects/arm-purview.tgz} + resolution: {integrity: sha512-vGftQJy9mWyJQ/wL92XNBfHK9njHJ1u7FY1UNMBpVIVOF2plh2ueErK3XZZ63AJQKMzJnJ8aKEkUaUjQSLZPGg==, tarball: file:projects/arm-purview.tgz} name: '@rush-temp/arm-purview' version: 0.0.0 dependencies: @@ -15671,7 +15671,7 @@ packages: dev: false file:projects/arm-quantum.tgz: - resolution: {integrity: sha512-Yyur1awjPnsHv9Pna5PtMZysZFEfci39iDAJdfw4gg7WGdRYjx8HeXocX6MKSiM5/qb544MV98arZAaE+Ar3tA==, tarball: file:projects/arm-quantum.tgz} + resolution: {integrity: sha512-M8kaJltyou+nUeP0MF+p0i3uZX7MWK4VPt/ef5Rck79ikz5R5g1TPJ5ZBQod2Wp2h5NPsFNwaiWFkePrUGImHQ==, tarball: file:projects/arm-quantum.tgz} name: '@rush-temp/arm-quantum' version: 0.0.0 dependencies: @@ -15698,7 +15698,7 @@ packages: dev: false file:projects/arm-qumulo.tgz: - resolution: {integrity: sha512-g3rgrE9ZtbElbL8Te8fKtmIQAhZWqVTaXEV6FW9vTlCGspjh1zTV7IYIE+Poc12Agg4IOeLKWM/UOVvmyGPNbg==, tarball: file:projects/arm-qumulo.tgz} + resolution: {integrity: sha512-GNfb2C0thI6BztiDRxWxekFhaNMrxfr49TUTM6I8FqAcQX3TZ7+Xn6not89GXiMWVathvrFf8TMkoJ7ZGrYKKg==, tarball: file:projects/arm-qumulo.tgz} name: '@rush-temp/arm-qumulo' version: 0.0.0 dependencies: @@ -15725,7 +15725,7 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-SliWaIN+Rcv9IO/Jg5OpZ8rxNzffNfZJOa375V45hPzipbZhzW0s+9MaxYzA3zFcbuiL7UMLpoOVYxWMQejEzQ==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-NCB8Nen24P4lV4Wy+a95Sw4HrMVkqcklyfs3HMOb0IxFrpThJiOJhS1rXkvD5Ec1okfBfNPcwzWQLvt3HOEjWA==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: @@ -15753,7 +15753,7 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-oHs4BOulQEkaG3QFPJe0IyomjAZEinjir0bYx2s68YRO+rGj0A+Sv/Qnm8LoB/6BTjUl42nLBCS7eJUpYe4WmQ==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-b/d81K7IFPOaKtope73jrqBUNX3I3gT8DCJD2gFLWxwmkkjD0CJLFOmMUhAxlIO0RSyvOakXpwYaKwsc1BF7nA==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: @@ -15781,7 +15781,7 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-iqNtY8YcvXuQYIeUxhbhCvkji454xHj9UjfVM9r6N3akRvT+oVW7sjpNmm6Gw589QjHwdQgR5EGJnRrTsUrMMg==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-OzGxbqydzboTjE7i/WUZZuPcWWP5hrWN1Y5sz51julbp5mrrCEsbAfLJ77/AcS2C8tjFQjkpoHNXbUkJ3QoJ7A==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: @@ -15808,7 +15808,7 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-CgDiJWEfBie5uPa9+Dm/wsTvLuvtJjhMB41s1uiteo4ApKDyqJhEEaSONEdpQG6LIgfrJiywobzqGUjNIfMEAg==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-vJd7uw+vO2EWOgb4Q2VS1w730vcEK4IKXWEdHKeULLiKQkOMC2R5yv+ScT4W5qLrpPWxofVGdtvlTChaVFuxNQ==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: @@ -15836,7 +15836,7 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-24kYQGbM58lv5R/61dogsGUC0izDyJKrMTR3KWJKYQH76CtODDn71J0E90qeyXrjRuwGqw+b34eZCaUqyUHX5Q==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-+BeQXBTf7kqyP76WWTlQv4QWnH7jTEp5YeFTlLmFPqNmW0Bc/Eo3A1CwWk5vXlax+CluToqUJWWwOlY0t+2djw==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: @@ -15863,7 +15863,7 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-mqMdKd0YceLk1s62hkd4wG7WdHbH+lAHLHvzg27AHCgw24bq2y9C1WuVSkhxVKk1TRx1zBihrxPy8Xb3fzEaYQ==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-4n8ys1OvtE9/Glu+R82iq1RAXAy8bQCdqfKCnmpi/XBBBTQy09gCxa2oaFd2gz2cvWpaQ+9iPEztdy4j/Vi5ng==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: @@ -15891,7 +15891,7 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-sI/vErh7yDc9Oufx+TIXMwNp1EH8DEznIA3832PJ9TeG+Z+dS6e2+b96N86cfm6KrXbRfGHnONJfp6BEH+3B8g==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-s+JbUbQxJxp9Xp8Em9GYV0o7ngPo55Mg97VaiwgBe6l9vu5LMcTTD383xdtwO7UDGkSfXEFUoNbNw+G4jKGtDw==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: @@ -15919,7 +15919,7 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-xnKnpIHxEpsKfRhulihBggq//JkicyBaY7eyKIFi1utQ7H3qO33ZdCaQSVpNULOUdnfwoGhS3lZeMvlrkIYFSw==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-JlXpIV1zrOr+LpiWchISq1AlyNe8NpFmbnd8Us1TNJ5UrYOv942PP25GjqjOTIPt9dfmvx7+WyvxT11YPK+Mag==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: @@ -15946,7 +15946,7 @@ packages: dev: false file:projects/arm-reservations.tgz: - resolution: {integrity: sha512-3iRs3Rasp6wqQReALavxv1Dyn08akPMzF72PJYYtLT6n9w0h+OhrmqJ93kkZlWbkY/yujmqHGI12z17zVahvuA==, tarball: file:projects/arm-reservations.tgz} + resolution: {integrity: sha512-vasJSz66UVx6WHC/riLzubuHEUXbZjRdSb4tWNUW3Tn6tflQE53bzn1ItzFVZwdGYkIqjAesNhiVIA9tmrogCQ==, tarball: file:projects/arm-reservations.tgz} name: '@rush-temp/arm-reservations' version: 0.0.0 dependencies: @@ -15973,7 +15973,7 @@ packages: dev: false file:projects/arm-resourceconnector.tgz: - resolution: {integrity: sha512-B9lagXZTe7K5PZ8NejCd5z8k3+7ZGwbdqlaHPH5RBrX55bV1IS4qhq3AJ6CuXVM8wejBdQYdu8wIdRc4KZsvdw==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-gy7eAtkdZt738VAx8eTfHQa5lc8Fj2FQjAk6W/uUVAAbmXLZ3ASm370F4gVOsRVUzxcZKVMKVgtx79xjiw6YxQ==, tarball: file:projects/arm-resourceconnector.tgz} name: '@rush-temp/arm-resourceconnector' version: 0.0.0 dependencies: @@ -16000,7 +16000,7 @@ packages: dev: false file:projects/arm-resourcegraph.tgz: - resolution: {integrity: sha512-zUH7LG2pwzVDPlZCI4VhBJre2Df2c33s7NV+ux4ZRc6MSlt1mcxtXxEYvfMXNf7+Zr+sZBXmfcMiVs8+VuhQCA==, tarball: file:projects/arm-resourcegraph.tgz} + resolution: {integrity: sha512-xQzcEpIRXN7JoZUW1lA8YasKIzAb8R53i9pJxiKq+OKSLqYl5h5Vk6Zbi2+LbPYRM0C+NlHm04r/gpE+eThJdg==, tarball: file:projects/arm-resourcegraph.tgz} name: '@rush-temp/arm-resourcegraph' version: 0.0.0 dependencies: @@ -16025,7 +16025,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-QKYu1rCesMdlYKEKRHiTU1UeDDxNFERyKyXDh2847lxymwPP/D1MRzCP//Ctri6pe2jvXNUIZQ7fGV9ufLdtyQ==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-Z51b5HFcWWH29xEmIXXHHtKVUfQypZzALV6iTjCdD0qXITxApCxJLFse21nYLA48sBUbt088A9GHYCIBD/m2SQ==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -16051,7 +16051,7 @@ packages: dev: false file:projects/arm-resourcemover.tgz: - resolution: {integrity: sha512-GfCk+cFykR+OoOwOAK4sETZulOSenwWMKQFKXow28F1TOsR7nWWRONcKMB0WOqsl4Os0XxMPF5y4uSSnAxx94w==, tarball: file:projects/arm-resourcemover.tgz} + resolution: {integrity: sha512-k7+ll78u2TfVXKR/W7UCIbPeSxCCrX8KSU+NEvUGgxNK+aygpqTmXUM8meudXQetPCcDa4TgMH/LbYA2ybzthw==, tarball: file:projects/arm-resourcemover.tgz} name: '@rush-temp/arm-resourcemover' version: 0.0.0 dependencies: @@ -16078,7 +16078,7 @@ packages: dev: false file:projects/arm-resources-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-nMgyss1eb62firJEw9NM09/3z5YvqP7giS46NZ5e9ll9yHX4cJ3NWT3wHrNtwDpvb9lrV84laOv1RI5gScxpGQ==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-bmv6pnZKwvc1JpOIRG0VLSIUFOsU3d1X9SzP2+a6PEdaDEHgPQCxT7esdcfW78m788GB2IX+eJAZ7/ftw5Nvpw==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-resources-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16105,7 +16105,7 @@ packages: dev: false file:projects/arm-resources-subscriptions.tgz: - resolution: {integrity: sha512-ZLi8oi6cLlSk+Oc7Crje7aaZRCpFhQrTIRfH3p9Y0UbxM2uNB2C3DkTw2IYyNqezxrhPZfHg+3OHmm1b+U0qEA==, tarball: file:projects/arm-resources-subscriptions.tgz} + resolution: {integrity: sha512-aQa+zQmiVvqTjQNxtLs23aDqz6HvjnuhasprXgO/HC3URmZHryBN9B5fFO1RquR5xkgPWdE11518gFpBNu+m0w==, tarball: file:projects/arm-resources-subscriptions.tgz} name: '@rush-temp/arm-resources-subscriptions' version: 0.0.0 dependencies: @@ -16131,7 +16131,7 @@ packages: dev: false file:projects/arm-resources.tgz: - resolution: {integrity: sha512-Qmu9lAuw2ebF6CJejpXYRp6msY9Tm80FEOUXCstYv1HTeuMT/XHWE51uiKtlzRX8mXIzEtKWqTLJbnA29HWAsw==, tarball: file:projects/arm-resources.tgz} + resolution: {integrity: sha512-VcsfgszOelIZOoH/4FhhWsUTtjFl2pvOLcQ3z2njGu5B8zkoIK1M1b7xu8kGp8b0iTnJUzcJHniFpXrb+9Ij7w==, tarball: file:projects/arm-resources.tgz} name: '@rush-temp/arm-resources' version: 0.0.0 dependencies: @@ -16158,7 +16158,7 @@ packages: dev: false file:projects/arm-resourcesdeploymentstacks.tgz: - resolution: {integrity: sha512-JYfii9hNv1nNo/MVURWinVZLvStXzUhgAFwWGhwda9MEVnGqWxC2chsUZmB4SGjnsIQITuH/ValmCIPrRI6ZhQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} + resolution: {integrity: sha512-lcPYLyrvFVCkBL19YeAJOCcUyfKqX6Nn2gKUsgvy29vISakXeveFY21qqBINa8/VgTCHOURhZ67CP8fDZ1umAQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} name: '@rush-temp/arm-resourcesdeploymentstacks' version: 0.0.0 dependencies: @@ -16185,7 +16185,7 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-IXoHjgmuDT6lZv//NRYrQorGCNV4qvQZMw3nqZa+TVETc7SXtZ1XUJoChT7hIIFnAbvYBZx+9trbunaB8a7Y3A==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-6dtp0PZjlfSwh/I+Qf/R4nUjW0BF6kY6I4LNSbGSdk+bJoAdZ+6+UXZrUkBfFjv//pNI5Uf2GBF5NhhzpewYgg==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: @@ -16212,7 +16212,7 @@ packages: dev: false file:projects/arm-search.tgz: - resolution: {integrity: sha512-Na4arZcPzswhzF8Fi0O0+dX7HyhCx21d/zu8uDFsqF4t7vhArbxewOFnYfMWGBubDvkRslDDUKWbZOsMI/57Yw==, tarball: file:projects/arm-search.tgz} + resolution: {integrity: sha512-g+7Hqxlm3v74YPvirCItNzAfEE+dFVKiZYfUTu8O8SUlJJqtcXWRcRu1XFd5sNrvjuPavzf61c2I1Oy3adkANg==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: @@ -16239,7 +16239,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-u2esuhP1W9Bw2VFdjt2PWia9UCncJ4MSKDfRZiBjompPLsoxhK6YzKNjzRlj6xy/D9CRRveQ7tV/1w/Jt7eCkw==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-qACFhnnwBFrThZ7rTUvxpSe+rFOlKRbgGZ/qy5Q6Mnu5ggDk+9p/7abIJG+Yyj8NC5HS09eELEs+K4eM9uB4wQ==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -16266,7 +16266,7 @@ packages: dev: false file:projects/arm-securitydevops.tgz: - resolution: {integrity: sha512-28flvZM982prcnmb138ArBvrXooi85fOQeMoGj3J0okzqkKWjtkmCtO6Xz9tJY3aZ/Fuvg/r5kHvgZbU0kP0dA==, tarball: file:projects/arm-securitydevops.tgz} + resolution: {integrity: sha512-WFwbxg49BxfXBOH0+8P4kdnuri/AH9oNPKYS9O5Cmi87313R0Eht/Zzgb7/SMY78yo3s5deoJURru8t0DNrh6A==, tarball: file:projects/arm-securitydevops.tgz} name: '@rush-temp/arm-securitydevops' version: 0.0.0 dependencies: @@ -16293,7 +16293,7 @@ packages: dev: false file:projects/arm-securityinsight.tgz: - resolution: {integrity: sha512-nmSllrgu/D2fIm0lEg+JBXXZszU/FM4LFJJkZXRDjLQNVUi1Lz/yz4x8b2CvoXsW1a871gTXOi8q1Y8gUpZc9w==, tarball: file:projects/arm-securityinsight.tgz} + resolution: {integrity: sha512-AQjct2rPlZn1Ru8fQ67UDbfVujDJUTnrHs+2Cv2ufopL6Orv5vVDBmp4kKQMIviKjTgDDyo0AVBtrIeaJCADKQ==, tarball: file:projects/arm-securityinsight.tgz} name: '@rush-temp/arm-securityinsight' version: 0.0.0 dependencies: @@ -16320,7 +16320,7 @@ packages: dev: false file:projects/arm-selfhelp.tgz: - resolution: {integrity: sha512-q0aIALRKdXZ7X7EweAexYcIZIZcl1CebIl5ZjMHrAMew2cA1bkpCr9Qt2yejiuO7xEZCDVFREZxCLwQODbagMA==, tarball: file:projects/arm-selfhelp.tgz} + resolution: {integrity: sha512-OLahXFLD5DfBdbjyUkVzHNRBhKeM8HSPBkkFKSVufIOk+EfPH6E4gAUMGoMXf12nZ5UIsSIDSOZs3CEZ5oe8kg==, tarball: file:projects/arm-selfhelp.tgz} name: '@rush-temp/arm-selfhelp' version: 0.0.0 dependencies: @@ -16348,7 +16348,7 @@ packages: dev: false file:projects/arm-serialconsole.tgz: - resolution: {integrity: sha512-i5RTkCVappoHBeA3b3r/hiST+az8+zDEC7CeCvOi8SAlyu58zJewIUn6AioE+ZKQ5g3mKL7vhWvr/VyA9rgTeQ==, tarball: file:projects/arm-serialconsole.tgz} + resolution: {integrity: sha512-dl5F+DsMnDb26lV4oUQ0JwXTQEZLk8iGTzLHO0XVUYw3WB6wFmeNs3Q5xaij/TbNOq4cn6fDtICW+kl/eLRyPg==, tarball: file:projects/arm-serialconsole.tgz} name: '@rush-temp/arm-serialconsole' version: 0.0.0 dependencies: @@ -16373,7 +16373,7 @@ packages: dev: false file:projects/arm-servicebus.tgz: - resolution: {integrity: sha512-71bEJOwUVHboeY+C685ShbjvT/cdO9NXdlcedl5eSugD32bShnObW3pKZ+Py0NiOxtCT+Xmk/gzZ0f0M0D7FEQ==, tarball: file:projects/arm-servicebus.tgz} + resolution: {integrity: sha512-MUuRxRAplWENpyAbZ9YlyNTPoMS6k8LfnfwqCt7g+TFqHTOsD/99ChEBqhB6be+QC9D9jmGy4J7Nw+JODDupvg==, tarball: file:projects/arm-servicebus.tgz} name: '@rush-temp/arm-servicebus' version: 0.0.0 dependencies: @@ -16400,7 +16400,7 @@ packages: dev: false file:projects/arm-servicefabric-1.tgz: - resolution: {integrity: sha512-nsxfrZy9e4+uvS0s4SnZVNA49Lmk22yUTB3TZRC00zzoGuTl2/zXgbxjJ/DCRXojTAHPxAj4/enrOMVwNaj9yA==, tarball: file:projects/arm-servicefabric-1.tgz} + resolution: {integrity: sha512-2wxThW5vKAnYilJYqr4MdEdcPMPiz0ASVLSR1Jd7AgBAeeS/QhMDD8H4bWnpqs/4WzdxiZk5a+2Qr+NOxy5l8g==, tarball: file:projects/arm-servicefabric-1.tgz} name: '@rush-temp/arm-servicefabric-1' version: 0.0.0 dependencies: @@ -16428,7 +16428,7 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-dHSXtV5HilhWtF8WyDnTJ7DgLe4F85DVzVMs8BbN5EDioNrdalZ8tzPk+BiGsyBrtQ/VSPsRC/8EMps7HWY4UQ==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-Co2PAgIlcFoJjZ3WHlg8TGDJCA0sdQLYXihgV0s0/Xd6sB9fXZt6NX1OzB86zQpWwF/ILhqQbUSGBVlhvdZ9eg==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: @@ -16471,7 +16471,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-H40bxL/Rk2irrl7vylbxma3yRTJ1CzRHmlbvQEXBpjKFQifkCACxVGP13HAMBcAbZAMlkyqsMDVgH5daiE8TXw==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-hKIFXk5ywgwQf3Z2KxLSVivFg/WlCUf0MNOS4g0/D4nzX68OcGbKEA3veA7QD+HPaPBxfh81JkkjKRvPNGc2ug==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -16497,7 +16497,7 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-ypfjkL6zxTQCeV1wGnuZ5jp+6xFn8xr3xxpSV7meOUpbK5g/FsPgAp+17VgL72PBWUOs7xXp5IFKYShcLKoX0g==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-gO1Ynv8xmh6gAV292Xg8lRnpIDUuyLER88wTAFfByirhpWhiAA36TevG7igdodB5I7LSJ7wgP6A8mHyEXFSNRQ==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: @@ -16524,7 +16524,7 @@ packages: dev: false file:projects/arm-servicemap.tgz: - resolution: {integrity: sha512-HcGK/ZGbBMFlRmQEjFOHxh2eEAiJD4oOktIWkw7b1ad1VSUayDyqEtyO+kwDD7Cye7+eqnOKK5KXtyq6bpCN/Q==, tarball: file:projects/arm-servicemap.tgz} + resolution: {integrity: sha512-5hAvmxN/pYBveHQdAWYkGNFpAzMJKCyt+cjS6CxHnZlxT9jmv0JmqZ4iyxrJY9v0tZJLf5iKpSkldSujFZuSrg==, tarball: file:projects/arm-servicemap.tgz} name: '@rush-temp/arm-servicemap' version: 0.0.0 dependencies: @@ -16550,7 +16550,7 @@ packages: dev: false file:projects/arm-servicenetworking.tgz: - resolution: {integrity: sha512-1xeaplkloqUsU44Ww4L31jRxPXDNeB2vwZ71Vj4IVGThs/bJwAGRTin4AniXTGiI26OXZyNNoGbo7EvqdYOAkw==, tarball: file:projects/arm-servicenetworking.tgz} + resolution: {integrity: sha512-K/vw/qAVpygyid7wTMqoM9xOHEddvU/xstuFkGbC6TWdBHpPHdvpwhgEEZ0Lg/LpUJAAbo/DZRtjX7Tlf235Eg==, tarball: file:projects/arm-servicenetworking.tgz} name: '@rush-temp/arm-servicenetworking' version: 0.0.0 dependencies: @@ -16578,7 +16578,7 @@ packages: dev: false file:projects/arm-signalr.tgz: - resolution: {integrity: sha512-ZmMAsux5HFfA9YBrhXDyL1WiehPZSn2EoKESqoG14Zeo7POAxcIkP66kHx05vkfOYLwmfYewI9wbp0tQ990Y2g==, tarball: file:projects/arm-signalr.tgz} + resolution: {integrity: sha512-psByUZapvok/o+/UzSkfOicwB36a/80uOzZNekSWT7gx/yU3DOjzzLJRt4h4EvH1t8K2v1u6EJ5dVqvamis9YA==, tarball: file:projects/arm-signalr.tgz} name: '@rush-temp/arm-signalr' version: 0.0.0 dependencies: @@ -16605,7 +16605,7 @@ packages: dev: false file:projects/arm-sphere.tgz: - resolution: {integrity: sha512-FecbO1rrKc54C8B70FYQblM9IMZu3xp+MYvqp1u+9VUoSGFsmkw47mZap9ApSqr2fbzXDFUVwl5faMAOl9iDCw==, tarball: file:projects/arm-sphere.tgz} + resolution: {integrity: sha512-7bB3KNhZkCOV4UuBBjk1eMAWMLgPwabZlacuN3UWTGk4hZipIi+BzbLxq59T8YR2jJVd/RjpbkTNf0EpImLDLA==, tarball: file:projects/arm-sphere.tgz} name: '@rush-temp/arm-sphere' version: 0.0.0 dependencies: @@ -16632,7 +16632,7 @@ packages: dev: false file:projects/arm-springappdiscovery.tgz: - resolution: {integrity: sha512-A2tlPSTSESOP8s72ohjMiNNc7W7kN8Pgw9wsV/zDSF35uegD/9bh23qRy8UWHk65fzivRT6677tPfLyYIVrp/A==, tarball: file:projects/arm-springappdiscovery.tgz} + resolution: {integrity: sha512-Cvx3054L4wjXLqPYez9k27Kk6jV14PEnCRZQnX3E8JintkVnee/s0LwgDNtaRMcIG0Nwctmp7iJb4zUHdzzDqg==, tarball: file:projects/arm-springappdiscovery.tgz} name: '@rush-temp/arm-springappdiscovery' version: 0.0.0 dependencies: @@ -16660,7 +16660,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-ex3UJHDftkICLCA5doTfowXFXLLV4D2nc4rTG/shZZjNsxDI92pqASoxVQgatsHDeFd4oklXVCoQHIG105bc4g==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-f2JeKbczdfYUglBcV15ua5iQWX0+kQiuANYmKb2jIr33ZvrqI8ITj5nY9wJwwf39VjknNUqG+YYlt+AgLOwzLg==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -16688,7 +16688,7 @@ packages: dev: false file:projects/arm-sqlvirtualmachine.tgz: - resolution: {integrity: sha512-/lyrMBelmHzvGtPf/WfQd7Ie/3zjXgC4QmkwnRkPtiqCf+0DXIR54w+MYcsmxy/5XXKxbpfDRNOgPQqejCShcQ==, tarball: file:projects/arm-sqlvirtualmachine.tgz} + resolution: {integrity: sha512-H3PCZcUj4J8LGTEMYqRtR3rRuqaVZ+J4ntuGONNiBSdDosHkyR2Zb9PCqJ6BpEyD+pY+XGIgO0NrHOf/N+9Fvg==, tarball: file:projects/arm-sqlvirtualmachine.tgz} name: '@rush-temp/arm-sqlvirtualmachine' version: 0.0.0 dependencies: @@ -16715,7 +16715,7 @@ packages: dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-I6N9Dzp45uKP74OaTD+Zz0tsWS4nPf6e4FPs95IgGDCoWzeTDnesgj36U3rf/cq8ZXMtULEM3kf35aoe62QTzQ==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-A/lDTGj63BcUVlKDracjMmjqLnK6BSZYyVww2uvaHizZ1oKkQNPHdrSwy3CsLVZm0jzcM5a5oA47AyxQEGOhEQ==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-storage-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16742,7 +16742,7 @@ packages: dev: false file:projects/arm-storage.tgz: - resolution: {integrity: sha512-NaCFNQ7Pdl53jqJiSRCyGeftSaEiLOoAViaxVEz0ATYqkQTKX8GQgRtZya02ZjOX6zE7JyPAWTslA+IFTXLJVA==, tarball: file:projects/arm-storage.tgz} + resolution: {integrity: sha512-IsrRlXy9gZvyVd2b2l1pwItXE0Ny2/KktW1yHAL0SDZQrKdVDIUQl59swXoexqgYTGR5NOPKfXFVv2dd0Wflfg==, tarball: file:projects/arm-storage.tgz} name: '@rush-temp/arm-storage' version: 0.0.0 dependencies: @@ -16769,7 +16769,7 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-BmqN6ugeFzb49BkhF1bWQ6xJ8CD5y0mfAg+d+ZweVu0kjPTKCbhF8+Mh/mLpJ0zp2ha7S0EEE7ePWhTk0CAVpw==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-fM8T5Xb2jI4+F4Qh6yq2mwkfi+pSw781mYwVS9QvZcwoEpSAr779vVEdfdjyHseT5aGvVxMtdHUoSadfFgDSGg==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: @@ -16797,7 +16797,7 @@ packages: dev: false file:projects/arm-storageimportexport.tgz: - resolution: {integrity: sha512-GHyQElSN8jBqq+5ag5eZrOHi4VeXfOywe2GaORyTnFXTte2XTYSgpMxXfpxt3DPybZej2jieWmxqUG/b6VewqA==, tarball: file:projects/arm-storageimportexport.tgz} + resolution: {integrity: sha512-uiE/VT89Q+7TwXl3eBjcvDT/1gpGCMKWY1mT01K6JHicwGHmYrf5TxAEBw1RXKywwQ1siEk04dtTDIzyJOJVhg==, tarball: file:projects/arm-storageimportexport.tgz} name: '@rush-temp/arm-storageimportexport' version: 0.0.0 dependencies: @@ -16823,7 +16823,7 @@ packages: dev: false file:projects/arm-storagemover.tgz: - resolution: {integrity: sha512-3PKBf2cm5mX9aivD/2DwLgpn95PyO3thDFjJ0CE58D1UzmwJNUOmhsEZ6ZKy7pFFmh2jYmTFzNIoU+xwg3sh7w==, tarball: file:projects/arm-storagemover.tgz} + resolution: {integrity: sha512-MFYVDNTzld7P77u8Ahv4hiPhUR3JYENMX3X+H62gfFzIvea4yswoKJ7k5GlzDG1uJ/grAUz5oIrnNXz3j7ln0A==, tarball: file:projects/arm-storagemover.tgz} name: '@rush-temp/arm-storagemover' version: 0.0.0 dependencies: @@ -16850,7 +16850,7 @@ packages: dev: false file:projects/arm-storagesync.tgz: - resolution: {integrity: sha512-joRm8SmJIc86XZEolXZdFUCn5n/lnMynWLeX9dXR24yJxpY8wpO8bwJIKxfCPbUxohHiFq8lIxl63rEwgg1eCg==, tarball: file:projects/arm-storagesync.tgz} + resolution: {integrity: sha512-8eSsDVILdgrJHqo9fh3hVqo9OAlTz5gu/mZu6TXBbTon2oAhQ/dVFji/DsmgqTC+Hp0OqGsZT4W1d0b2X8oQOw==, tarball: file:projects/arm-storagesync.tgz} name: '@rush-temp/arm-storagesync' version: 0.0.0 dependencies: @@ -16876,7 +16876,7 @@ packages: dev: false file:projects/arm-storsimple1200series.tgz: - resolution: {integrity: sha512-j91FpbfColfGYFcqG/Zdd5iJsHU7m4RzS3ilxSuMneHS277eCwpPlLpx4uLpFQxqTXeU84OJZI4zfMAzUIuc/Q==, tarball: file:projects/arm-storsimple1200series.tgz} + resolution: {integrity: sha512-KQePcPFTCqHq+6UQ16uMNhkvwRKVLB8hduJkVh4OfsrA9kfffsPifxvfCRo/SgMg9sxWuhj5bqvSiZD7NLJWXg==, tarball: file:projects/arm-storsimple1200series.tgz} name: '@rush-temp/arm-storsimple1200series' version: 0.0.0 dependencies: @@ -16902,7 +16902,7 @@ packages: dev: false file:projects/arm-storsimple8000series.tgz: - resolution: {integrity: sha512-VRQ/YjAU5r/GytNGuxkLQm8dY6DYauU8tEZK4QiuHDKK2PAMi3htlfiG9zgvcZpY5qDhgCS6NG6bXHLIJZ13sA==, tarball: file:projects/arm-storsimple8000series.tgz} + resolution: {integrity: sha512-75eXnb9cnIg1faRH4oHjM0+8FtD3vmKtb7oYVhV2gL0O10Cr8UN8yQ8tA6N/cL/Zh+4O4cJDQRJwULKHrGkb7w==, tarball: file:projects/arm-storsimple8000series.tgz} name: '@rush-temp/arm-storsimple8000series' version: 0.0.0 dependencies: @@ -16928,7 +16928,7 @@ packages: dev: false file:projects/arm-streamanalytics.tgz: - resolution: {integrity: sha512-bMBT/aKNcnJEPV/Dsoyly19s7obyxzppiRLG8QPeFpIjI8UarUMpLDlqPc7yYG767tbtOiqsTjQGb3kAE9VPNw==, tarball: file:projects/arm-streamanalytics.tgz} + resolution: {integrity: sha512-lUO5FclctX19VVQ2hjcS9wBbwCjkgS2ruhc/e4slK88hBm6oSsdR5ZFGSGXlIVUaFfoMiDqZkN2DvDeKeIsz8w==, tarball: file:projects/arm-streamanalytics.tgz} name: '@rush-temp/arm-streamanalytics' version: 0.0.0 dependencies: @@ -16956,7 +16956,7 @@ packages: dev: false file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-MFbYzgXZkhn0o2uvUgheWdCscLB6BJQRw1bxodgsbgBxOLjl6NAYiG6K8PJgQtjT66Km7/J6TjAZmbnG3fEAGw==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-YRcQwLa7VJXk4rqSbKwvOrLX3P05ASOzFq3Yv/j6kxp7cRd7MOtcWA9Lkio563EHmfSmJ7cBnQGkpaWYQWW8bQ==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-subscriptions-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16982,7 +16982,7 @@ packages: dev: false file:projects/arm-subscriptions.tgz: - resolution: {integrity: sha512-u7yuFd+M/tLW7d1vgyQalQUSfNPutU1UEbfpuMxRMdzFvzUJdVbxDy6ktk6YXDNg34X6AjDdi0T4usMfip69Fg==, tarball: file:projects/arm-subscriptions.tgz} + resolution: {integrity: sha512-M7rp04rhDaNUbmRR2V57BZ6GomyX37GVC6vUmtpV+4DLyJADh6Brl+1btNL5EN/0MySAYgcOBjKo+QmeNMWrhA==, tarball: file:projects/arm-subscriptions.tgz} name: '@rush-temp/arm-subscriptions' version: 0.0.0 dependencies: @@ -17008,7 +17008,7 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-3JVcl02aSpUgesD81sxncG7rK0U1nKN1aG2PO76mEizvWZYCtgU7j+UtFaBKr8hQQgnFv5nKUmc2Gg7ixKc/4A==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-XgHePCWuTKjXuSHkZz20+016AqnFYLJ9cVZfFW77mqqU9JfJ9v29bYUXkJroBv3AWSIbRGE16qI+JIyv0nHK9w==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: @@ -17035,7 +17035,7 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-MpXgMplw6Ub2Cq3+wICiu2K434EIL3VHbUY0gQgARXmHqFYb+AK8133N4ARiGI37DIjoGPeQmzSsHVWGZnoKGA==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-kOuS3lRnosyB8YQ3TziUxlUwgwGPCjz1Z7jlvXBMgH8TO8omKadOFQY/9hWQ4v6RARlVolwSHP1GNSvePmbfTQ==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: @@ -17062,7 +17062,7 @@ packages: dev: false file:projects/arm-templatespecs.tgz: - resolution: {integrity: sha512-e0UAtbuCrJ+ciKRKtK6GZCxe2ZzA6SnOJwMwkrWGU4oPROxsapRN8p8DjNu+OUAqLZPuMrOIZjrW14Y1It6lnQ==, tarball: file:projects/arm-templatespecs.tgz} + resolution: {integrity: sha512-EmKy5ke81PZG2w6t/d67Mqza32v/gsJ3/q3qSIfIU63+QCvmfXqcy2o88YsvLNPNRfFjylRJMSTgSwJczc7W6w==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' version: 0.0.0 dependencies: @@ -17087,7 +17087,7 @@ packages: dev: false file:projects/arm-timeseriesinsights.tgz: - resolution: {integrity: sha512-snC/fy5M7czA6QMqbhHDAJpOW7t2OUU9K50R3eT/ZExoqsuolkYmYPHV+UGP4H5RqcarIlIxT59+t0IoQnVVcQ==, tarball: file:projects/arm-timeseriesinsights.tgz} + resolution: {integrity: sha512-XoZWa4Jt0GMYTuSd2qRUglUWPG/sa/ty6703EJX8r/b6x3dd2YKucD5Ke5p/zq7csu8uCEb/klBkduj44vuRXw==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' version: 0.0.0 dependencies: @@ -17114,7 +17114,7 @@ packages: dev: false file:projects/arm-trafficmanager.tgz: - resolution: {integrity: sha512-K2hxsxFmVn+tzlhpo+KQzr5gIxRY0CWyQY6rKQJ/kll1ws0Q4f/uKThWAju4uAnr3woVR1UmX4i3GOIyNObABg==, tarball: file:projects/arm-trafficmanager.tgz} + resolution: {integrity: sha512-bg8nHImFEb1ciZRKU956sIjJGBNyqeckeiwaVbHrFtYORI0Sjt/2VNMTtAApCxJ38UASSisSVPUW7njG9sSEJg==, tarball: file:projects/arm-trafficmanager.tgz} name: '@rush-temp/arm-trafficmanager' version: 0.0.0 dependencies: @@ -17140,7 +17140,7 @@ packages: dev: false file:projects/arm-visualstudio.tgz: - resolution: {integrity: sha512-brjdBlZByMiKwKgdpxJA0uhCCg73m5NNOffwG5Wfli2JI25oPcnXNk2Vw0mghamnamqOcak/6BDi1/+7opOILg==, tarball: file:projects/arm-visualstudio.tgz} + resolution: {integrity: sha512-1Y9NsgDZSlN8vWd6LCK0Pem/9NYpSWamCh/bWSGLcs+UtmaUV1GuSwMnzjx/vVE6+ZJimBn+1FreRI198JVD8g==, tarball: file:projects/arm-visualstudio.tgz} name: '@rush-temp/arm-visualstudio' version: 0.0.0 dependencies: @@ -17166,7 +17166,7 @@ packages: dev: false file:projects/arm-vmwarecloudsimple.tgz: - resolution: {integrity: sha512-r9gtrD1gCaCbQ1XH4XSM/LfdE6keWeOaiSbPtb7QRs3f4UYar3/8zOt4uXjVNpnC+ho0o1bChpJ6y0rFsaPe0w==, tarball: file:projects/arm-vmwarecloudsimple.tgz} + resolution: {integrity: sha512-zhj2hQWVp2fvoUQhs1HseU6eV84EciqNDRA8j2OUtXtG0APU2XnnC26xb80cWJlk/mfHG5QCjq1arUi2zUeQDA==, tarball: file:projects/arm-vmwarecloudsimple.tgz} name: '@rush-temp/arm-vmwarecloudsimple' version: 0.0.0 dependencies: @@ -17193,7 +17193,7 @@ packages: dev: false file:projects/arm-voiceservices.tgz: - resolution: {integrity: sha512-3eB17MMGPKdd1mp3nXelGat2GBWw3Xy89Af4xJCFPYXuqs/Clnavu4FhsDr5osCEx+JR+apEIdW8ObjL3KMA4g==, tarball: file:projects/arm-voiceservices.tgz} + resolution: {integrity: sha512-IxfZerPD/9wJd0cnwIod168ubCV8tbS1XxSR5LUTTnmMErHluo2GID+MzMlH/5UqyAj1vA2m3FgMJr8x7KAaQA==, tarball: file:projects/arm-voiceservices.tgz} name: '@rush-temp/arm-voiceservices' version: 0.0.0 dependencies: @@ -17220,7 +17220,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-kjw/v4io7Hov1LS/yzhZpDvnqeubKxwt+hVjxp6FFBW/HUVCOOe4VQAWlhhN3BOBV5KBtokD7G+iT40k74uAaA==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-OkIVPy5PpCCVJsorwfLwI/vvCcnQn0t2UU41O4QRbmosZfwRbF38+Ir0Wax3+s+d0kyRw8vMVX3rnovasBfnRg==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -17247,7 +17247,7 @@ packages: dev: false file:projects/arm-webservices.tgz: - resolution: {integrity: sha512-yyBiTNj8d3HVeYHjBlXZmvrzBKEw/uc2HgD/520PCFunarhhGU2aHcM7963avjSKvO5hDKlPFPbCBWnu8m0hnw==, tarball: file:projects/arm-webservices.tgz} + resolution: {integrity: sha512-Bs60yKzm+nOJlATCNhnb8/yHZ6WPQ5UOgPkdayU0nmdXk6FXn4hbM4zdVVeUWu+HjsEjdDjABabvXCXGINrZHQ==, tarball: file:projects/arm-webservices.tgz} name: '@rush-temp/arm-webservices' version: 0.0.0 dependencies: @@ -17273,7 +17273,7 @@ packages: dev: false file:projects/arm-workloads.tgz: - resolution: {integrity: sha512-XKudilLFmlEgKCwBkIm8nfpwBGLogLxfz3o5CS3tEm2lFIleiqLxbkT/TqJ3Gmi5D9/XgeYNGI6+2tUEyW0nwA==, tarball: file:projects/arm-workloads.tgz} + resolution: {integrity: sha512-lr5KIJunk0HbSI18EMRZhtKgzxwGjq/Ucy6PrizHnbUjTx+6sNI5KWvzOGCVd3hVBrmgag10dSq7X6abx9qgEA==, tarball: file:projects/arm-workloads.tgz} name: '@rush-temp/arm-workloads' version: 0.0.0 dependencies: @@ -17300,7 +17300,7 @@ packages: dev: false file:projects/arm-workspaces.tgz: - resolution: {integrity: sha512-kI0Z+inDWhOs2eqg0lqAc4Q/2VhtxMZaIm6Uii4xuyvPkm9B/LRQOTJabYoOdl4rbFZ918sJbA9elNHM3/nd8w==, tarball: file:projects/arm-workspaces.tgz} + resolution: {integrity: sha512-L8DySKHpx3B/lB3Eem+ecbloZWvHXe4jSJnJhytVZGYO89/HOM+Acp2NquPbzzRYpHp3geVLQnZu5QqcfvAYLw==, tarball: file:projects/arm-workspaces.tgz} name: '@rush-temp/arm-workspaces' version: 0.0.0 dependencies: @@ -17325,7 +17325,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-YwIN3qeropX+TPwF8EdEBOidsU00CxgzefGqPUVjIDduG9miM1hTUgN7W+yHW597qvL66APhxN0q5+v6RUiAAg==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-Tyyw19qYotupz4mlS4DmPUF2zB70bpChZno35Q4D+A1PfIgBKI7ao/xnMqrNV0TlcVjq3w5BpI2+IOZeWnck1g==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -17375,7 +17375,7 @@ packages: dev: false file:projects/communication-alpha-ids.tgz: - resolution: {integrity: sha512-8yd47IqUf2ma+MaLeDBMpoUUaiJQU8g/vXoZeOzM7aBnIWQZ+pynNBbo1yckG4XJ7HvMVLAhGn/yBT453ko65w==, tarball: file:projects/communication-alpha-ids.tgz} + resolution: {integrity: sha512-294gcuMdC40IF/5CXi/H5JRQOfTEZYLXOoytJS0DxsvUxbCg44Jc7fGIelw5Q5FvF7+UOC7KmvjWEXy5JK+E5w==, tarball: file:projects/communication-alpha-ids.tgz} name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: @@ -17418,7 +17418,7 @@ packages: dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-LzF6jq2cRdsVswdEp93ACi2iHYunNXUaoyvc7xSDzIMtqQZOBMC3zPUvBz3PoMQPeUTW0gC5wZEPXiJ+SujqQQ==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-GlfaW8LpMQIUhPvcm8hPXAhIFXJm0ya38369m1RHeWxOY0MMGU11jUOYLlv2FLUVEIomHS9Qsj34SLNxiZ5s+w==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: @@ -17463,7 +17463,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-zHfAT3Jlmoxh9aAFe7K6Oi5Mk75jpndAi6emM2aNafxxM10wJFiMrKBSMIeo56d1qIDxNiamDRAxgXcA17bAbg==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-AQBomA10nLQB2QRgSfR3gWNrxtHCz+4PEwfy3RIIV+GUzKL+ERsvsaKT1oMe7xtRGPcV6qBvT5wuirJh4Wz8lA==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -17513,7 +17513,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-9ElzIgkR+3Kv6IhNRJt9atGlIZa97gqjXCvVD2WxlrcdM6GODGRtIFS8bNbcUFywbJP3+2I31YE4EMsuxGS6oQ==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-60J2fhLVxzSYMGCI4mFkiVH6NmTFd0DAhQydqgYbWzdYThUNyBACjHU7eo3hll9Kjun7KtezhJl8V8w+dEmy7A==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -17560,7 +17560,7 @@ packages: dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-KdQRPiGnVECE3zjqt8AiHtvluFeGuZwAHTqWjvbLNGVEfccUh3a+85viGKC34+PLilPpJyxUtjJwQmSgrJOAag==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-82DSQ18aDqMYJztC7/2cR7p9zFQ48gTZVQGR1kABj0OTtI+5LGKPGGGuRWiqiRbf32OJqVIyKgGKIyFrS+CXwQ==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: @@ -17600,7 +17600,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-zfrzDjBCmfhJBcv9semQ+F5QstOdvioprljAVPNzkCPHRG86PqhliRrVKMd7k33sRMxtc0Fxi+zeIDkntvoGIw==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-n0zbMYfUqfxoIfuoiGKp5zvCB6PgKBTZtg42KCEpo8m4+vw6w5ncYRG+ZGNIZT/BCv8vPh8GkPxNGFH1a1R4Dw==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -17646,7 +17646,7 @@ packages: dev: false file:projects/communication-job-router-1.tgz: - resolution: {integrity: sha512-+NNoBNG/Bl9XQEy5HX+7uYcxGjOUMNIJowNfJK36J70rFZ0xPY0w1mxYO2IOHgmCDW/nq5EMcKzcSqcEEFA8fw==, tarball: file:projects/communication-job-router-1.tgz} + resolution: {integrity: sha512-TAYak9UA+YtHtXk9/DRIGhSOWuXv8KOxdPEo9Mxz9G8EsNWGeA18Hi+Qe2AKo6XcxX55wZDxkyJheBVVwRzJJg==, tarball: file:projects/communication-job-router-1.tgz} name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: @@ -17694,7 +17694,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-desk9yMknQZik9abM0PiJhgOyw+Aq3MBTiSFM36lA1c8PGoR8NLXGnoe1rl7KyEnqnPO0CqIs09AAeAs9iIeSg==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-HBXK5G5i/gMmoZH7qaA7KeN+dB01FDAj+v1S6OErZTspJNMSw8Nz+KY75OjHWOLV2XfyIx5endQH1BgPYHewqg==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: @@ -17736,7 +17736,7 @@ packages: dev: false file:projects/communication-messages.tgz: - resolution: {integrity: sha512-ALfKMarmraBZVs9xT6K7B2sMkt931FOSYzjXc5h3FounSsSuHbWiDbv0Cn4ywQqWpZWb5bUWsJURuhbrEDxRcQ==, tarball: file:projects/communication-messages.tgz} + resolution: {integrity: sha512-ay8Z7Sikte3gL1nRo6XQGltuZAkclwGt6dkZANAd/bltC4f15OpEcWT1XDqcNlclsCS2QVaPQdAd1iduVPp2Vg==, tarball: file:projects/communication-messages.tgz} name: '@rush-temp/communication-messages' version: 0.0.0 dependencies: @@ -17779,7 +17779,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-MlzemQSCkDYbcSrR9XBDhjHi5Z3/asZDkC0qcLpB8cYtx3IKY+ivG6yNseQmN35Vvf4hmVn9LofMFfXnw0Iziw==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-FYD1FvbT7KM1L10R+soek1v49kycvpzt4hk+Tu/TlkAj/VWnfrv0o/z6Bu0iETelTDJIfaiL4vR4Ju95hsdrgA==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -17825,7 +17825,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-JzXOayITg3nqzZ27xSySo78kW5/DPgSpLsn0fOWUOtw2sQbv15ZeDnYXb11eQ6ly8Sts//ii1jYhf3yw0+vAFw==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-C/1Aur+M6cFGETSxmpjH1N7viR/S+CPeDL9EoqfnrWLfmrxKSz+3OhVs5MQdZYlxu8X39+oFuh6SVxPcCs1BsA==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -17869,7 +17869,7 @@ packages: dev: false file:projects/communication-recipient-verification.tgz: - resolution: {integrity: sha512-hMfurY3Uh2Bs3QmOg4DJ0mzlycC8l37MW8PghNHNgHQWQ61VUVCFYptGewt1p4endsu9oYrLqIgv7UuXD6PSpA==, tarball: file:projects/communication-recipient-verification.tgz} + resolution: {integrity: sha512-mGvSiGEn/LCH/HebBz5bVCwWRnoPNwtRoUZ5vwtMNb7yCPpqpg7sAcg3IZkpJaAbRZjiTw4cTvDlrZfcqiAh2A==, tarball: file:projects/communication-recipient-verification.tgz} name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: @@ -17915,7 +17915,7 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-Jp5ZETyt7ubXG5sGlg42nfxPsFPbpsDvA84+5m3kkjnkpc56boFDtJT+2Fc9ZF7AQ3fCzA1diA1MDtSCAEWo/A==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-37laV/u3tPNunKHVlZBx2aDk0c7iJA2isAYHCaDejCapWs5ox47yAiV47jeDqLWfvpLkj24VIfxOZHrJDqq2gg==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: @@ -17949,7 +17949,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-c6gu2B7TY1jOjDgjMnncaXR69eRonypm26I++NV1tpuBZWSdZiNqPwkxQv2QcFzPb990Qd5e+8Duw169tn+Ajg==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-SLoCCQkqIbUrmX4CAtH3QLKxm0GM4JXPX24ucoXxP43UNGjI/83x35ZN1ryDQSzTKAZoVj8w6PK0xSpvecyc7g==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -17995,7 +17995,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-AG0uIUZif3jDOmxdY78S9EJbAF1SU9G6pF12/q6hVPmrKPNdND06domPdkp9QX2D4dkJNejEIrKuMQgr96jpRA==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-QH1ojOfspANa/398LyCbgm65fB7oCRClO6dTizPduJp6RLfL6BpNkQ3Z3PfkG6rp6WGQZ1V1hXiV75ExSdFJeg==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -18040,7 +18040,7 @@ packages: dev: false file:projects/communication-tiering.tgz: - resolution: {integrity: sha512-C/UipvVfbb9lMrYtG9rZ06v/lSCOuEyENCxu4UMKRtJ9iIbPwTsfPOHQNBGZo6LIlY3hO5AUqrbGcrDB8ueiIg==, tarball: file:projects/communication-tiering.tgz} + resolution: {integrity: sha512-BFGZCZu4YmXn4F9PYNbDzz7iCDFnDsQgsJqZ5q1KbGicMXpKBpC09SfjXZkQA2eiGjAlg6T5f8n9MeRfvYNUXQ==, tarball: file:projects/communication-tiering.tgz} name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: @@ -18086,7 +18086,7 @@ packages: dev: false file:projects/communication-toll-free-verification.tgz: - resolution: {integrity: sha512-Lnd58M5AuJ2Y6sNsumMKfkhgnnD1bF02Mn5fthFjm6K4vx+VnFxxLbgaUksMKBMvlrVV/+WnvMRWjNk1GzFYEA==, tarball: file:projects/communication-toll-free-verification.tgz} + resolution: {integrity: sha512-guA0GcaKeK5ePDFxXqegPcvAi6bfjF6H+IBcL+H0/hvEve5gPsszaaAHFTe1gnLQP8ISZUJydTQtYHJFQ8iOew==, tarball: file:projects/communication-toll-free-verification.tgz} name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: @@ -18129,7 +18129,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-PS+z+CsVtMitqUn1QCt0cO3URjvFkEq/UfQM2IPZod4x+VRUpYLDqEhysatKa6nXxfF+lg30KewHMOvn8SJ02A==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-9idUUYAK2cpLiiBo0CzOkySEf/VZ0gxKOQVR3Pq3MZ5rAFSqIdIV/7cla5qc4oODAxnoa7YCBVSfYi/vG62R5g==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -18157,7 +18157,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-ii92awiqoHoZc08k2pJO9Q19HWjKA+oUR/42BFtE3HyTtOOODGKG2q3DdfUiPYzNKIfRGVNwBUkPG7mgBe2ZnA==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-3RspgAOXX3qvk3JBFV1rdQYz8ml3jB0RNVF0zoe4Fg8We5BM3ERneXg5GFkvpQWQZpkY3MYfRjb6H7eY5dMqgw==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -18201,7 +18201,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-h6a/mCt2qYR/JfmGNeige8PDCTT3/8Vpkj9FypbqmH3opXycLtaN5Dro1f3ejlV9t3F19A17GrSMW+WD77waLA==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-ICsMjmllReqeC1y07hti4J86Udpgn1BXyJtSWi6lvsPiiHPGM8NlciGqN4QNLvV8lgss6H1+gXwExsxkRWDyAQ==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -18244,7 +18244,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-1LK36hxl/yFX4MHmS5CUf58rso7ZrsDtta31EihcL2mIW0rMVX4dlwG4iu2NvRvl4W1q475ps748uDNjE5Z21w==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-K96YceOVe8qaxhMMzBkZCoFxcj+pj9B1nSfQHQfxy+5DvE/XnGANhIyCZw3pO8uYhmIMZW1gKVTnZTV3ObV1Kg==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -18277,7 +18277,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-OLJyHTL0U4vLGSMZ1Uwm/cbaCSnQpJWNwZxfuqyuHvtF6GoyCXBb9RdB6KZgMhJJgBvEZr3BhxTqM57nciV7lg==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-yrsRgyVw1pJ406mbPES7sVLkTnwYAoJuy5L09RiBVRFG1GTvV5qUlrvL+uAAL7xLWAL8+vetNYYTgZqPFN8KOQ==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -18310,7 +18310,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-J+mQDVAxm/CPhw9yQFUrQt3TLclaYwfzkmNDWVcG3wYLZPyNF6m6Oz5ZyzQpwtQgA1GrZFMtJ6ALGyXqdOYGww==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-38pzXw+IilxQ47iaH8qqQIDKBXJu2dnmz+293f/E3wOoLQbfVnkGMPeM+U9OnsSmUXax5cn7nObnV0nF4CDLDw==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -18343,7 +18343,7 @@ packages: dev: false file:projects/core-http-compat.tgz: - resolution: {integrity: sha512-o4+VSa/YjxAuW8meTMp04lfhMav4XhxI2mQBUsgLm6qrsG+UInoYc1XjeoG9dxsSbtoDT8iNguuNKzCXTdAEnA==, tarball: file:projects/core-http-compat.tgz} + resolution: {integrity: sha512-tJPVNWs3bvk80ejwdQWP4r+PL5FO0v6SJ40GugfqBq8vserFyZxRkVq0zDee39eORw1zVDyGp2XfZMY6BBeKxA==, tarball: file:projects/core-http-compat.tgz} name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: @@ -18375,7 +18375,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-4z+td5KBrB4E4AC1W8sIikhPFggJTtbjtzYitU01rvQe6H97SnwxgSX95X3VYJuuz6FTtaTu8Ygodk7U9AvdUA==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-I2vOznyNVg96o2ndmFcAi2oeJ4sM38eR0ueE6mDKa1DCg02qlf80RxrlRZGUElS19xpWKGbdnERPqCskAMyjSw==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -18408,7 +18408,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-ZSI0Vg4yD2/EK/sq4+YxdzQy9YGswtLd5DeTD397iaMoy0vyp/6BKURyIPiSoBTofFUIV3j7MwaO9tfkyHbT8Q==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-vvZhetkvZ2gG2gxrDKB3AK+6758n4iCXqNQTlWCX2s3JHTGFhkNXQCBzejDjPVyBAA4UxCCsFJca70eX1J2h4A==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -18441,7 +18441,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-SxZK8Sn3iHsCf4SUWs631chCquZR4EoAnGCZIBAN53fzEx7zu7Fn5kMgthrV7k6sZqNh3Gr+2UoTzrdfd96aKA==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-e72dDkqu0Svpxcftt3FqHr1KhLRk8t8Bago/FyrchzuS8WJB2Z4BoU3rA4dWt9GM/7Sa+CQ9V1mn+5t6J0407w==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -18476,7 +18476,7 @@ packages: dev: false file:projects/core-sse.tgz: - resolution: {integrity: sha512-SQ12AH5WYq1DSw8s4W2KBK4lI0JqidtDTYrSBid8ji11C+5EG6brZOmlEsstwrE4/ou2BRGQZjYOiFhCQASPOw==, tarball: file:projects/core-sse.tgz} + resolution: {integrity: sha512-0ulh4nAfDJFxvDkzU3PKjDgRSIUPsB6vMgZ5/U0xPNS7JPPF1q8h3cv/ZcalSTNDdAAuGihR8fEqd/JeaflLAg==, tarball: file:projects/core-sse.tgz} name: '@rush-temp/core-sse' version: 0.0.0 dependencies: @@ -18510,7 +18510,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-OiN48Pr2CrhzGy/wuAmQKNxNq/JVEDsgVVIbSTMLBh09mRgHVAt1dDP2RiazPOUoVgO+a8sg0lUlT9UuJkbLQA==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-l14HhQTeoS4qlO/6BfJB4/2Z4KTf3qPD3cOGuO1UJIvYfX0mwmwJHiXc7VLPwCL0khQr8f2rhwfxS81pJcPAlg==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -18543,7 +18543,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-m6EGouRXU6ZC5lviRF/UxOy9EcUOR0s05AMbEYkhx9w71Ohu4X8eWea8RiX5kplEaCvQj/Pxpjpk+FqIMiq6tw==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-b1AbMmtrh+KrnMICvIwX44gHMJ8GET4Hof9rl6JAmrc02wDYKa56ZHkHaeQg+ajFIL2tdJnm8Fp8kaDQY5YSUQ==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -18576,7 +18576,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-nHFQ7K/R0RCToo50zrD/m7qx1IwTGRhgSD2sa/u5eP323N1Ekv9SolsTKReAM3bqD1PPirvytI8pP9WC2dvkpg==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-9pzkE3iMmjofYRSecx5G+GoXTBh7IkDfBph8D+Bi89w5fljuGlyAx7dcJL2Bw8+lr/nQEifF9vlu8Rq2WjVw4w==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -18611,7 +18611,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-QvMe4hvJqxGu27gFk9gSt5x0vTeAtrKAv2YfWx1f/lkIeVBhzS4PeFaw9+Gb3cfDLIqB1l9KUkOgoZzWbjgLAQ==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-g2CHsQoYTDcTtSfv9WMBVR9gKsIwtB2TdGfcwsVq8jMZceOIfLt2QwQT4471bxhG4fQ+vGpkQ8oKilKgWtVu9Q==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -18659,7 +18659,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-iVIBl8MiXrmlB0wceNOApa29oWDJq6U5IU7Iql2aPWo8Nr/cO35zGNEC4GSLnz9xnk0mPyo/30C+SLc7onJ8DQ==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-3JEF2N6kEpndgHmxC5jqp5wdTeluMOLqER3YoAcGIatApN1jZ9/5jYHQcXN8JuPZqPFBcAIH8g2c6F2hMXSQVA==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -18702,7 +18702,7 @@ packages: dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-cExnd6UJQQIshWTVKi3p43lDS2pAunjd056VzfoZ4auZpdMfZEh1JXWL8a2d8edmRvnLwS7dNRszanFBafh4kA==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-Feg1PWTklRinRbb0fpSl9DlGPs0F+mJPSiPF2pc26+VRmMeYq65b5jUD8EoJI0i8P0ita/XXbL5HMCTzZCSjng==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: @@ -18746,7 +18746,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-g2sD7pNnn7rPJrvryHfXFz/s/IGrGDUBZMXOsyAdH2McMYMOPqIY0cfqOxXEAKY89AWo2yr6h6taU6bvywZDQg==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-+bhDzfvPvq4GZ7wsCa2n88wV/biduasOH0FbtwxebJKfG7Br9lefJ0RHB+vpn/S/fN9rv7E1sA0V2j5NB3huKQ==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -18805,8 +18805,6 @@ packages: - '@swc/wasm' - '@vitest/browser' - '@vitest/ui' - - bufferutil - - debug - happy-dom - jsdom - less @@ -18816,11 +18814,10 @@ packages: - sugarss - supports-color - terser - - utf-8-validate dev: false file:projects/developer-devcenter.tgz: - resolution: {integrity: sha512-9Row3h2eFyesNCODAS99pVVD0EHWgMj+adg6Xh+HGbuLSKTLzRGmiaiZQ1QydAPjIVfPQN2J6ioWsz4y5lqC0A==, tarball: file:projects/developer-devcenter.tgz} + resolution: {integrity: sha512-bfK4GOlAJ9vC+9A95OHPc+JzAJ2eRgLqDfppqIfGV0gFN/GoXTCAp8wjibbr2Byy/SqgSBJrIIQ21DlVNTCYuA==, tarball: file:projects/developer-devcenter.tgz} name: '@rush-temp/developer-devcenter' version: 0.0.0 dependencies: @@ -18864,7 +18861,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-WABaWf9yAF6rhuVYZinqJqHzhTAjkcb/wt1nry76qwmZImWlM7zLD2KxSnOeLAr1UMOrZtg6L7i3a82Q/N7F7A==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-7/162x/wY+xN2QTxxexv5jQn+cK6qLdRi1qR6vwr/j7f/CivsHNeo5bZ4juc2qfWT5lQKwo75Kym/cZwTGLnNg==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -18909,7 +18906,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk-helper.tgz: - resolution: {integrity: sha512-81LjcHURGDNhd99ICbhwWc+aJH10sWa3J7QjDxFc5WhdewTN9gCHQRLXUlXT5oxBl6VK/7cOt8+MHIZ9Ezq8Xg==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} + resolution: {integrity: sha512-c2p8g6bTDtMUiM6D02QH5VPifOavw3/sEXQRQhMooIM0SyRU82dZR2qtzOGw9ZGQ2oXOmPPpW7i/N8ifmjSw/A==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} name: '@rush-temp/eslint-plugin-azure-sdk-helper' version: 0.0.0 dependencies: @@ -18928,7 +18925,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-QWCQpxYTL732c0p0LhhgoNH+PBuwMeWeCUVO6p/y5HVftrAf1V7fCMuNTH6MkVmX6OhcHY941iWQMGnzskrITw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-l4Tfx2HM9nIs5nsD8bx1N7Y1zFQ0eGuqbFbyh9loN2Am9X3m2qvsD6Ou8A5+b+kBxd/qFYhmngaESt/dCl+Gnw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -18966,7 +18963,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-2w5+Fho+ZEbuc8EHMwjZBU8TnU2OLZoZrUXw0svdg6gzQcEuseEC0dzWMyYfYYSpRySwV2jGo/AA5e4XY4KFsQ==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-lnKf3XksF5BrjWw+it3UJehsePqWocTU/zwZtJ1MIYSvQc9UGq4wE9TBH3jjsTf2v3pxCVCNTu98vVdM58sIRg==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -19027,7 +19024,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-n4uul6UnWNvKSlQ++Zs0e5paVpd2DITzP1WZ7WigL+eUTvsSBsfeR35Dviw790NvjuuUiPVhZ/1SL5Ehn7ACPw==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-JA/5o9eLAnSxEpBzxWVIf+fVdRJXv4Ss4K4aLYnsWECtP4XSbzODq20l5BaZQkpO0EWSpxKCTodRmw9G6gGw6A==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -19069,7 +19066,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-9tCkRIV+ana29MG9f705LWm33vr5QP32MQSj2Ugc/FzjJFIo7m7jURJXzUnys8m6Dn4NOCrLa3fNYqzsUq5v2A==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-GZttLKha1yC6gORy3lLWOjzpiVHKORUDKX3goHAJKtbmKnSe+0RJ8O1SX0HJ+NQ/6/mIDzG6eiLNBkPcqqc8vQ==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -19119,7 +19116,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-MNAnVLgZpP2tCpMUYctWUxl1p+RHQswDcdueCxd56pcKq2nmRufWnos6IcR6xbBaJ9i5Rqc5pkFX8matcMwjJQ==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-e2e2OZ9p4QPVXWesw+cp9dIu1L3+GjmB6Y/18qEISNDPYOc8JX1XaWBK7JnX7TSo6/xb0CsebOAQZogMEIX1vA==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -19166,7 +19163,7 @@ packages: dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-763pAUuz9DAzi7jlsrmynNZo5SWzxx84mSaoRo6Fp5gcbiTl83FaL4IQxDJgSyMbasckrmb0YgsH3Jzs3wpq7g==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-lXoHzjMxtbz8NSmoiT9+c/HUItezv40AHHW3NHLBnKXX6kufB2Gv3He1p4iGCBJoBOGAwKQYiB4dqS4YYtm1WA==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: @@ -19210,7 +19207,7 @@ packages: dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-8h2H3YNeXGdEGQ+TnUHAsDV6KLvHzLTR+qsSjKocCScNrRdwJBhaSrIo3QtLjBaB7K+iPoPxtsdm3k+lBvKCEQ==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-eYSSKmiQ7PV0CFwAuZR0K9uPivC+fkXFlpbk0iCti0yF4fsAZUkaoMrwfg3lhPZ1F0K5nd1a+lJWdQpP9kRwBA==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: @@ -19254,7 +19251,7 @@ packages: dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-R9izTxpyw5PG+oUlt8ZEJwcbNJntRoQUsktQ63K5423Ah7UG1UgDPwIiYIrSrVS+X8OxEIu3DDPo7/oeRVJd3g==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-rc5CIO0faOvOu8tAe26x9g9drWFj41DNzK3xd1P9m6xepSCXy/g0V8hL0ECldsRQemB7icVFOz9debRa02NfbA==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: @@ -19298,7 +19295,7 @@ packages: dev: false file:projects/health-insights-radiologyinsights.tgz: - resolution: {integrity: sha512-MgqSqs4TL6lf77N+K1LLcTc0OArMhm7942eyZq4LOE5RQoYx+STFg+wOpncRL0oYlXQ5mLl0XjISd/DmTXb7Hg==, tarball: file:projects/health-insights-radiologyinsights.tgz} + resolution: {integrity: sha512-LzShHe5C9t4zZLNVcQO9e9ber1j7KcYsK7AtcQ4Wyy4IcmqqSb3u0cAGnOEddemfOrtdjBA81uLXBFl47FfGUg==, tarball: file:projects/health-insights-radiologyinsights.tgz} name: '@rush-temp/health-insights-radiologyinsights' version: 0.0.0 dependencies: @@ -19342,7 +19339,7 @@ packages: dev: false file:projects/identity-broker.tgz: - resolution: {integrity: sha512-pEzSuEC+bJbFJ/bJ0uWL98hxzLq3DrXEkDOnBhOkgXIqsZ/N2i5MkwCpmF1uUtd6c/Jj7GeoBalZRKDp9rb92g==, tarball: file:projects/identity-broker.tgz} + resolution: {integrity: sha512-RE+YqSTaxxR3bgxMrHGjkuJjywZPJpdr10nDdOkrJ22/So+aW0kisoQEPaQ6WBL7HD6PSN9fWxfTBYsKfBGe2w==, tarball: file:projects/identity-broker.tgz} name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: @@ -19372,7 +19369,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-xjW/usWexAhmcVMN898Kbi+t7A50zceGD22B5femIIF2pIKyExrmUN78+73vvuRWgovG22UHZ5CZwQRm02+PvQ==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-LCwbkL8GhVO0eQEUVYw5NtzezkcIVPHnwXZZ/f0YWGuevw7+KpOVzw+ZptL8VOqaM1+DOFJNfBxemjv/sxx0BA==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -19408,7 +19405,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-vnqh3FnIhswMRabiCjc7s1kUEaRMfrXE643pVnnfrap6XtXLobo/uocB9Rc1XBLwpCUMp4CrgRL93ssVCehxNQ==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-WCE5QHoZnOoqtCgxVpD5cYrQDumqgTNKpzUT/hXeLEkJ8Mu7NmDd8QnIWYd9J6MP0pwZDI2IKRVJRv+Wn6fl+A==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -19443,7 +19440,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-j1761zpFWorjbpu/tWmXQ8wDc6t1/9J0pguRlSl1ibFzo/G3in6FLnG1Cc/8UUcQfvEUbRU3tLf+M0WffpCWdA==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-eWwcHy7qVgJKYZylPZArxZ9mF4TxBqvuDUGf7/I/q/tBRofMWlSm5+epmkPB5EsFWmLE965r5SwyPapJh5lvrw==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -19500,7 +19497,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-L6CoANIvkPHd8wxwZtE2GCnmcSnhfq76pfbSFKkRIQxdAovBcUfjGWEqLn+8eefB3FG02REvWxyCFi0KBkBBTA==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-UFNINAFOToP7NJR8stMLUfmepJc8b8YXGZJy5z2ZJYf7Db/xKAvjYOcysmy8lIPB3SyjOWiemD3U3/v0r572og==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -19546,7 +19543,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-RpJ79+50X8ksqxlW0AWqk7c6zVguxpmmP4MhfNkuU44sRaJH96URi9ROItmGIpVRBFbpuuRUOae72ippUgzqew==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-gvMttKI/ZrYHvurbJpfqJcivpEXmmMTOGiLQhMW68m+j1LHsL+3IguNZSffPIox7lRNsDYnpIrLOZ10DbXV+/w==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -19590,7 +19587,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-RLWOSxjyGjR5IK5Zn3K3qhTbssFq8TbHNqWNwm9Mk3SQsUR66+jhDk6lxN6A6lkfSI2p0ACVVIe9gZCGcYTNsg==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-7MJ5EAxk5BnbrztcD9YgCF89aLz3bUNFh1AbWvk5HR0exX5dZ32iKnJVY7wyc5bclBYGJayh+QQlhbPJN3Scyg==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -19621,7 +19618,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-gzE1si0y81RzmpykipQJd3J30EtyRdJafBQ8wL2EO5MmVOr2sGqyFTJiEOW2HivbwCtCn98DsADi2ikdNyyDxA==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-OYVRsqy7v/QmN1pxwJQ5FhKJsWMfzAUELoLvT7XudEVa9wOvBZs6bzkKmNjobcyHAmxYU8zjgpsaRv0IrU8Wfg==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -19666,7 +19663,7 @@ packages: dev: false file:projects/keyvault-common.tgz: - resolution: {integrity: sha512-6/RGVMxWL5HA1fMuirrHr6Uppay8SRLhT6XUpKkX7keBA3efjjzpxMBoUweLcAx6wc5i1YzxcRkej8Yc0mp/yQ==, tarball: file:projects/keyvault-common.tgz} + resolution: {integrity: sha512-3eTt0Qa30nw+eIjDezcF8kQ9jFhiFXqTZA6XBNiQAiHrBIeOX4xWXB3kpQ1Xbz2Pqq4G+UnXsc8h3td75Etdgw==, tarball: file:projects/keyvault-common.tgz} name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: @@ -19696,7 +19693,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-lgL5ctDRRbphGvhYV2vOz4Kg88hszujP2+Jfju1c7ZBa1ipljleDh0Q66uciYRlWa/FftYixCkYGVQiQg++rtw==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-tGzJ200FaETep8Y2lb4/bqtGwstjimWTnepRZwgjrHYFEsjWTfhRGhYKsATCKCKbf8C5NTuQTcNdbgkN8hTLKg==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -19742,7 +19739,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-mcvWWMggYVmLH1lRR2CiE9/PgK4hcDSsjxtlvBR6c2km/1hkTxOGHPsN1vN5ifSOVsw6pYdOxFWjNIObLEGA6Q==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-ceC2UCgZnkE+7/DscilyDhsx9ZVLk1jZR71J7kVXb/JIOQgkyHbQNFAYSQ2EdQRyrq4aYoeeSsKEaJT7k8qXdA==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -19785,7 +19782,7 @@ packages: dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-9KppaB75cGaUL3m1zIWsNuS+d9Xu3ycBx1hlwOmKRXF4q4Eb1FwKd3rog2t8w3+/fJNClCK8zCMpIH+vmXki9Q==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-d8IluGAh4OKdvzXCJSFJmobjvON5nq3IOAfjkafs8Ef4SDTa3QLtA195glf1tVXkfZcJq20Ak5lQ7H2yZracBw==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: @@ -19831,7 +19828,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-+9REBcc8JqvPZtrlasULq44Rf/SZCr0g9nSSc62oxWhgQPsk/YBYMbcsfim7y562Vno8uYTFfqAH3xEjznwgnA==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-jUkUA5MVUavt5VKFk1vFVZdC9Qo2YOFYXMcz8lJyUPn9xZNzJ2dIqNbrO15US44xUiLinfcx6W4qr+A7+9pcdA==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -19865,7 +19862,7 @@ packages: dev: false file:projects/maps-common.tgz: - resolution: {integrity: sha512-MshhAL16Di9s1phne1vgvSkvX9YI1UWTu80q2UYuUxgBHPnwtw5DwXHlGu+WnMKhGS3VbmOkwXanBPJx7AgDTQ==, tarball: file:projects/maps-common.tgz} + resolution: {integrity: sha512-3GpElejNNohWM/YZB4HYYpZsbjPr3iXqG2qqlASff6ercwPgzyU/zjmFgZj31zrnOFPNj9l7z0aoxyHhoLJlpQ==, tarball: file:projects/maps-common.tgz} name: '@rush-temp/maps-common' version: 0.0.0 dependencies: @@ -19883,7 +19880,7 @@ packages: dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-0xRLrvXCaJE17JNnFY1oUoejow+942QyefXiTjL/kvTmj4eYQ5HDCOtmOeZP4rSUXT/qadXX60Uzvdwmy+9ucg==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-aSRlzsxpI3DVj260DBALkhBOduoCUT/qMHaTS9AJmFFftrdJ89IPdJOeIRO89WR7BG1SaKR2d3n0gQF54JvH/w==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: @@ -19927,7 +19924,7 @@ packages: dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-Mcdw8CbEFcOY5bEc4EpeHsyqXXeNpO1qwyjHbe9mkK3mlUuXymZlzvUEuLGfjVsSDHP0iPqXTXsHRlp4/AuVCQ==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-U65JVg+RhikkPqt810eFVXpZO7scNbuR81bS7dFjeqjqjd4tEUsU6argF1XOsWWQxNOHaUhUp/OGZ1by4Vgbcw==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: @@ -19971,7 +19968,7 @@ packages: dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-/zpn44m8aiOTEBEbWXQMnP412K1ihf3w5mfQVfgb6iBJM7IncdDpvsbFQokItVG5AkA6rEgJsi47xF4//Ctoag==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-BoHJHYBKoMovRTG7o3iNC3pxZdk8W+inVFXa/PcdM3qygQuWNA92bv9vP+7aeF5UAkkp5f1OD+6PGor5U7SbCg==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: @@ -20015,7 +20012,7 @@ packages: dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-B4YewDv3JmTWVIMpYJDHR/am1Cr6AP6qIs2IPDNBldh7eRq2NJVYEvGE9mhqKoVwlSmZbsI7mCdb+JGZ0cQzQA==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-YVkCCBVFwS4TRx32GjOuE3qGM3/GKNH64DNYI8l/nrYcNdrO1laeq2hb6uWpvchbgcK3dFE5Nq2/cVii5uc8gw==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: @@ -20059,7 +20056,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-YmEfvYGblBDCX3ShDK6pH5vpYeehwj8YFL82EIKHRC3yOCilxojdnXY6XlWoKlGnR8PmKPacTjyv8ZLbwzm4Sg==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-kyN9szevkPlknBySlT8Pgt46s4O0irEKZcUpNI6K2wU8SQ6oPCKMwSYqJgWB5OGgncPvEDc/F+wi8vH/PYCgmg==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -20101,7 +20098,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-bYue2z4X1o4zb+l9BKAAX0KItEqWIf0HIXwnNjbUB6/qEFpp/emif1nqJO3v5aytxdNQGbrCpKaAeNETsvWfcA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-Lx5F3/Uhzb8W+K4uDjllDC+El5XrcN3pSZDhsQ+NYBgWmTihXkDm0uOgeIZi5VQMZLOEHNDgegMBZf25W3VJxw==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -20148,7 +20145,7 @@ packages: dev: false file:projects/mock-hub.tgz: - resolution: {integrity: sha512-0iFt6iHLpfCmW64Hgw/dxsQJuhX5FWqOFbYNpztGMMZ5z/EYnJ+0blwPQA47vwp6HRJCs93XGCEo9/PL8RvgUQ==, tarball: file:projects/mock-hub.tgz} + resolution: {integrity: sha512-cF5biFHCBknMGeAoMtk9cec5IzeT3ABz8tle5SCZMjc1UFO8hOUeOpL26O/SAwfdz97VYr6NeOL6XWL/l/Ng+g==, tarball: file:projects/mock-hub.tgz} name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: @@ -20168,7 +20165,7 @@ packages: dev: false file:projects/monitor-ingestion.tgz: - resolution: {integrity: sha512-XTy7LjKs5BRxWuIZxdTaKpNkghCBuYKEdLuU9ax+9I/dc0XwTZ3Ia5pFYk9DYL6bKhK5u+VQIrC6+gD2NUqOyA==, tarball: file:projects/monitor-ingestion.tgz} + resolution: {integrity: sha512-dfdhur+86HxCJzb09f8aa7lRIZxjhCuZfv2/FA+dhVKsIp+KvZuQuGtbiezUd8Q6nQweFBGYS9hZbTysa5E0iA==, tarball: file:projects/monitor-ingestion.tgz} name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: @@ -20216,7 +20213,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-gnhQBJG+kMvERMvZcRGrDRizI+mhiaQqTmbHFfiiXLxi4HBAVmj1Nlx3RXIrUvDcapn8fxK/mOyPvdY0frQ46Q==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-kTOHl9kMbOSOskX+nYUM3Sb7Vk6EgewbgaXKqjz+Brir3IvHoWDSgb+qZM85SeHIjYxEhQI/36jd18HyM4oepg==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -20235,6 +20232,7 @@ packages: '@types/mocha': 10.0.6 '@types/node': 18.19.22 c8: 8.0.1 + cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 eslint-plugin-node: 11.1.0(eslint@8.57.0) @@ -20250,7 +20248,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-9VxopZ6mNMivF8xrVRfcecWW++p+trx+FNyjcwSWFhQ5jNX3cmmaZB0VRRKxyGtQX03u8Y0DKzRIQDl9mcdQbA==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-oY3JKxapMG5+aFPyq2/ae4IToa2aKOocXo2pcX0O/LBqLry3Hm6fzY302mbH8oW2LjDL7UX/82k5yxXHMXxPgQ==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -20280,6 +20278,7 @@ packages: '@types/node': 18.19.22 '@types/sinon': 17.0.3 c8: 8.0.1 + cross-env: 7.0.3 dotenv: 16.4.5 eslint: 8.57.0 eslint-plugin-node: 11.1.0(eslint@8.57.0) @@ -20295,7 +20294,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-NNfdquPNUyR+6XKI1UpNBijLT7vkqkFXqCVbN6BwNBiKWNVBjVv9y8N9QmcB6fBI1z7vBKBobIaPAuO3mGZotw==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-APfUA0snPDgNqjL0lwKnltwvMRAk88dB212p8rG31+7RU11DlirWZhqEiRdm9yv/SAFl1hBOzFUFkzuyi6tKEQ==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -20338,7 +20337,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-wYVvhqm1c9pu0sVGbUmow/+Y1RVDeGgQPeSEXNbxXH5BBO4XS0NUD1rsS0sny/ZuiOyBmH584mTuYPitc27Qww==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-s/yAfCbzDTCZhbHVodYO0Vyrehxkpxk771NPRrphdJznZu8v7t6V5o+Bmxx/ys92RNf36oZf9eA+nT4SgdLjDQ==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -20379,7 +20378,7 @@ packages: dev: false file:projects/openai-1.tgz: - resolution: {integrity: sha512-J+fEGzw/cTpp6pt2s4N3Hrq4O+aJZHiqfiH5zTtD9s9tHiHLvGcwurZPNaNrrqNtvyCHwgS5rVAJa85c5PX63Q==, tarball: file:projects/openai-1.tgz} + resolution: {integrity: sha512-nHl5TY8ZI+5uXiQGGDdh3YtcZWRLa365QOqeSypMKKywAkRcrhFnYE+UHqFGY7caOgans8Q+wZJU6OwvjS0rmg==, tarball: file:projects/openai-1.tgz} name: '@rush-temp/openai-1' version: 0.0.0 dependencies: @@ -20423,7 +20422,7 @@ packages: dev: false file:projects/openai-assistants.tgz: - resolution: {integrity: sha512-sAmQpau4Yt0j6ZWlakq60s7g0PJlloqpTh3opxH6LgYqH5ZMNQVHFUaoAHVVCEj4y7Al/hF68AfuyOYt8yX2LA==, tarball: file:projects/openai-assistants.tgz} + resolution: {integrity: sha512-+Al2BAe9J57+TktRmgFrEC7nr1RV2TdhPDA2qY3+/+7L3+y/KzhH1h8KoHL9SreoEtPM3B1iFni7iryatvuonw==, tarball: file:projects/openai-assistants.tgz} name: '@rush-temp/openai-assistants' version: 0.0.0 dependencies: @@ -20465,7 +20464,7 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-8k0W5UZO4jYWW3R0sw4J8w/xFEovBBusdYQqIGUMlwGq7t869oE0XXOfahDsZIGDBACj32ci3maBGF8PN/MhUQ==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-obXb6vm/bNL9CLo3VIhpsCeY0v9qbzpa8/iCAGWGHLQCqiKrC38nOBVU86j6McQhLyTeviWOz04ax4b0w2Df8g==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: @@ -20483,7 +20482,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-un+vPAwYp1VAxQfyUB4EyC1FceIz943vk6fqY/00ICMtP27Ya0YMbcDF+2AQNwJko5usWdR+Lr75enxF1tQO+g==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-My75scGbzqjp9IkJaEISCLmVKRPW2dc7a369c8s3+uFHMKIzqiz4BjITxqYlI2N7zZ1o+SAW4QV26zY7Tka3EA==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: @@ -20527,7 +20526,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-jwvM/uBXz+A91uURcwEDNZj8aaDBn4bQbL/jKk89Kwfd0T9KbivN8gcuAV+cogmZXxukHgRhyPbV8Ha2guuSjw==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-nHlDtG65YHF/9vLOzaSVYQAl0uGyfB95ZLConBASNnarAdHdTJuzsJYMH3H6STz3z9UcN9rHw7DhXh4KZsi6kw==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -20546,7 +20545,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-zmMlXP481S2leaGbiTPTdoAgWZMmIDLzTjjPgiTqU0qfd9YHtIdaelmqBnwr9F0uRkaKYFR46r97FjSGbsQh3w==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-h5bRfw9HxK0T8exTBPJ0hrJrldRzd4i38FAt8SwD54R8IEJIgZY4hOdMI7SjE+oUSae9ZTt8YIPZujU0TIdFUQ==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: @@ -20565,7 +20564,7 @@ packages: dev: false file:projects/perf-ai-metrics-advisor.tgz: - resolution: {integrity: sha512-1Qj2vbfJQ10Gkhk3ZAx7pWWzVzFHtPEqiQqWwiGfZxErxv8k/flqDznrr0v9L5KBIml+ygYdHMKhyNFjLjAL+A==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-aRLifFK3T0HVAG5f/nS5lnGDJjtrkVIRYvdoFtDq14eoUFTYbKXVblms3mGhTAh2cCaZK4QoBa6R4IPhxO7tHg==, tarball: file:projects/perf-ai-metrics-advisor.tgz} name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: @@ -20583,7 +20582,7 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-OSuAsD6WyU5XHFVTOIm883IVdqON4sm7COUyxmxP2s/JGz5Nuo0p2jwyFgLl+CkAk7znEvuXA9tcg5wvEE0n5g==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-87DiBf7cu6ukgc1f/3ZsG/JTCeJyIIQ8OaWui2YcKuPIiLPIUCdWztfytciNd49RNCLrnhyiR8UbGFAsLKcudA==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: @@ -20602,7 +20601,7 @@ packages: dev: false file:projects/perf-app-configuration.tgz: - resolution: {integrity: sha512-McDuRdZ+MgkgonF+gWWqY2MR3Uu/ZXlzv46lA5/AM2onKI/n+DMyvDai26aDDHrhmgWJ8MG2NNuJXZ8uFOvrKg==, tarball: file:projects/perf-app-configuration.tgz} + resolution: {integrity: sha512-4VBBoLiknqGY1Pf5W0b3DQXnhOPiTtwRn352YoZUqN0LtfSIl0On7t0o3bkT3wVKV9YOZHBjfKpB5jRqXJlufg==, tarball: file:projects/perf-app-configuration.tgz} name: '@rush-temp/perf-app-configuration' version: 0.0.0 dependencies: @@ -20621,7 +20620,7 @@ packages: dev: false file:projects/perf-container-registry.tgz: - resolution: {integrity: sha512-UknYlNsrzb9/E4tBwf0OT5CZz1Czn1VRG/CbEKG+usukq0711J+rqfaCfQS2yrwPED1r3W3Su6odqBe+MHzPew==, tarball: file:projects/perf-container-registry.tgz} + resolution: {integrity: sha512-lKrzqDt/jRSznA+hDQ/YMrYgsNq/WIqlCa0f4/ExOk9WPrFnOH6iVeY/cBCKyRa1lsYa7vUUqcDTZNAXM0f/qQ==, tarball: file:projects/perf-container-registry.tgz} name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: @@ -20639,7 +20638,7 @@ packages: dev: false file:projects/perf-core-rest-pipeline.tgz: - resolution: {integrity: sha512-d4G9rQMyMyIAfEwY9p+m6QCM9OTaEjS8/pvg89QnJRW56qqxRwI64iGfApGfQX55YXqdtLM+m4Q+a+dR8Uq/mA==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-1kp1CzvjTJooy5VARRN9YdUO5E9WJV4t8SvHxlnmrr4UPpT1j0gs0Qd0EK0CaQ9NVAlzXfZLHX+EuYhzkFi4bw==, tarball: file:projects/perf-core-rest-pipeline.tgz} name: '@rush-temp/perf-core-rest-pipeline' version: 0.0.0 dependencies: @@ -20662,7 +20661,7 @@ packages: dev: false file:projects/perf-data-tables.tgz: - resolution: {integrity: sha512-+LFt85LhKL0KYqYvEJfmyUZbv3TX27CM45MC4EI0gnCwuLi23qCSEiQdDwGj4JDtMlCUwdyuWG3y7ijNYfOPmw==, tarball: file:projects/perf-data-tables.tgz} + resolution: {integrity: sha512-0JtuW3D7cXwdLvx2QeViId9d5TJDN1yEEYBsd79DLVxpUJOkS7BsKRpYx55rz4YVeYgJwflSkz4lv+THB706Yw==, tarball: file:projects/perf-data-tables.tgz} name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: @@ -20680,7 +20679,7 @@ packages: dev: false file:projects/perf-event-hubs.tgz: - resolution: {integrity: sha512-D+ZExqVjiKJUcmHO44U8xr/kNkvSQed8CEsp6e66LJ4RWNEHVZud6Rsul8LKJe87ETfXepNHUTbWkBfS4waqLA==, tarball: file:projects/perf-event-hubs.tgz} + resolution: {integrity: sha512-8kFxLUSuT66qoYQwltzcSVmhTNhEQlj35vD0JHeXFcXY537RRLe9ie63OrlBgWU7kLPawf2VTjIINFRNectKzw==, tarball: file:projects/perf-event-hubs.tgz} name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: @@ -20701,7 +20700,7 @@ packages: dev: false file:projects/perf-eventgrid.tgz: - resolution: {integrity: sha512-787Mjzr4zBib6gFgA+xA8VgA1TTgiipDgVQEZUd+oWDuPC6jFihrPfXng9ogHgR/CVt0h81BwJmsjQ2If7upWg==, tarball: file:projects/perf-eventgrid.tgz} + resolution: {integrity: sha512-/bxfs9aM9gkVTPEZcV8kkH9nulqltQe/9UhCc2YFV8qP8RLGBivNsaJzwmq/4nG+5XGx15CJ8oFDRtwuT746kw==, tarball: file:projects/perf-eventgrid.tgz} name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: @@ -20719,7 +20718,7 @@ packages: dev: false file:projects/perf-identity.tgz: - resolution: {integrity: sha512-dHYs1Lha6y1+zLOYjV3Ja6AZukV+yf1Js1B0j72wgzEG33F6R7+EuJuUJf1elC/zNqfS/oFHYatfrB9RBEL/Gg==, tarball: file:projects/perf-identity.tgz} + resolution: {integrity: sha512-4kKWzWkL3zi2Fm6cp3kBwDEnex1v6SHXK0/5dfeBaQi1djJ4kYHo6GFs7WqLiLq3tNhMYysMdUm1po+N7QXuBQ==, tarball: file:projects/perf-identity.tgz} name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: @@ -20739,7 +20738,7 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-cabh08grEft+jxOhMZoXdbZfqdN/yGoCRniuXihWC1+Hq4PzOq22wQrvjXM3n5IR65BWMqd8sOw/bLBONnZ5Ig==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-TkBrpgsbj2qtDnLPvQSyEjJ3Bd7ftehcJN2oiMGQLoP2nPMKh8h/ZA95KBtPSYjZ2fofHw7DIWQKvam0Q3XnZA==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: @@ -20760,7 +20759,7 @@ packages: dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-ALF0NZ5LHk6croBUbpAxJmjXHRbDQTXQNo53rwJTq9kQ7YMFtZ8ohtmsR4+D3GsTSVkpAy8HgJzh3zCAHuwqmg==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-Q0ubdUt2FjQKN59273vG/T+Jngcx20FT8qy87CjcOuUYkWLdXC/AQ5DkbMCZMXfmjYHg2TD0BYZXlEfZtqksuw==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: @@ -20781,7 +20780,7 @@ packages: dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-ZFa2bHaE3iAI/Wz/4BpDvA34VhYUC2TYJ4jJmaYUFNfVWqdoCSsFjvhVWSFJeVwgBfPD76NraCmoeUvUTkcKmw==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-8ka8qvilTUigrzElOGOAfOz13zfeJyaGrm6rY3hDFjy2R875w/e6twe1CTmyVgZMFf9hS1KVuljf/vCpNLzhSQ==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: @@ -20802,7 +20801,7 @@ packages: dev: false file:projects/perf-monitor-ingestion.tgz: - resolution: {integrity: sha512-NGJiYRptN2G5Aa6j0/VCmlCTFRBtboUBFKm5RfYe0odqykbXSmSUlRAHZajR4wgUN1Zc7FsSezkLnWG8pePXKg==, tarball: file:projects/perf-monitor-ingestion.tgz} + resolution: {integrity: sha512-RXBrhJZ15i6xXfeTJiQsclwIaRDnQlaJkafTNQwofVeIo/GuMECIUG1+inwMV7Ybsj9INqrzhd8k4qppMagZPg==, tarball: file:projects/perf-monitor-ingestion.tgz} name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: @@ -20821,7 +20820,7 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-j7Ky/BPp40IYmh6SzJEe9X/aTt55W1vgfKDQpZLX2hKiAcetAUlk5jue0OPRzTOqmKz1dFQKAIgeHduTL9d1fA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-CuiiwICnnW5XusZrqq1Cme8qL8cgFMzpcWcdUMt2z7i2enKRuYurcb0R4I2yU6gIq7RAmT3/4ZrJ9tcuuvDZKQ==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: @@ -20839,7 +20838,7 @@ packages: dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-aCUoxgLoqo0l8QNC7iTzU70WDorCIA5GGZrLSJhA8NxGGVLfvSi4DeYwL0Zle/5uqbSWt6hUYA+rf4TmjWD/jg==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-XxFW/3sYSD6EP8He4TK6kA/y7A+gmJ+clnkWvEEP8T8vOc0eFx8yLhTWutjHqKAftAV4EwXfR4QSQR9SMJ1E0A==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: @@ -20858,7 +20857,7 @@ packages: dev: false file:projects/perf-schema-registry-avro.tgz: - resolution: {integrity: sha512-LQb4g3NZ6t2QvZU9ZKrWJLawDWAt+/o5TivCr080ynesRmFdkwjpIKfQ0/V7Ysz9bs28s5oA32OWOAk9rx+oVA==, tarball: file:projects/perf-schema-registry-avro.tgz} + resolution: {integrity: sha512-jZlTTBK8TgRGSjDuWJn556aq32zaAiHB9D7dXQdGsMaYkybe6ekJCwl47L7RFAqyEC17TjYLpV7vy0a27C8z2Q==, tarball: file:projects/perf-schema-registry-avro.tgz} name: '@rush-temp/perf-schema-registry-avro' version: 0.0.0 dependencies: @@ -20877,7 +20876,7 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-FVC0hyC2d9huax+dP3bndPGPgF4T+UBKgvzm7fE+ItaWIcvOdL4fmaGDRE6eEe5q+fxGjPiDWwgRKn2dHrr7eA==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-5sk3UwtcDYdV0qXL8+QfzH7+KTyQGDKD5klsIqVTbOf19jO6e7t58aW/uJZlk/Fj5Nw7Zwe6jDcOQrmnOXNjrQ==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: @@ -20896,7 +20895,7 @@ packages: dev: false file:projects/perf-service-bus.tgz: - resolution: {integrity: sha512-Y9OPWqLFNZ7nAuhgpm8AgSbr9mHAgRks7m57FDhbrbGYKSNC0Cluw0TISH2Lq7IflZ1a7PkTf+jGSxzb7ZQ8kg==, tarball: file:projects/perf-service-bus.tgz} + resolution: {integrity: sha512-x/dXLp6qDtd0NCXLGGi1g8zNYU5mBegh4EP6JAqOZPKYN5DkO4BVrBbr2cP/6nnqXJc3w4lNCNWEjSl6Lk45zA==, tarball: file:projects/perf-service-bus.tgz} name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: @@ -20916,7 +20915,7 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-P+LlljVMsRTiuNOETQudyNNf8IKC9+dIMp7DzrCY6Ivg6Lqnvdvr7Fs3tyON7p/bo78dzH9S+4JI4klArw6txA==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-I75PQWgXOw4kRwD4WNMOlc644NER4SPKpyk0l3GE5UW9C3fYpRL4zLkmgyDILHiTaLtHH9P9x8V3kLMte7aB7w==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: @@ -20934,7 +20933,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-TUiBoGVM83x0pglCFNA/EyVsCZwrrMJTg5H6Ykx7/8oYhX6JDoT9A1YM1YQHytz5IhdThB4HNuLm3DbQRADhQw==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-UDg47biWhgKXxKxxli0Pjbhm5omIkfJs754EizXDBTRtS00oiMIiLGnZe3wd6BeSbPT7ZKvRichK7WrFs0U2VA==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -20954,7 +20953,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-GRHAAh7r9j3+rjt1IkqzegBHLSo2hI/OZqcCHZvw78r1ff1TlwpH51DkGafS1DiMV57gwygapbK7AlOn/sbmQQ==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-FtcpUKv/bZdTp691/xaBDmi4j/jINmE3PBmqMqPuFjlX85WPapkaM5QGabvSZPzDhOV0cW/1M2V0N4GTTXnz+w==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -20974,7 +20973,7 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-QECzXzK8cPMGodFUP38hT9EX5C8jPKrGyc7A+qtGd/4pj+3tdapDoBkLwI/i9e7QRwzSa+tEjZoynwNDYWPV2g==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-G2YxZvjCVJOdkhd+Kpkzac+ixyDc3t5zsxgYRjqLMYoVjSogzp+w8guG+RlVJfxGMkQyaSXo0z29zmgTYvb6Hg==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: @@ -20994,7 +20993,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-Gi/RDg2fXA+2d06Uy7wYhhrp0z81BlrzuiREg0z//DNGVd8qE+1kMwdpTTOcnyiz78Ko52afaBUDOpkNS0vssg==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-huaMHk3sAyDpT9oL5gA1eVSz3VlmUiWALFdjQeNnFwMPnA3sMi9b9Py+2u+cMMKOR61cdoFQbqt37oU3lLNMZQ==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -21036,7 +21035,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-V9Ewq7Pzce0ceIH/xh81nWVIW9380HAebpPjJ4slzR/K1lRwKIkzaoa+V2zjVAKadlyj6xx1lTNSrFV+0c4FAA==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-xPjDgsD/6hQS8hrfIkUct9AO/g1YoSG6Hig6KoR3n2/5Z36NR7H7iCJx4uWQnvmwdkdHL4Jo1L2tlblGqkBbyg==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -21078,7 +21077,7 @@ packages: dev: false file:projects/purview-datamap.tgz: - resolution: {integrity: sha512-jMEVqxCSt9ZMsdYVFwcfhwLLa8sZdkZBEGbrKUi0UqTsmXnp8frn/pkdTrn1qQAMt+zhqbBGs+bnmZR+RoGD5A==, tarball: file:projects/purview-datamap.tgz} + resolution: {integrity: sha512-KYZ07b+xDgBmx68jS0Hr0g8M4EJvUCTY1qxA9PanWfe5bPQ2iNlgU3T8SUQKbGOikWijreqebroJNvEjw71GQA==, tarball: file:projects/purview-datamap.tgz} name: '@rush-temp/purview-datamap' version: 0.0.0 dependencies: @@ -21121,7 +21120,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-rvbG0MGCQjGXE+djxJRab7Cz3i8C43p5n6Vnx3KGqA2EqMasoFPzWfcb75aYY08b0ZRu/WKcfPpJDEztOnc6Nw==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-+i9Wn3lF42PuCG9SAFbJAqaUxEne8/0PNj0lj3gwcIzSHoykd38BWeXcsggHWc/sVGp3CwDLC5y2THpsc1hEFg==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -21163,7 +21162,7 @@ packages: dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-lc9YhGhZxgTmkzgVi52tC44tHalgQHm33H1Z+yyq54ajqxP7JzFMYv68y8KZ8ce0RrcrfNeGFxkLFGFHis3vlw==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-jGmmE0vpjwO4bm/Z880xzUdesP9iWlKCmpRecy2/j0ZYAR2zA0Fj94xjUre3wVOIdO10pOFE+hzt2ChtiJPWeQ==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: @@ -21207,7 +21206,7 @@ packages: dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-Sv3iT2nyU6/cqFlO+PSN1IEq4/EWOCbxVQg52HvEsvw6cgt+Cw3oo4f2KvIMvqzuOaTWWfHIHwmLOt7HWGr4rQ==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-We2FWj+dxhV+6c/q5d+1BXwZJgoAmKlRg1pCvLx6khC6Ij9eFlhDNPJI1gFo+3U6F/17tlpA9iaHfBQvyIUirg==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: @@ -21250,7 +21249,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-I1oC934zXF04xfBjYHygauOm9kupQAqX4km7iJdpEsq9PV0RED69nevGTlLCV/AJJ3mYemEtjW6ctLma8KsTxw==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-ynaCHfJXwZY6tCS8I0jED9ghd+ku1+w2PC81cB1Za0+nXaS+PXRBLwH1XSAoxU0l53NZTlfRPpUTTI0EUi2psQ==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -21295,7 +21294,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-2zL4OfTlTEP9f3WbYgvAYRFaQXM1/1/W+/1s0QB4ZdL5ep9Vooq/9e9PutOozOaR13pY+nimzrZVZ8j3WjhFaQ==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-0LhM3eb7FB5sPpxqG/xBYw2f7XjztZsPsMgsdGGfcnLc+0HIK1s48tKAER42W3T3qOombQZisYmpALT+MrroIA==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -21346,7 +21345,7 @@ packages: dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-oS74NCdlVMU/uK7EF7/QQlMyS2OCOCcRmHPxewP/4rPtk3dTQsXYnlC0MkbKF/+cT3kXbGFMJ4DYL7VN7siNGQ==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-doA+TR88iajbBMTcYpjZDeJ10xu0OHHllZv4Wi83kkVQT8aicmqsKWy7NfwAjybH0WxDbgCUv6Bt0VX1MmV9cQ==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: @@ -21387,7 +21386,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-0TKcx+XJFiwBwOexpulOoYYFnhZGBfK8UL+gP9BJnNuXRXWMzqlPcsEEV2lsE9klxd/6gHa8+fNAQDzgZZ4H8Q==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-K0Xo2o3mRwcUW+F8BjJjmI+782xykmK46jVth0QaXKaCmvbfzGRk60Wt0tV01ccE0Zvc8IlKE0y7UWdaZUIoAg==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -21426,7 +21425,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-E/8D/cCDKlJ63i4dNk+cENIjJkR/9gaskEfI+P9b88aImnWvg7GR8YZuHytxdPKh4WhBMuu4TIp+A9Jic490hA==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-NCqC4aPSl3n2IZHruv3oxyg2tSowjrXfaXr61yUTCUVaiLVmmSGvQcu0N6nOlSrulyNFkGGJli9Kvs658DSv3g==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -21471,7 +21470,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-q+lVWs4NbjEftlyi7x7dYXNMo0s8h9hgwPaiMQlk2DynzyeZULMeJe6AA88CvCm3Xe+WO2xUUzMUqGCQdkk1Ng==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-reS727hnGbcKISyYBRXqHiSZxtW/W+6K4uTH3qzw1RjYvLLLPTApb0uR3dNWVZxScZYnK3JrNJVGgbph7/+CiA==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -21533,7 +21532,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-qcOjqJVfS8HR7rF6r0ThY3Ob7NyFvg/U/9jvDf0DFNgjFAf4VG3CzduflZWPYtNAN+6a7EMyUSZM1HWGgwOiIQ==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-wnWbrl+GSHtXZeB/gqEJhk3dcAYO2hXNIqTFDB4OLNxQv7l2Jyt5YXL6TAcG/R3gs7Kxn4tKrI3k8Yn5rt2pyQ==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -21583,7 +21582,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-AmvpINVhtD00TjMEeA7RAXuBcrmysnNYASLFmvrRJAC87HO1cngsYC0bUybR99vUJC5APEgE+d/NLYieLqOYGA==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-UbHNdtinQ+ZRDEeVK5218SsLVV6CCmraXC8wJE/XnXArgWc97f+9u2r4iLcm/qjYLy32xQYFWcIF1AmpJrY/Gw==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -21630,7 +21629,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-zpxRN6m+5hZFV/muh/zXAa5G9hQeWHny3j4A3ahxhqvWEY+i4rHwo4uqHQUGftAhEnNiZsSBg0YpYTr3c2ncZg==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-yBtQEOX13UBeIiM5f4+xHS77YgxEaI1RHCvzV+nWKYN4XVDrvtv3yTjK38tZ0P4kZX2mktqypxRi9dAo0VT9cQ==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -21681,7 +21680,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-Qvu7cCuyHzfqt7R6MoYuuUDB0EWwJgHSQdPEW86UtJDXwkbOV9vhgzzKT55QGgKXiwed1hAQqCBN07N3v/eZyQ==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-GdYbPm9Ac4ZNB3MLrVY6t6OGRRdJ3k50yFm7jXroBhBEnkwM0DoNuI7ZPDIQs9U5L0z/VgbrjrUjS4MC0yhY+Q==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -21730,7 +21729,7 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-/4uvdV8knvoUXWVylxyI2TUGPxYGCLFek8Yh5idIxC2WeJDAdzeTXEcwFcMobMA41J2iBwuVhpwIty8fSMJd/Q==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-CwelXTLp6cMdIXH1QwW5O5Z8MK7iKVTLJ3BlBIfc9l/rwDv8T8Uq4mGo5AUV7f+mo4Q5XZnD9YAVY3n13ELVEA==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: @@ -21775,7 +21774,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-5JIX+fXKCwPiySyzoyCJtGPfu4BV6Qxe5u5kbcYb9LkAsJm1pO/g8sEQ+ArQRZdQ4TDVVUGMz3tRO3FdLbpZrw==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-OzmxUl/PYHOS8yGyKUtF3xBu0bjmiS7sP8itZKcF9BrXcy/gUBV13jcThjQJPVdOqosige8PfFAlo+2weP2MMA==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -21821,7 +21820,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-tV8DqnE6Lr8GpmVMbG7GZ3EKN7/jbnwNOvdBGFkYMr/AdF7nLhfUkk5+c67F6vpAV2hcccvBZxTcowLEu9MBWA==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-y9Gw6NsQ6LPFuwFO8oGSrDAAHqS82tjtJq1Dm6qJn22lpz+QiVdSAlv/3VO0SvaNZ9I5LyewwzlwIhkdPM6eJA==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -21865,7 +21864,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-p7lmls5XlMEAkMAanyI4OwaoRXFzQVnHBd5SvPuXyDOiJdv5wEszCuMaLl6HfjpKXAey0QMsyKTxR57K4ttpHA==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-NX2prF/kGaSLwSrS12RsS5hdh4ZqF3wIiEW9cB3dQosMGROwwzAsxWqgqzOEy+QhhWX+++Fhyx4vql29mZbPPQ==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -21911,7 +21910,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-kl1NP0Aly8KJktFBvUrc+XJMgsE9Ude92tavMC2sPKhftN9TTuq3zwHIGEu9GxAItaFsVIPOyBEqaVwZn+Gq7g==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-Ga3erk3RtyoBrEhQzQ2z1/5Sp/8u3KPrPdz2KBE6lshhWhw/5RAUH9HQUgqxlPL6y6s/6Sb3BNFzWO/3C2aVEA==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -21959,7 +21958,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-4c7I4Sx9Qbs7tqcIquGfrBHxglzd7Aay4YlD6lf3nNOoKyqgc8Ssi9GMMCmRP17w6LZnB+P3s3mKDi/WGkqKjQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-tSqVosJDzzok10XlJ2YMtVAzc0Hk/wPnRZF989eU9/lAp7QEt2oDUc/NvICRe7XhUPFMcBbLhMFSSNvPtdPdBQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -22000,7 +21999,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-U33UZ/EkLPoVj/MhhtBw5FeS4Z0hc4BMcQjVjSPvQj75cCgpaU0U/krZ7GTiL/Dphyd/JETYpanzw71jNZnYdw==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-KAaSp+MzUlijvMRwj0RUyIpxTNmj9JRN9WtwHV+iBuFhsYFVYdlqJ8pyf/ix2LrHguwlTJ9vaN8vqjdV6k8rfQ==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -22036,7 +22035,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-yJd96STpLIo+CTk3UTbQaSd8ldzbNsKxsiXDGFRnmkpVY0SdofAgL8ZHmRQvKR9QP/12qkM/nwtZrXheAgUP3A==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-xHceNRrF53mpk2em5CqubyIkhKWRCywf/QFYMpXlre2L541PJiU4ck/GqVP6Ht3rpm8hXWYq85Zj5B+8Q1DYrQ==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -22077,7 +22076,7 @@ packages: dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-cWUJ54rsjIpb9PsE7hkAy4y7fkODWuNSaGjyKtqJNz4bv5GQm2CDUpuVmTMpjkiO/Eo0vhyglw8sqbG+oZGgWg==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-VJ2po8I4sUujbA0IQ4STNJoMJH+NjwDnzPPg4iK3xcLESJ1vdd2j47f3Ef0E4BlC5ItOyMgD4X0U2IDsXvrjEQ==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: @@ -22119,7 +22118,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-GhtVBNJOhG2NoJLtD8125wOgW3po9rtn2P4uFJ/OifLK8Yt/Ihh+ObgH5zWxN1OSlHg7xiUHpmxR38dXH8QcWw==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-d7ntz0EHL6il93Owu/txDMufxBB+zTdeou55PJkSAiSNNjyjjgUuGpbxjV4sOx2UiLKjp+2j1z3PGFNYBaE67w==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -22162,7 +22161,7 @@ packages: dev: false file:projects/test-credential.tgz: - resolution: {integrity: sha512-DLgL6tmgleuMNJiUw3y0sl3yjzFDRCZUUqU85OiJzzicRNdCjOhx2m85EJ0MassMup+sxWsOumbeV1hdE1WHUA==, tarball: file:projects/test-credential.tgz} + resolution: {integrity: sha512-gTRmQq4EwHS+RQz40ZRg+k4l1Uw29zdRiWHTHJsPUGr3zLr9sRMDHpgvHNYNtNvEj/cuk1PecGkctr4Ks0XGRw==, tarball: file:projects/test-credential.tgz} name: '@rush-temp/test-credential' version: 0.0.0 dependencies: @@ -22180,7 +22179,7 @@ packages: dev: false file:projects/test-recorder.tgz: - resolution: {integrity: sha512-mqd8Rhk6qP95pjgMASERASgaF6QjSBTnupvTA/3ZYA95cigg2OuobQeFdTL+t8MB8T3OWE0YSi2CAqeZYjOSaA==, tarball: file:projects/test-recorder.tgz} + resolution: {integrity: sha512-j/q/5kY0P7F7LOmefZPLX9jMJeGs3uiOxMcEtzjLbzAPsoOxr/JTQ+o1iB3BO03WfrwJ4542op1G9RPrZvnMQg==, tarball: file:projects/test-recorder.tgz} name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: @@ -22220,7 +22219,7 @@ packages: dev: false file:projects/test-utils-perf.tgz: - resolution: {integrity: sha512-R/2OafMDrnpOYos4yW4RHmQAZQyxbG0+uNJQYA9jjnbnKuZTInmaAZoU73FOOrjCZBfX7TAYn/tsUBQVS3BL4A==, tarball: file:projects/test-utils-perf.tgz} + resolution: {integrity: sha512-WFP5ojdxf3UTanWWi0m66tu0AE+0RSv2q3EQSSKtDpheawdXYirXWwjR/Uf4HSLgFa2N96L4cxs5pA9BS2KO3A==, tarball: file:projects/test-utils-perf.tgz} name: '@rush-temp/test-utils-perf' version: 0.0.0 dependencies: @@ -22248,7 +22247,7 @@ packages: dev: false file:projects/test-utils.tgz: - resolution: {integrity: sha512-DwBo66ieqQPqfjI3z2waj0OO8do548CVP+PZAICdC5w/Fq8ZOz6dMh09PWYXkpZCvXaFDtl0aaYtAwDmtMAcSw==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-MihJGeJOvpzoOAnTPM3n3aK/NaAMMCk0mXeRigN66YPAtoX7p24DaZuThDcPrAua/uVoClSZHvloJ0NgtroLpQ==, tarball: file:projects/test-utils.tgz} name: '@rush-temp/test-utils' version: 0.0.0 dependencies: @@ -22284,7 +22283,7 @@ packages: dev: false file:projects/ts-http-runtime.tgz: - resolution: {integrity: sha512-HyGi6Yahjy4aNreOcQN4NWv7LGcax0E/7Rpg+HuM3U022EdzNwaNQ3szWW0F/RMNw8Rph1gDvG41R0SsyELwuQ==, tarball: file:projects/ts-http-runtime.tgz} + resolution: {integrity: sha512-HPx4nELna/MO9u/GH64GLsaBqwbjM3jJM1lba5Om02nXUwp2JdAwbWS2pt6WPHipxjNhwdqEguzXr85waTIQEQ==, tarball: file:projects/ts-http-runtime.tgz} name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: @@ -22320,7 +22319,7 @@ packages: dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-8Jg44N2Xy3VsZaSgcBDkWDjjpT8NcU+0TXvb3PCravbYHdMtI8K/XpI6fkpZnisjjl6dEE2MCUX6ecPAoFvvnQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-oYyxWJs0yiBuHRK1euUkqJ2WM0LVn+fgnhkQrnjRmvu1kp4+rbmDA3E5UmxKBzxgdFs29chO8Fx/0YipGFMQkA==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: @@ -22335,7 +22334,7 @@ packages: dev: false file:projects/web-pubsub-client-protobuf.tgz: - resolution: {integrity: sha512-tW709YZSIRFko8C3hbjhQqgOO/Md5hbJRIxsbauRr9vut9fD4r5AmPP4YrGP7qcyc4OL+zZHzS9V9cVfXzmDDA==, tarball: file:projects/web-pubsub-client-protobuf.tgz} + resolution: {integrity: sha512-uvpFPo6XIzyHKic6DRBTc//6R6m8n7mhi3CoYLnzEpQMJaiXsEtxXOREBRSdgm+1fz/OaYw1i7BDr9puGy0fAA==, tarball: file:projects/web-pubsub-client-protobuf.tgz} name: '@rush-temp/web-pubsub-client-protobuf' version: 0.0.0 dependencies: @@ -22396,7 +22395,7 @@ packages: dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-XoXsTwBU/quZBvcXcaXviSu92SHndVE8H5SmpPL8MhpjinqmSsx6p1Hi+TK+eyxyP1zUZhS3YYIvKdk38Il3BA==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-c2g3ZI0rWjlkBSH8zaqdqVuxE6p7TU0UlJk1NVn6bOgOgIYXwIrxTRMmmDFMTyoappHgeGLwzusF6lX3eGhXQQ==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: @@ -22452,7 +22451,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-WPtvAZ0OsQOolX5WUKH/Z5x3P8CSif43aacM/a8OzBSO/RlGhiRXqxE+rZhGZZ/iWO6GMwNzLQSmO9DAuwbd4g==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-ob7yKXEnCeb+cRYORSYN/N9VeHU+xA9eEppxRdkNTqYFGlQCkA3DrLvqwmYvQYYqvGuCQ5uhfCLMAXl/LBrd0Q==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -22489,7 +22488,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-leLUmqZbSAXmzpkoO5aRtpa2lPnDmKQy2gTBmhpmyRsXnH1GqDV1wGHJ/PauTVzdl7hpq9WRIuYwxwVmLaYj0Q==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-++ibJXG+7uOjChJLGKcUkGLUcqfLXTatj1eTM7TbkJXOhGcdrUYovedIaPV51UFCwgE0yYi3XuiCJs6GvQL4vA==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/sdk/monitor/monitor-opentelemetry-exporter/package.json b/sdk/monitor/monitor-opentelemetry-exporter/package.json index 0cc463473782..0460a4c456a9 100644 --- a/sdk/monitor/monitor-opentelemetry-exporter/package.json +++ b/sdk/monitor/monitor-opentelemetry-exporter/package.json @@ -89,6 +89,7 @@ "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", "c8": "^8.0.0", + "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", "eslint-plugin-node": "^11.1.0", diff --git a/sdk/monitor/monitor-opentelemetry/package.json b/sdk/monitor/monitor-opentelemetry/package.json index 7c01800a690c..d692745c04f9 100644 --- a/sdk/monitor/monitor-opentelemetry/package.json +++ b/sdk/monitor/monitor-opentelemetry/package.json @@ -71,6 +71,7 @@ "@types/node": "^18.0.0", "@types/sinon": "^17.0.0", "c8": "^8.0.0", + "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", "eslint-plugin-node": "^11.1.0", From 9f6270cd7b01ba5587c2a6cc1195cb064762d124 Mon Sep 17 00:00:00 2001 From: v-durgeshs <146056835+v-durgeshs@users.noreply.github.com> Date: Thu, 14 Mar 2024 04:00:43 +0530 Subject: [PATCH 36/57] Added Transcription Packet Parser. (#28799) ### Issues associated with this PR [User Story 3604450](https://skype.visualstudio.com/SPOOL/_workitems/edit/3604450): [Alpha3][NodeJS][Transcription][SDK] Add Transcription packets parser. [User Story 3595649](https://skype.visualstudio.com/SPOOL/_workitems/edit/3595649): [Alpha3][NodeJS][Transcription][SDK] Add Duration for TranscriptionData and Words ### Describe the problem that is addressed by this PR Adding the parser for the stream data --- .../src/models/transcription.ts | 70 +++++++++++++++++++ .../src/utli/streamingDataParser.ts | 43 ++++++++++++ .../test/streamingDataParser.spec.ts | 69 ++++++++++++++++++ 3 files changed, 182 insertions(+) create mode 100644 sdk/communication/communication-call-automation/src/models/transcription.ts create mode 100644 sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts create mode 100644 sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts diff --git a/sdk/communication/communication-call-automation/src/models/transcription.ts b/sdk/communication/communication-call-automation/src/models/transcription.ts new file mode 100644 index 000000000000..46f5bcbff9e7 --- /dev/null +++ b/sdk/communication/communication-call-automation/src/models/transcription.ts @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { CommunicationIdentifier } from "@azure/communication-common"; + +/** + * The status of the result of transcription. + */ +export enum ResultStatus { + /** Intermediate result.*/ + Intermediate = "intermediate", + /** Final result.*/ + Final = "final", +} + +/** + * The format of transcription text. + */ +export enum TextFormat { + /** Formatted recognize text with punctuations.*/ + Disply = "display", +} + +/** + * Text in the phrase. + */ +export interface WordData { + /** Text in the phrase.*/ + text: string; + /** The word's position within the phrase.*/ + offset: number; + /** Duration in ticks. 1 tick = 100 nanoseconds.*/ + duration: number; +} + +/** + * Metadata for Transcription Streaming. + */ +export interface TranscriptionMetadata { + /** Transcription Subscription Id.*/ + subscriptionId: string; + /** The target locale in which the translated text needs to be.*/ + locale: string; + /** call connection Id.*/ + callConnectionId: string; + /** correlation Id.*/ + correlationId: string; +} + +/** + * Streaming Transcription. + */ +export interface TranscriptionData { + /** The display form of the recognized word.*/ + text: string; + /** The format of text.*/ + format: TextFormat; + /** Confidence of recognition of the whole phrase, from 0.0 (no confidence) to 1.0 (full confidence). */ + confidence: number; + /** The position of this payload. */ + offset: number; + /** Duration in ticks. 1 tick = 100 nanoseconds. */ + duration: number; + /** The result for each word of the phrase. */ + words: WordData[]; + /** The identified speaker based on participant raw ID. */ + participant: CommunicationIdentifier; + /** Status of the result of transcription. */ + resultStatus: ResultStatus; +} diff --git a/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts b/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts new file mode 100644 index 000000000000..709ee52092d8 --- /dev/null +++ b/sdk/communication/communication-call-automation/src/utli/streamingDataParser.ts @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { createIdentifierFromRawId } from "@azure/communication-common"; +import { TranscriptionMetadata, TranscriptionData } from "../models/transcription"; + +/** Parse the incoming package. */ +export function streamingData( + packetData: string | ArrayBuffer, +): TranscriptionMetadata | TranscriptionData { + let stringJson: string; + if (typeof packetData === "string") { + stringJson = packetData; + } else { + const decoder = new TextDecoder(); + stringJson = decoder.decode(packetData); + } + + const jsonObject = JSON.parse(stringJson); + const kind: string = jsonObject.kind; + + switch (kind) { + case "TranscriptionMetadata": { + const transcriptionMetadata: TranscriptionMetadata = jsonObject.transcriptionMetadata; + return transcriptionMetadata; + } + case "TranscriptionData": { + const transcriptionData: TranscriptionData = { + text: jsonObject.transcriptionData.text, + format: jsonObject.transcriptionData.format, + confidence: jsonObject.transcriptionData.confidence, + offset: jsonObject.transcriptionData.offset, + duration: jsonObject.transcriptionData.duration, + words: jsonObject.transcriptionData.words, + participant: createIdentifierFromRawId(jsonObject.transcriptionData.participantRawID), + resultStatus: jsonObject.transcriptionData.resultStatus, + }; + return transcriptionData; + } + default: + throw new Error(stringJson); + } +} diff --git a/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts b/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts new file mode 100644 index 000000000000..b339bf4e9c83 --- /dev/null +++ b/sdk/communication/communication-call-automation/test/streamingDataParser.spec.ts @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { TranscriptionData, TranscriptionMetadata } from "../src/models/transcription"; +import { streamingData } from "../src/utli/streamingDataParser"; +import { assert } from "chai"; + +describe("Stream data parser unit tests", function () { + const encoder = new TextEncoder(); + const transcriptionMetaDataJson = + '{"kind":"TranscriptionMetadata","transcriptionMetadata":{"subscriptionId":"0000a000-9999-5555-ae00-cd00e0bc0000","locale":"en-US","callConnectionId":"6d09449c-6677-4f91-8cb7-012c338e6ec1","correlationId":"6d09449c-6677-4f91-8cb7-012c338e6ec1"}}'; + const transcriptionDataJson = + '{"kind":"TranscriptionData","transcriptionData":{"text":"Hello everyone.","format":"display","confidence":0.8249790668487549,"offset":2516933652456984600,"words":[{"text":"hello","offset":2516933652456984600},{"text":"everyone","offset":2516933652459784700}],"participantRawID":"4:+910000000000","resultStatus":"Final"}}'; + + it("Successfully parse binary data to transcription meta data ", function () { + const transcriptionMetaDataBinary = encoder.encode(transcriptionMetaDataJson); + const parsedData = streamingData(transcriptionMetaDataBinary); + if ("locale" in parsedData) { + validateTranscriptionMetadata(parsedData); + } + }); + + it("Successfully parse json data to transcription meta data ", function () { + const parsedData = streamingData(transcriptionMetaDataJson); + if ("locale" in parsedData) { + validateTranscriptionMetadata(parsedData); + } + }); + + it("Successfully parse binary data to transcription data ", function () { + const transcriptionDataBinary = encoder.encode(transcriptionDataJson); + const parsedData = streamingData(transcriptionDataBinary); + if ("text" in parsedData) { + validateTranscriptionData(parsedData); + } + }); + + it("Successfully parse json data to transcription data ", function () { + const parsedData = streamingData(transcriptionDataJson); + if ("text" in parsedData) { + validateTranscriptionData(parsedData); + } + }); +}); + +function validateTranscriptionMetadata(transcriptionMetadata: TranscriptionMetadata): void { + assert.equal(transcriptionMetadata.subscriptionId, "0000a000-9999-5555-ae00-cd00e0bc0000"); + assert.equal(transcriptionMetadata.locale, "en-US"); + assert.equal(transcriptionMetadata.correlationId, "6d09449c-6677-4f91-8cb7-012c338e6ec1"); + assert.equal(transcriptionMetadata.callConnectionId, "6d09449c-6677-4f91-8cb7-012c338e6ec1"); +} + +function validateTranscriptionData(transcriptionData: TranscriptionData): void { + assert.equal(transcriptionData.text, "Hello everyone."); + assert.equal(transcriptionData.resultStatus, "Final"); + assert.equal(transcriptionData.confidence, 0.8249790668487549); + assert.equal(transcriptionData.offset, 2516933652456984600); + assert.equal(transcriptionData.words.length, 2); + assert.equal(transcriptionData.words[0].text, "hello"); + assert.equal(transcriptionData.words[0].offset, 2516933652456984600); + assert.equal(transcriptionData.words[1].text, "everyone"); + assert.equal(transcriptionData.words[1].offset, 2516933652459784700); + if ("kind" in transcriptionData.participant) { + assert.equal(transcriptionData.participant.kind, "phoneNumber"); + } + if ("phoneNumber" in transcriptionData.participant) { + assert.equal(transcriptionData.participant.phoneNumber, "+910000000000"); + } +} From 4c0a0facf9e512e2086624293c25f0bc68ead737 Mon Sep 17 00:00:00 2001 From: Timo van Veenendaal Date: Wed, 13 Mar 2024 16:40:26 -0700 Subject: [PATCH 37/57] [core-lro] Restore `files` section to package.json (#28909) ### Packages impacted by this PR - `@azure/core-lro` ### Describe the problem that is addressed by this PR In the ESM migration it appears we accidentally removed the `files` section from package.json for this package, so the built and packed package includes everything including the source code. This PR restores the field in line with the other ESMified Core packages. --- sdk/core/core-lro/package.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index f025123476c0..68914bab0a52 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -26,6 +26,11 @@ } } }, + "files": [ + "dist/", + "LICENSE", + "README.md" + ], "main": "./dist/commonjs/index.js", "types": "./dist/commonjs/index.d.ts", "tags": [ From f9892bb7d46823a3d94b3c1cdfac62e61b3f0c10 Mon Sep 17 00:00:00 2001 From: KarishmaGhiya Date: Wed, 13 Mar 2024 19:44:52 -0700 Subject: [PATCH 38/57] [Identity] Managed Identity test automation: Azure Functions and Webapps (#28554) --- .gitignore | 4 + eng/.docsettings.yml | 1 + sdk/identity/identity/.gitignore | 2 + .../AzureFunctions/RunTest/function.json | 17 + .../AzureFunctions/RunTest/host.json | 15 + .../RunTest/local.settings.json | 7 + .../AzureFunctions/RunTest/package.json | 29 ++ .../authenticateToStorageFunction.ts | 61 ++++ .../AzureFunctions/RunTest/tsconfig.json | 14 + .../integration/AzureKubernetes/Dockerfile | 20 ++ .../integration/AzureKubernetes/package.json | 22 ++ .../integration/AzureKubernetes/src/index.ts | 48 +++ .../integration/AzureKubernetes/tsconfig.json | 13 + .../integration/AzureWebApps/package.json | 27 ++ .../integration/AzureWebApps/src/index.ts | 60 ++++ .../integration/AzureWebApps/tsconfig.json | 13 + sdk/identity/identity/package.json | 2 +- sdk/identity/identity/test-resources.bicep | 1 - .../integration/azureFunctionsTest.spec.ts | 39 ++ .../test/integration/azureWebAppsTest.spec.ts | 34 ++ sdk/identity/identity/tsconfig.json | 2 +- sdk/identity/test-resources-post.ps1 | 139 ++++++++ sdk/identity/test-resources-pre.ps1 | 59 ++++ sdk/identity/test-resources.bicep | 332 ++++++++++++++++++ 24 files changed, 958 insertions(+), 3 deletions(-) create mode 100644 sdk/identity/identity/integration/AzureFunctions/RunTest/function.json create mode 100644 sdk/identity/identity/integration/AzureFunctions/RunTest/host.json create mode 100644 sdk/identity/identity/integration/AzureFunctions/RunTest/local.settings.json create mode 100644 sdk/identity/identity/integration/AzureFunctions/RunTest/package.json create mode 100644 sdk/identity/identity/integration/AzureFunctions/RunTest/src/functions/authenticateToStorageFunction.ts create mode 100644 sdk/identity/identity/integration/AzureFunctions/RunTest/tsconfig.json create mode 100644 sdk/identity/identity/integration/AzureKubernetes/Dockerfile create mode 100644 sdk/identity/identity/integration/AzureKubernetes/package.json create mode 100644 sdk/identity/identity/integration/AzureKubernetes/src/index.ts create mode 100644 sdk/identity/identity/integration/AzureKubernetes/tsconfig.json create mode 100644 sdk/identity/identity/integration/AzureWebApps/package.json create mode 100644 sdk/identity/identity/integration/AzureWebApps/src/index.ts create mode 100644 sdk/identity/identity/integration/AzureWebApps/tsconfig.json delete mode 100644 sdk/identity/identity/test-resources.bicep create mode 100644 sdk/identity/identity/test/integration/azureFunctionsTest.spec.ts create mode 100644 sdk/identity/identity/test/integration/azureWebAppsTest.spec.ts create mode 100644 sdk/identity/test-resources-post.ps1 create mode 100644 sdk/identity/test-resources-pre.ps1 create mode 100644 sdk/identity/test-resources.bicep diff --git a/.gitignore b/.gitignore index cadfa4fd91ed..e966622f3d04 100644 --- a/.gitignore +++ b/.gitignore @@ -186,3 +186,7 @@ sdk/template/template-dpg/src/src # tshy .tshy-build-tmp + +# sshkey +sdk/**/sshkey +sdk/**/sshkey.pub diff --git a/eng/.docsettings.yml b/eng/.docsettings.yml index 689081ab5265..befbcdb9c233 100644 --- a/eng/.docsettings.yml +++ b/eng/.docsettings.yml @@ -23,6 +23,7 @@ omitted_paths: - sdk/storage/storage-datalake/README.md - sdk/storage/storage-internal-avro/* - sdk/test-utils/*/README.md + - sdk/identity/identity/integration/* language: js root_check_enabled: True diff --git a/sdk/identity/identity/.gitignore b/sdk/identity/identity/.gitignore index 3d6981104f4d..ba21a232df7d 100644 --- a/sdk/identity/identity/.gitignore +++ b/sdk/identity/identity/.gitignore @@ -1,3 +1,5 @@ src/**/*.js +integration/AzureFunctions/app.zip +integration/AzureWebApps/.azure/ !assets/fake-cert.pem !assets/fake-cert-password.pem diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/function.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/function.json new file mode 100644 index 000000000000..f79d5fe8bf33 --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/function.json @@ -0,0 +1,17 @@ +{ + "bindings": [ + { + "type": "httpTrigger", + "direction": "in", + "authLevel": "anonymous", + "methods": ["get"], + "name": "req" + }, + { + "type": "http", + "direction": "out", + "name": "res" + } + ], + "scriptFile": "./dist/authenticateToStorageFunction.js" +} diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/host.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/host.json new file mode 100644 index 000000000000..9abc15037e03 --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/host.json @@ -0,0 +1,15 @@ +{ + "version": "2.0", + "logging": { + "applicationInsights": { + "samplingSettings": { + "isEnabled": true, + "excludedTypes": "Request" + } + } + }, + "extensionBundle": { + "id": "Microsoft.Azure.Functions.ExtensionBundle", + "version": "[4.0.0, 5.0.0)" + } + } \ No newline at end of file diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/local.settings.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/local.settings.json new file mode 100644 index 000000000000..8cba42ef2749 --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/local.settings.json @@ -0,0 +1,7 @@ +{ + "IsEncrypted": false, + "Values": { + "FUNCTIONS_WORKER_RUNTIME": "node" + }, + "ConnectionStrings": {} + } \ No newline at end of file diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/package.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/package.json new file mode 100644 index 000000000000..0242646db4ff --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/package.json @@ -0,0 +1,29 @@ +{ + "name": "@azure-samples/azure-function-test", + "version": "1.0.0", + "description": "", + "main": "dist/authenticateToStorageFunction.js", + "scripts": { + "build": "tsc", + "build:production": "npm run prestart && npm prune --production", + "clean": "rimraf --glob dist dist-*", + "prestart": "npm run build:production && func extensions install", + "start:host": "func start --typescript", + "start": "npm-run-all --parallel start:host watch", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "@azure/identity": "^4.0.0", + "@azure/storage-blob": "^12.17.0", + "@azure/functions": "^4.1.0", + "applicationinsights": "^2.9.2", + "tslib": "^1.10.0" + }, + "devDependencies": { + "npm-run-all": "^4.1.5", + "typescript": "^5.3.3", + "rimraf": "^5.0.5" + } +} diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/src/functions/authenticateToStorageFunction.ts b/sdk/identity/identity/integration/AzureFunctions/RunTest/src/functions/authenticateToStorageFunction.ts new file mode 100644 index 000000000000..de747a680dac --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/src/functions/authenticateToStorageFunction.ts @@ -0,0 +1,61 @@ + +import { BlobServiceClient } from "@azure/storage-blob"; +import { ManagedIdentityCredential } from "@azure/identity"; +import { app, HttpRequest, HttpResponseInit, InvocationContext } from "@azure/functions"; + +export async function authenticateStorage(request: HttpRequest, context: InvocationContext): Promise { + try { + context.log('Http function was triggered.'); + //parse the request body + await authToStorageHelper(context); + + return { + // status: 200, /* Defaults to 200 */ + body: "Successfully authenticated with storage", + }; + } catch (error: any) { + context.log(error); + return { + status: 400, + body: error, + }; + } +}; + +app.http('authenticateStorage', { + methods: ['GET', 'POST'], + authLevel: "anonymous", + handler: authenticateStorage +}); + +async function authToStorageHelper(context: InvocationContext): Promise { + // This will use the system managed identity + const credential1 = new ManagedIdentityCredential(); + + const clientId = process.env.IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID!; + const account1 = process.env.IDENTITY_STORAGE_NAME_1; + const account2 = process.env.IDENTITY_STORAGE_NAME_2; + + const credential2 = new ManagedIdentityCredential({ "clientId": clientId }); + const client1 = new BlobServiceClient(`https://${account1}.blob.core.windows.net`, credential1); + const client2 = new BlobServiceClient(`https://${account2}.blob.core.windows.net`, credential2); + context.log("Getting containers for storage account client: system managed identity") + let iter = client1.listContainers(); + let i = 1; + context.log("Client with system assigned identity"); + let containerItem = await iter.next(); + while (!containerItem.done) { + context.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + + context.log("Getting properties for storage account client: user assigned managed identity") + iter = client2.listContainers(); + context.log("Client with user assigned identity"); + containerItem = await iter.next(); + while (!containerItem.done) { + context.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + +} diff --git a/sdk/identity/identity/integration/AzureFunctions/RunTest/tsconfig.json b/sdk/identity/identity/integration/AzureFunctions/RunTest/tsconfig.json new file mode 100644 index 000000000000..62ac3de554d7 --- /dev/null +++ b/sdk/identity/identity/integration/AzureFunctions/RunTest/tsconfig.json @@ -0,0 +1,14 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + }, + "include": ["src"] + } + \ No newline at end of file diff --git a/sdk/identity/identity/integration/AzureKubernetes/Dockerfile b/sdk/identity/identity/integration/AzureKubernetes/Dockerfile new file mode 100644 index 000000000000..143b832a5485 --- /dev/null +++ b/sdk/identity/identity/integration/AzureKubernetes/Dockerfile @@ -0,0 +1,20 @@ +# ------------------------------------ +# Copyright (c) Microsoft Corporation. +# Licensed under the MIT License. +# ------------------------------------ +ARG NODE_VERSION=20 + +# docker can't tell when the repo has changed and will therefore cache this layer +# internal users should provide MCR registry to build via 'docker build . --build-arg REGISTRY="mcr.microsoft.com/mirror/docker/library/"' +# public OSS users should simply leave this argument blank or ignore its presence entirely +ARG REGISTRY="" + +FROM ${REGISTRY}node:${NODE_VERSION}-alpine as repo +RUN apk --no-cache add git +RUN git clone https://github.com/azure/azure-sdk-for-js --single-branch --branch main --depth 1 /azure-sdk-for-js + +WORKDIR /azure-sdk-for-js/sdk/identity/identity/test/integration/AzureKubernetes +RUN npm install +RUN npm install -g typescript +RUN tsc -p . +CMD ["node", "index"] diff --git a/sdk/identity/identity/integration/AzureKubernetes/package.json b/sdk/identity/identity/integration/AzureKubernetes/package.json new file mode 100644 index 000000000000..ba94e773afbe --- /dev/null +++ b/sdk/identity/identity/integration/AzureKubernetes/package.json @@ -0,0 +1,22 @@ +{ + "name": "@azure-samples/azure-kubernetes-test", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "build": "tsc", + "start": "ts-node src/index.ts", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "@azure/identity": "^4.0.0", + "@azure/storage-blob": "^12.17.0", + "tslib": "^1.10.0", + "ts-node": "10.9.2" + }, + "devDependencies": { + "typescript": "^5.3.3" + } + } diff --git a/sdk/identity/identity/integration/AzureKubernetes/src/index.ts b/sdk/identity/identity/integration/AzureKubernetes/src/index.ts new file mode 100644 index 000000000000..a35f0bb35d86 --- /dev/null +++ b/sdk/identity/identity/integration/AzureKubernetes/src/index.ts @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { ManagedIdentityCredential } from "@azure/identity"; +import { BlobServiceClient } from "@azure/storage-blob"; +import * as dotenv from "dotenv"; +// Initialize the environment +dotenv.config(); + +async function main(): Promise { + let systemSuccessMessage = ""; + try{ + const account1 = process.env.IDENTITY_STORAGE_NAME_1; + const account2 = process.env.IDENTITY_STORAGE_NAME_2; + const credentialSystemAssigned = new ManagedIdentityCredential(); + const credentialUserAssigned = new ManagedIdentityCredential({clientId: process.env.IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID}) + const client1 = new BlobServiceClient(`https://${account1}.blob.core.windows.net`, credentialSystemAssigned); + const client2 = new BlobServiceClient(`https://${account2}.blob.core.windows.net`, credentialUserAssigned); + let iter = client1.listContainers(); + + let i = 1; + console.log("Client with system assigned identity"); + let containerItem = await iter.next(); + while (!containerItem.done) { + console.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + systemSuccessMessage = "Successfully acquired token with system-assigned ManagedIdentityCredential" + console.log("Client with user assigned identity") + iter = client2.listContainers(); + i = 1; + containerItem = await iter.next(); + while (!containerItem.done) { + console.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + console.log("Successfully acquired tokens with async ManagedIdentityCredential") + } + catch(e){ + console.error(`${e} \n ${systemSuccessMessage}`); + } + } + + main().catch((err) => { + console.log("error code: ", err.code); + console.log("error message: ", err.message); + console.log("error stack: ", err.stack); + }); diff --git a/sdk/identity/identity/integration/AzureKubernetes/tsconfig.json b/sdk/identity/identity/integration/AzureKubernetes/tsconfig.json new file mode 100644 index 000000000000..48d7948cbd24 --- /dev/null +++ b/sdk/identity/identity/integration/AzureKubernetes/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "." + } + } \ No newline at end of file diff --git a/sdk/identity/identity/integration/AzureWebApps/package.json b/sdk/identity/identity/integration/AzureWebApps/package.json new file mode 100644 index 000000000000..8cce2f60ae33 --- /dev/null +++ b/sdk/identity/identity/integration/AzureWebApps/package.json @@ -0,0 +1,27 @@ +{ + "name": "@azure-samples/azure-web-apps-test", + "version": "1.0.0", + "description": "", + "main": "dist/index.js", + "scripts": { + "build": "tsc", + "start": "node dist/index.js", + "clean": "rimraf --glob dist dist-*", + "test": "echo \"Error: no test specified\" && exit 1" + }, + "author": "", + "license": "ISC", + "dependencies": { + "@azure/identity": "^4.0.0", + "@azure/storage-blob": "^12.17.0", + "express": "^4.18.2", + "tslib": "^1.10.0" + }, + "devDependencies": { + "npm-run-all": "^4.1.5", + "typescript": "^5.3.3", + "@types/express": "^4.17.21", + "dotenv": "16.4.4", + "rimraf": "^5.0.5" + } +} diff --git a/sdk/identity/identity/integration/AzureWebApps/src/index.ts b/sdk/identity/identity/integration/AzureWebApps/src/index.ts new file mode 100644 index 000000000000..235c7b4e6345 --- /dev/null +++ b/sdk/identity/identity/integration/AzureWebApps/src/index.ts @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import express from "express"; +import { ManagedIdentityCredential } from "@azure/identity"; +import { BlobServiceClient } from "@azure/storage-blob"; +import dotenv from "dotenv"; +// Initialize the environment +dotenv.config(); +const app = express(); + +app.get("/", (req: express.Request, res: express.Response) => { + res.send("Ok") +}) + +app.get("/sync", async (req: express.Request, res: express.Response) => { + let systemSuccessMessage = ""; + try { + const account1 = process.env.IDENTITY_STORAGE_NAME_1; + const credentialSystemAssigned = new ManagedIdentityCredential(); + const client1 = new BlobServiceClient(`https://${account1}.blob.core.windows.net`, credentialSystemAssigned); + let iter = client1.listContainers(); + let i = 0; + console.log("Client with system assigned identity"); + let containerItem = await iter.next(); + while (!containerItem.done) { + console.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + console.log("Client with system assigned identity"); + console.log("Properties of the 1st client =", iter); + systemSuccessMessage = "Successfully acquired token with system-assigned ManagedIdentityCredential" + console.log(systemSuccessMessage); + } + catch (e) { + console.error(e); + } + try { + const account2 = process.env.IDENTITY_STORAGE_NAME_2; + const credentialUserAssigned = new ManagedIdentityCredential({ clientId: process.env.IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID }) + const client2 = new BlobServiceClient(`https://${account2}.blob.core.windows.net`, credentialUserAssigned); + let iter = client2.listContainers(); + let i = 0; + console.log("Client with user assigned identity") + let containerItem = await iter.next(); + while (!containerItem.done) { + console.log(`Container ${i++}: ${containerItem.value.name}`); + containerItem = await iter.next(); + } + res.status(200).send("Successfully acquired tokens with async ManagedIdentityCredential") + } + catch (e) { + console.error(e); + res.status(500).send(`${e} \n ${systemSuccessMessage}`); + } +}) + +app.listen(8080, () => { + console.log(`Authorization code redirect server listening on port 8080`); +}); diff --git a/sdk/identity/identity/integration/AzureWebApps/tsconfig.json b/sdk/identity/identity/integration/AzureWebApps/tsconfig.json new file mode 100644 index 000000000000..d6dc70359561 --- /dev/null +++ b/sdk/identity/identity/integration/AzureWebApps/tsconfig.json @@ -0,0 +1,13 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + }, + "include": ["src"] + } \ No newline at end of file diff --git a/sdk/identity/identity/package.json b/sdk/identity/identity/package.json index de3eac1d4112..e244d7c21828 100644 --- a/sdk/identity/identity/package.json +++ b/sdk/identity/identity/package.json @@ -55,7 +55,7 @@ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "integration-test:browser": "echo skipped", - "integration-test:node": "dev-tool run test:node-js-input -- --timeout 180000 'dist-esm/test/public/node/*.spec.js' 'dist-esm/test/internal/node/*.spec.js'", + "integration-test:node": "dev-tool run test:node-ts-input -- --timeout 180000 'test/public/node/*.spec.ts' 'test/internal/node/*.spec.ts' 'test/integration/*.spec.ts'", "integration-test": "npm run integration-test:node && npm run integration-test:browser", "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", "lint": "eslint package.json api-extractor.json src test --ext .ts", diff --git a/sdk/identity/identity/test-resources.bicep b/sdk/identity/identity/test-resources.bicep deleted file mode 100644 index b3490d3b50af..000000000000 --- a/sdk/identity/identity/test-resources.bicep +++ /dev/null @@ -1 +0,0 @@ -param baseName string diff --git a/sdk/identity/identity/test/integration/azureFunctionsTest.spec.ts b/sdk/identity/identity/test/integration/azureFunctionsTest.spec.ts new file mode 100644 index 000000000000..a989f0a973d6 --- /dev/null +++ b/sdk/identity/identity/test/integration/azureFunctionsTest.spec.ts @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { ServiceClient } from "@azure/core-client"; +import { createPipelineRequest } from "@azure/core-rest-pipeline"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { isLiveMode } from "@azure-tools/test-recorder"; + +describe("AzureFunctions Integration test", function () { + it("test the Azure Functions endpoint where the sync MI credential is used.", async function (this: Context) { + if (!isLiveMode()) { + this.skip(); + } + const baseUri = baseUrl(); + const client = new ServiceClient({ baseUri: baseUri }); + const pipelineRequest = createPipelineRequest({ + url: baseUri, + method: "GET", + }); + const response = await client.sendRequest(pipelineRequest); + console.log(response.bodyAsText); + assert.equal(response.status, 200, `Expected status 200. Received ${response.status}`); + assert.equal( + response.bodyAsText, + "Successfully authenticated with storage", + `Expected message: "Successfully authenticated with storage". Received message: ${response.bodyAsText}`, + ); + }); +}); + +function baseUrl(): string { + const functionName = process.env.IDENTITY_FUNCTION_NAME; + if (!functionName) { + console.log("IDENTITY_FUNCTION_NAME is not set"); + throw new Error("IDENTITY_FUNCTION_NAME is not set"); + } + return `https://${functionName}.azurewebsites.net/api/authenticateStorage`; +} diff --git a/sdk/identity/identity/test/integration/azureWebAppsTest.spec.ts b/sdk/identity/identity/test/integration/azureWebAppsTest.spec.ts new file mode 100644 index 000000000000..ce77e9ddd09f --- /dev/null +++ b/sdk/identity/identity/test/integration/azureWebAppsTest.spec.ts @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { ServiceClient } from "@azure/core-client"; +import { createPipelineRequest } from "@azure/core-rest-pipeline"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { isLiveMode } from "@azure-tools/test-recorder"; + +describe("AzureWebApps Integration test", function () { + it("test the Azure Web Apps endpoint where the MI credential is used.", async function (this: Context) { + if (!isLiveMode()) { + this.skip(); + } + const baseUri = baseUrl(); + const client = new ServiceClient({ baseUri: baseUri }); + const pipelineRequest = createPipelineRequest({ + url: baseUri, + method: "GET", + }); + const response = await client.sendRequest(pipelineRequest); + console.log(response.bodyAsText); + assert.equal(response.status, 200, `Expected status 200. Received ${response.status}`); + }); +}); + +function baseUrl(): string { + const webAppName = process.env.IDENTITY_WEBAPP_NAME; + if (!webAppName) { + console.log("IDENTITY_WEBAPP_NAME is not set"); + throw new Error("IDENTITY_WEBAPP_NAME is not set"); + } + return `https://${webAppName}.azurewebsites.net/sync`; +} diff --git a/sdk/identity/identity/tsconfig.json b/sdk/identity/identity/tsconfig.json index dc4de9e400d1..ff9ab311ff4e 100644 --- a/sdk/identity/identity/tsconfig.json +++ b/sdk/identity/identity/tsconfig.json @@ -10,5 +10,5 @@ } }, "include": ["src/**/*", "test/**/*", "samples-dev/**/*.ts"], - "exclude": ["test/manual*/**/*", "node_modules"] + "exclude": ["test/manual*/**/*", "integration/**", "node_modules"] } diff --git a/sdk/identity/test-resources-post.ps1 b/sdk/identity/test-resources-post.ps1 new file mode 100644 index 000000000000..f0108f4fc09d --- /dev/null +++ b/sdk/identity/test-resources-post.ps1 @@ -0,0 +1,139 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +# IMPORTANT: Do not invoke this file directly. Please instead run eng/New-TestResources.ps1 from the repository root. + +param ( + [Parameter(ValueFromRemainingArguments = $true)] + $RemainingArguments, + + [Parameter()] + [hashtable] $DeploymentOutputs +) + +# If not Linux, skip this script. +# if ($isLinux -ne "Linux") { +# Write-Host "Skipping post-deployment because not running on Linux." +# return +# } + +$ErrorActionPreference = 'Continue' +$PSNativeCommandUseErrorActionPreference = $true + +$webappRoot = "$PSScriptRoot/identity/integration" | Resolve-Path +$workingFolder = $webappRoot; + +Write-Host "Working directory: $workingFolder" + +az login --service-principal -u $DeploymentOutputs['IDENTITY_CLIENT_ID'] -p $DeploymentOutputs['IDENTITY_CLIENT_SECRET'] --tenant $DeploymentOutputs['IDENTITY_TENANT_ID'] +az account set --subscription $DeploymentOutputs['IDENTITY_SUBSCRIPTION_ID'] + +# Azure Functions app deployment +Write-Host "Building the code for functions app" +Push-Location "$webappRoot/AzureFunctions/RunTest" +npm install +npm run build +Pop-Location +Write-Host "starting azure functions deployment" +Compress-Archive -Path "$workingFolder/AzureFunctions/RunTest/*" -DestinationPath "$workingFolder/AzureFunctions/app.zip" -Force +az functionapp deployment source config-zip -g $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] -n $DeploymentOutputs['IDENTITY_FUNCTION_NAME'] --src "$workingFolder/AzureFunctions/app.zip" +Remove-Item -Force "$workingFolder/AzureFunctions/app.zip" + +Write-Host "Deployed function app" +# $image = "$loginServer/identity-functions-test-image" +# docker build --no-cache -t $image "$workingFolder/AzureFunctions" +# docker push $image + +# az functionapp config container set -g $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] -n $DeploymentOutputs['IDENTITY_FUNCTION_NAME'] -i $image -r $loginServer -p $(az acr credential show -n $DeploymentOutputs['IDENTITY_ACR_NAME'] --query "passwords[0].value" -o tsv) -u $(az acr credential show -n $DeploymentOutputs['IDENTITY_ACR_NAME'] --query username -o tsv) + +# Azure Web Apps app deployment +# Push-Location "$webappRoot/AzureWebApps" +# npm install +# npm run build +# Compress-Archive -Path "$workingFolder/AzureWebApps/*" -DestinationPath "$workingFolder/AzureWebApps/app.zip" -Force +# az webapp deploy --resource-group $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --name $DeploymentOutputs['IDENTITY_WEBAPP_NAME'] --src-path "$workingFolder/AzureWebApps/app.zip" --async true +# Remove-Item -Force "$workingFolder/AzureWebApps/app.zip" +# Pop-Location + +Push-Location "$webappRoot/AzureWebApps" +npm install +npm run build +az webapp up --resource-group $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --name $DeploymentOutputs['IDENTITY_WEBAPP_NAME'] --plan $DeploymentOutputs['IDENTITY_WEBAPP_PLAN'] --runtime NODE:18-lts +Pop-Location + +Write-Host "Deployed webapp" +Write-Host "Sleeping for a bit to ensure logs is ready." +Start-Sleep -Seconds 300 + +# Write-Host "Sleeping for a bit to ensure container registry is ready." +# Start-Sleep -Seconds 20 +# Write-Host "trying to login to acr" +# az acr login -n $DeploymentOutputs['IDENTITY_ACR_NAME'] +# $loginServer = az acr show -n $DeploymentOutputs['IDENTITY_ACR_NAME'] --query loginServer -o tsv + +# # Azure Kubernetes Service deployment +# $image = "$loginServer/identity-aks-test-image" +# docker build --no-cache -t $image "$workingFolder/AzureKubernetes" +# docker push $image + +# Attach the ACR to the AKS cluster +# Write-Host "Attaching ACR to AKS cluster" +# az aks update -n $DeploymentOutputs['IDENTITY_AKS_CLUSTER_NAME'] -g $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --attach-acr $DeploymentOutputs['IDENTITY_ACR_NAME'] + +# $MIClientId = $DeploymentOutputs['IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID'] +# $MIName = $DeploymentOutputs['IDENTITY_USER_DEFINED_IDENTITY_NAME'] +# $SaAccountName = 'workload-identity-sa' +# $PodName = $DeploymentOutputs['IDENTITY_AKS_POD_NAME'] +# $storageName = $DeploymentOutputs['IDENTITY_STORAGE_NAME_2'] + +# # Get the aks cluster credentials +# Write-Host "Getting AKS credentials" +# az aks get-credentials --resource-group $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --name $DeploymentOutputs['IDENTITY_AKS_CLUSTER_NAME'] + +# #Get the aks cluster OIDC issuer +# Write-Host "Getting AKS OIDC issuer" +# $AKS_OIDC_ISSUER = az aks show -n $DeploymentOutputs['IDENTITY_AKS_CLUSTER_NAME'] -g $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --query "oidcIssuerProfile.issuerUrl" -otsv + +# # Create the federated identity +# Write-Host "Creating federated identity" +# az identity federated-credential create --name $MIName --identity-name $MIName --resource-group $DeploymentOutputs['IDENTITY_RESOURCE_GROUP'] --issuer $AKS_OIDC_ISSUER --subject system:serviceaccount:default:workload-identity-sa + +# # Build the kubernetes deployment yaml +# $kubeConfig = @" +# apiVersion: v1 +# kind: ServiceAccount +# metadata: +# annotations: +# azure.workload.identity/client-id: $MIClientId +# name: $SaAccountName +# namespace: default +# --- +# apiVersion: v1 +# kind: Pod +# metadata: +# name: $PodName +# namespace: default +# labels: +# azure.workload.identity/use: "true" +# spec: +# serviceAccountName: $SaAccountName +# containers: +# - name: $PodName +# image: $image +# env: +# - name: IDENTITY_STORAGE_NAME +# value: "$StorageName" +# ports: +# - containerPort: 80 +# nodeSelector: +# kubernetes.io/os: linux +# "@ + +# Set-Content -Path "$workingFolder/kubeconfig.yaml" -Value $kubeConfig +# Write-Host "Created kubeconfig.yaml with contents:" +# Write-Host $kubeConfig + +# # Apply the config +# kubectl apply -f "$workingFolder/kubeconfig.yaml" --overwrite=true +# Write-Host "Applied kubeconfig.yaml" +# az logout diff --git a/sdk/identity/test-resources-pre.ps1 b/sdk/identity/test-resources-pre.ps1 new file mode 100644 index 000000000000..cb1f6dc12761 --- /dev/null +++ b/sdk/identity/test-resources-pre.ps1 @@ -0,0 +1,59 @@ +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. + +# IMPORTANT: Do not invoke this file directly. Please instead run eng/New-TestResources.ps1 from the repository root. +[CmdletBinding(SupportsShouldProcess = $true, ConfirmImpact = 'Medium')] +param ( + # Captures any arguments from eng/New-TestResources.ps1 not declared here (no parameter errors). + [Parameter(ValueFromRemainingArguments = $true)] + $RemainingArguments, + + [Parameter()] + [string] $Location = '', + + [Parameter()] + [ValidatePattern('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$')] + [string] $TestApplicationId, + + [Parameter()] + [string] $TestApplicationSecret, + + [Parameter()] + [ValidatePattern('^[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}$')] + [string] $SubscriptionId, + + [Parameter(ParameterSetName = 'Provisioner', Mandatory = $true)] + [ValidateNotNullOrEmpty()] + [string] $TenantId, + + [Parameter()] + [switch] $CI = ($null -ne $env:SYSTEM_TEAMPROJECTID) + +) + +Import-Module -Name $PSScriptRoot/../../eng/common/scripts/X509Certificate2 -Verbose + +ssh-keygen -t rsa -b 4096 -f $PSScriptRoot/sshKey -N '' -C '' +$sshKey = Get-Content $PSScriptRoot/sshKey.pub + +$templateFileParameters['sshPubKey'] = $sshKey + +Write-Host "Sleeping for a bit to ensure service principal is ready." +Start-Sleep -s 45 + +if ($CI) { + # Install this specific version of the Azure CLI to avoid https://github.com/Azure/azure-cli/issues/28358. + pip install azure-cli=="2.56.0" +} +$az_version = az version +Write-Host "Azure CLI version: $az_version" + +az login --service-principal -u $TestApplicationId -p $TestApplicationSecret --tenant $TenantId +az account set --subscription $SubscriptionId +$versions = az aks get-versions -l westus -o json | ConvertFrom-Json +Write-Host "AKS versions: $($versions | ConvertTo-Json -Depth 100)" +$patchVersions = $versions.values | Where-Object { $_.isPreview -eq $null } | Select-Object -ExpandProperty patchVersions +Write-Host "AKS patch versions: $($patchVersions | ConvertTo-Json -Depth 100)" +$latestAksVersion = $patchVersions | Get-Member -MemberType NoteProperty | Select-Object -ExpandProperty Name | Sort-Object -Descending | Select-Object -First 1 +Write-Host "Latest AKS version: $latestAksVersion" +$templateFileParameters['latestAksVersion'] = $latestAksVersion diff --git a/sdk/identity/test-resources.bicep b/sdk/identity/test-resources.bicep new file mode 100644 index 000000000000..881450bd0c83 --- /dev/null +++ b/sdk/identity/test-resources.bicep @@ -0,0 +1,332 @@ +@minLength(6) +@maxLength(23) +@description('The base resource name.') +param baseName string = resourceGroup().name + +@description('The location of the resource. By default, this is the same as the resource group.') +param location string = resourceGroup().location + +@description('The client OID to grant access to test resources.') +param testApplicationOid string + +@minLength(5) +@maxLength(50) +@description('Provide a globally unique name of the Azure Container Registry') +param acrName string = 'acr${uniqueString(resourceGroup().id)}' + +@description('The latest AKS version available in the region.') +param latestAksVersion string + +@description('The SSH public key to use for the Linux VMs.') +param sshPubKey string + +@description('The admin user name for the Linux VMs.') +param adminUserName string = 'azureuser' + +// https://learn.microsoft.com/azure/role-based-access-control/built-in-roles +// var blobContributor = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'ba92f5b4-2d11-453d-a403-e96b0029c9fe') // Storage Blob Data Contributor +var blobOwner = subscriptionResourceId('Microsoft.Authorization/roleDefinitions','b7e6dc6d-f1e8-4753-8033-0f276bb0955b') // Storage Blob Data Owner +var websiteContributor = subscriptionResourceId('Microsoft.Authorization/roleDefinitions', 'de139f84-1756-47ae-9be6-808fbbe84772') // Website Contributor + +// Cluster parameters +var kubernetesVersion = latestAksVersion + +resource userAssignedIdentity 'Microsoft.ManagedIdentity/userAssignedIdentities@2018-11-30' = { + name: baseName + location: location +} + +resource blobRoleWeb 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: storageAccount + name: guid(resourceGroup().id, blobOwner) + properties: { + principalId: web.identity.principalId + roleDefinitionId: blobOwner + principalType: 'ServicePrincipal' + } +} + +resource blobRoleFunc 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: storageAccount + name: guid(resourceGroup().id, blobOwner, 'azureFunction') + properties: { + principalId: azureFunction.identity.principalId + roleDefinitionId: blobOwner + principalType: 'ServicePrincipal' + } +} + +resource blobRoleCluster 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: storageAccount + name: guid(resourceGroup().id, blobOwner, 'kubernetes') + properties: { + principalId: kubernetesCluster.identity.principalId + roleDefinitionId: blobOwner + principalType: 'ServicePrincipal' + } +} + +resource blobRole2 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: storageAccount2 + name: guid(resourceGroup().id, blobOwner, userAssignedIdentity.id) + properties: { + principalId: userAssignedIdentity.properties.principalId + roleDefinitionId: blobOwner + principalType: 'ServicePrincipal' + } +} + +resource webRole 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: web + name: guid(resourceGroup().id, websiteContributor, 'web') + properties: { + principalId: testApplicationOid + roleDefinitionId: websiteContributor + principalType: 'ServicePrincipal' + } +} + +resource webRole2 'Microsoft.Authorization/roleAssignments@2022-04-01' = { + scope: azureFunction + name: guid(resourceGroup().id, websiteContributor, 'azureFunction') + properties: { + principalId: testApplicationOid + roleDefinitionId: websiteContributor + principalType: 'ServicePrincipal' + } +} + +resource storageAccount 'Microsoft.Storage/storageAccounts@2021-08-01' = { + name: baseName + location: location + sku: { + name: 'Standard_LRS' + } + kind: 'StorageV2' + properties: { + accessTier: 'Hot' + } +} + +resource storageAccount2 'Microsoft.Storage/storageAccounts@2021-08-01' = { + name: '${baseName}2' + location: location + sku: { + name: 'Standard_LRS' + } + kind: 'StorageV2' + properties: { + accessTier: 'Hot' + } +} + +resource farm 'Microsoft.Web/serverfarms@2021-03-01' = { + name: '${baseName}_farm' + location: location + sku: { + name: 'B1' + tier: 'Basic' + size: 'B1' + family: 'B' + capacity: 1 + } + properties: { + reserved: true + } + kind: 'app,linux' +} + +resource web 'Microsoft.Web/sites@2022-09-01' = { + name: '${baseName}webapp' + location: location + kind: 'app' + identity: { + type: 'SystemAssigned, UserAssigned' + userAssignedIdentities: { + '${userAssignedIdentity.id}' : { } + } + } + properties: { + enabled: true + serverFarmId: farm.id + httpsOnly: true + keyVaultReferenceIdentity: 'SystemAssigned' + siteConfig: { + linuxFxVersion: 'NODE|18-lts' + http20Enabled: true + minTlsVersion: '1.2' + appSettings: [ + { + name: 'AZURE_REGIONAL_AUTHORITY_NAME' + value: 'eastus' + } + { + name: 'IDENTITY_STORAGE_NAME_1' + value: storageAccount.name + } + { + name: 'IDENTITY_STORAGE_NAME_2' + value: storageAccount2.name + } + { + name: 'IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID' + value: userAssignedIdentity.properties.clientId + } + { + name: 'SCM_DO_BUILD_DURING_DEPLOYMENT' + value: 'true' + } + ] + } + } +} + +resource azureFunction 'Microsoft.Web/sites@2022-09-01' = { + name: '${baseName}func' + location: location + kind: 'functionapp' + identity: { + type: 'SystemAssigned, UserAssigned' + userAssignedIdentities: { + '${userAssignedIdentity.id}' : { } + } + } + properties: { + enabled: true + serverFarmId: farm.id + httpsOnly: true + keyVaultReferenceIdentity: 'SystemAssigned' + siteConfig: { + alwaysOn: true + http20Enabled: true + minTlsVersion: '1.2' + appSettings: [ + { + name: 'IDENTITY_STORAGE_NAME_1' + value: storageAccount.name + } + { + name: 'IDENTITY_STORAGE_NAME_2' + value: storageAccount2.name + } + { + name: 'IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID' + value: userAssignedIdentity.properties.clientId + } + { + name: 'AzureWebJobsStorage' + value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}' + } + { + name: 'WEBSITE_CONTENTAZUREFILECONNECTIONSTRING' + value: 'DefaultEndpointsProtocol=https;AccountName=${storageAccount.name};EndpointSuffix=${environment().suffixes.storage};AccountKey=${storageAccount.listKeys().keys[0].value}' + } + { + name: 'WEBSITE_CONTENTSHARE' + value: toLower('${baseName}-func') + } + { + name: 'FUNCTIONS_EXTENSION_VERSION' + value: '~4' + } + { + name: 'FUNCTIONS_WORKER_RUNTIME' + value: 'node' + } + { + name: 'DOCKER_CUSTOM_IMAGE_NAME' + value: 'mcr.microsoft.com/azure-functions/node:4-node18-appservice-stage3' + } + ] + } + } +} + +resource publishPolicyWeb 'Microsoft.Web/sites/basicPublishingCredentialsPolicies@2022-09-01' = { + kind: 'app' + parent: web + name: 'scm' + properties: { + allow: true + } +} + +resource publishPolicyFunction 'Microsoft.Web/sites/basicPublishingCredentialsPolicies@2022-09-01' = { + kind: 'functionapp' + parent: azureFunction + name: 'scm' + properties: { + allow: true + } +} + +resource acrResource 'Microsoft.ContainerRegistry/registries@2023-01-01-preview' = { + name: acrName + location: location + sku: { + name: 'Basic' + } + properties: { + adminUserEnabled: true + } +} + +resource kubernetesCluster 'Microsoft.ContainerService/managedClusters@2023-06-01' = { + name: baseName + location: location + identity: { + type: 'SystemAssigned' + } + properties: { + kubernetesVersion: kubernetesVersion + enableRBAC: true + dnsPrefix: 'identitytest' + agentPoolProfiles: [ + { + name: 'agentpool' + count: 1 + vmSize: 'Standard_D2s_v3' + osDiskSizeGB: 128 + osDiskType: 'Managed' + kubeletDiskType: 'OS' + type: 'VirtualMachineScaleSets' + enableAutoScaling: false + orchestratorVersion: kubernetesVersion + mode: 'System' + osType: 'Linux' + osSKU: 'Ubuntu' + } + ] + linuxProfile: { + adminUsername: adminUserName + ssh: { + publicKeys: [ + { + keyData: sshPubKey + } + ] + } + } + oidcIssuerProfile: { + enabled: true + } + securityProfile: { + workloadIdentity: { + enabled: true + } + } + } +} + +output IDENTITY_WEBAPP_NAME string = web.name +output IDENTITY_WEBAPP_PLAN string = farm.name +output IDENTITY_USER_DEFINED_IDENTITY string = userAssignedIdentity.id +output IDENTITY_USER_DEFINED_IDENTITY_CLIENT_ID string = userAssignedIdentity.properties.clientId +output IDENTITY_USER_DEFINED_IDENTITY_NAME string = userAssignedIdentity.name +output IDENTITY_STORAGE_NAME_1 string = storageAccount.name +output IDENTITY_STORAGE_NAME_2 string = storageAccount2.name +output IDENTITY_FUNCTION_NAME string = azureFunction.name +output IDENTITY_AKS_CLUSTER_NAME string = kubernetesCluster.name +output IDENTITY_AKS_POD_NAME string = 'javascript-test-app' +output IDENTITY_ACR_NAME string = acrResource.name +output IDENTITY_ACR_LOGIN_SERVER string = acrResource.properties.loginServer From 48146b8afb05d08836a8c2d19107268475b7c56a Mon Sep 17 00:00:00 2001 From: Hector Hernandez <39923391+hectorhdzg@users.noreply.github.com> Date: Thu, 14 Mar 2024 09:32:05 -0700 Subject: [PATCH 39/57] [Azure Monitor OpenTelemetry] Live Metrics updates (#28912) ### Packages impacted by this PR @azure/monitor-opentelemetry Fixed issue with quickpulse document duration Fixed issue with miscalculation in dependency duration metric Updated default quickpulse endpoint --- .../src/metrics/quickpulse/export/sender.ts | 29 +++-- .../src/metrics/quickpulse/liveMetrics.ts | 8 +- .../src/metrics/quickpulse/utils.ts | 116 ++++++++++-------- .../monitor-opentelemetry/src/types.ts | 2 +- .../internal/unit/metrics/liveMetrics.test.ts | 8 +- 5 files changed, 95 insertions(+), 68 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts index d89d09a757c5..8a5d13170278 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts @@ -1,7 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. import url from "url"; -import { redirectPolicyName } from "@azure/core-rest-pipeline"; +import { RestError, redirectPolicyName } from "@azure/core-rest-pipeline"; +import { TokenCredential } from "@azure/core-auth"; +import { diag } from "@opentelemetry/api"; import { PingOptionalParams, PingResponse, @@ -10,7 +12,6 @@ import { QuickpulseClient, QuickpulseClientOptionalParams, } from "../../../generated"; -import { TokenCredential } from "@azure/core-auth"; const applicationInsightsResource = "https://monitor.azure.com//.default"; @@ -56,18 +57,30 @@ export class QuickpulseSender { * Ping Quickpulse service * @internal */ - async ping(optionalParams: PingOptionalParams): Promise { - let response = await this.quickpulseClient.ping(this.instrumentationKey, optionalParams); - return response; + async ping(optionalParams: PingOptionalParams): Promise { + try { + let response = await this.quickpulseClient.ping(this.instrumentationKey, optionalParams); + return response; + } catch (error: any) { + const restError = error as RestError; + diag.info("Failed to ping Quickpulse service", restError.message); + } + return; } /** * Post Quickpulse service * @internal */ - async post(optionalParams: PostOptionalParams): Promise { - let response = await this.quickpulseClient.post(this.instrumentationKey, optionalParams); - return response; + async post(optionalParams: PostOptionalParams): Promise { + try { + let response = await this.quickpulseClient.post(this.instrumentationKey, optionalParams); + return response; + } catch (error: any) { + const restError = error as RestError; + diag.warn("Failed to post Quickpulse service", restError.message); + } + return; } handlePermanentRedirect(location: string | undefined) { diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts index 00349dc13e74..8ac5e9baabc1 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts @@ -42,7 +42,7 @@ import { import { QuickpulseMetricExporter } from "./export/exporter"; import { QuickpulseSender } from "./export/sender"; import { ConnectionStringParser } from "../../utils/connectionStringParser"; -import { DEFAULT_BREEZE_ENDPOINT, DEFAULT_LIVEMETRICS_ENDPOINT } from "../../types"; +import { DEFAULT_LIVEMETRICS_ENDPOINT } from "../../types"; import { QuickPulseOpenTelemetryMetricNames, QuickpulseExporterOptions } from "./types"; import { hrTimeToMilliseconds, suppressTracing } from "@opentelemetry/core"; @@ -137,11 +137,11 @@ export class LiveMetrics { ); this.pingSender = new QuickpulseSender({ endpointUrl: parsedConnectionString.liveendpoint || DEFAULT_LIVEMETRICS_ENDPOINT, - instrumentationKey: parsedConnectionString.instrumentationkey || DEFAULT_BREEZE_ENDPOINT, + instrumentationKey: parsedConnectionString.instrumentationkey || "", }); let exporterOptions: QuickpulseExporterOptions = { endpointUrl: parsedConnectionString.liveendpoint || DEFAULT_LIVEMETRICS_ENDPOINT, - instrumentationKey: parsedConnectionString.instrumentationkey || DEFAULT_BREEZE_ENDPOINT, + instrumentationKey: parsedConnectionString.instrumentationkey || "", postCallback: this.quickPulseDone.bind(this), getDocumentsFn: this.getDocuments.bind(this), baseMonitoringDataPoint: this.baseMonitoringDataPoint, @@ -464,7 +464,7 @@ export class LiveMetrics { } this.lastDependencyDuration = { count: this.totalDependencyCount, - duration: this.requestDuration, + duration: this.dependencyDuration, time: currentTime, }; } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts index c0ca98d1975e..8f0a2c6a172d 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts @@ -16,8 +16,29 @@ import { } from "../../generated"; import { Attributes, SpanKind } from "@opentelemetry/api"; import { - SemanticAttributes, - SemanticResourceAttributes, + SEMATTRS_EXCEPTION_MESSAGE, + SEMATTRS_EXCEPTION_TYPE, + SEMATTRS_HTTP_HOST, + SEMATTRS_HTTP_METHOD, + SEMATTRS_HTTP_SCHEME, + SEMATTRS_HTTP_STATUS_CODE, + SEMATTRS_HTTP_TARGET, + SEMATTRS_HTTP_URL, + SEMATTRS_NET_PEER_IP, + SEMATTRS_NET_PEER_NAME, + SEMATTRS_NET_PEER_PORT, + SEMATTRS_RPC_GRPC_STATUS_CODE, + SEMRESATTRS_K8S_CRONJOB_NAME, + SEMRESATTRS_K8S_DAEMONSET_NAME, + SEMRESATTRS_K8S_DEPLOYMENT_NAME, + SEMRESATTRS_K8S_JOB_NAME, + SEMRESATTRS_K8S_POD_NAME, + SEMRESATTRS_K8S_REPLICASET_NAME, + SEMRESATTRS_K8S_STATEFULSET_NAME, + SEMRESATTRS_SERVICE_INSTANCE_ID, + SEMRESATTRS_SERVICE_NAME, + SEMRESATTRS_SERVICE_NAMESPACE, + SEMRESATTRS_TELEMETRY_SDK_VERSION, } from "@opentelemetry/semantic-conventions"; import { SDK_INFO, hrTimeToMilliseconds } from "@opentelemetry/core"; import { DataPointType, Histogram, ResourceMetrics } from "@opentelemetry/sdk-metrics"; @@ -36,7 +57,7 @@ import { LogAttributes } from "@opentelemetry/api-logs"; /** Get the internal SDK version */ export function getSdkVersion(): string { const { nodeVersion } = process.versions; - const opentelemetryVersion = SDK_INFO[SemanticResourceAttributes.TELEMETRY_SDK_VERSION]; + const opentelemetryVersion = SDK_INFO[SEMRESATTRS_TELEMETRY_SDK_VERSION]; const version = `ext${AZURE_MONITOR_OPENTELEMETRY_VERSION}`; const internalSdkVersion = `${process.env[AZURE_MONITOR_PREFIX] ?? ""}node${nodeVersion}:otel${opentelemetryVersion}:${version}`; return internalSdkVersion; @@ -57,8 +78,8 @@ export function setSdkPrefix(): void { export function getCloudRole(resource: Resource): string { let cloudRole = ""; // Service attributes - const serviceName = resource.attributes[SemanticResourceAttributes.SERVICE_NAME]; - const serviceNamespace = resource.attributes[SemanticResourceAttributes.SERVICE_NAMESPACE]; + const serviceName = resource.attributes[SEMRESATTRS_SERVICE_NAME]; + const serviceNamespace = resource.attributes[SEMRESATTRS_SERVICE_NAMESPACE]; if (serviceName) { // Custom Service name provided by customer is highest precedence if (!String(serviceName).startsWith("unknown_service")) { @@ -77,31 +98,27 @@ export function getCloudRole(resource: Resource): string { } } // Kubernetes attributes should take precedence - const kubernetesDeploymentName = - resource.attributes[SemanticResourceAttributes.K8S_DEPLOYMENT_NAME]; + const kubernetesDeploymentName = resource.attributes[SEMRESATTRS_K8S_DEPLOYMENT_NAME]; if (kubernetesDeploymentName) { return String(kubernetesDeploymentName); } - const kuberneteReplicasetName = - resource.attributes[SemanticResourceAttributes.K8S_REPLICASET_NAME]; + const kuberneteReplicasetName = resource.attributes[SEMRESATTRS_K8S_REPLICASET_NAME]; if (kuberneteReplicasetName) { return String(kuberneteReplicasetName); } - const kubernetesStatefulSetName = - resource.attributes[SemanticResourceAttributes.K8S_STATEFULSET_NAME]; + const kubernetesStatefulSetName = resource.attributes[SEMRESATTRS_K8S_STATEFULSET_NAME]; if (kubernetesStatefulSetName) { return String(kubernetesStatefulSetName); } - const kubernetesJobName = resource.attributes[SemanticResourceAttributes.K8S_JOB_NAME]; + const kubernetesJobName = resource.attributes[SEMRESATTRS_K8S_JOB_NAME]; if (kubernetesJobName) { return String(kubernetesJobName); } - const kubernetesCronjobName = resource.attributes[SemanticResourceAttributes.K8S_CRONJOB_NAME]; + const kubernetesCronjobName = resource.attributes[SEMRESATTRS_K8S_CRONJOB_NAME]; if (kubernetesCronjobName) { return String(kubernetesCronjobName); } - const kubernetesDaemonsetName = - resource.attributes[SemanticResourceAttributes.K8S_DAEMONSET_NAME]; + const kubernetesDaemonsetName = resource.attributes[SEMRESATTRS_K8S_DAEMONSET_NAME]; if (kubernetesDaemonsetName) { return String(kubernetesDaemonsetName); } @@ -110,12 +127,12 @@ export function getCloudRole(resource: Resource): string { export function getCloudRoleInstance(resource: Resource): string { // Kubernetes attributes should take precedence - const kubernetesPodName = resource.attributes[SemanticResourceAttributes.K8S_POD_NAME]; + const kubernetesPodName = resource.attributes[SEMRESATTRS_K8S_POD_NAME]; if (kubernetesPodName) { return String(kubernetesPodName); } // Service attributes - const serviceInstanceId = resource.attributes[SemanticResourceAttributes.SERVICE_INSTANCE_ID]; + const serviceInstanceId = resource.attributes[SEMRESATTRS_SERVICE_INSTANCE_ID]; if (serviceInstanceId) { return String(serviceInstanceId); } @@ -190,18 +207,23 @@ export function resourceMetricsToQuickpulseDataPoint( return [quickpulseDataPoint]; } +function getIso8601Duration(milliseconds: number) { + const seconds = milliseconds / 1000; + return `PT${seconds}S`; +} + export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency { let document: Request | RemoteDependency = { documentType: KnownDocumentIngressDocumentType.Request, }; - const httpMethod = span.attributes[SemanticAttributes.HTTP_METHOD]; - const grpcStatusCode = span.attributes[SemanticAttributes.RPC_GRPC_STATUS_CODE]; + const httpMethod = span.attributes[SEMATTRS_HTTP_METHOD]; + const grpcStatusCode = span.attributes[SEMATTRS_RPC_GRPC_STATUS_CODE]; let url = ""; let code = ""; if (span.kind === SpanKind.SERVER || span.kind === SpanKind.CONSUMER) { if (httpMethod) { url = getUrl(span.attributes); - const httpStatusCode = span.attributes[SemanticAttributes.HTTP_STATUS_CODE]; + const httpStatusCode = span.attributes[SEMATTRS_HTTP_STATUS_CODE]; if (httpStatusCode) { code = String(httpStatusCode); } @@ -214,11 +236,11 @@ export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency name: span.name, url: url, responseCode: code, - duration: hrTimeToMilliseconds(span.duration).toString(), + duration: getIso8601Duration(hrTimeToMilliseconds(span.duration)), }; } else { url = getUrl(span.attributes); - const httpStatusCode = span.attributes[SemanticAttributes.HTTP_STATUS_CODE]; + const httpStatusCode = span.attributes[SEMATTRS_HTTP_STATUS_CODE]; if (httpStatusCode) { code = String(httpStatusCode); } @@ -228,7 +250,7 @@ export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency name: span.name, commandName: url, resultCode: code, - duration: hrTimeToMilliseconds(span.duration).toString(), + duration: getIso8601Duration(hrTimeToMilliseconds(span.duration)), }; } document.properties = createPropertiesFromAttributes(span.attributes); @@ -239,9 +261,9 @@ export function getLogDocument(logRecord: LogRecord): Trace | Exception { let document: Trace | Exception = { documentType: KnownDocumentIngressDocumentType.Exception, }; - const exceptionType = String(logRecord.attributes[SemanticAttributes.EXCEPTION_TYPE]); + const exceptionType = String(logRecord.attributes[SEMATTRS_EXCEPTION_TYPE]); if (exceptionType) { - const exceptionMessage = String(logRecord.attributes[SemanticAttributes.EXCEPTION_MESSAGE]); + const exceptionMessage = String(logRecord.attributes[SEMATTRS_EXCEPTION_MESSAGE]); document = { documentType: KnownDocumentIngressDocumentType.Exception, exceptionType: exceptionType, @@ -267,26 +289,18 @@ function createPropertiesFromAttributes( if ( !( key.startsWith("_MS.") || - key === SemanticAttributes.NET_PEER_IP || - key === SemanticAttributes.NET_PEER_NAME || - key === SemanticAttributes.PEER_SERVICE || - key === SemanticAttributes.HTTP_METHOD || - key === SemanticAttributes.HTTP_URL || - key === SemanticAttributes.HTTP_STATUS_CODE || - key === SemanticAttributes.HTTP_ROUTE || - key === SemanticAttributes.HTTP_HOST || - key === SemanticAttributes.HTTP_URL || - key === SemanticAttributes.DB_SYSTEM || - key === SemanticAttributes.DB_STATEMENT || - key === SemanticAttributes.DB_OPERATION || - key === SemanticAttributes.DB_NAME || - key === SemanticAttributes.RPC_SYSTEM || - key === SemanticAttributes.RPC_GRPC_STATUS_CODE || - key === SemanticAttributes.EXCEPTION_TYPE || - key === SemanticAttributes.EXCEPTION_MESSAGE + key === SEMATTRS_NET_PEER_IP || + key === SEMATTRS_NET_PEER_NAME || + key === SEMATTRS_HTTP_METHOD || + key === SEMATTRS_HTTP_URL || + key === SEMATTRS_HTTP_STATUS_CODE || + key === SEMATTRS_HTTP_HOST || + key === SEMATTRS_HTTP_URL || + key === SEMATTRS_EXCEPTION_TYPE || + key === SEMATTRS_EXCEPTION_MESSAGE ) ) { - properties.push({ key: key, value: attributes[key] as string }); + properties.push({ key: key, value: String(attributes[key]) }); } } } @@ -297,26 +311,26 @@ function getUrl(attributes: Attributes): string { if (!attributes) { return ""; } - const httpMethod = attributes[SemanticAttributes.HTTP_METHOD]; + const httpMethod = attributes[SEMATTRS_HTTP_METHOD]; if (httpMethod) { - const httpUrl = attributes[SemanticAttributes.HTTP_URL]; + const httpUrl = attributes[SEMATTRS_HTTP_URL]; if (httpUrl) { return String(httpUrl); } else { - const httpScheme = attributes[SemanticAttributes.HTTP_SCHEME]; - const httpTarget = attributes[SemanticAttributes.HTTP_TARGET]; + const httpScheme = attributes[SEMATTRS_HTTP_SCHEME]; + const httpTarget = attributes[SEMATTRS_HTTP_TARGET]; if (httpScheme && httpTarget) { - const httpHost = attributes[SemanticAttributes.HTTP_HOST]; + const httpHost = attributes[SEMATTRS_HTTP_HOST]; if (httpHost) { return `${httpScheme}://${httpHost}${httpTarget}`; } else { - const netPeerPort = attributes[SemanticAttributes.NET_PEER_PORT]; + const netPeerPort = attributes[SEMATTRS_NET_PEER_PORT]; if (netPeerPort) { - const netPeerName = attributes[SemanticAttributes.NET_PEER_NAME]; + const netPeerName = attributes[SEMATTRS_NET_PEER_NAME]; if (netPeerName) { return `${httpScheme}://${netPeerName}:${netPeerPort}${httpTarget}`; } else { - const netPeerIp = attributes[SemanticAttributes.NET_PEER_IP]; + const netPeerIp = attributes[SEMATTRS_NET_PEER_IP]; if (netPeerIp) { return `${httpScheme}://${netPeerIp}:${netPeerPort}${httpTarget}`; } diff --git a/sdk/monitor/monitor-opentelemetry/src/types.ts b/sdk/monitor/monitor-opentelemetry/src/types.ts index 8a23dd8503ba..cc51e09f751e 100644 --- a/sdk/monitor/monitor-opentelemetry/src/types.ts +++ b/sdk/monitor/monitor-opentelemetry/src/types.ts @@ -90,7 +90,7 @@ export const DEFAULT_BREEZE_ENDPOINT = "https://dc.services.visualstudio.com"; * Default Live Metrics endpoint. * @internal */ -export const DEFAULT_LIVEMETRICS_ENDPOINT = "https://rt.services.visualstudio.com"; +export const DEFAULT_LIVEMETRICS_ENDPOINT = "https://global.livediagnostics.monitor.azure.com"; export enum StatsbeatFeature { NONE = 0, diff --git a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts index 2f2491a20f13..1e715b9e0ea3 100644 --- a/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts +++ b/sdk/monitor/monitor-opentelemetry/test/internal/unit/metrics/liveMetrics.test.ts @@ -201,13 +201,13 @@ describe("#LiveMetrics", () => { assert.strictEqual(documents[6].documentType, "RemoteDependency"); assert.strictEqual((documents[6] as RemoteDependency).commandName, "http://test.com"); assert.strictEqual((documents[6] as RemoteDependency).resultCode, "200"); - assert.strictEqual((documents[6] as RemoteDependency).duration, "12345678"); + assert.strictEqual((documents[6] as RemoteDependency).duration, "PT12345.678S"); assert.equal((documents[6].properties as any)[0].key, "customAttribute"); assert.equal((documents[6].properties as any)[0].value, "test"); for (let i = 7; i < 9; i++) { assert.strictEqual((documents[i] as Request).url, "http://test.com"); assert.strictEqual((documents[i] as Request).responseCode, "200"); - assert.strictEqual((documents[i] as Request).duration, "98765432"); + assert.strictEqual((documents[i] as Request).duration, "PT98765.432S"); assert.equal((documents[i].properties as any)[0].key, "customAttribute"); assert.equal((documents[i].properties as any)[0].value, "test"); } @@ -215,14 +215,14 @@ describe("#LiveMetrics", () => { assert.strictEqual(documents[i].documentType, "RemoteDependency"); assert.strictEqual((documents[i] as RemoteDependency).commandName, "http://test.com"); assert.strictEqual((documents[i] as RemoteDependency).resultCode, "400"); - assert.strictEqual((documents[i] as RemoteDependency).duration, "900000"); + assert.strictEqual((documents[i] as RemoteDependency).duration, "PT900S"); assert.equal((documents[i].properties as any)[0].key, "customAttribute"); assert.equal((documents[i].properties as any)[0].value, "test"); } for (let i = 12; i < 15; i++) { assert.strictEqual((documents[i] as Request).url, "http://test.com"); assert.strictEqual((documents[i] as Request).responseCode, "400"); - assert.strictEqual((documents[i] as Request).duration, "100000"); + assert.strictEqual((documents[i] as Request).duration, "PT100S"); assert.equal((documents[i].properties as any)[0].key, "customAttribute"); assert.equal((documents[i].properties as any)[0].value, "test"); } From e718366e905fd3c0e0cb7ec3a35967385b311cde Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:24:10 -0400 Subject: [PATCH 40/57] Post release automated changes for core releases (#28908) --- sdk/core/abort-controller/CHANGELOG.md | 10 ++++++++++ sdk/core/abort-controller/package.json | 2 +- sdk/core/core-auth/CHANGELOG.md | 10 ++++++++++ sdk/core/core-auth/package.json | 2 +- sdk/core/core-client-rest/CHANGELOG.md | 10 ++++++++++ sdk/core/core-client-rest/package.json | 2 +- sdk/core/core-client/CHANGELOG.md | 10 ++++++++++ sdk/core/core-client/package.json | 2 +- sdk/core/core-http-compat/CHANGELOG.md | 10 ++++++++++ sdk/core/core-http-compat/package.json | 2 +- sdk/core/core-paging/CHANGELOG.md | 10 ++++++++++ sdk/core/core-paging/package.json | 2 +- sdk/core/core-rest-pipeline/CHANGELOG.md | 10 ++++++++++ sdk/core/core-rest-pipeline/package.json | 2 +- sdk/core/core-rest-pipeline/src/constants.ts | 2 +- sdk/core/core-sse/CHANGELOG.md | 10 ++++++++++ sdk/core/core-sse/package.json | 2 +- sdk/core/core-tracing/CHANGELOG.md | 10 ++++++++++ sdk/core/core-tracing/package.json | 2 +- sdk/core/core-util/CHANGELOG.md | 10 ++++++++++ sdk/core/core-util/package.json | 2 +- sdk/core/core-xml/CHANGELOG.md | 10 ++++++++++ sdk/core/core-xml/package.json | 2 +- sdk/core/logger/CHANGELOG.md | 10 ++++++++++ sdk/core/logger/package.json | 2 +- 25 files changed, 133 insertions(+), 13 deletions(-) diff --git a/sdk/core/abort-controller/CHANGELOG.md b/sdk/core/abort-controller/CHANGELOG.md index 12b095a5173c..24f02323bd99 100644 --- a/sdk/core/abort-controller/CHANGELOG.md +++ b/sdk/core/abort-controller/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 2.1.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 2.1.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/abort-controller/package.json b/sdk/core/abort-controller/package.json index f5f5ac0cec41..cff6efd46dd0 100644 --- a/sdk/core/abort-controller/package.json +++ b/sdk/core/abort-controller/package.json @@ -1,7 +1,7 @@ { "name": "@azure/abort-controller", "sdk-type": "client", - "version": "2.1.0", + "version": "2.1.1", "description": "Microsoft Azure SDK for JavaScript - Aborter", "author": "Microsoft Corporation", "license": "MIT", diff --git a/sdk/core/core-auth/CHANGELOG.md b/sdk/core/core-auth/CHANGELOG.md index a8af446fb720..db776f7ab51f 100644 --- a/sdk/core/core-auth/CHANGELOG.md +++ b/sdk/core/core-auth/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.7.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.7.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-auth/package.json b/sdk/core/core-auth/package.json index f9ca48bab2b5..1bc722cb78ad 100644 --- a/sdk/core/core-auth/package.json +++ b/sdk/core/core-auth/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-auth", - "version": "1.7.0", + "version": "1.7.1", "description": "Provides low-level interfaces and helper methods for authentication in Azure SDK", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-client-rest/CHANGELOG.md b/sdk/core/core-client-rest/CHANGELOG.md index 788b0d658483..403f5087e2b4 100644 --- a/sdk/core/core-client-rest/CHANGELOG.md +++ b/sdk/core/core-client-rest/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.3.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.3.0 (2024-03-12) ### Features Added diff --git a/sdk/core/core-client-rest/package.json b/sdk/core/core-client-rest/package.json index 04b8675fb324..57946d793ee3 100644 --- a/sdk/core/core-client-rest/package.json +++ b/sdk/core/core-client-rest/package.json @@ -1,6 +1,6 @@ { "name": "@azure-rest/core-client", - "version": "1.3.0", + "version": "1.3.1", "description": "Core library for interfacing with Azure Rest Clients", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-client/CHANGELOG.md b/sdk/core/core-client/CHANGELOG.md index 370ac5ea2b54..2c9d18a043f2 100644 --- a/sdk/core/core-client/CHANGELOG.md +++ b/sdk/core/core-client/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.9.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.9.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-client/package.json b/sdk/core/core-client/package.json index 733c364ebc2a..714f45a0d542 100644 --- a/sdk/core/core-client/package.json +++ b/sdk/core/core-client/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-client", - "version": "1.9.0", + "version": "1.9.1", "description": "Core library for interfacing with AutoRest generated code", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-http-compat/CHANGELOG.md b/sdk/core/core-http-compat/CHANGELOG.md index a6fe8faa1e2b..91b8a62d3ee5 100644 --- a/sdk/core/core-http-compat/CHANGELOG.md +++ b/sdk/core/core-http-compat/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 2.1.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 2.1.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-http-compat/package.json b/sdk/core/core-http-compat/package.json index a647a39f6164..a50fe272c60b 100644 --- a/sdk/core/core-http-compat/package.json +++ b/sdk/core/core-http-compat/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-http-compat", - "version": "2.1.0", + "version": "2.1.1", "description": "Core HTTP Compatibility Library to bridge the gap between Core V1 & V2 packages.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-paging/CHANGELOG.md b/sdk/core/core-paging/CHANGELOG.md index 04c84740bea6..38c98106b608 100644 --- a/sdk/core/core-paging/CHANGELOG.md +++ b/sdk/core/core-paging/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.6.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.6.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-paging/package.json b/sdk/core/core-paging/package.json index 1474539fb80f..be471e0b05e2 100644 --- a/sdk/core/core-paging/package.json +++ b/sdk/core/core-paging/package.json @@ -2,7 +2,7 @@ "name": "@azure/core-paging", "author": "Microsoft Corporation", "sdk-type": "client", - "version": "1.6.0", + "version": "1.6.1", "description": "Core types for paging async iterable iterators", "type": "module", "main": "./dist/commonjs/index.js", diff --git a/sdk/core/core-rest-pipeline/CHANGELOG.md b/sdk/core/core-rest-pipeline/CHANGELOG.md index ec475434c42e..bda03acd7caf 100644 --- a/sdk/core/core-rest-pipeline/CHANGELOG.md +++ b/sdk/core/core-rest-pipeline/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.15.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.15.0 (2024-03-12) ### Bugs Fixed diff --git a/sdk/core/core-rest-pipeline/package.json b/sdk/core/core-rest-pipeline/package.json index 26a3d1043a57..bb5ced282040 100644 --- a/sdk/core/core-rest-pipeline/package.json +++ b/sdk/core/core-rest-pipeline/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-rest-pipeline", - "version": "1.15.0", + "version": "1.15.1", "description": "Isomorphic client library for making HTTP requests in node.js and browser.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-rest-pipeline/src/constants.ts b/sdk/core/core-rest-pipeline/src/constants.ts index 8bb7e027f01d..26ff5a829a76 100644 --- a/sdk/core/core-rest-pipeline/src/constants.ts +++ b/sdk/core/core-rest-pipeline/src/constants.ts @@ -1,6 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "1.15.0"; +export const SDK_VERSION: string = "1.15.1"; export const DEFAULT_RETRY_POLICY_COUNT = 3; diff --git a/sdk/core/core-sse/CHANGELOG.md b/sdk/core/core-sse/CHANGELOG.md index 174d4ba1f0c8..e0d7b32e5088 100644 --- a/sdk/core/core-sse/CHANGELOG.md +++ b/sdk/core/core-sse/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 2.1.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 2.1.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-sse/package.json b/sdk/core/core-sse/package.json index 9842c511ca66..4e65a7d7b4d8 100644 --- a/sdk/core/core-sse/package.json +++ b/sdk/core/core-sse/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-sse", - "version": "2.1.0", + "version": "2.1.1", "description": "Implementation of the Server-sent events protocol for Node.js and browsers.", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-tracing/CHANGELOG.md b/sdk/core/core-tracing/CHANGELOG.md index 2cc9fee1c44f..63ac9d907cf8 100644 --- a/sdk/core/core-tracing/CHANGELOG.md +++ b/sdk/core/core-tracing/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-tracing/package.json b/sdk/core/core-tracing/package.json index 7bebbc676a41..5b72d9373350 100644 --- a/sdk/core/core-tracing/package.json +++ b/sdk/core/core-tracing/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-tracing", - "version": "1.1.0", + "version": "1.1.1", "description": "Provides low-level interfaces and helper methods for tracing in Azure SDK", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-util/CHANGELOG.md b/sdk/core/core-util/CHANGELOG.md index 7a925ac5e776..45b651f77743 100644 --- a/sdk/core/core-util/CHANGELOG.md +++ b/sdk/core/core-util/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.8.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.8.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-util/package.json b/sdk/core/core-util/package.json index 6d036d682648..9cdbfc2d32d5 100644 --- a/sdk/core/core-util/package.json +++ b/sdk/core/core-util/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-util", - "version": "1.8.0", + "version": "1.8.1", "description": "Core library for shared utility methods", "sdk-type": "client", "type": "module", diff --git a/sdk/core/core-xml/CHANGELOG.md b/sdk/core/core-xml/CHANGELOG.md index df6f4a7aea92..c94a03d6f006 100644 --- a/sdk/core/core-xml/CHANGELOG.md +++ b/sdk/core/core-xml/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.4.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.4.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-xml/package.json b/sdk/core/core-xml/package.json index 0256b22ce0d4..a2915da0dafa 100644 --- a/sdk/core/core-xml/package.json +++ b/sdk/core/core-xml/package.json @@ -1,6 +1,6 @@ { "name": "@azure/core-xml", - "version": "1.4.0", + "version": "1.4.1", "description": "Core library for interacting with XML payloads", "sdk-type": "client", "type": "module", diff --git a/sdk/core/logger/CHANGELOG.md b/sdk/core/logger/CHANGELOG.md index a5906c4ef573..303115c4589d 100644 --- a/sdk/core/logger/CHANGELOG.md +++ b/sdk/core/logger/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.1.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.1.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/logger/package.json b/sdk/core/logger/package.json index 6e6d409890d3..54237befda17 100644 --- a/sdk/core/logger/package.json +++ b/sdk/core/logger/package.json @@ -1,7 +1,7 @@ { "name": "@azure/logger", "sdk-type": "client", - "version": "1.1.0", + "version": "1.1.1", "description": "Microsoft Azure SDK for JavaScript - Logger", "type": "module", "main": "./dist/commonjs/index.js", From 198b9a9e8d0585795b67076ae2c9dce0407d061d Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 14 Mar 2024 14:35:13 -0400 Subject: [PATCH 41/57] Post release automated changes for core releases (#28925) Post release automated changes for azure-core-lro --- sdk/core/core-lro/CHANGELOG.md | 10 ++++++++++ sdk/core/core-lro/package.json | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/sdk/core/core-lro/CHANGELOG.md b/sdk/core/core-lro/CHANGELOG.md index 2f46e2b039c3..9be834352b56 100644 --- a/sdk/core/core-lro/CHANGELOG.md +++ b/sdk/core/core-lro/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 2.7.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 2.7.0 (2024-03-12) ### Other Changes diff --git a/sdk/core/core-lro/package.json b/sdk/core/core-lro/package.json index 68914bab0a52..5d90e88a4735 100644 --- a/sdk/core/core-lro/package.json +++ b/sdk/core/core-lro/package.json @@ -3,7 +3,7 @@ "author": "Microsoft Corporation", "sdk-type": "client", "type": "module", - "version": "2.7.0", + "version": "2.7.1", "description": "Isomorphic client library for supporting long-running operations in node.js and browser.", "exports": { "./package.json": "./package.json", From d8ac9d6adab74413658e7ea8cf47207421629fb4 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Thu, 14 Mar 2024 15:51:32 -0400 Subject: [PATCH 42/57] Sync eng/common directory with azure-sdk-tools for PR 7877 (#28928) Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7877 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: Scott Beddall (from Dev Box) --- eng/common/testproxy/test-proxy-tool-shutdown.yml | 10 ++++++++++ eng/common/testproxy/test-proxy-tool.yml | 8 +++++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 eng/common/testproxy/test-proxy-tool-shutdown.yml diff --git a/eng/common/testproxy/test-proxy-tool-shutdown.yml b/eng/common/testproxy/test-proxy-tool-shutdown.yml new file mode 100644 index 000000000000..20e24e70a0aa --- /dev/null +++ b/eng/common/testproxy/test-proxy-tool-shutdown.yml @@ -0,0 +1,10 @@ +steps: + - pwsh: | + Stop-Process -Id $(PROXY_PID) + displayName: 'Shut down the testproxy - windows' + condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT')) + + - bash: | + kill -9 $(PROXY_PID) + displayName: "Shut down the testproxy - linux/mac" + condition: and(succeeded(), ne(variables['Agent.OS'],'Windows_NT')) diff --git a/eng/common/testproxy/test-proxy-tool.yml b/eng/common/testproxy/test-proxy-tool.yml index 7aea55d472d2..d9a166841926 100644 --- a/eng/common/testproxy/test-proxy-tool.yml +++ b/eng/common/testproxy/test-proxy-tool.yml @@ -1,3 +1,4 @@ +# This template sets variable PROXY_PID to be used for shutdown later. parameters: rootFolder: '$(Build.SourcesDirectory)' runProxy: true @@ -42,15 +43,20 @@ steps: condition: and(succeeded(), ${{ parameters.condition }}) - pwsh: | - Start-Process $(Build.BinariesDirectory)/test-proxy/test-proxy.exe ` + $Process = Start-Process $(Build.BinariesDirectory)/test-proxy/test-proxy.exe ` -ArgumentList "start --storage-location ${{ parameters.rootFolder }} -U" ` -NoNewWindow -PassThru -RedirectStandardOutput ${{ parameters.rootFolder }}/test-proxy.log + + Write-Host "##vso[task.setvariable variable=PROXY_PID]$($Process.Id)" displayName: 'Run the testproxy - windows' condition: and(succeeded(), eq(variables['Agent.OS'],'Windows_NT'), ${{ parameters.condition }}) # nohup does NOT continue beyond the current session if you use it within powershell - bash: | nohup $(Build.BinariesDirectory)/test-proxy/test-proxy &>$(Build.SourcesDirectory)/test-proxy.log & + + echo $! > $(Build.SourcesDirectory)/test-proxy.pid + echo "##vso[task.setvariable variable=PROXY_PID]$(cat $(Build.SourcesDirectory)/test-proxy.pid)" displayName: "Run the testproxy - linux/mac" condition: and(succeeded(), ne(variables['Agent.OS'],'Windows_NT'), ${{ parameters.condition }}) workingDirectory: "${{ parameters.rootFolder }}" From 8d67879d182f8efd0702daefae221b56b5a1caa4 Mon Sep 17 00:00:00 2001 From: Harsha Nalluru Date: Thu, 14 Mar 2024 13:26:04 -0700 Subject: [PATCH 43/57] [Recorder] Release recorder 3.1.0 (#28917) ### Packages impacted by this PR `@azure-tools/test-recorder` ### Issues associated with this PR #28667 ### Describe the problem that is addressed by this PR Releasing recorder 3.1.0 unblocks the #28667 that upgrades recorder to 4.0.0 with vitest. --- sdk/test-utils/recorder/CHANGELOG.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sdk/test-utils/recorder/CHANGELOG.md b/sdk/test-utils/recorder/CHANGELOG.md index 381f7c7be42d..23c9a2ea8af1 100644 --- a/sdk/test-utils/recorder/CHANGELOG.md +++ b/sdk/test-utils/recorder/CHANGELOG.md @@ -1,14 +1,12 @@ # Release History -## 3.1.0 (Unreleased) +## 3.1.0 (2023-03-14) ### Features Added - Add support for setting `TLSValidationCert` in the Test Proxy Transport. - Add a `testPollingOptions` that allow skip polling wait in playback mode. -### Breaking Changes - ### Bugs Fixed - Fixed a bug where environment variables were not being sanitized correctly when one's original value is a substring of another. [#27187](https://github.com/Azure/azure-sdk-for-js/pull/27187) @@ -20,6 +18,7 @@ - Forward mismatch error when recording file cannot be found during `start` call in playback mode - Add more descriptive message in the case that the test proxy has not been started before running the tests - Ignore `Accept-Language` header for browsers in Playback mode. + ## 3.0.0 (2023-03-07) ### Features Added From 536d8096f49386f0f6162361899a4f91d89fc58d Mon Sep 17 00:00:00 2001 From: Erica <34174887+ericasp16@users.noreply.github.com> Date: Thu, 14 Mar 2024 16:03:12 -0700 Subject: [PATCH 44/57] Convert number lookup ga to preview (#28662) ### Packages impacted by this PR @azure/communication-phone-numbers ### Issues associated with this PR ### Describe the problem that is addressed by this PR Update the Number Lookup public preview to include the Number Format features we've been preparing for GA. https://github.com/Azure/azure-rest-api-specs/pull/27799 ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? This design has been reviewed by the stewardship board ### Are there test cases added in this PR? _(If not, why?)_ yes ### Provide a list of related PRs _(if any)_ https://github.com/Azure/azure-rest-api-specs/pull/27799 https://github.com/Azure/azure-sdk-for-java/pull/38885 .NET _pending_ Python _pending_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ n/a ### Checklists - [x] Added impacted package name to the issue description - [x] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [x] Added a changelog (if necessary) --- common/config/rush/pnpm-lock.yaml | 37 + .../communication-phone-numbers/CHANGELOG.md | 19 +- .../communication-phone-numbers/assets.json | 2 +- .../communication-phone-numbers/package.json | 2 +- ...n_list_all_geographic_area_codes.json.orig | 859 ++++ ...ing_can_list_all_toll_free_area_codes.json | 58 + ...an_list_all_toll_free_area_codes.json.orig | 58 + ...n_list_all_geographic_area_codes.json.orig | 853 ++++ ...an_list_all_toll_free_area_codes.json.orig | 74 + ...can_list_all_available_countries.json.orig | 252 + ...can_list_all_available_countries.json.orig | 249 + ...can_get_a_purchased_phone_number.json.orig | 79 + ...errors_if_phone_number_not_found.json.orig | 65 + ...can_get_a_purchased_phone_number.json.orig | 76 + ...errors_if_phone_number_not_found.json.orig | 62 + ...list_all_purchased_phone_numbers.json.orig | 4180 +++++++++++++++++ ...list_all_purchased_phone_numbers.json.orig | 4173 ++++++++++++++++ ...ng_can_list_available_localities.json.orig | 1728 +++++++ ...ies_with_administrative_division.json.orig | 863 ++++ ...ng_can_list_available_localities.json.orig | 1718 +++++++ ...ies_with_administrative_division.json.orig | 857 ++++ .../recording_can_look_up_a_phone_number.json | 61 + ..._multiple_phone_numbers_are_requested.json | 56 + ...cludeadditionaloperatordetails_option.json | 121 + ...chase_and_release_a_phone_number.json.orig | 1354 ++++++ ...chase_and_release_a_phone_number.json.orig | 1669 +++++++ ...vailable_phone_number_by_default.json.orig | 386 ++ ...throws_on_invalid_search_request.json.orig | 78 + ...vailable_phone_number_by_default.json.orig | 347 ++ ...throws_on_invalid_search_request.json.orig | 75 + ...ate_a_phone_numbers_capabilities.json.orig | 431 ++ ...ows_when_phone_number_is_invalid.json.orig | 73 + ...hen_phone_number_is_unauthorized.json.orig | 70 + ...ate_a_phone_numbers_capabilities.json.orig | 412 ++ ...ows_when_phone_number_is_invalid.json.orig | 70 + ...hen_phone_number_is_unauthorized.json.orig | 67 + ...ing_can_list_available_offerings.json.orig | 117 + ...ing_can_list_available_offerings.json.orig | 114 + ...n_list_all_geographic_area_codes.json.orig | 853 ++++ ...an_list_all_toll_free_area_codes.json.orig | 71 + ...n_list_all_geographic_area_codes.json.orig | 845 ++++ ...an_list_all_toll_free_area_codes.json.orig | 67 + ...can_list_all_available_countries.json.orig | 246 + ...can_list_all_available_countries.json.orig | 242 + ...can_get_a_purchased_phone_number.json.orig | 73 + ...errors_if_phone_number_not_found.json.orig | 59 + ...can_get_a_purchased_phone_number.json.orig | 69 + ...errors_if_phone_number_not_found.json.orig | 55 + ...list_all_purchased_phone_numbers.json.orig | 1304 +++++ ...list_all_purchased_phone_numbers.json.orig | 1300 +++++ ...ng_can_list_available_localities.json.orig | 1636 +++++++ ...ies_with_administrative_division.json.orig | 844 ++++ ...ng_can_list_available_localities.json.orig | 1626 +++++++ ...ies_with_administrative_division.json.orig | 836 ++++ .../recording_can_look_up_a_phone_number.json | 54 + ..._multiple_phone_numbers_are_requested.json | 49 + ...cludeadditionaloperatordetails_option.json | 107 + ...chase_and_release_a_phone_number.json.orig | 995 ++++ ...chase_and_release_a_phone_number.json.orig | 960 ++++ ...vailable_phone_number_by_default.json.orig | 345 ++ ...throws_on_invalid_search_request.json.orig | 72 + ...vailable_phone_number_by_default.json.orig | 325 ++ ...throws_on_invalid_search_request.json.orig | 68 + ...ate_a_phone_numbers_capabilities.json.orig | 368 ++ ...ows_when_phone_number_is_invalid.json.orig | 67 + ...hen_phone_number_is_unauthorized.json.orig | 64 + ...ate_a_phone_numbers_capabilities.json.orig | 370 ++ ...ows_when_phone_number_is_invalid.json.orig | 63 + ...hen_phone_number_is_unauthorized.json.orig | 60 + ...ing_can_list_available_offerings.json.orig | 111 + ...ing_can_list_available_offerings.json.orig | 107 + .../review/communication-phone-numbers.api.md | 42 + .../src/generated/src/lroImpl.ts | 6 +- .../src/generated/src/models/index.ts | 107 +- .../src/generated/src/models/mappers.ts | 735 +-- .../src/generated/src/models/parameters.ts | 147 +- .../generated/src/operations/phoneNumbers.ts | 529 ++- .../src/operationsInterfaces/phoneNumbers.ts | 47 +- .../src/generated/src/pagingHelper.ts | 2 +- .../src/generated/src/phoneNumbersClient.ts | 14 +- .../src/generated/src/tracing.ts | 2 +- .../communication-phone-numbers/src/models.ts | 13 + .../src/phoneNumbersClient.ts | 34 + .../swagger/README.md | 22 +- .../test/public/lro.search.spec.ts | 4 +- .../test/public/lro.update.spec.ts | 3 +- .../test/public/numberLookup.spec.ts | 86 + .../test/public/utils/recordedClient.ts | 3 - 88 files changed, 37218 insertions(+), 654 deletions(-) create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig create mode 100644 sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig create mode 100644 sdk/communication/communication-phone-numbers/test/public/numberLookup.spec.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 965c60703634..741e6b5594e5 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -1236,6 +1236,42 @@ packages: - supports-color dev: false + /@azure/communication-common@2.3.1: + resolution: {integrity: sha512-6ZQt20iMZbyckQn4m1TDwiDv3Fzyt1h4lnQ1szBBns2x3VQY9XHbnskPtvUdwK/HT+c/1PoUwof3toy1AIznbQ==} + engines: {node: '>=18.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/core-auth': 1.6.0 + '@azure/core-rest-pipeline': 1.14.0 + '@azure/core-tracing': 1.0.1 + '@azure/core-util': 1.7.0 + events: 3.3.0 + jwt-decode: 4.0.0 + tslib: 2.6.2 + transitivePeerDependencies: + - supports-color + dev: false + + /@azure/communication-phone-numbers@1.2.0: + resolution: {integrity: sha512-fuCtFFSJb8fZohEJmy3rdD6yohCCirlVzSiebJ8JIX2wrzw44/JEP0jd9V+vtGZUCyDk5Xj2ackb4FI/kH7wUQ==} + engines: {node: '>=14.0.0'} + dependencies: + '@azure/abort-controller': 1.1.0 + '@azure/communication-common': 2.3.1 + '@azure/core-auth': 1.6.0 + '@azure/core-client': 1.8.0 + '@azure/core-lro': 2.6.0 + '@azure/core-paging': 1.5.0 + '@azure/core-rest-pipeline': 1.14.0 + '@azure/core-tracing': 1.0.1 + '@azure/logger': 1.0.4 + events: 3.3.0 + tslib: 2.6.2 + uuid: 8.3.2 + transitivePeerDependencies: + - supports-color + dev: false + /@azure/communication-signaling@1.0.0-beta.22: resolution: {integrity: sha512-0ispnIoRERypuNck90C+QaMTRC4v8owOOV+MbNec72HWCuPz+ndribcc8kIfCgplgwXDFsghskHkD6CaPyYdsA==} engines: {node: '>=8.0.0'} @@ -17423,6 +17459,7 @@ packages: version: 0.0.0 dependencies: '@azure/abort-controller': 1.1.0 + '@azure/communication-phone-numbers': 1.2.0 '@microsoft/api-extractor': 7.42.3(@types/node@18.19.22) '@types/chai': 4.3.12 '@types/mocha': 10.0.6 diff --git a/sdk/communication/communication-phone-numbers/CHANGELOG.md b/sdk/communication/communication-phone-numbers/CHANGELOG.md index 25e9d724e0fa..baa7f4a7e33e 100644 --- a/sdk/communication/communication-phone-numbers/CHANGELOG.md +++ b/sdk/communication/communication-phone-numbers/CHANGELOG.md @@ -1,30 +1,39 @@ # Release History -## 1.2.1 (Unreleased) +## 1.3.0-beta.2 (2024-03-01) ### Features Added -### Breaking Changes +- Add support for number lookup + - Format only can be returned for no cost + - Additional number details can be returned for a cost -### Bugs Fixed +## 1.3.0-beta.1 (2023-07-21) -### Other Changes +### Features Added + +- Number Lookup API public preview +- API version `2023-05-01-preview` is the default ## 1.2.0 (2023-03-28) ### Features Added + - Added support for SIP routing API version `2023-03-01`, releasing SIP routing functionality from public preview to GA. - Added environment variable `AZURE_TEST_DOMAIN` for SIP routing tests to support domain verification. ### Breaking Changes + - Changed public methods `getTrunks` to `listTrunks` and `getRoutes` to `listRoutes`. ## 1.2.0-beta.4 (2023-01-10) + - Adds support for Azure Communication Services Phone Numbers Browse API Methods. - Adds support for Direct routing configuration management. ### Features Added -- Added support for API version `2022-12-01`, giving users the ability to: + +- Added support for API version `2022-12-01`, giving users the ability to: - Get all supported countries - Get all supported localities given a country code. - Get all Toll-Free area codes from a given country code. diff --git a/sdk/communication/communication-phone-numbers/assets.json b/sdk/communication/communication-phone-numbers/assets.json index 2774da4d8c8c..3a9d85ac2295 100644 --- a/sdk/communication/communication-phone-numbers/assets.json +++ b/sdk/communication/communication-phone-numbers/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/communication/communication-phone-numbers", - "Tag": "js/communication/communication-phone-numbers_ccae8be419" + "Tag": "js/communication/communication-phone-numbers_8c83ce2435" } diff --git a/sdk/communication/communication-phone-numbers/package.json b/sdk/communication/communication-phone-numbers/package.json index 7f59efa7ec26..d35825d8fc54 100644 --- a/sdk/communication/communication-phone-numbers/package.json +++ b/sdk/communication/communication-phone-numbers/package.json @@ -1,6 +1,6 @@ { "name": "@azure/communication-phone-numbers", - "version": "1.2.1", + "version": "1.3.0-beta.2", "description": "SDK for Azure Communication service which facilitates phone number management.", "sdk-type": "client", "main": "dist/index.js", diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig new file mode 100644 index 000000000000..8a54a6f9853c --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig @@ -0,0 +1,859 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:51:49 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:24 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:48 GMT", + "MS-CV": "yzcFdlNLmESGOmiD1vA9xw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "05SWyZAAAAABAQ51pqjo8SoTbyjyJdgECV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "220ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:23 GMT", + "MS-CV": "K/DgTZEWKUSwCQBztEINwg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0H9pdZQAAAAB3wvQ3wX2/RZM4KS57IEOiUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "763ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { +<<<<<<< HEAD + "localizedName": "Cape Coral", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +======= +>>>>>>> main + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tallahassee", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Pontiac", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:51:49 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:25 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:50 GMT", + "MS-CV": "vdO9b5ryZkiCo1WBJEi9Cg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "05SWyZAAAAABD8JMP9MkzTryGbEqTcTgWV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1577ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:26 GMT", + "MS-CV": "yO7xcC993kypwKVwrXps5g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0INpdZQAAAABXhUTj0tg6RaTnbp1C303GUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2946ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "907" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json new file mode 100644 index 000000000000..050b1f396399 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json @@ -0,0 +1,58 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2024-03-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:33 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:34 GMT", + "MS-CV": "3GlkSA8Em0aQp4zbccbuEg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002BS7eZQAAAAA48zijAwkdRrtvWPqJaPHJV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1638ms" + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig new file mode 100644 index 000000000000..050b1f396399 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig @@ -0,0 +1,58 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2024-03-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:33 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:34 GMT", + "MS-CV": "3GlkSA8Em0aQp4zbccbuEg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002BS7eZQAAAAA48zijAwkdRrtvWPqJaPHJV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1638ms" + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig new file mode 100644 index 000000000000..3265c11ed643 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig @@ -0,0 +1,853 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:40 GMT", + "MS-CV": "q1HTVi8730iWb3A53bjrVQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03CWyZAAAAADfsP8V\u002Bpg1QZ7H3LNz/mspV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:15 GMT", + "MS-CV": "0GPVfLFQZUqO9PnILBpOSw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0FtpdZQAAAACmVGVFIGFCRqvbfP4ypPzNUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1595ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { +<<<<<<< HEAD + "localizedName": "Cape Coral", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +======= +>>>>>>> main + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tallahassee", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Pontiac", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:41 GMT", + "MS-CV": "JyIBmz5fiUKzVPY3B/5X2A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03SWyZAAAAABa494\u002BPAPJQ7ICJZiClfl/V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1556ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:18 GMT", + "MS-CV": "9z2dxnLbqUqIC9qZdtUrwQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0GNpdZQAAAAAidmykJzxMR4dBlkE/9pSlUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3020ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "907" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig new file mode 100644 index 000000000000..55d2d396a639 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig @@ -0,0 +1,74 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:48 GMT", + "MS-CV": "YKUFLANi00aNKJloX0OU6g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03yWyZAAAAACyxXwrm9FVS5gv9nUYI2zLV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "6223ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:22 GMT", + "MS-CV": "ur48E\u002Blfp0SlthFQK7H3DA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0G9pdZQAAAAD9NJZA1r64SJRppxIa7cnBUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3789ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig new file mode 100644 index 000000000000..387adceab883 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig @@ -0,0 +1,252 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:00 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:35 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:01 GMT", + "MS-CV": "tvebPZK7X029ubhpMMegIQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "08CWyZAAAAACGre6iarRcSrHqdiG33SuyV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2318ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1968", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:36 GMT", + "MS-CV": "ieX3LhuJ8UCi1Tr6Z4AcJg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0KtpdZQAAAABV\u002Bp61cIuYQrm66NQ0wF4kUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2854ms" +>>>>>>> main + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Austria", + "countryCode": "AT" + }, + { + "localizedName": "Belgium", + "countryCode": "BE" + }, + { +>>>>>>> main + "localizedName": "Brazil", + "countryCode": "BR" + }, + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, + { + "localizedName": "Denmark", + "countryCode": "DK" + }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Germany", + "countryCode": "DE" + }, + { +>>>>>>> main + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, + { + "localizedName": "Ireland", + "countryCode": "IE" + }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, + { + "localizedName": "Italy", + "countryCode": "IT" + }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Luxembourg", + "countryCode": "LU" + }, + { +>>>>>>> main + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Norway", + "countryCode": "NO" + }, + { +>>>>>>> main + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Portugal", + "countryCode": "PT" + }, + { +>>>>>>> main + "localizedName": "Puerto Rico", + "countryCode": "PR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { +>>>>>>> main + "localizedName": "Singapore", + "countryCode": "SG" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Slovakia", + "countryCode": "SK" + }, + { +>>>>>>> main + "localizedName": "South Africa", + "countryCode": "ZA" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Spain", + "countryCode": "ES" + }, + { +>>>>>>> main + "localizedName": "Sweden", + "countryCode": "SE" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Switzerland", + "countryCode": "CH" + }, + { +>>>>>>> main + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, + { + "localizedName": "United Kingdom", + "countryCode": "GB" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig new file mode 100644 index 000000000000..addb144f63ba --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig @@ -0,0 +1,249 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:51:59 GMT", + "MS-CV": "LZfeydMP7k6C1IYPG2U5HQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "07iWyZAAAAAA0KzCMm2X0TIWYecambqqDV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1910ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1968", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:33 GMT", + "MS-CV": "thehnEjFkk2btEwjQQjaEw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0J9pdZQAAAAAD9hUnkKcBSZJK/Ddr451SUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2840ms" +>>>>>>> main + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Austria", + "countryCode": "AT" + }, + { + "localizedName": "Belgium", + "countryCode": "BE" + }, + { +>>>>>>> main + "localizedName": "Brazil", + "countryCode": "BR" + }, + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, + { + "localizedName": "Denmark", + "countryCode": "DK" + }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Germany", + "countryCode": "DE" + }, + { +>>>>>>> main + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, + { + "localizedName": "Ireland", + "countryCode": "IE" + }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, + { + "localizedName": "Italy", + "countryCode": "IT" + }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Luxembourg", + "countryCode": "LU" + }, + { +>>>>>>> main + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Norway", + "countryCode": "NO" + }, + { +>>>>>>> main + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Portugal", + "countryCode": "PT" + }, + { +>>>>>>> main + "localizedName": "Puerto Rico", + "countryCode": "PR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { +>>>>>>> main + "localizedName": "Singapore", + "countryCode": "SG" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Slovakia", + "countryCode": "SK" + }, + { +>>>>>>> main + "localizedName": "South Africa", + "countryCode": "ZA" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Spain", + "countryCode": "ES" + }, + { +>>>>>>> main + "localizedName": "Sweden", + "countryCode": "SE" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Switzerland", + "countryCode": "CH" + }, + { +>>>>>>> main + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, + { + "localizedName": "United Kingdom", + "countryCode": "GB" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig new file mode 100644 index 000000000000..5f31807fa827 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig @@ -0,0 +1,79 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:13 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:41 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:13 GMT", + "MS-CV": "XCyxzl6OtkqJQbsXbOAxRg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/SWyZAAAAADKLcUFmM6BTaCDth1yzg50V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "985ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:40 GMT", + "MS-CV": "J4DFsT0P/EegZnrxJiPHqA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0MNpdZQAAAADUNXhN2ckMQYVmZsgXhhG8UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1621ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig new file mode 100644 index 000000000000..d6ff09aea692 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig @@ -0,0 +1,65 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:14 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:42 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:52:13 GMT", + "MS-CV": "wGJPtblQpUuogysR8Cp2sw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/iWyZAAAAAA1W1EISfT1RIKeLtChgLjTV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "183ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:38:41 GMT", + "MS-CV": "FpP\u002Bo1eEikuB3pODzvs/ew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0MdpdZQAAAACnaZC4ly1HQrpTVS2HN4dhUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "456ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "Input phoneNumber \u002B14155550100 cannot be found.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig new file mode 100644 index 000000000000..e0a22b828f98 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig @@ -0,0 +1,76 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:11 GMT", + "MS-CV": "\u002BSfsgMxNvEiqudFWyyuNLA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002ByWyZAAAAADSMpKIWz6xR5N5Z5F5M0EcV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1018ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:38 GMT", + "MS-CV": "mXe0P6ftuE2b4xxaOhinhQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0LdpdZQAAAACN7e30aDAcRLMDZgulHlAGUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1652ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig new file mode 100644 index 000000000000..8123f9bd954a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig @@ -0,0 +1,62 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:52:12 GMT", + "MS-CV": "EQQHrusc/kyX1e3zR0jQXw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/SWyZAAAAADqWDWIUQkNTKPIaHGwL8olV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "173ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:38:39 GMT", + "MS-CV": "lC/gheW1KkyIfj8H6oEdBw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0L9pdZQAAAAAk1I1MQtDVQ7OSQ8CDNa//UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "443ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "Input phoneNumber \u002B14155550100 cannot be found.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig new file mode 100644 index 000000000000..384b7363b0df --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig @@ -0,0 +1,4180 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers?skip=0\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:07 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:38:45 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "32076", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:07 GMT", + "MS-CV": "7v1EkwJszEqb2DnxY85x6A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "09yWyZAAAAACRz6O9tg/uQ6GO4mBeES91V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1184ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "629", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:44 GMT", + "MS-CV": "FeEQmwzeVk613uYGUAaT1Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0NNpdZQAAAABudoQ/d1\u002BCTq4J0imsgl\u002BsUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1659ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2023-11-10T08:58:56.2621568\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +<<<<<<< HEAD + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:36:13.5514009\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:18.7391177\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:43.8093725\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:44.856727\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:10:43.0470316\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:13.2871013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:43.3598754\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:14.2925013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:17.7642032\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:37:57.7589612\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:01.2490062\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:10.7033129\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T15:41:42.6103267\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:51.9182995\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:17.6614122\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:08.7055072\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:20.4489554\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +======= +>>>>>>> main + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:27.7725472\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:28:06.2941982\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:27:58.4564095\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:55.6362141\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:38.2751041\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:12.122407\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:52.6849802\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:21.3246132\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:52.844006\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:26.0949019\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:16.7736485\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:07.5114194\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:24.9591048\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:31.4083206\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:24.2533723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:16.2862265\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:37.7662022\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:46.6018872\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:50.4679082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:44.6881974\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:55.8644165\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:55.9240487\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:20.5570756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:22.1720088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:41.0997634\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:44.9865457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:11:13.6760492\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:13:14.7544127\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:51.5548845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:22:13.6608168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:13.802374\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:56.1826813\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:43.4526026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:24:12.4592203\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:17.7235497\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:32:43.9547602\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:10.859962\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:30.851053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T22:26:05.2198645\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T17:06:02.0097082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:08:43.2976318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:09:13.3731647\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:33:13.7739402\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:13.6206509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:44.3664664\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:29:43.2087273\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:37:14.4369365\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:13.4604535\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:47.6058406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:26:43.3088723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:42:44.4416133\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:13.2155644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:41:58.7312966\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:39:14.5759855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:40:28.2331315\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:43.2865444\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:43:44.3267753\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:43:14.5582972\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:30:42.3622994\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:35:58.515204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:30:13.3981412\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:36:12.1300788\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:36:43.3727213\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:31:43.1246125\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:58.3886965\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:44:13.795794\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:33:42.3770211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:13.0593291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:44:43.2825566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:43.3853897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:13.8368509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:48:14.4930555\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:47:29.3763702\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:37:12.9376761\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:37:43.0423694\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:13.4190469\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:01:13.3943797\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:02:13.0024309\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=100\u0026api-version=2023-05-01-preview\u0026top=100" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers?skip=100\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:52:08 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "32341", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:09 GMT", + "MS-CV": "kDkC2VNqMk\u002BWonYtzelfgg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002BCWyZAAAAAACNOZgDn\u002BFQYbgeS\u002BfRG06V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1244ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:12:13.538747\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:42.1281774\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:46:24.7072806\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:50:44.2721958\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:39:13.0650895\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-08-09T21:31:11.7335307\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:41:12.9270148\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:59:43.8702426\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:13.1870258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:13.7898843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:49:13.8501396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:43.2412523\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:56:13.4198655\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:43.4785601\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:13.3329991\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:43.2644646\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:13.3693388\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:57:43.4206167\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:58:12.6113168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:13.2256267\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:43.2018384\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:42.6467973\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:43.1901855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:01:43.7661054\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:02:15.3937268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:06:41.01465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:47:43.0690696\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:07:13.6917784\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:12.4350945\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:43.1996614\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:49:13.5431092\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:50:13.1026413\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:13.3157268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:43.1035835\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:22:13.3638878\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:08:43.5413541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:09:13.8998904\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:51:13.0475026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:20:05.8658511\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:54:16.6134103\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:13.7336785\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:12:58.6058156\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:56:43.0548698\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:42.604465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:42.5799099\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:58:11.834285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:15:28.6354088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:00:13.1072593\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:30:43.8919494\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:31:13.4310333\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:21:49.9674396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:45:13.7047676\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:14:13.6220104\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:44:44.6040573\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:54:13.9619565\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:29:43.161106\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:14.6037399\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:44.5667268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:56:43.3214042\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:54:13.8504347\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:14.7906887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:15:42.8004345\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:31:13.2708013\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:06:43.0334527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:42.9913305\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:05:13.4188656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:25:42.7521989\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:09:12.8370429\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:30:43.1675112\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:43.1221045\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:13.1907406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:23:43.0592468\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:42.9423531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:12.9812814\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:13.4724025\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:42.9989053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:27:13.8887667\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:12.8329204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:16.1285436\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:43.2160866\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:28:28.4487656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:43.1045845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:30:12.1604917\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:43.3294475\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:29:43.4410627\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:13.2280446\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:19:17.7166571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:25:43.4713207\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:08:13.3307166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:26:13.092427\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:07:43.1286116\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:13.6303453\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:43.3758897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:43.893635\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:17:43.5066285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:13.9066513\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:18:43.0105843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:19:13.3153527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-05T18:13:14.3666161\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=200\u0026api-version=2023-05-01-preview\u0026top=100" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers?skip=200\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:52:10 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "12086", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:10 GMT", + "MS-CV": "EAZY6MiCv0C7I2qZc7qjeA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0\u002BiWyZAAAAADJCaP7AjHxRI5k3Bqyl/t6V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1147ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-08T16:05:56.7000298\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-21T21:33:14.7628777\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-22T18:33:35.4149119\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-03T22:15:58.0819861\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:31:45.9762541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:26:42.2419258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:56.7009211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:29.7383571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:27:31.7369364\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:45.0763318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:40:14.5388708\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:13.7766563\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:00.1600209\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:15.9484758\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:23.3515457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:13.7459585\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:42.5645252\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:59:43.6806531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:42.9562291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:12.077177\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:55:14.1329393\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:13.8937202\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:44:12.4528756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:13:13.4711145\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:46:42.2851739\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:15.1108491\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:12.0653887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:25.0876521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:42.2605522\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:13.2673166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:51:13.1710277\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:44.8212216\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:43.5645432\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:23:08.4687205\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-29T22:41:40.755214\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:33:41.947644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-02T10:50:53.3274521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "141555501003", + "phoneNumber": "\u002B141555501003", + "countryCode": "GB", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2023-05-25T22:00:08.1041229\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig new file mode 100644 index 000000000000..15cab8033422 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig @@ -0,0 +1,4173 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers?skip=0\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "32076", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:03 GMT", + "MS-CV": "aQ7BLDodEUiu7qWsSb2KJQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "08yWyZAAAAAA1\u002B02/mKluQJDd7\u002BYuvQgPV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1285ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "629", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:38:43 GMT", + "MS-CV": "pur3\u002Bp/ee0y867v2I5hImA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0MtpdZQAAAADYnZAK5AtaQ7HawoDiUVp7UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1690ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2023-11-10T08:58:56.2621568\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +<<<<<<< HEAD + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:36:13.5514009\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:18.7391177\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:43.8093725\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:44.856727\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:10:43.0470316\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:13.2871013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:43.3598754\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:14.2925013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:17.7642032\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:37:57.7589612\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:01.2490062\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:10.7033129\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T15:41:42.6103267\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:51.9182995\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:17.6614122\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:08.7055072\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:20.4489554\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +======= +>>>>>>> main + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:27.7725472\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:28:06.2941982\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:27:58.4564095\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:55.6362141\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:38.2751041\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:12.122407\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:52.6849802\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:21.3246132\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:52.844006\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:26.0949019\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:16.7736485\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:07.5114194\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:24.9591048\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:31.4083206\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:24.2533723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:16.2862265\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:37.7662022\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:46.6018872\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:50.4679082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:44.6881974\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:55.8644165\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:55.9240487\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:20.5570756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:22.1720088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:41.0997634\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:44.9865457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:11:13.6760492\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:13:14.7544127\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:51.5548845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:22:13.6608168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:13.802374\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:56.1826813\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:43.4526026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:24:12.4592203\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:17.7235497\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:32:43.9547602\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:10.859962\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:30.851053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T22:26:05.2198645\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T17:06:02.0097082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:08:43.2976318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:09:13.3731647\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:33:13.7739402\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:13.6206509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:44.3664664\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:29:43.2087273\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:37:14.4369365\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:13.4604535\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:47.6058406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:26:43.3088723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:42:44.4416133\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:13.2155644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:41:58.7312966\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:39:14.5759855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:40:28.2331315\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:43.2865444\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:43:44.3267753\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:43:14.5582972\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:30:42.3622994\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:35:58.515204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:30:13.3981412\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:36:12.1300788\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:36:43.3727213\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:31:43.1246125\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:58.3886965\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:44:13.795794\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:33:42.3770211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:13.0593291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:44:43.2825566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:43.3853897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:45:13.8368509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:48:14.4930555\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:47:29.3763702\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:37:12.9376761\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:37:43.0423694\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:13.4190469\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:01:13.3943797\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:02:13.0024309\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=100\u0026api-version=2023-05-01-preview\u0026top=100" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers?skip=100\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "32341", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:04 GMT", + "MS-CV": "TLSK23Rdd0arm\u002BW4SM09ng.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "09CWyZAAAAADqIgU\u002BPRc4Qoj5o0bKfrh5V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1307ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:18:42.3038608\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:12:13.538747\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:42.1281774\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:46:24.7072806\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:50:44.2721958\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:39:13.0650895\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-08-09T21:31:11.7335307\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:41:12.9270148\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:59:43.8702426\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:13.1870258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:13.7898843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:49:13.8501396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:43.2412523\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:56:13.4198655\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:43.4785601\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:13.3329991\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:43:43.2644646\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:13.3693388\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:57:43.4206167\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:58:12.6113168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:45:13.2256267\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:44:43.2018384\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:00:42.6467973\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:46:43.1901855\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:01:43.7661054\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:02:15.3937268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:06:41.01465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:47:43.0690696\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:07:13.6917784\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:12.4350945\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:48:43.1996614\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:49:13.5431092\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:50:13.1026413\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:13.3157268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:04:43.1035835\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:22:13.3638878\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:08:43.5413541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:09:13.8998904\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:51:13.0475026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:20:05.8658511\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:54:16.6134103\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:13.7336785\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:12:58.6058156\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:56:43.0548698\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:11:42.604465\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:42.5799099\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:58:11.834285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:15:28.6354088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:00:13.1072593\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:30:43.8919494\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:31:13.4310333\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:21:49.9674396\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:45:13.7047676\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:14:13.6220104\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:44:44.6040573\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:54:13.9619565\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:29:43.161106\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:14.6037399\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:31:44.5667268\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:56:43.3214042\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:54:13.8504347\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:14.7906887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:15:42.8004345\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:31:13.2708013\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:06:43.0334527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:42.9913305\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:05:13.4188656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:25:42.7521989\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:09:12.8370429\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:30:43.1675112\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:43.1221045\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:13.1907406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:23:43.0592468\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:07:42.9423531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:12.9812814\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:13.4724025\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:08:42.9989053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:27:13.8887667\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:10:12.8329204\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:16.1285436\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:11:43.2160866\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:28:28.4487656\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:43.1045845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:30:12.1604917\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:12:43.3294475\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T04:29:43.4410627\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:14:13.2280446\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:19:17.7166571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:25:43.4713207\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:08:13.3307166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:26:13.092427\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:07:43.1286116\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:13.6303453\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T03:28:43.3758897\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:03:43.893635\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:17:43.5066285\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:04:13.9066513\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:18:43.0105843\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:19:13.3153527\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-05T18:13:14.3666161\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": "/phoneNumbers?skip=200\u0026api-version=2023-05-01-preview\u0026top=100" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers?skip=200\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "12086", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:06 GMT", + "MS-CV": "hDjkjC4bVEOR37wjdvPqHw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "09SWyZAAAAAAioDj9xLKDTIb/VoaEF1SpV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1409ms" + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-08T16:05:56.7000298\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-21T21:33:14.7628777\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-22T18:33:35.4149119\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-03T22:15:58.0819861\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:31:45.9762541\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:26:42.2419258\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:56.7009211\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:29.7383571\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-20T21:27:31.7369364\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:34:45.0763318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:40:14.5388708\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:38:13.7766563\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:00.1600209\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:15.9484758\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:23.3515457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:42:13.7459585\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:42:42.5645252\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:59:43.6806531\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:42.9562291\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:43:12.077177\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:55:14.1329393\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:57:13.8937202\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:44:12.4528756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:13:13.4711145\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:46:42.2851739\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:15.1108491\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:12.0653887\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-11T02:27:25.0876521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:49:42.2605522\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:13.2673166\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:51:13.1710277\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T01:14:44.8212216\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:50:43.5645432\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:23:08.4687205\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-12-29T22:41:40.755214\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T01:33:41.947644\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-06-02T10:50:53.3274521\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "141555501003", + "phoneNumber": "\u002B141555501003", + "countryCode": "GB", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2023-05-25T22:00:08.1041229\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig new file mode 100644 index 000000000000..769af4c9ad10 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig @@ -0,0 +1,1728 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:16 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:55 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:16 GMT", + "MS-CV": "LlZeVIlWE0K6oIhT6WNhiw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ACayZAAAAADhhiwB5\u002BqxSJ6p6mz96xmjV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "227ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:55 GMT", + "MS-CV": "/wxULRJIiUmGjmArMw/KMQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ttpdZQAAAAAta//v0q7WTrwc2pWRskobUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "742ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Worcester", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], +<<<<<<< HEAD + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", +======= + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:56 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10209", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:16 GMT", + "MS-CV": "KGE7cwJ95kWTOuMgsQy41Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ASayZAAAAADF/eE4U72mQYXhBh6MyEr0V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "227ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10195", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:55 GMT", + "MS-CV": "/nLTmbsBhkKNf2jeJiLG/Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0t9pdZQAAAAAOXrpvCKKeSKl/1MfL2lLeUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "750ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Duluth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Mankato", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Plymouth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Marshall", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Springfield", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "St. Louis", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Biloxi", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Starkville", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Billings", + "administrativeDivision": { + "localizedName": "MT", + "abbreviatedName": "MT" + } + }, + { + "localizedName": "Asheville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Charlotte", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fayetteville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Greensboro", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Raleigh", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Rocky Mount", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fargo", + "administrativeDivision": { + "localizedName": "ND", + "abbreviatedName": "ND" + } + }, + { + "localizedName": "Kearney", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "Omaha", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "All locations", + "administrativeDivision": { + "localizedName": "NG", + "abbreviatedName": "NG" + } + }, + { + "localizedName": "Atlantic City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Camden", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Edison", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Elizabeth", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Jersey City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Newark", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Albuquerque", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Cruces", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Vegas", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Reno", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Brentwood", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Elmira", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Hempstead", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Kingston", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "New York City", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Niagara Falls", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Rochester", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Syracuse", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Yonkers", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Akron", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cincinnati", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cleveland", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Columbus", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Dayton", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Toledo", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Lawton", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Oklahoma City", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Tulsa", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "OR", + "abbreviatedName": "OR" + } + }, + { +<<<<<<< HEAD + "localizedName": "Lancaster", +======= + "localizedName": "Erie", +>>>>>>> main + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +>>>>>>> main + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Pittsburgh", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Weatherly", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Providence", + "administrativeDivision": { + "localizedName": "RI", + "abbreviatedName": "RI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Greenville", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Sioux Falls", + "administrativeDivision": { + "localizedName": "SD", + "abbreviatedName": "SD" + } + }, + { + "localizedName": "Chattanooga", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Clarksville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Knoxville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +>>>>>>> main + "localizedName": "Memphis", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Nashville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Abilene", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Austin", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Bryan", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Corpus Christi", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "El Paso", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Fort Worth", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Galveston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Houston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Laredo", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Lubbock", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Odessa", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +>>>>>>> main + "localizedName": "San Antonio", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Tyler", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Salt Lake City", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "St. George", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "Arlington", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Danville", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Lynchburg", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Richmond", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Roanoke", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Virginia Beach", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Brattleboro", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Montpelier", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { +<<<<<<< HEAD + "localizedName": "Spokane", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", +======= + "localizedName": "Seattle", +>>>>>>> main + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:40:57 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "743", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:56 GMT", + "MS-CV": "eku7cIclfEq1igSgGX2Svw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0uNpdZQAAAADWYKnDeU2mSbOQFKp2P7PhUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "718ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Kenosha", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Milwaukee", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "WV", + "abbreviatedName": "WV" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:52:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "142", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:16 GMT", + "MS-CV": "\u002BhhFhxgi8USquXyueCpWjA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ASayZAAAAAAaZLeX4G8vQ77T5nsXC6fYV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "237ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Laramie", + "administrativeDivision": { + "localizedName": "WY", + "abbreviatedName": "WY" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig new file mode 100644 index 000000000000..840b81b56024 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig @@ -0,0 +1,863 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:58 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:17 GMT", + "MS-CV": "1LJYsNhXwUiKEFLkpmFMXA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ASayZAAAAADm/FI7uomlRKiiMAt1s03pV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "238ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:57 GMT", + "MS-CV": "9pwuxCYJEkC8Lt9LLP\u002BRvg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0udpdZQAAAADL6TeWbdyRRJEdz35UKZSqUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "746ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Worcester", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:18 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:58 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:17 GMT", + "MS-CV": "D95HGByQSEalDVJWr3j77w.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0AiayZAAAAAA05iymGZZrS5D9gt9\u002BjK6SV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "221ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:58 GMT", + "MS-CV": "iYOdPcl8yEa5ZiGyWoYePg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0udpdZQAAAAB/uXx//qAeRpclVmVPDV\u002BfUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "797ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig new file mode 100644 index 000000000000..10d3bda3f7e3 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig @@ -0,0 +1,1718 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:14 GMT", + "MS-CV": "eHHdtJqVNEOUZhz1Nn6QNw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/iWyZAAAAAAAFcH14RE/QZs\u002BooUbFSHHV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "244ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:50 GMT", + "MS-CV": "u4xqN8LX5EOZOoHsIZlHLw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0stpdZQAAAAAR3kXCM4QGSo20Ln8Jc/THUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "744ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Worcester", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], +<<<<<<< HEAD + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", +======= + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10209", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:14 GMT", + "MS-CV": "BZqFMWV13U6gwsAd4Nw3RA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/yWyZAAAAACSeDx5S1xDR5mLV6Wn7u1HV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "220ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10195", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:51 GMT", + "MS-CV": "stAz6p55j0qLIDi5e32uDw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0s9pdZQAAAACPlYWXbDnjTa3Ow37WLH2/UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "753ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Duluth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Mankato", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Plymouth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Marshall", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Springfield", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "St. Louis", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Biloxi", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Starkville", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Billings", + "administrativeDivision": { + "localizedName": "MT", + "abbreviatedName": "MT" + } + }, + { + "localizedName": "Asheville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Charlotte", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fayetteville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Greensboro", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Raleigh", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Rocky Mount", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fargo", + "administrativeDivision": { + "localizedName": "ND", + "abbreviatedName": "ND" + } + }, + { + "localizedName": "Kearney", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "Omaha", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "All locations", + "administrativeDivision": { + "localizedName": "NG", + "abbreviatedName": "NG" + } + }, + { + "localizedName": "Atlantic City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Camden", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Edison", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Elizabeth", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Jersey City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Newark", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Albuquerque", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Cruces", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Vegas", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Reno", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Brentwood", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Elmira", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Hempstead", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Kingston", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "New York City", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Niagara Falls", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Rochester", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Syracuse", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Yonkers", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Akron", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cincinnati", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cleveland", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Columbus", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Dayton", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Toledo", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Lawton", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Oklahoma City", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Tulsa", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "OR", + "abbreviatedName": "OR" + } + }, + { +<<<<<<< HEAD + "localizedName": "Lancaster", +======= + "localizedName": "Erie", +>>>>>>> main + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +>>>>>>> main + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Pittsburgh", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Weatherly", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Providence", + "administrativeDivision": { + "localizedName": "RI", + "abbreviatedName": "RI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Greenville", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Sioux Falls", + "administrativeDivision": { + "localizedName": "SD", + "abbreviatedName": "SD" + } + }, + { + "localizedName": "Chattanooga", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Clarksville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Knoxville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +>>>>>>> main + "localizedName": "Memphis", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Nashville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Abilene", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Austin", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Bryan", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Corpus Christi", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "El Paso", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Fort Worth", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Galveston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Houston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Laredo", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Lubbock", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Odessa", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +>>>>>>> main + "localizedName": "San Antonio", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Tyler", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Salt Lake City", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "St. George", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "Arlington", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Danville", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Lynchburg", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Richmond", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Roanoke", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Virginia Beach", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Brattleboro", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Montpelier", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { +<<<<<<< HEAD + "localizedName": "Spokane", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", +======= + "localizedName": "Seattle", +>>>>>>> main + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "743", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:52 GMT", + "MS-CV": "owlW86/WlEuRawsjHut5Uw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0s9pdZQAAAADVvLs2uFa3TplrPEREQqnKUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "765ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Kenosha", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Milwaukee", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "WV", + "abbreviatedName": "WV" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "142", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:14 GMT", + "MS-CV": "\u002BHGpnwlrAU\u002B3GeiAfd3uKA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/yWyZAAAAACHbuWVdnunS7osTteKNBO5V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "234ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Laramie", + "administrativeDivision": { + "localizedName": "WY", + "abbreviatedName": "WY" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig new file mode 100644 index 000000000000..bc49a3e3c82a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig @@ -0,0 +1,857 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10216", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:15 GMT", + "MS-CV": "2vQi69v4b0C7fAW0Da5Hng.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0/yWyZAAAAADfeKKsC/piQpPw5jR4N4vwV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "222ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:53 GMT", + "MS-CV": "W6OJ5OZNVkS0XGkuYSGJSA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0tNpdZQAAAAAVYcKmP6aITaA8au6TWa7CUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "726ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Escondido", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Worcester", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:15 GMT", + "MS-CV": "4AEU50r/xk\u002BabvWzm0yG4g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ACayZAAAAAB3Dd0g/t8yR7ZB0QnUZJtjV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "221ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:54 GMT", + "MS-CV": "vPKz4REi5UGTd3yQNmdevw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0tdpdZQAAAAADCn9\u002BFCJ3SIWHuXVnbrAbUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "761ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json new file mode 100644 index 000000000000..c770e9c332ab --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json @@ -0,0 +1,61 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "OmiHT1VilzGeodwSly/sLlTvvNvKSeL1Mf0fzGeyvTs=", + "x-ms-date": "Tue, 27 Feb 2024 18:51:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:51:08 GMT", + "MS-CV": "gR\u002Be7gFanUKiqk6PIFyPlw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0HS/eZQAAAACGh/DNAAymTZvzPMgJnOzGV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "23ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": null, + "numberType": null, + "operatorDetails": null + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json new file mode 100644 index 000000000000..350f2565935f --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json @@ -0,0 +1,56 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "101", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "C0wdqHni5iu3jCpgQMmXW\u002B/F4BI/blLXomiVg6pcPkg=", + "x-ms-date": "Tue, 27 Feb 2024 18:51:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100", + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Type": "application/json", + "Date": "Tue, 27 Feb 2024 18:51:08 GMT", + "MS-CV": "Kt7Va3g2wEifnGKfLx85KQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HS/eZQAAAABB8SWyzcf8T6aRGZqYiLv2V1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "10ms" + }, + "ResponseBody": { + "error": { + "code": "BadRequest", + "message": "Can only accept one phoneNumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json new file mode 100644 index 000000000000..8c1ea06e1262 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json @@ -0,0 +1,121 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "OmiHT1VilzGeodwSly/sLlTvvNvKSeL1Mf0fzGeyvTs=", + "x-ms-date": "Tue, 27 Feb 2024 18:51:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:51:09 GMT", + "MS-CV": "6zUGHbXI6E2WiXyfqscs8w.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0HS/eZQAAAAAT23yKEDBVSYxdsg3AT22QV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "29ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": null, + "numberType": null, + "operatorDetails": null + } + ] + } + }, + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "85", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "\u0022Chromium\u0022;v=\u0022122\u0022, \u0022Not(A:Brand\u0022;v=\u002224\u0022, \u0022HeadlessChrome\u0022;v=\u0022122\u0022", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022Windows\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/122.0.6261.57 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "qkBNiaAS8tfKX/Wf8JKOsmJrOnPktJNJDx1K4XvtFFc=", + "x-ms-date": "Tue, 27 Feb 2024 18:51:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": true + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "260", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:51:09 GMT", + "MS-CV": "d/IEOVqjK0G0DPjiiLQ7zA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0HS/eZQAAAABy4MFhfvRhT4BioFWZJjBXV1NURURHRTAxMDkAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "850ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": "US", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig new file mode 100644 index 000000000000..0c3ce4859613 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig @@ -0,0 +1,1354 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "4/hFIxcYwXqhguSdYcV2TsQR1Tf8cOFyLfVXdBF8OBU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:08 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:35 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:53:09 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "SZ\u002Bu4K\u002Bvj0GZFV5PmLpbfA.0", + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0NCayZAAAAAAzxMNFX9w\u002BS7zreFpSVf7EV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1031ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:09 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:37 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "NF3pWwDp2UOQtwnrbE1x5A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NSayZAAAAADLOw2y0R5QTLjPmjAfqqs1V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:10 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:37 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "/I8aUekZzEC8eoDcvll\u002BXA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NiayZAAAAACRpU6MqLsSQ56fJ2WMguCzV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "303ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:53:12 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:12 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "AVf97Ct8AUmnXlDm08vGNQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OCayZAAAAAA8VawsTjPAS79mfxrBWrrEV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "236ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:15 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:40 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:15 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "/\u002BmltpnmbEKnl4LPlEaxVg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0OiayZAAAAADYkpkVaXimSoFpOMErUx6lV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "259ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:15 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:40 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "319", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:15 GMT", + "MS-CV": "68wAaVihiU21NVVKgkP1hQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0OyayZAAAAAADpIYqS3HGRokYhb9V97mpV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "471ms" + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, + "searchExpiresBy": "2023-07-15T05:09:12.6539873\u002B00:00", + "error": "NoError" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/:purchase?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-content-sha256": "7y7CnmPxrI4eh5ZGSYsfr/oid3uMYH/tvXVHj34pJvI=", + "x-ms-date": "Sat, 15 Jul 2023 04:53:15 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "O4v56yo2F8/w6SEo011JpVUd2HbGasCmQAeoo9133tg=", + "x-ms-date": "Fri, 06 Jan 2023 17:35:42 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "searchId": "sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,purchase-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:53:16 GMT", + "MS-CV": "tGTfSBiObU6avYroLIhSKQ.0", + "operation-id": "purchase_sanitized", + "Operation-Location": "/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "purchase-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0OyayZAAAAADg0UIY70HRTqmSl6DkWsmdV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "872ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:44 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:17 GMT", + "MS-CV": "pCtEqPPlaUqIV0u2qnl7MQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PSayZAAAAAC\u002Bi/dyPDKPSqFmlbOxSu\u002B6V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "241ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:17 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:44 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:17 GMT", + "MS-CV": "1Lrj6oijSUmNFiSIcZ5Kew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PSayZAAAAAD2VnFpWxZRR5x04lhlFXaFV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "265ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:19 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:47 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:19 GMT", + "MS-CV": "JUI8V7Jqu0SkRSP\u002B7gXK6A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0PyayZAAAAAC2sLy4V\u002BjkQ6keu8d5VDBsV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "249ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:53:22 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:22 GMT", + "MS-CV": "41msbJY8YkChNLXdTPlUxg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0QiayZAAAAAAQvw4qaP22QJzAwMiQs/jrV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "237ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:24 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:49 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:24 GMT", + "MS-CV": "e0gFp8IoQ0uYzPboEaD6zQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RCayZAAAAAB/QlgXcPzUS7VE485K4zs6V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "235ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:26 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:52 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:26 GMT", + "MS-CV": "Dp4mrOTV\u002BEyU/ca7/5/W3w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0RiayZAAAAAAwiyj1vXjQRYwf/RFZb5p8V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "236ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:29 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:55 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:29 GMT", + "MS-CV": "CY1UM/frJUGQsqutWIGEaA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SSayZAAAAAB3QZkM5BYLSI727sx7Wot8V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "235ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:31 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:35:57 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:31 GMT", + "MS-CV": "4PDn932T5U6P5TUHgs3lFw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0SyayZAAAAACYESadvqtHTarN0nsLRK1fV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:33 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:00 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:33 GMT", + "MS-CV": "YH/HnNXTPEaTlbkP6encNg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0TSayZAAAAAB3kxYS9b9LQ6pgkNRyHey8V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "243ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:36 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:02 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:36 GMT", + "MS-CV": "RTRCOOhFpEaSg211UgYNxw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UCayZAAAAACMci72HE1vTqoADAKVk9M/V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "229ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:09.4886881\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:36 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:03 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "310", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:37 GMT", + "MS-CV": "BOqsmJtIz0Kqj\u002BWBA4BSlg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0UCayZAAAAACS123oEWLST7Vc5/XCZ\u002BHRV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1064ms" + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-15T04:53:31.8062039\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:37 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:05 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,release-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:53:39 GMT", + "MS-CV": "9Sx/ngpSF02Bj\u002BtlMirGWg.0", + "operation-id": "release_sanitized", + "Operation-Location": "/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "release-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0USayZAAAAACv0SlS1CyTSaj0V4AGQ3AEV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1796ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:39 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:07 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:39 GMT", + "MS-CV": "G5/cdbXxPkKwAomuW\u002Bythw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UyayZAAAAABxB1qQCKezSZG0wm5e5eELV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", +<<<<<<< HEAD + "X-Processing-Time": "217ms" +======= + "X-Processing-Time": "401ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 06 Jan 2023 17:36:08 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:36:05 GMT", + "MS-CV": "pid6SKwT906iTNxndM9tPA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Bly4YwAAAABw3uHdyS/JQYwzAhqD7soXTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "402ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 06 Jan 2023 17:36:10 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:36:09 GMT", + "MS-CV": "M2emd9Slrk2PKePd9pZwAA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CFy4YwAAAAAUIQfbjFcmQ7Uqykl6HrTrTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "406ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:39 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:13 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:39 GMT", + "MS-CV": "otTncT4pdUO/6q8n4PVNdg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0UyayZAAAAAAvwTzb8n6wRbMV1jnCJpMSV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "159ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:42 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:15 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:42 GMT", + "MS-CV": "TcTrcJP8okGCdM41BsgyyQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ViayZAAAAAAK\u002BxElGC5ZRr2BKO7dmQwfV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "148ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:44 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:18 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:44 GMT", + "MS-CV": "086q32QYokiNvEk2\u002BH8jww.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0WCayZAAAAAAwDlq/Bk22TaQnWxny1GUQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "165ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:46 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:36:20 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:46 GMT", + "MS-CV": "DA27K\u002BRghkCMIpInH65A6Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0WiayZAAAAACQUyIOWiggR6SIfFGhK7w5V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "145ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:53:48 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:48 GMT", + "MS-CV": "RPVqnj/G60KmJpCU5jTCRA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0XCayZAAAAACnBRLqu7ekQaNwBD4u7TsPV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "152ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:53:38.4942287\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + } + ], + "Variables": {} +} \ No newline at end of file diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig new file mode 100644 index 000000000000..aa69a52d0039 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig @@ -0,0 +1,1669 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "4/hFIxcYwXqhguSdYcV2TsQR1Tf8cOFyLfVXdBF8OBU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:29 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "8vdU9ChCE0azr8CH/Ta\u002BUw.0", +======= + "Date": "Fri, 06 Jan 2023 17:35:34 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "ofp0snc7CECsY8DINlCkBw.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0DiayZAAAAAA7Lcws2ihCRLsTCY8qi6wyV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "819ms" +======= + "X-Azure-Ref": "05Vu4YwAAAABTwCfnO0b4Tqr7edw9quXDTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1942ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:30 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "vTlx2J0tM0SrsCGTsVWk\u002BQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DyayZAAAAACxyfwZCjydSpKu8p21iwiwV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "245ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:34 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "YefqEcOZs0e6T4YZivw3lA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "051u4YwAAAADPJ6nre7OCTKzhOBDCnMd1TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "452ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:30 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "T7lWO8iOlEqnM2LhOEHJaA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DyayZAAAAAANECYT\u002Bj7VQ6Aq7wTs1X2vV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:35 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "7s4pQa3zgkOegykTA5aMvA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "051u4YwAAAACEPt0BGp66S4esDoJ7eZyRTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "454ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:32 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "yKJCADslfEqM78ytojWl3g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ESayZAAAAACkm833OpQJRZTO/qXFVUm2V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "248ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:37 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "ramfm9BczkqoUKSA5LaaPQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06lu4YwAAAABtHROUgpRjS4gokH89mA/1TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "457ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "319", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:33 GMT", + "MS-CV": "uDzEpS3J8kiTPuLX4/sXXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ESayZAAAAAASooSWLANZSazn1P/u6OhwV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "655ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:39 GMT", + "MS-CV": "4GrV\u002BTw5Q0SdfabVz//gUg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "06lu4YwAAAACOakKbUwtpTqU6r0rgmlY9TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1125ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-15T05:08:33.1838285\u002B00:00", + "error": "NoError" +======= + "searchExpiresBy": "2023-01-06T17:51:36.4235517\u002B00:00" +>>>>>>> main + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/:purchase?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "O4v56yo2F8/w6SEo011JpVUd2HbGasCmQAeoo9133tg=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "searchId": "sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,purchase-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:34 GMT", + "MS-CV": "OF2K6CPzN0\u002BCDe60LO2ipA.0", +======= + "Date": "Fri, 06 Jan 2023 17:35:41 GMT", + "MS-CV": "ICD1R7kV5UaJP09fGU13cg.0", +>>>>>>> main + "operation-id": "purchase_sanitized", + "Operation-Location": "/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "purchase-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0EiayZAAAAAD4cFtidtihR7Ff4W7Jl4oEV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "894ms" +======= + "X-Azure-Ref": "07Fu4YwAAAACPWIbOLewaRqykBR/saTdOTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2031ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:35 GMT", + "MS-CV": "RQZ5rQ/VBk\u002BGe4x55MjmtA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EyayZAAAAAAnR8JuynfzT7a03Ae81aKKV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "249ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:41 GMT", + "MS-CV": "H8ZfbGeL9UK5BHl7Q4odvg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "07lu4YwAAAABgemooQYcpRJskUhcllwobTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "454ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:35 GMT", + "MS-CV": "8WuXDW94gEifdMmoAUhy2A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FCayZAAAAAC8AayhQ0UbTIIZIm/KJcu\u002BV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", +======= + "Date": "Fri, 06 Jan 2023 17:35:42 GMT", + "MS-CV": "LnwYnZyh0Eied78zDWnC3A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "07lu4YwAAAADngvUo2mU2QpnBYl8LqFG2TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "447ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:44 GMT", + "MS-CV": "1B9dS21Fp0mIVE49w9Uhsg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "08Vu4YwAAAAALLysZr76LRKpRM\u002BTfCP\u002BOTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "457ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:47 GMT", + "MS-CV": "UcEjJwXlvkKg/PBQjwL35g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "081u4YwAAAAApIBKXOCfMRoNogL1qQkrMTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "464ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:49 GMT", + "MS-CV": "GAf5dZGnoEiW\u002BaK2ioLE1A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "09lu4YwAAAADnLLlfXGzqR7Tx8zgPoNNTTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "474ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:52 GMT", + "MS-CV": "U7s0u1zlhEeW1GZD\u002B0EfJw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002BFu4YwAAAABpjgGqjCw3SJCDKv3JThxyTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "461ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:35:54 GMT", + "MS-CV": "mplJ6U5yrUKusA93ojDNUQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0\u002B1u4YwAAAACYpiIRHesvTbNuG7jhYdPDTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", +>>>>>>> main + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "232ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:37 GMT", + "MS-CV": "bQV39TlHdkyTmdTWMeAmzg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FiayZAAAAAAh8rQoGJPvRLBF6DXg48uoV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "247ms" +======= + "Date": "Fri, 06 Jan 2023 17:35:57 GMT", + "MS-CV": "TK9HN4q1qUiIEIwkgD0mIA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/Vu4YwAAAADfYuu/RMJKQ5ILiURtoSpBTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "470ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:40 GMT", + "MS-CV": "IwIvRFz65kWNjVVKtHTdwg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0GCayZAAAAABHUuohp\u002BLyTZTDbqXtv\u002BlXV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "436ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:43 GMT", + "MS-CV": "ou\u002BZ9ma2h0a6Tin0jT48Hg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0GyayZAAAAADtHDuJ8cyCQpXYdMWPzp2eV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "259ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:46 GMT", + "MS-CV": "JGS1JJQ/IkWiFv7G4CHxvQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HSayZAAAAAB0sDcYi677Qq1sa6Ak61fJV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "238ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:48 GMT", + "MS-CV": "gAnYm5lRW0WLYBDOTvOY1w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ICayZAAAAAB6nBVuU6/mTarFbBJ0wRJ3V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "245ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:50 GMT", + "MS-CV": "k4EW\u002BJdhPE6oeLnMK5dang.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0IiayZAAAAABMGYm58JkOSaL0gXZ5JBKkV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "243ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:53 GMT", + "MS-CV": "HkZrn5vdP0mJMZbt2ywjAw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0JCayZAAAAAAx5RxhcGQISYGksjBH\u002BVkyV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:55 GMT", + "MS-CV": "9WKIwkw8GUiiXLcyhRRCow.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0JyayZAAAAAB1p41P4JBLQopkX63f3CKnV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "243ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:00 GMT", + "MS-CV": "lMRwVDozUU6euie/IFeWFw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AFy4YwAAAABwWtwRHhSfSYa008MtNtFLTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "465ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "purchase", + "status": "succeeded", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:30.5853969\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:35:34.6198719\u002B00:00", +>>>>>>> main + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "310", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:56 GMT", + "MS-CV": "xpYqkFybeUKG7ZW4MAfCGw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0JyayZAAAAAD1cr\u002BIH6JHQomkNoJiD5RiV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "988ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:02 GMT", + "MS-CV": "UuREI/AMSU2TytRCyVypXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AVy4YwAAAABBfsbsTgNkS6EOGpgAVhvVTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2439ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2023-07-15T04:52:49.8531401\u002B00:00", +======= + "purchaseDate": "2023-01-06T17:35:57.0332349\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,release-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:58 GMT", + "MS-CV": "R7cBTnaGWkWvt/q1Gol7IQ.0", +======= + "Date": "Fri, 06 Jan 2023 17:36:04 GMT", + "MS-CV": "M1/8c3MnhEqBVmtTcyV8QQ.0", +>>>>>>> main + "operation-id": "release_sanitized", + "Operation-Location": "/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "release-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0KCayZAAAAADLBgA4FZwORblzYQWN2TESV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2044ms" +======= + "X-Azure-Ref": "0A1y4YwAAAAAPsVIyOXM7TYbr\u002BVs16KjzTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1990ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:59 GMT", + "MS-CV": "6Iw1sHiTkUmBiUVY9lLKaw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0KiayZAAAAADHC5Me/oOYRohG/\u002B5Y/GYJV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "188ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:05 GMT", + "MS-CV": "kG45Cu36vUmP4kZrYFUZ/w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BVy4YwAAAAAKGqPGfHo5QpoX2Y19dJUYTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "401ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:52:59 GMT", + "MS-CV": "jXmrQWxazUyMHEW0d0D0qw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0KyayZAAAAABgZ3hrZasUQa3eYMToQZzwV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "162ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:05 GMT", + "MS-CV": "pid6SKwT906iTNxndM9tPA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Bly4YwAAAABw3uHdyS/JQYwzAhqD7soXTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "402ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:36:09 GMT", + "MS-CV": "M2emd9Slrk2PKePd9pZwAA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CFy4YwAAAAAUIQfbjFcmQ7Uqykl6HrTrTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "406ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:53:01 GMT", + "MS-CV": "T4bVeN4geUyqfm\u002BtQkrc7g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0LSayZAAAAAAE/iY7vEj3T5F04CGvqmFQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "144ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:11 GMT", + "MS-CV": "innahT6AG0OUOEkt/TlQ7A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0C1y4YwAAAAAW2fnEKD5wTKYxlp7nqs6yTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "408ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:53:03 GMT", + "MS-CV": "ZzA8cPJFhkeia8n/V9aThw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0LyayZAAAAAC2ow5v\u002Bz75RJbeT6IGhVC\u002BV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "147ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:14 GMT", + "MS-CV": "Jk8tulMUA0ep//G2GwTAGw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DVy4YwAAAAAFxK17uDOLTbkF9FJlSUC6TUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "406ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", +<<<<<<< HEAD + "Date": "Sat, 15 Jul 2023 04:53:06 GMT", + "MS-CV": "1eoUc1mT40KLxzNKZdgIqQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0MiayZAAAAAAsPIpLfh2AS7cBtyl4hB2zV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "144ms" +======= + "Date": "Fri, 06 Jan 2023 17:36:16 GMT", + "MS-CV": "ATFlfNE5zE6D3DnfCAa2MQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EFy4YwAAAACrvDGGYGVTQpx7Ji2G0YmCTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "403ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", +<<<<<<< HEAD + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "sec-ch-ua-platform": "", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/108.0.5351.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:08 GMT", + "MS-CV": "bATDEpeOLEifX6xukhQWQQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0NCayZAAAAABdV3PEDCuJQ6qofaKocs4zV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "152ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:36:18 GMT", + "MS-CV": "z9EV498u6k\u002B9RguV5/cUxQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0Ely4YwAAAACR7EoeGUp3Qa\u002B1e7GMjuq\u002BTUVYMzBFREdFMTEwOQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "401ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "succeeded", + "resourceLocation": null, +<<<<<<< HEAD + "createdDateTime": "2023-07-15T04:52:57.7473758\u002B00:00", +======= + "createdDateTime": "2023-01-06T17:36:04.2157298\u002B00:00", +>>>>>>> main + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + } + ], + "Variables": {} +} \ No newline at end of file diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig new file mode 100644 index 000000000000..75bca5034ead --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig @@ -0,0 +1,386 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "um69rwCQDfoJlf7RIyaR7E83TxRZJQn/i\u002BrWwWXvDMo=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:24 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:16 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:52:24 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "1627MnfFMU\u002BqKQDQ\u002BBrB4w.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "0", + "Date": "Wed, 22 Nov 2023 10:40:17 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "3VebVkqoTkqK06WDEH5tyw.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0CCayZAAAAAB5Yaw/kHCRTJMsJZgQAcfgV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "826ms" +======= + "X-Azure-Ref": "0j9pdZQAAAADEGZLEV8XURJQkWBjHjMuYUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1548ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:25 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:18 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:24 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "LbSR6IaEHEmi6EgRpFotiQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CSayZAAAAACQ9VibDJSVQZnACGtHNqjQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "254ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:24.9544974\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Sat, 15 Jul 2023 04:52:25 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:25 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "1ldJ2g1wUUGLQaLi274ssw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CSayZAAAAABfdRLX3DiFT56Mhbg/HWQpV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "230ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:17 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "i/8RnUZIZ0aYT/NKRLINFQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kdpdZQAAAABdjQ5rGEeFQqbu/LpuiyFKUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "461ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:24.9544974\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:16.9679824\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:28 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:19 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:27 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "wSajhI8d8E\u002BmQ4ZR9ao/Kw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DCayZAAAAABMlfEITrNJQopDx9fy\u002B\u002BxrV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "240ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:18 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "oVkPH3masUynry7dfe1pbw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kdpdZQAAAAAEc59kHmBgRbqxPyG\u002BMcRVUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "448ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:16.9679824\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:40:21 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:20 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "1da5PLou8Eefp64kTs9wnQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lNpdZQAAAABZ7qfOnVILTrIinRcR1s59UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "478ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:24.9544974\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:16.9679824\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:28 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:22 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:27 GMT", + "MS-CV": "v1Y9HnkfHkO\u002BhqiWphM5LA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0DCayZAAAAACiSdF2eXJGSpayrXrjajWNV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "478ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:21 GMT", + "MS-CV": "MT0TKqEKj0mK1FkhxhHo5Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0lNpdZQAAAADyVUf8HcIwQri/4jhBdXT4UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "797ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-15T05:08:26.9925171\u002B00:00", +======= + "searchExpiresBy": "2023-11-22T10:56:18.7046517\u002B00:00", +>>>>>>> main + "error": "NoError" + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig new file mode 100644 index 000000000000..4e3bd4a4874b --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig @@ -0,0 +1,78 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "128", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "sM6mIVawQv4GOUQukUphOk5Hsd8Qa/rx37c067vfCgw=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:52:29 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:22 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "person", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:52:28 GMT", + "MS-CV": "JkEgvWI\u002BDUSFbGzJE3ZZXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0DSayZAAAAADxP\u002B2JdKQ6S5MwNThUo0egV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "500ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:22 GMT", + "MS-CV": "DbpTHPehXEKFUu74XoAU1Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ldpdZQAAAACkOkQF5mXWQJIW8TOKGbJcUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1117ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "We are unable to find phone plans to match your requested capabilities." + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig new file mode 100644 index 000000000000..40ba88fc0a41 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig @@ -0,0 +1,347 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Sat, 15 Jul 2023 04:52:18 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "sQwBMpD3kkmnqLTRwyh2Jw.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "0", + "Date": "Wed, 22 Nov 2023 10:40:09 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "lL8D7Io7sUynhS9Cf\u002B8vyA.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0AiayZAAAAACGXWYnHqNoR4cnQGTjtGLfV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1008ms" +======= + "X-Azure-Ref": "0iNpdZQAAAACAKSyvxrnBTY/56YJ8nuOsUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1790ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:19 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "PfOuv\u002BEOfU6/BrCWMo6dhA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AyayZAAAAAD5a9AjXSqGQohmqNnH/KYPV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "255ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "V23psbiRcEmKcn9zJ5/6OA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0idpdZQAAAADh6/lDbkW\u002BSYf0JXndAr5pUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "468ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:19.4849475\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:09.5433113\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:19 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "CIIE6jlAE0aEl4JAbW2cLQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BCayZAAAAAAVC\u002Bp8o16sRp6xctqJTp\u002BsV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "238ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "QPi\u002BKTK2SUOJ766vGSy4mA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0itpdZQAAAAB\u002BsB0n3BayTYbs0hgKq5bEUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "467ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:19.4849475\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:09.5433113\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:21 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "wg59drlNVUWw1rJvE8OkQA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BiayZAAAAABgltgWVqEsSLDDI1G\u002B8/5xV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "238ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:13 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "Ln4M1uEyF0aOSdZaM1p28A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jNpdZQAAAAAN6MMNuiMKS5kTRmKGKTTqUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "467ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:52:19.4849475\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:09.5433113\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:52:22 GMT", + "MS-CV": "UBLf1j1hJEucbYa61kKsXw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0BiayZAAAAABejhHXGyhzRq0ODkRFX9g9V1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "518ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:14 GMT", + "MS-CV": "l6cZXoOP\u002BUi\u002B0VlRpz0Vwg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jdpdZQAAAADO5W2wPPDGRofwx\u002B1JvVzoUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "774ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-15T05:08:21.2632624\u002B00:00", +======= + "searchExpiresBy": "2023-11-22T10:56:11.6055891\u002B00:00", +>>>>>>> main + "error": "NoError" + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig new file mode 100644 index 000000000000..c149b7b27479 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig @@ -0,0 +1,75 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "128", + "Content-Type": "application/json", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "person", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:52:23 GMT", + "MS-CV": "aUUyPWeVV0WyV\u002B\u002B7b/xfqg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ByayZAAAAADFd38ZQlT5SYm1snut2LZvV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "474ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:15 GMT", + "MS-CV": "JHgjqBG03UOOBL3L2yUIXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jtpdZQAAAADlgdORyhfmSKoV5qha0dFlUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1129ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "We are unable to find phone plans to match your requested capabilities." + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig new file mode 100644 index 000000000000..cf8964cfe53b --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig @@ -0,0 +1,431 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:01 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:39 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:02 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "AfqyExLQ/0qXRxpuLMlBfQ.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:41 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "uEUDeWxufU2qcFXWrOGa/A.0", +>>>>>>> main + "operation-id": "capabilities_sanitized", + "Operation-Location": "/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0aSayZAAAAAC3q\u002BvtMIY4R5NnNEs3KjswV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1836ms" +======= + "X-Azure-Ref": "0ptpdZQAAAABPRcYZXMdxR45pdO2uKMQPUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3266ms" +>>>>>>> main + }, + "ResponseBody": { + "capabilitiesUpdateId": "sanitized" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:03 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:42 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:03 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "K1IEYQERV0CPrpciyzrhDg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ayayZAAAAACm5axcij5rToQtNXfPlfwuV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "155ms" + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "notStarted", + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:54:02.7812253\u002B00:00", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:41 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "oRJwCIquIEiVjAZpB9qgUw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qdpdZQAAAADXVn/jKjlqTL/SGGqZlgB4UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "379ms" + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:41.1696645\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:03 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:43 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:03 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "LwipP4uI5U\u002BeoQ6eT83BRg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ayayZAAAAACWZJZ1PBbuRomggfDRSWIdV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "150ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:42 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "RKSi2gO2TECEm1686w31sw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qdpdZQAAAACq9/JBdEf2TqsOt3TSz4wlUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "405ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:54:02.7812253\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:41.1696645\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:05 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:45 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:05 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "kaPEEScGXEK0JFBRsG044w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0bSayZAAAAADToD7v23RbQqVS7OeIC82gV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "159ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:44 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "Cx90v6y04EKmqql4Kc0TQQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rNpdZQAAAABgLHD40um4Qq5xwvswuA\u002B0UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "389ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:54:02.7812253\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:41.1696645\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:07 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:48 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:07 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "A/qk/BcimUKAkgRD6jX5xA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0byayZAAAAADYF4NIihG1Ta3fKae/DwZXV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "167ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:47 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "dqSiQsFWBkmnyr8ey7r4jw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rtpdZQAAAADiKe0WpdrBSqkMs6JtA1p9UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "385ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:54:02.7812253\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:41.1696645\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:08 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:48 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:09 GMT", + "MS-CV": "\u002BDGwoEmFp0ioNSXlpSAwnw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0byayZAAAAAAzqLpy56fZQZ7yN7YJgPmcV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1220ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:48 GMT", + "MS-CV": "XpbWwmHkUkqaY5ey/PqDAQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0r9pdZQAAAACUTPL5abdLRqRoH7DKaqVyUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1662ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig new file mode 100644 index 000000000000..c71a426bb1a2 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig @@ -0,0 +1,73 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:09 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:50 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:54:09 GMT", + "MS-CV": "EDuCR8FYDUSOrdb6L5aM2A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cSayZAAAAADPYVMuZh/zSJnG\u002BMeL/ZGYV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "120ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:49 GMT", + "MS-CV": "7ohFmotwrE\u002BjZL6fJx9ZZQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0sdpdZQAAAABwSTsKu2eNTZyRFa8ouxkNUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "362ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig new file mode 100644 index 000000000000..f75ac33acfa0 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig @@ -0,0 +1,70 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:54:09 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:50 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 403, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:54:09 GMT", + "MS-CV": "YrI3x35wgU2ImH8mByQTiA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cSayZAAAAADlxaxf/Nk7TpyGd6yrnCxQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "186ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:49 GMT", + "MS-CV": "4UVYUwT0yUOUO6fZ0W5YgQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0sdpdZQAAAABBb5eL7E\u002B3RrLY6BXL79HDUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "431ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InsufficientPermissions", + "message": "Phone number not owned by this resource.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig new file mode 100644 index 000000000000..c73d77c7884d --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig @@ -0,0 +1,412 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:54 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "SnzyLCX28UKLm9HACbZYpQ.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:29 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "ze4TkTR4ckq5hR71lcRJUQ.0", +>>>>>>> main + "operation-id": "capabilities_sanitized", + "Operation-Location": "/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0YCayZAAAAAB1GELH7QoYQ41L6\u002B1e4msnV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1889ms" +======= + "X-Azure-Ref": "0mdpdZQAAAADoH6gOeT0hTIsoBjt2Eu7sUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3293ms" +>>>>>>> main + }, + "ResponseBody": { + "capabilitiesUpdateId": "sanitized" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:54 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "W6BKrOSsrU\u002B5bhFmOFGt8A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0YiayZAAAAAAOTS95ZYeyTYLPK6JREYuWV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "147ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:29 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "w8RlTqJ/5kmcjNR6LGJwVw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ndpdZQAAAAD96ZdvKGJlSoJmmIIKpqxOUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "390ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:53.9265749\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:28.876115\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:54 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "t/9XL71ewUKhFb\u002BNkMGamw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0YiayZAAAAABAbBtdZKMAQoeJErZwPtZoV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "161ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:29 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "SkRdhwdhtEqfo3EvzTmdNg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ndpdZQAAAAAlQUG7hgPLTY7CTBoytY4cUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "378ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:53.9265749\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:28.876115\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:56 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "FTgD6se8SEu3w2I6pIKfWg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ZCayZAAAAACmkRBeYLI\u002BSZkeB/WZ8sGaV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "150ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:32 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "H8xqfIfVyEu0ZT\u002BRWOj4oQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0oNpdZQAAAABqT/qOiZDIToKtKxi\u002BXKUzUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "381ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:53.9265749\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:28.876115\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:58 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "4xyJItpClUiQPaTqdZNYNA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ZiayZAAAAABk2qqiysGSQKKkUwRziKQQV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "146ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:34 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "4TymIg4NfkCbsVDXO842HA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0otpdZQAAAAD5nrjxmhWkS446N/Hme72CUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "376ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-15T04:53:53.9265749\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:40:28.876115\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:54:00 GMT", + "MS-CV": "LEpPYHALy06Q3KHbljFY4Q.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ZyayZAAAAACgUCyYINmjR4p0hvA9oy9FV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "970ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:36 GMT", + "MS-CV": "pf1ta7eKkUWylpJjUW7Gxg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0o9pdZQAAAAAeO1v0g6y6TaTYtwE47PV8UFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1739ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig new file mode 100644 index 000000000000..c201778f84c0 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig @@ -0,0 +1,70 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:54:00 GMT", + "MS-CV": "qdxVAwSTd0y\u002BfgpNdzykVA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0aCayZAAAAAAcdXLcHUC0SLdx8L1TonRBV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "135ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:37 GMT", + "MS-CV": "eWtypJ6s70KZLjwDJ264eA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0pdpdZQAAAAALbq3HWSJdTZhQrHqK/sJOUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "392ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig new file mode 100644 index 000000000000..af33bb421fd8 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 403, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Sat, 15 Jul 2023 04:54:00 GMT", + "MS-CV": "I7Ew6j1OpEeiip1J9JGlqw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0aCayZAAAAACWKyftmAsFQbhjeHiaE6TLV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "172ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:40:37 GMT", + "MS-CV": "oY8g4VCmaEuaZRofmZhdkA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0pdpdZQAAAAA3YqrpSkCrSIrZpOGjTxZdUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "459ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InsufficientPermissions", + "message": "Phone number not owned by this resource.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig new file mode 100644 index 000000000000..fbcc26024b72 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig @@ -0,0 +1,117 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/offerings?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Sat, 15 Jul 2023 04:53:51 GMT", + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-date": "Wed, 22 Nov 2023 10:40:25 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:51 GMT", + "MS-CV": "xSdcG0mUQEu1NTatw3EQNA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0XyayZAAAAAC0hYYKD14JTZqLHIxz/3YcV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "569ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:25 GMT", + "MS-CV": "tppDcFExEk2BD32SRg\u002Bvkg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mNpdZQAAAADABUX1jJuRQYAZVH4Man6BUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1157ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberOfferings": [ + { + "phoneNumberType": "geographic", + "assignmentType": "person", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "geographic", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig new file mode 100644 index 000000000000..e11d703e64ee --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/browsers/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig @@ -0,0 +1,114 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/offerings?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate, br", + "Accept-Language": "en-US", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Referer": "http://localhost:9876/", + "sec-ch-ua": "", + "sec-ch-ua-mobile": "?0", + "sec-ch-ua-platform": "\u0022\u0022", + "Sec-Fetch-Dest": "empty", + "Sec-Fetch-Mode": "cors", + "Sec-Fetch-Site": "same-site", + "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) HeadlessChrome/112.0.5614.0 Safari/537.36", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-useragent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 OS" +======= + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Sat, 15 Jul 2023 04:53:51 GMT", + "MS-CV": "U0G1eqKojku\u002BH0/a5VuPcw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0XiayZAAAAABAE/b4GzVaT4CYG7eGonxjV1NURURHRTA4MTEAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "511ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:40:24 GMT", + "MS-CV": "gAbbSe0VOkqZv6O7tWi3qw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0l9pdZQAAAAAq9QYcUWxZSbQTc3wZ1aoxUFJHMDFFREdFMDkwNwA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1136ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberOfferings": [ + { + "phoneNumberType": "geographic", + "assignmentType": "person", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "geographic", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig new file mode 100644 index 000000000000..e1e5a18476d5 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_geographic_area_codes.json.orig @@ -0,0 +1,853 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:35 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:33 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:35 GMT", + "MS-CV": "A6hETOk7CkKyt7Ph\u002BOc0\u002BQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0dNawZAAAAAC\u002BqyR4AZAhS5jIrIl8FIhMV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "312ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:32 GMT", + "MS-CV": "q3xAW3KkxEOcym/dqmnFgA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0fNFdZQAAAAAnxLOUrYGASrgGqwIxGm5fUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "952ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { +<<<<<<< HEAD + "localizedName": "Cape Coral", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +======= +>>>>>>> main + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tallahassee", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Pontiac", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Alexandria", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +<<<<<<< HEAD +======= + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +>>>>>>> main + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:35 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:34 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:38 GMT", + "MS-CV": "6jN/wnMAxka/1r3WQ\u002B\u002Bkbg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0dNawZAAAAAA6dFbjy6WHSrWtVAdwwH9uV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2362ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:35 GMT", + "MS-CV": "xsdi5BlmLkaVDS9Vd7KleA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0fdFdZQAAAADQZsxrxwpdRIuy4eI7\u002BRHXUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2897ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "907" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig new file mode 100644 index 000000000000..6d2537ba0d34 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists/recording_can_list_all_toll_free_area_codes.json.orig @@ -0,0 +1,71 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:38 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:37 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:48 GMT", + "MS-CV": "MiHLVtSO9U2fWEhzuThPpw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0dtawZAAAAAAHGDdYl2N0QrkYNFcIIjWXV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "9765ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:39 GMT", + "MS-CV": "uDvtOJmq80KactM6YsWlEQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0gNFdZQAAAACIb0KHGrlGS7DDhCirLOeCUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3837ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig new file mode 100644 index 000000000000..1e3dde84ceea --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_geographic_area_codes.json.orig @@ -0,0 +1,845 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:22 GMT", + "MS-CV": "PqTbbmb\u002BlkK8SqqTygspSw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ZtawZAAAAAB1Yya2MT9\u002BRqoNB80jsjBMV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "834ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:23 GMT", + "MS-CV": "5n9qZBS4dkSIu4rtjRxRZw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ctFdZQAAAACOE9MSsqpdSqy//IpR1IYFUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1538ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { +<<<<<<< HEAD + "localizedName": "Cape Coral", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +======= +>>>>>>> main + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tallahassee", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Pontiac", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", +<<<<<<< HEAD + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Alexandria", +======= +>>>>>>> main + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +<<<<<<< HEAD +======= + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +>>>>>>> main + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { +<<<<<<< HEAD + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", +======= + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=geographic\u0026skip=0\u0026maxPageSize=100\u0026locality=Anchorage\u0026administrativeDivision=AK\u0026api-version=2022-12-01", +>>>>>>> main + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:25 GMT", + "MS-CV": "wxqB2zXXsk6tFQlNxvV2BA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0Z9awZAAAAACsFb4H45QTQqWyL34bg9RYV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2456ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "50", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:27 GMT", + "MS-CV": "qlF3V4qbe0SxhWrwCCQ6mw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0dNFdZQAAAAC9AubGH\u002BBEQaepVnhR8X0VUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3225ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "907" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig new file mode 100644 index 000000000000..d85573ce4c1a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__area_codes_lists_aad/recording_can_list_all_toll_free_area_codes.json.orig @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/areaCodes?phoneNumberType=tollFree\u0026skip=0\u0026maxPageSize=100\u0026assignmentType=application\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "182", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:35 GMT", + "MS-CV": "hQw0LG5StUGxUPMnOZRLeg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0atawZAAAAAAnQOmh8sdzRpMSaIiu3wH8V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "9622ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "107", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:31 GMT", + "MS-CV": "YbWj5iOtsEWJ4HdHIvCDsw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0eNFdZQAAAAB9VSkAdKTQSazm/Nl\u002B/dy5UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3876ms" +>>>>>>> main + }, + "ResponseBody": { + "areaCodes": [ + { + "areaCode": "866" + }, + { + "areaCode": "855" + }, + { + "areaCode": "844" + }, + { + "areaCode": "833" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig new file mode 100644 index 000000000000..3b5f6ff15f0e --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists/recording_can_list_all_available_countries.json.orig @@ -0,0 +1,246 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:51 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:44 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:53 GMT", + "MS-CV": "2RR9JnskL0279H0/TwgMqw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0g9awZAAAAAASM\u002Bq5sXJNS5BFZwylzimGV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2558ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1968", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:44 GMT", + "MS-CV": "FcQXb6Is6kKrFlYdr15XsQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0h9FdZQAAAACHyG6HxNUHQrf3fOyjEb8xUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2470ms" +>>>>>>> main + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Austria", + "countryCode": "AT" + }, + { + "localizedName": "Belgium", + "countryCode": "BE" + }, + { +>>>>>>> main + "localizedName": "Brazil", + "countryCode": "BR" + }, + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, + { + "localizedName": "Denmark", + "countryCode": "DK" + }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Germany", + "countryCode": "DE" + }, + { +>>>>>>> main + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, + { + "localizedName": "Ireland", + "countryCode": "IE" + }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, + { + "localizedName": "Italy", + "countryCode": "IT" + }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Luxembourg", + "countryCode": "LU" + }, + { +>>>>>>> main + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Norway", + "countryCode": "NO" + }, + { +>>>>>>> main + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Portugal", + "countryCode": "PT" + }, + { +>>>>>>> main + "localizedName": "Puerto Rico", + "countryCode": "PR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { +>>>>>>> main + "localizedName": "Singapore", + "countryCode": "SG" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Slovakia", + "countryCode": "SK" + }, + { +>>>>>>> main + "localizedName": "South Africa", + "countryCode": "ZA" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Spain", + "countryCode": "ES" + }, + { +>>>>>>> main + "localizedName": "Sweden", + "countryCode": "SE" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Switzerland", + "countryCode": "CH" + }, + { +>>>>>>> main + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, + { + "localizedName": "United Kingdom", + "countryCode": "GB" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig new file mode 100644 index 000000000000..2a5c1295f1dd --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__countries_lists_aad/recording_can_list_all_available_countries.json.orig @@ -0,0 +1,242 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1487", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:50 GMT", + "MS-CV": "oWm32jeIhUCE/r0F9uf2\u002Bg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0gdawZAAAAADhjHyrwzquS7e8v4GxriOOV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2279ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "1968", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:42 GMT", + "MS-CV": "xD6QvY7NjUqaFgVNzsNntw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0hNFdZQAAAACJUkcTs6bFSIHLAroedccTUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2551ms" +>>>>>>> main + }, + "ResponseBody": { + "countries": [ + { + "localizedName": "Argentina", + "countryCode": "AR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Austria", + "countryCode": "AT" + }, + { + "localizedName": "Belgium", + "countryCode": "BE" + }, + { +>>>>>>> main + "localizedName": "Brazil", + "countryCode": "BR" + }, + { + "localizedName": "Canada", + "countryCode": "CA" + }, + { + "localizedName": "Chile", + "countryCode": "CL" + }, + { + "localizedName": "China", + "countryCode": "CN" + }, + { + "localizedName": "Colombia", + "countryCode": "CO" + }, + { + "localizedName": "Denmark", + "countryCode": "DK" + }, + { + "localizedName": "Finland", + "countryCode": "FI" + }, + { + "localizedName": "France", + "countryCode": "FR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Germany", + "countryCode": "DE" + }, + { +>>>>>>> main + "localizedName": "Hong Kong SAR", + "countryCode": "HK" + }, + { + "localizedName": "Indonesia", + "countryCode": "ID" + }, + { + "localizedName": "Ireland", + "countryCode": "IE" + }, + { + "localizedName": "Israel", + "countryCode": "IL" + }, + { + "localizedName": "Italy", + "countryCode": "IT" + }, + { + "localizedName": "Korea", + "countryCode": "KR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Luxembourg", + "countryCode": "LU" + }, + { +>>>>>>> main + "localizedName": "Malaysia", + "countryCode": "MY" + }, + { + "localizedName": "Mexico", + "countryCode": "MX" + }, + { + "localizedName": "Netherlands", + "countryCode": "NL" + }, + { + "localizedName": "New Zealand", + "countryCode": "NZ" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Norway", + "countryCode": "NO" + }, + { +>>>>>>> main + "localizedName": "Philippines", + "countryCode": "PH" + }, + { + "localizedName": "Poland", + "countryCode": "PL" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Portugal", + "countryCode": "PT" + }, + { +>>>>>>> main + "localizedName": "Puerto Rico", + "countryCode": "PR" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Saudi Arabia", + "countryCode": "SA" + }, + { +>>>>>>> main + "localizedName": "Singapore", + "countryCode": "SG" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Slovakia", + "countryCode": "SK" + }, + { +>>>>>>> main + "localizedName": "South Africa", + "countryCode": "ZA" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Spain", + "countryCode": "ES" + }, + { +>>>>>>> main + "localizedName": "Sweden", + "countryCode": "SE" + }, + { +<<<<<<< HEAD +======= + "localizedName": "Switzerland", + "countryCode": "CH" + }, + { +>>>>>>> main + "localizedName": "Taiwan", + "countryCode": "TW" + }, + { + "localizedName": "Thailand", + "countryCode": "TH" + }, + { + "localizedName": "United Arab Emirates", + "countryCode": "AE" + }, + { + "localizedName": "United Kingdom", + "countryCode": "GB" + }, + { + "localizedName": "United States", + "countryCode": "US" + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig new file mode 100644 index 000000000000..2aee537c4456 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_can_get_a_purchased_phone_number.json.orig @@ -0,0 +1,73 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:55 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:49 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:56 GMT", + "MS-CV": "PimB/qEycUS3wi1q1yafYQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0iNawZAAAAACyJBI0s8UISJigbqFPDcrpV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1005ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:49 GMT", + "MS-CV": "lnlEtXP0SE\u002BlkHiYADI0RQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jNFdZQAAAAAgGYRmVHdhSort5mCd958LUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1631ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig new file mode 100644 index 000000000000..86e8d5927219 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number/recording_errors_if_phone_number_not_found.json.orig @@ -0,0 +1,59 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:56 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:51 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:00:56 GMT", + "MS-CV": "ngJrBKblKk612CNGYzEb0g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0idawZAAAAAB\u002BN5nORf6yToKaDUKPdGDoV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "206ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:01:49 GMT", + "MS-CV": "09yJd8ysiU2JotDyYFg4Ow.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jtFdZQAAAAB1Kn35mhDZRIpaVkZ/B9tlUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "435ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "Input phoneNumber \u002B14155550100 cannot be found.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig new file mode 100644 index 000000000000..91b61ab17f97 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_can_get_a_purchased_phone_number.json.orig @@ -0,0 +1,69 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:54 GMT", + "MS-CV": "v5ybmPndKEe93VUGSMj2yg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0htawZAAAAADC9SuVmFM0RZ/20HTQT2nUV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1005ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:46 GMT", + "MS-CV": "59EL49TJlky8gvNnKdzNMQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0idFdZQAAAADZcqht2hTxQa0z\u002BDyarTEOUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1642ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig new file mode 100644 index 000000000000..ba012234059e --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__get_phone_number_aad/recording_errors_if_phone_number_not_found.json.orig @@ -0,0 +1,55 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 404, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:00:55 GMT", + "MS-CV": "TJehLq1dB0mPSD1reMolew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0h9awZAAAAABVXYVuosHaT71PYV8jRwX6V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "187ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:01:47 GMT", + "MS-CV": "KT/TzxJWHkeEG04GcDh3Gg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0i9FdZQAAAAD2w31Y0MyzTJdI2/t0jKoHUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "439ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "NotFound", + "message": "Input phoneNumber \u002B14155550100 cannot be found.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig new file mode 100644 index 000000000000..f8236714db13 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists/recording_can_list_all_purchased_phone_numbers.json.orig @@ -0,0 +1,1304 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers?skip=0\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:00:59 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:01:53 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "23605", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:00 GMT", + "MS-CV": "hmQEPBBaSkiGqoOjD63yxQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0i9awZAAAAADlpSB7GaAPQ5Yia1T2/sj7V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1169ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "629", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:53 GMT", + "MS-CV": "uOjj7vyxGU2RC7BOhAajmQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0kNFdZQAAAADai7un2xhER4PMgfSSg8exUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1613ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2023-11-10T08:58:56.2621568\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +<<<<<<< HEAD + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:36:13.5514009\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:18.7391177\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:43.8093725\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:44.856727\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:10:43.0470316\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:13.2871013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:43.3598754\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:14.2925013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:17.7642032\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:37:57.7589612\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:01.2490062\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:10.7033129\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T15:41:42.6103267\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:51.9182995\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:17.6614122\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:08.7055072\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:20.4489554\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +======= +>>>>>>> main + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:27.7725472\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:28:06.2941982\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:27:58.4564095\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:55.6362141\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:38.2751041\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:12.122407\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:52.6849802\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:21.3246132\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:52.844006\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:26.0949019\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:16.7736485\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:07.5114194\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:24.9591048\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:31.4083206\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:24.2533723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:16.2862265\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:37.7662022\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:46.6018872\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:50.4679082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:44.6881974\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:55.8644165\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:55.9240487\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:20.5570756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:22.1720088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:41.0997634\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:44.9865457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:11:13.6760492\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:13:14.7544127\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:51.5548845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:22:13.6608168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:13.802374\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:56.1826813\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:43.4526026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:24:12.4592203\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:17.7235497\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:32:43.9547602\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:10.859962\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:30.851053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T22:26:05.2198645\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T17:06:02.0097082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:08:43.2976318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:09:13.3731647\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:33:13.7739402\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:13.6206509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:44.3664664\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:29:43.2087273\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:37:14.4369365\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:13.4604535\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:47.6058406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:26:43.3088723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:42:44.4416133\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:13.2155644\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig new file mode 100644 index 000000000000..df75f13d6921 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lists_aad/recording_can_list_all_purchased_phone_numbers.json.orig @@ -0,0 +1,1300 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers?skip=0\u0026api-version=2023-05-01-preview\u0026top=100", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "23605", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:00:59 GMT", + "MS-CV": "DwwhbWA1p0mLCQXVGpJllw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0idawZAAAAADoLXVA/EmrSL9L2bh1sEudV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1815ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "629", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:51 GMT", + "MS-CV": "VQsggV4JVUmiIGapes6sXQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jtFdZQAAAABkV9ywMTOyQJQ1P\u002BbzZqV2UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1621ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumbers": [ + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2023-11-10T08:58:56.2621568\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +<<<<<<< HEAD + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:36:13.5514009\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:18.7391177\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:43.8093725\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:09:44.856727\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:10:43.0470316\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T05:11:13.2871013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:43.3598754\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:14.2925013\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:35:17.7642032\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:37:57.7589612\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:01.2490062\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "person", + "purchaseDate": "2021-06-24T06:38:10.7033129\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "geographic", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T15:41:42.6103267\u002B00:00", + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:51.9182995\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:30:17.6614122\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:08.7055072\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:32:20.4489554\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", +======= +>>>>>>> main + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:24.7610118\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:31:27.7725472\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:28:06.2941982\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:27:58.4564095\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:55.6362141\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:35:38.2751041\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:12.122407\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:52.6849802\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:21.3246132\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:52.844006\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:26.0949019\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:16.7736485\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:07.5114194\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:24.9591048\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:31.4083206\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:24.2533723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:16.2862265\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:37.7662022\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:46.6018872\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:50.4679082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:44.6881974\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:37:55.8644165\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:39:55.9240487\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:20.5570756\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:22.1720088\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:41.0997634\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:44.9865457\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:11:13.6760492\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:13:14.7544127\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:38:51.5548845\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "outbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-01-04T17:11:40.2093547\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:22:13.6608168\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:13.802374\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:40:56.1826813\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:23:43.4526026\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:24:12.4592203\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:17.7235497\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:32:43.9547602\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:10.859962\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-23T23:41:30.851053\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T22:26:05.2198645\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2022-01-11T17:06:02.0097082\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:08:43.2976318\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound", + "sms": "outbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:09:13.3731647\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:33:13.7739402\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:13.6206509\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:25:44.3664664\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:29:43.2087273\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:37:14.4369365\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:13.4604535\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:27:47.6058406\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:26:43.3088723\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T02:42:44.4416133\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2021-06-24T00:28:13.2155644\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig new file mode 100644 index 000000000000..51e3e8db9c10 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities.json.orig @@ -0,0 +1,1636 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:02 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:00 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:02 GMT", + "MS-CV": "3pNd6AsuqkmTfdeH4tJB7A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0j9awZAAAAAAfKXBS7MflTrjRncRj97W6V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:58 GMT", + "MS-CV": "1V5DVROumEWCKaHEhPr6gA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ltFdZQAAAACZDvVDFF//SLy\u002B4Nt79rsQUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "737ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:00 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10195", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:59 GMT", + "MS-CV": "pF8HCNeWvkuR/o74HuH0SA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0l9FdZQAAAAC9hACuJEaxS5c8Op01adSsUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "815ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:02 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "9909", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:03 GMT", + "MS-CV": "RPTT3dVysk\u002BBzmpyuZz9gw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0j9awZAAAAAD0Wm06k3ZfTKmIP0AGjK4KV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "243ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Duluth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Mankato", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Plymouth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Marshall", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Springfield", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "St. Louis", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Biloxi", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Starkville", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Billings", + "administrativeDivision": { + "localizedName": "MT", + "abbreviatedName": "MT" + } + }, + { + "localizedName": "Asheville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Charlotte", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fayetteville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Greensboro", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Raleigh", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Rocky Mount", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fargo", + "administrativeDivision": { + "localizedName": "ND", + "abbreviatedName": "ND" + } + }, + { + "localizedName": "Kearney", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "Omaha", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "All locations", + "administrativeDivision": { + "localizedName": "NG", + "abbreviatedName": "NG" + } + }, + { + "localizedName": "Atlantic City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Camden", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Edison", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Elizabeth", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Jersey City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Newark", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Albuquerque", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Cruces", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Vegas", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Reno", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Brentwood", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Elmira", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Hempstead", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Kingston", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "New York City", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Niagara Falls", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Rochester", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Syracuse", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Yonkers", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Akron", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cincinnati", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cleveland", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Columbus", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Dayton", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Toledo", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Lawton", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Oklahoma City", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Tulsa", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "OR", + "abbreviatedName": "OR" + } + }, + { +<<<<<<< HEAD + "localizedName": "Lancaster", +======= + "localizedName": "Erie", +>>>>>>> main + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +>>>>>>> main + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Pittsburgh", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Weatherly", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Providence", + "administrativeDivision": { + "localizedName": "RI", + "abbreviatedName": "RI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Greenville", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Sioux Falls", + "administrativeDivision": { + "localizedName": "SD", + "abbreviatedName": "SD" + } + }, + { + "localizedName": "Chattanooga", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Clarksville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Knoxville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +>>>>>>> main + "localizedName": "Memphis", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Nashville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Abilene", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Austin", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Bryan", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Corpus Christi", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "El Paso", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Fort Worth", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Galveston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Houston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Laredo", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Lubbock", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Odessa", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +>>>>>>> main + "localizedName": "San Antonio", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Tyler", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Salt Lake City", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "St. George", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "Arlington", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Danville", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Lynchburg", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Richmond", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Roanoke", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Virginia Beach", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Brattleboro", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Montpelier", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Seattle", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:01 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "743", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:02:00 GMT", + "MS-CV": "cV6i6BlRX0mq0e5mn9aKzw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mNFdZQAAAABMXhrJRF7jQ7NflEHLWVTXUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "764ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Kenosha", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Milwaukee", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "WV", + "abbreviatedName": "WV" + } + }, + { + "localizedName": "Laramie", + "administrativeDivision": { + "localizedName": "WY", + "abbreviatedName": "WY" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig new file mode 100644 index 000000000000..da72ba017199 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists/recording_can_list_available_localities_with_administrative_division.json.orig @@ -0,0 +1,844 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:03 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:02 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:03 GMT", + "MS-CV": "FlRo5kV0u0uSGXtxWyXvqg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0j9awZAAAAAAdF2MPFziGS5cRolcv3CgPV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "254ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:02:01 GMT", + "MS-CV": "KK2yLt7B6k6rB7E9PHBkFg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mdFdZQAAAADvsdy7T2\u002B0SqRs\u002BeAyfgfVUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "783ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +<<<<<<< HEAD + }, + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } +======= +>>>>>>> main + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:03 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:02:03 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:03 GMT", + "MS-CV": "5uGeibtPQka6GiXoPe70Fg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0kNawZAAAAACfhrldxfrETrvorDza72QJV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "245ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:02:02 GMT", + "MS-CV": "5kEIvD62Ikes6BXbSzaYsQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mtFdZQAAAACbk\u002B3N/n0KS6/rzmyYxFSfUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "745ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig new file mode 100644 index 000000000000..9f6835954d8f --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities.json.orig @@ -0,0 +1,1626 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:01 GMT", + "MS-CV": "6ywRPUkaw0Oepl4cX6lCqg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jdawZAAAAABtljH7v0B4TbbuczRbJ70SV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "304ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:54 GMT", + "MS-CV": "DkCv9VnZs0WnrRrBfF9i7g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ktFdZQAAAAD11kZHgw3fRbroJXMaeUmTUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "749ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10195", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:55 GMT", + "MS-CV": "Zgx0Qbkh70yo4mEjzxQqMw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0k9FdZQAAAAB9/DYWd6fiTaBJfBU3i/TqUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "762ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "9909", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:01 GMT", + "MS-CV": "qoxVxdgn3UaxKknlETeZEA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jdawZAAAAADKxZPmTFcKQIbHX/AIQSRWV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "257ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Duluth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Mankato", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Minneapolis", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Plymouth", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "St. Paul", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Marshall", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Springfield", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "St. Louis", + "administrativeDivision": { + "localizedName": "MO", + "abbreviatedName": "MO" + } + }, + { + "localizedName": "Biloxi", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Starkville", + "administrativeDivision": { + "localizedName": "MS", + "abbreviatedName": "MS" + } + }, + { + "localizedName": "Billings", + "administrativeDivision": { + "localizedName": "MT", + "abbreviatedName": "MT" + } + }, + { + "localizedName": "Asheville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Charlotte", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fayetteville", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Greensboro", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Raleigh", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Rocky Mount", + "administrativeDivision": { + "localizedName": "NC", + "abbreviatedName": "NC" + } + }, + { + "localizedName": "Fargo", + "administrativeDivision": { + "localizedName": "ND", + "abbreviatedName": "ND" + } + }, + { + "localizedName": "Kearney", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "Omaha", + "administrativeDivision": { + "localizedName": "NE", + "abbreviatedName": "NE" + } + }, + { + "localizedName": "All locations", + "administrativeDivision": { + "localizedName": "NG", + "abbreviatedName": "NG" + } + }, + { + "localizedName": "Atlantic City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Camden", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Edison", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Elizabeth", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Jersey City", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Newark", + "administrativeDivision": { + "localizedName": "NJ", + "abbreviatedName": "NJ" + } + }, + { + "localizedName": "Albuquerque", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Cruces", + "administrativeDivision": { + "localizedName": "NM", + "abbreviatedName": "NM" + } + }, + { + "localizedName": "Las Vegas", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Reno", + "administrativeDivision": { + "localizedName": "NV", + "abbreviatedName": "NV" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Brentwood", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Elmira", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Hempstead", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Kingston", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "New York City", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Niagara Falls", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Rochester", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Syracuse", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Yonkers", + "administrativeDivision": { + "localizedName": "NY", + "abbreviatedName": "NY" + } + }, + { + "localizedName": "Akron", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cincinnati", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Cleveland", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Columbus", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Dayton", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Toledo", + "administrativeDivision": { + "localizedName": "OH", + "abbreviatedName": "OH" + } + }, + { + "localizedName": "Lawton", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Oklahoma City", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Tulsa", + "administrativeDivision": { + "localizedName": "OK", + "abbreviatedName": "OK" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "OR", + "abbreviatedName": "OR" + } + }, + { +<<<<<<< HEAD + "localizedName": "Lancaster", +======= + "localizedName": "Erie", +>>>>>>> main + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Lancaster", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { +>>>>>>> main + "localizedName": "Philadelphia", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Pittsburgh", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Weatherly", + "administrativeDivision": { + "localizedName": "PA", + "abbreviatedName": "PA" + } + }, + { + "localizedName": "Providence", + "administrativeDivision": { + "localizedName": "RI", + "abbreviatedName": "RI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Columbia", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Greenville", + "administrativeDivision": { + "localizedName": "SC", + "abbreviatedName": "SC" + } + }, + { + "localizedName": "Sioux Falls", + "administrativeDivision": { + "localizedName": "SD", + "abbreviatedName": "SD" + } + }, + { + "localizedName": "Chattanooga", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Clarksville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Jackson", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Knoxville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { +>>>>>>> main + "localizedName": "Memphis", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Nashville", + "administrativeDivision": { + "localizedName": "TN", + "abbreviatedName": "TN" + } + }, + { + "localizedName": "Abilene", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Austin", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Bryan", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Corpus Christi", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Dallas", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Denton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "El Paso", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Fort Worth", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Galveston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Hamilton", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Houston", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Laredo", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Lubbock", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +<<<<<<< HEAD +======= + "localizedName": "Odessa", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { +>>>>>>> main + "localizedName": "San Antonio", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Tyler", + "administrativeDivision": { + "localizedName": "TX", + "abbreviatedName": "TX" + } + }, + { + "localizedName": "Salt Lake City", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "St. George", + "administrativeDivision": { + "localizedName": "UT", + "abbreviatedName": "UT" + } + }, + { + "localizedName": "Arlington", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Danville", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Lynchburg", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Richmond", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Roanoke", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Virginia Beach", + "administrativeDivision": { + "localizedName": "VA", + "abbreviatedName": "VA" + } + }, + { + "localizedName": "Brattleboro", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Montpelier", + "administrativeDivision": { + "localizedName": "VT", + "abbreviatedName": "VT" + } + }, + { + "localizedName": "Seattle", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=200\u0026maxPageSize=100\u0026api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "743", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:56 GMT", + "MS-CV": "l0w\u002BVyLJ70uEC6Ugp1GlxA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0lNFdZQAAAAAiBXR8KZhIS4EEyHafPxWLUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "725ms" + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Tacoma", + "administrativeDivision": { + "localizedName": "WA", + "abbreviatedName": "WA" + } + }, + { + "localizedName": "Eau Claire", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Kenosha", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Madison", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Milwaukee", + "administrativeDivision": { + "localizedName": "WI", + "abbreviatedName": "WI" + } + }, + { + "localizedName": "Charleston", + "administrativeDivision": { + "localizedName": "WV", + "abbreviatedName": "WV" + } + }, + { + "localizedName": "Laramie", + "administrativeDivision": { + "localizedName": "WY", + "abbreviatedName": "WY" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig new file mode 100644 index 000000000000..abe899aba3f3 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__localities_lists_aad/recording_can_list_available_localities_with_administrative_division.json.orig @@ -0,0 +1,836 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10214", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:02 GMT", + "MS-CV": "y61p7D4PHkuHiEpAAXaZ9g.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jtawZAAAAAAD1IUOh9VDQazqhNS7UWBSV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "267ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "10217", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:57 GMT", + "MS-CV": "cLH6sYsUmEC35tAXl4F6Sg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ldFdZQAAAADAOxQAJWllQp0H3x5T2rSQUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "748ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + }, + { + "localizedName": "Birmingham", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Huntsville", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Mobile", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Montgomery", + "administrativeDivision": { + "localizedName": "AL", + "abbreviatedName": "AL" + } + }, + { + "localizedName": "Fort Smith", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Jonesboro", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Little Rock", + "administrativeDivision": { + "localizedName": "AR", + "abbreviatedName": "AR" + } + }, + { + "localizedName": "Phoenix", + "administrativeDivision": { + "localizedName": "AZ", + "abbreviatedName": "AZ" + } + }, + { + "localizedName": "Burbank", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Concord", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Fresno", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Los Angeles", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Riverside", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Sacramento", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Salinas", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Diego", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Francisco", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "San Jose", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Barbara", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Clarita", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Santa Rosa", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Stockton", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Truckee", + "administrativeDivision": { + "localizedName": "CA", + "abbreviatedName": "CA" + } + }, + { + "localizedName": "Washington DC", + "administrativeDivision": { + "localizedName": "CL", + "abbreviatedName": "CL" + } + }, + { + "localizedName": "Denver", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Grand Junction", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Pueblo", + "administrativeDivision": { + "localizedName": "CO", + "abbreviatedName": "CO" + } + }, + { + "localizedName": "Bridgeport", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Hartford", + "administrativeDivision": { + "localizedName": "CT", + "abbreviatedName": "CT" + } + }, + { + "localizedName": "Wilmington", + "administrativeDivision": { + "localizedName": "DE", + "abbreviatedName": "DE" + } + }, + { + "localizedName": "Daytona Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Fort Lauderdale", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Gainesville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Jacksonville", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Lakeland", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Miami", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Orlando", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Port St Lucie", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Sarasota", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "St. Petersburg", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { +<<<<<<< HEAD + "localizedName": "Tampa", +======= + "localizedName": "Tallahassee", +>>>>>>> main + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Tampa", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "West Palm Beach", + "administrativeDivision": { + "localizedName": "FL", + "abbreviatedName": "FL" + } + }, + { + "localizedName": "Albany", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Atlanta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Augusta", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Macon", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Savannah", + "administrativeDivision": { + "localizedName": "GA", + "abbreviatedName": "GA" + } + }, + { + "localizedName": "Honolulu", + "administrativeDivision": { + "localizedName": "HI", + "abbreviatedName": "HI" + } + }, + { + "localizedName": "Cedar Rapids", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Davenport", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Iowa City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Mason City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Sioux City", + "administrativeDivision": { + "localizedName": "IA", + "abbreviatedName": "IA" + } + }, + { + "localizedName": "Boise", + "administrativeDivision": { + "localizedName": "ID", + "abbreviatedName": "ID" + } + }, + { + "localizedName": "Alton", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Aurora", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Bloomington", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Champaign", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Chicago", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Cicero", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rock Island", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Rockford", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Waukegan", + "administrativeDivision": { + "localizedName": "IL", + "abbreviatedName": "IL" + } + }, + { + "localizedName": "Evansville", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Fort Wayne", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Gary", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Indianapolis", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "South Bend", + "administrativeDivision": { + "localizedName": "IN", + "abbreviatedName": "IN" + } + }, + { + "localizedName": "Kansas City", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Topeka", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Wichita", + "administrativeDivision": { + "localizedName": "KS", + "abbreviatedName": "KS" + } + }, + { + "localizedName": "Ashland", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Lexington", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Louisville", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Owensboro", + "administrativeDivision": { + "localizedName": "KY", + "abbreviatedName": "KY" + } + }, + { + "localizedName": "Baton Rouge", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Lafayette", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "New Orleans", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Shreveport", + "administrativeDivision": { + "localizedName": "LA", + "abbreviatedName": "LA" + } + }, + { + "localizedName": "Boston", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Chicopee", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lowell", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Lynn", + "administrativeDivision": { + "localizedName": "MA", + "abbreviatedName": "MA" + } + }, + { + "localizedName": "Baltimore", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Bethesda", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Silver Spring", + "administrativeDivision": { + "localizedName": "MD", + "abbreviatedName": "MD" + } + }, + { + "localizedName": "Portland", + "administrativeDivision": { + "localizedName": "ME", + "abbreviatedName": "ME" + } + }, + { + "localizedName": "Ann Arbor", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Detroit", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Flint", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grand Rapids", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Grant", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Lansing", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Otsego", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +<<<<<<< HEAD + "localizedName": "Pontiac", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { +======= +>>>>>>> main + "localizedName": "Saginaw", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Sault Ste Marie", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Troy", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } + }, + { + "localizedName": "Warren", + "administrativeDivision": { + "localizedName": "MI", + "abbreviatedName": "MI" + } +<<<<<<< HEAD + }, + { + "localizedName": "Alexandria", + "administrativeDivision": { + "localizedName": "MN", + "abbreviatedName": "MN" + } +======= +>>>>>>> main + } + ], + "nextLink": "/availablePhoneNumbers/countries/US/localities?skip=100\u0026maxPageSize=100\u0026api-version=2023-05-01-preview" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/localities?skip=0\u0026maxPageSize=100\u0026administrativeDivision=AK\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:02 GMT", + "MS-CV": "fXsW/OsNt0C7m7ngZlpmvA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0jtawZAAAAABVdT13bMhuQblb2fPVnn94V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "236ms" +======= + "api-supported-versions": "2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "144", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:01:58 GMT", + "MS-CV": "0XcWPgRDSEGTpkcKagiDsw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ltFdZQAAAACOhqpir45eTK9mDAPySYTWUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "755ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberLocalities": [ + { + "localizedName": "Anchorage", + "administrativeDivision": { + "localizedName": "AK", + "abbreviatedName": "AK" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json new file mode 100644 index 000000000000..cfd3959a29ba --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_can_look_up_a_phone_number.json @@ -0,0 +1,54 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.14.1 Node/18.18.1 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "OmiHT1VilzGeodwSly/sLlTvvNvKSeL1Mf0fzGeyvTs=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:07 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:06 GMT", + "MS-CV": "\u002BGjePxjII06KJmlfqh2IiA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03i7eZQAAAABIQXNI5Nf1Rb59nqOdG895V1NURURHRTAxMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "52ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": null, + "numberType": null, + "operatorDetails": null + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json new file mode 100644 index 000000000000..e1f1ac0e1b85 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_errors_if_multiple_phone_numbers_are_requested.json @@ -0,0 +1,49 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "101", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.14.1 Node/18.18.1 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "C0wdqHni5iu3jCpgQMmXW\u002B/F4BI/blLXomiVg6pcPkg=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:07 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100", + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 400, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Type": "application/json", + "Date": "Tue, 27 Feb 2024 18:50:06 GMT", + "MS-CV": "/m9pNdFS00OtiNop51x7GA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "03i7eZQAAAAD1kafzSyfcRJRZMw5Wg\u002BgmV1NURURHRTAxMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "11ms" + }, + "ResponseBody": { + "error": { + "code": "BadRequest", + "message": "Can only accept one phoneNumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json new file mode 100644 index 000000000000..56a3552e14db --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__look_up_phone_number/recording_respects_includeadditionaloperatordetails_option.json @@ -0,0 +1,107 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "86", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.14.1 Node/18.18.1 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "OmiHT1VilzGeodwSly/sLlTvvNvKSeL1Mf0fzGeyvTs=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:07 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": false + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "180", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:06 GMT", + "MS-CV": "6h8QfCPn6kWhoGTAi76w8A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03i7eZQAAAACFYE6GkVJNT6Kih7fyayZ8V1NURURHRTAxMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "33ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": null, + "numberType": null, + "operatorDetails": null + } + ] + } + }, + { + "RequestUri": "https://endpoint/operatorInformation/:search?api-version=2024-03-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "85", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.14.1 Node/18.18.1 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "qkBNiaAS8tfKX/Wf8JKOsmJrOnPktJNJDx1K4XvtFFc=", + "x-ms-date": "Tue, 27 Feb 2024 18:50:07 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": { + "phoneNumbers": [ + "\u002B14155550100" + ], + "options": { + "includeAdditionalOperatorDetails": true + } + }, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview, 2024-03-01-preview, 2024-08-31-preview", + "Content-Length": "260", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 27 Feb 2024 18:50:07 GMT", + "MS-CV": "3lKZSaGWKECFnKx89DRqiA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "03i7eZQAAAADv/aMIm1pOTYL4sR0R5dZTV1NURURHRTAxMTQAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1230ms" + }, + "ResponseBody": { + "values": [ + { + "phoneNumber": "\u002B14155550100", + "nationalFormat": "(833) 201-6898", + "internationalFormat": "\u002B1 833-201-6898", + "isoCountryCode": "US", + "numberType": "other", + "operatorDetails": { + "name": "Multiple OCN Listing", + "mobileNetworkCode": null, + "mobileCountryCode": null + } + } + ] + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig new file mode 100644 index 000000000000..70f843ac7c6a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release/recording_can_purchase_and_release_a_phone_number.json.orig @@ -0,0 +1,995 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "4/hFIxcYwXqhguSdYcV2TsQR1Tf8cOFyLfVXdBF8OBU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:20 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:36 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:48:21 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "XiFgsAmKOEiQeAUk2oj55Q.0", + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0lNOwZAAAAABaA6Sy1LpnQ6pkRyw2qSLZV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "879ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:21 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:38 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:21 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "EHzgZWSmAkOnOq\u002BUpTcOcw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ldOwZAAAAAB0QfbHD1EfQo1nrUVGPTBVV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "415ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:21 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:39 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:22 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "axvOr4CQXkGB1NipvXX2Kw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ltOwZAAAAAA9oKm31PXER7cUApMKOOVtV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "447ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:24 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:41 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:24 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "5z3gG8lbMkKtvIYaPNm82A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0mNOwZAAAAAB/1aP8FHBxSI9vWlvFvEpZV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "248ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:24 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:42 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "319", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:25 GMT", + "MS-CV": "QcLM9nakUEqxHzHZYw7CFQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mdOwZAAAAADfJw88zMIdRZsO19P7DVlaV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "497ms" + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, + "searchExpiresBy": "2023-07-14T05:04:23.3571520\u002B00:00", + "error": "NoError" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/:purchase?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", +<<<<<<< HEAD + "x-ms-content-sha256": "alm2TGuHGpoEPUMvMvglT18kxJ9KTvpv2KQnS1ztbZM=", + "x-ms-date": "Fri, 14 Jul 2023 04:48:25 GMT" +======= + "x-ms-content-sha256": "gnItjevdcLdmg9K05bRhay8e\u002BdlgBgVLAyMsTNJ/9L4=", + "x-ms-date": "Fri, 06 Jan 2023 17:31:43 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "searchId": "sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,purchase-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:48:26 GMT", + "MS-CV": "R/wWlb61kUifaD9kXzOCxw.0", + "operation-id": "purchase_sanitized", + "Operation-Location": "/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "purchase-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mdOwZAAAAADtgtAU5ja6Rag3en7nvOl9V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1039ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:26 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:45 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:26 GMT", + "MS-CV": "ctX\u002BMe9EO0uJdseDlkUesw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0mtOwZAAAAAATX6yrTHc6R70h0gJNoGgVV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "254ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:26 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:46 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:26 GMT", + "MS-CV": "mfrwIluJ60qQqIRQjUo5XA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0m9OwZAAAAADaDHGwz0wEQqUJStqa/C6UV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "284ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:28 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:48 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:29 GMT", + "MS-CV": "zTh9z8fjw0S\u002BOegXbdJVvQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ndOwZAAAAACYjWJqbhfIR4s4IEXxrcOtV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", +<<<<<<< HEAD + "X-Processing-Time": "251ms" +======= + "X-Processing-Time": "448ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-01-06T17:31:35.8833059\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 06 Jan 2023 17:31:51 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 06 Jan 2023 17:31:49 GMT", + "MS-CV": "3qsugqwGuU2LuHNTsYfgMA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BVu4YwAAAABrOU4EdNyTS59tvrt7UprRTUVYMzBFREdFMDQyMQA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "462ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:31 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:53 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:31 GMT", + "MS-CV": "gtxsDN7tcEe7d/dIIBY7eA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0n9OwZAAAAABzSSca\u002BHwlTK8RVqb\u002BtO0FV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "261ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:33 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:56 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:33 GMT", + "MS-CV": "QZvsnuJPH0eW2J6K4OyXJQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0odOwZAAAAACtcvTRnelHTq2JG/Y7uW2YV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "255ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:35 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:31:58 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:36 GMT", + "MS-CV": "4cFRRsC7hk2FeDWctixn0g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0pNOwZAAAAABfUJjRmk7fQbO03z4m\u002BGbBV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "248ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:38 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:01 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:38 GMT", + "MS-CV": "2hGQib3Q7U6mzK1RtITrTA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ptOwZAAAAAC2zoQ04icpSIGC/wr9ZQmIV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "261ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:40 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:03 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:40 GMT", + "MS-CV": "wU3cVlqqqEKnlhUiA\u002BTuJQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qNOwZAAAAACDXhVB9VI9QbRP2MrbmGisV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "270ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 04:48:42 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:43 GMT", + "MS-CV": "E4WwF\u002BV2r0SNVbPG1r\u002BVcA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0q9OwZAAAAAAHhnqKoE/ZTLKKQro465XjV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "283ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 04:48:45 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:45 GMT", + "MS-CV": "CMgwDlZDBEiXbpUdcr9WfA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rdOwZAAAAAAvxnLJy5TESq2/EThAVM//V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "268ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:21.5453238\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:45 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:04 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "310", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:46 GMT", + "MS-CV": "8DvL53/rEki04ABzKZH24A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0rdOwZAAAAAB7faO3RJ1MQJhhLubeoQp1V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1565ms" + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-14T04:48:39.9083553\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:46 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:06 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,release-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:48:49 GMT", + "MS-CV": "ndpVLbXD50yQOh\u002Bg0d5eFg.0", + "operation-id": "release_sanitized", + "Operation-Location": "/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "release-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0r9OwZAAAAACi7j5PPjJiTbql0O\u002BysyKNV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2453ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:49 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:08 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:49 GMT", + "MS-CV": "wJW0vI3RzkSRQWnRHWbdMA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0sdOwZAAAAAD30RnyIR7HQ4GiEXbifKWoV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "173ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:49 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:09 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:49 GMT", + "MS-CV": "T2\u002BRGe/bskGG65A7P8gBKQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0stOwZAAAAABVfS\u002BA5haNTJQwzfg94wquV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "186ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:51 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:11 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:52 GMT", + "MS-CV": "PCTDIBY0c06BNkKS3NmH9A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0tNOwZAAAAABBnMF8ePmuRbuLcnu1\u002BjBrV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "185ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", +<<<<<<< HEAD + "x-ms-date": "Fri, 14 Jul 2023 04:48:54 GMT" +======= + "x-ms-date": "Fri, 06 Jan 2023 17:32:14 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:54 GMT", + "MS-CV": "HkHSa55F50yY8/1w9lPnJg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ttOwZAAAAAC/IXJp\u002BLV6R56AMzMYZRWyV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "165ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 04:48:56 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:56 GMT", + "MS-CV": "i97V3MVl6kCNmqHI0gkn1g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0uNOwZAAAAACu1FgZ0k1BQqfckeMhu8yDV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "161ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:48.7161379\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + } + ], + "Variables": {} +} \ No newline at end of file diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig new file mode 100644 index 000000000000..3ba29f5dc1e8 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__purchase_and_release_aad/recording_can_purchase_and_release_a_phone_number.json.orig @@ -0,0 +1,960 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "133", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:47:43 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "DEhCSEXMqkuofl7Iig/URQ.0", + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0btOwZAAAAAB1Vj6S4GlbT6CzndRB7mHUV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1203ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:43 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "dp7aK\u002BZlc02p0rUSsCc3Ew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0b9OwZAAAAACVR1FSmSnvQKCZpw0Z0VfLV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "317ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:44 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "Ed0F3iuW7Uy87XaNHu2cqQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0cNOwZAAAAAAeAm3o8t3PQKbyFWYKJ10ZV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "265ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:46 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "LuBbW0JBhk6uY/rSZfRdfA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ctOwZAAAAACSQWmlGkwfS7\u002B\u002BtRCUTXppV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "319", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:46 GMT", + "MS-CV": "hfZbmlY9902ffXkAW139ew.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ctOwZAAAAAB4\u002BQPzySwsSKP9X97H7Gv9V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "469ms" + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, + "searchExpiresBy": "2023-07-14T05:03:45.0725022\u002B00:00", + "error": "NoError" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/:purchase?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "24", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "searchId": "sanitized" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,purchase-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:47:48 GMT", + "MS-CV": "6y6T6OVKQkeXlhs1cSiWbA.0", + "operation-id": "purchase_sanitized", + "Operation-Location": "/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "purchase-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0c9OwZAAAAACEYnA\u002B4DzwTor9lKHzAA1BV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1004ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:48 GMT", + "MS-CV": "xfsDUGyjnE6m1t4v6hvIjQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dNOwZAAAAAC4TpDJLXRnRKtHZozSnl0VV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "321ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:48 GMT", + "MS-CV": "N7W\u002BNax5aEKUUOXF8UfZ4g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0dNOwZAAAAAAgsFqUyBVpT7QwHnWYId4vV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "257ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:50 GMT", + "MS-CV": "IG2RhpyyH0eomtgI0GtA7g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0d9OwZAAAAACEKir2zbBiQYTrlkhkaSX\u002BV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "266ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:53 GMT", + "MS-CV": "pqUicG1EGk23tw7coh0gSw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0edOwZAAAAAAtaDr7D4aDRoZIYpOI2C7AV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "272ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:55 GMT", + "MS-CV": "Po4cKJR\u002BbEqRTNnQ5aw4Tw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0e9OwZAAAAABdbV9Oz01IRIbFmZb7sKBMV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "285ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:47:57 GMT", + "MS-CV": "xceT34QH1EOq\u002B4KihXA6Ew.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ftOwZAAAAADimihRFM0SSKQGXRDzjLZFV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "270ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:00 GMT", + "MS-CV": "N5yCtsJLYkGbYxhYURLzcA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0gNOwZAAAAAChLYquhCfMT7xGNoLqq3gHV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "268ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:02 GMT", + "MS-CV": "0Ik7yzteX0e3qk\u002B\u002B47CD5g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0gtOwZAAAAAB3juov/rhHQowhS89x7pe5V1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "261ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:04 GMT", + "MS-CV": "8WxPGn5D1UusRkGK8xgCjw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0hNOwZAAAAABbVgaOzn0iR5yrVR6iS1EyV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "294ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/purchase_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:07 GMT", + "MS-CV": "v1V6WEOfoEOIVp7byTiy/Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0h9OwZAAAAACL1uME/GoBRKg2FTxUVBhgV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "249ms" + }, + "ResponseBody": { + "operationType": "purchase", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:47:43.3385054\u002B00:00", + "id": "purchase_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "310", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:08 GMT", + "MS-CV": "cMR\u002BydO9HEiWgNmeqrsMcw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0h9OwZAAAAACNyZCJp605S7P6r3NJ0m/kV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1315ms" + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "assignmentType": "application", + "purchaseDate": "2023-07-14T04:48:02.5294351\u002B00:00", + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "DELETE", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,operation-id,release-id", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 04:48:11 GMT", + "MS-CV": "07V4\u002B8y80U\u002BcwleBPTDQWw.0", + "operation-id": "release_sanitized", + "Operation-Location": "/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "release-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0iNOwZAAAAADt\u002BDkw8gA5Qo\u002BGQV/ORZqkV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2511ms" + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:11 GMT", + "MS-CV": "01Qg7RV6qkqIFsZZM5Ik\u002BA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0i9OwZAAAAABlFgTh/Gz4S7gBIz7PnyzdV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "199ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "notStarted", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:11 GMT", + "MS-CV": "9r9FEj37H0enwaoNyrjhFw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0i9OwZAAAAABkXKpv\u002BiGRRLL4aoPNm3cLV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "175ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:13 GMT", + "MS-CV": "lSU3IBJwzEanjwkbPFgqVw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0jtOwZAAAAAAjPQV1JBksSaq4a5CmOiMGV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "180ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0-beta.5 core-rest-pipeline/1.10.1 Node/v16.17.0 OS/(x64-Linux-5.10.102.1-microsoft-standard-WSL2)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:16 GMT", + "MS-CV": "2w2leLWfo0OLhaz2HsKnuA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kNOwZAAAAADOxJ3PnnwXR5l4uQW0KKTfV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "174ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:18 GMT", + "MS-CV": "UxJm/8jdl0KRc6Dd9f6jcQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ktOwZAAAAADoj1C0zAx6S7ETqqUHzBuyV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "172ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "running", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/release_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 04:48:20 GMT", + "MS-CV": "qHABQPRbXkGrldsAKwGOGA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lNOwZAAAAACb66X\u002BecT9Rb8j589nhJaJV1NURURHRTA4MTMAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "166ms" + }, + "ResponseBody": { + "operationType": "releasePhoneNumber", + "status": "succeeded", + "resourceLocation": null, + "createdDateTime": "2023-07-14T04:48:10.299096\u002B00:00", + "id": "release_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + } + ], + "Variables": {} +} \ No newline at end of file diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig new file mode 100644 index 000000000000..b095dfc7c7dd --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_can_search_for_1_available_phone_number_by_default.json.orig @@ -0,0 +1,345 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "um69rwCQDfoJlf7RIyaR7E83TxRZJQn/i\u002BrWwWXvDMo=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:09 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "um69rwCQDfoJlf7RIyaR7E83TxRZJQn/i\u002BrWwWXvDMo=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:48 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 05:01:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "i3pOCc2dl0ShQfvZdxevWQ.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "0", + "Date": "Wed, 22 Nov 2023 10:03:48 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "8Qa8Dl0LCUCsE7mch9Th3w.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0ldawZAAAAADE2OyHbnUKTI7XToC40QCsV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "822ms" +======= + "X-Azure-Ref": "0A9JdZQAAAADfa5zmdiRAQ4lI2imPo6eRUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1820ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:10 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:50 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "TM\u002BdwEPEdEmSQBqySNKNrw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ltawZAAAAADoxei16CjqS5ZTMsouh5G1V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "269ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:10.5355834\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:10 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:10 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "pDbhF4Tdske0Q6dhuFABvg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0l9awZAAAAADFckR2/0JLQI9OrFXYWRNnV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "246ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:49 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "rocVAUQMTUKZ3ySRSM9B4g.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BdJdZQAAAADF3O5AMUKATI0PVsUD/67XUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "669ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:10.5355834\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:48.8374982\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:12 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:51 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:12 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "RzF08i1EgUWiyD/mBT/xZg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0mdawZAAAAAC1mjLYDgaXS6sPwXcYYGWVV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "247ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:49 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "8YkiapgW002512cUDmoiKQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0BdJdZQAAAACRVNqIP\u002BsEQK1hFJlAqavIUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "567ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "running", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:48.8374982\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:53 GMT", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:52 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "3EpC2bFjfE2ByaVeXenwzA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CNJdZQAAAABzL\u002BYTMljIToQZXckX9bCOUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "586ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:10.5355834\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:48.8374982\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:13 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:54 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:13 GMT", + "MS-CV": "MR8WTD8\u002BfU6ab0QFJUrS5A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0mdawZAAAAABCb7j9XsTiSaSdUD3IuGUrV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "429ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:53 GMT", + "MS-CV": "NAo\u002BEPftJ0Czw4OsujDKvA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0CdJdZQAAAAD1uiLnHqWITIsrQzwyaeBnUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "862ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-14T05:17:12.7211917\u002B00:00", +======= + "searchExpiresBy": "2023-11-22T10:19:50.5633566\u002B00:00", +>>>>>>> main + "error": "NoError" + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig new file mode 100644 index 000000000000..893bc60eea67 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search/recording_throws_on_invalid_search_request.json.orig @@ -0,0 +1,72 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "128", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "sM6mIVawQv4GOUQukUphOk5Hsd8Qa/rx37c067vfCgw=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:13 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "sM6mIVawQv4GOUQukUphOk5Hsd8Qa/rx37c067vfCgw=", + "x-ms-date": "Wed, 22 Nov 2023 10:03:55 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "person", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:13 GMT", + "MS-CV": "cR9NtJ9BlEWdwc4gZ48VCA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0mtawZAAAAACkr\u002Bv5qJP\u002BTI/1yqW2B8j/V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "419ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:03:54 GMT", + "MS-CV": "ixgWnzb8Wka/WNibRvG1GA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0CtJdZQAAAAAGFDF4\u002BNv8SYpzlBT54P2OUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1420ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "We are unable to find phone plans to match your requested capabilities." + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig new file mode 100644 index 000000000000..82ba6d98b902 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_can_search_for_1_available_phone_number_by_default.json.orig @@ -0,0 +1,325 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "125", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "quantity": 1 + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location,Operation-Location,operation-id,search-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "0", + "Date": "Fri, 14 Jul 2023 05:01:05 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "LJZAu7afaE2Du9otBsUmVw.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "0", + "Date": "Wed, 22 Nov 2023 10:03:39 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "V/3zZeVW00eo7Q0DcTlsyQ.0", +>>>>>>> main + "operation-id": "search_sanitized", + "Operation-Location": "/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "search-id": "sanitized", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0kNawZAAAAAA373E28oOqS5qxWnvHhQzVV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1054ms" +======= + "X-Azure-Ref": "0\u002BtFdZQAAAAAUvVptWn2RT5GH4BPtU6DZUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "2542ms" +>>>>>>> main + }, + "ResponseBody": null + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:05 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "zA8t642a20G4q89yvtvf4Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0kdawZAAAAAA8hds7rqIKSL7xfZdrDyB0V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "253ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:05.391824\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:05 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "KtAIeOU96Emx/vhyBofSIw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ktawZAAAAAB1z6gDN2VHSJOlFnSDH6UDV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "257ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:40 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "/hpyCGodNEOLo2uIcXWlDg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/NFdZQAAAAA\u002BRRzjcs7JSrgH0\u002BshI\u002BhsUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "817ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:05.391824\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:40.364438\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:07 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "MS-CV": "0\u002BwkLAFu6kS7OcZJxw7yZg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0lNawZAAAAAASL8oK8vAgRakPU/2ldxlKV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "256ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:41 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "fOYn8Qxtc0275tBv37Y2uA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0/dFdZQAAAABBrLZjZhWuTIrtIE\u002B22h8TUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "549ms" + }, + "ResponseBody": { + "operationType": "search", + "status": "notStarted", + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:40.364438\u002B00:00", + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/search_sanitized?api-version=2022-12-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:44 GMT", + "Location": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "MS-CV": "L7stPt/IpUerlihtkulQdQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ANJdZQAAAADmTlTJomtuSJf/FdgD31hoUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "633ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "search", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:05.391824\u002B00:00", +======= + "resourceLocation": "/availablePhoneNumbers/searchResults/sanitized?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:40.364438\u002B00:00", +>>>>>>> main + "id": "search_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/availablePhoneNumbers/searchResults/sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:08 GMT", + "MS-CV": "HmzHVp52N0yHDmoQOx9/XQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0lNawZAAAAAAfPZUQgzckRa0KVWiqSwCsV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "449ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "311", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:45 GMT", + "MS-CV": "A0J6wIk47UKOKlBZBhVx8A.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0ANJdZQAAAADKbZHDAGGORIW8btPR/bvGUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "911ms" +>>>>>>> main + }, + "ResponseBody": { + "searchId": "sanitized", + "phoneNumbers": [ + "\u002B14155550100" + ], + "phoneNumberType": "tollFree", + "assignmentType": "application", + "capabilities": { + "calling": "outbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + }, +<<<<<<< HEAD + "searchExpiresBy": "2023-07-14T05:17:07.3409179\u002B00:00", +======= + "searchExpiresBy": "2023-11-22T10:19:41.8202928\u002B00:00", +>>>>>>> main + "error": "NoError" + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig new file mode 100644 index 000000000000..019ad793effd --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__search_aad/recording_throws_on_invalid_search_request.json.orig @@ -0,0 +1,68 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/:search?api-version=2023-05-01-preview", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "128", + "Content-Type": "application/json", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "phoneNumberType": "tollFree", + "assignmentType": "person", + "capabilities": { + "calling": "none", + "sms": "inbound\u002Boutbound" + }, + "quantity": 1 + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:09 GMT", + "MS-CV": "Iruk5gP\u002BEkas0/9EU3b2CQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ldawZAAAAAAHWRFtDCI9TrNSArlkBNYBV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "397ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:03:46 GMT", + "MS-CV": "E\u002BWey5UusU6TlwOx3W3w0w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0AtJdZQAAAABqR5HENd9xSYrXQYYt6/ZzUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1114ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "We are unable to find phone plans to match your requested capabilities." + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig new file mode 100644 index 000000000000..2d188f3a1b0f --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_can_update_a_phone_numbers_capabilities.json.orig @@ -0,0 +1,368 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:23 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:10 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:25 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "eur9TWK030mYb/iYg832sw.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:11 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "ErLnKFuM8EeOnUy0PSBTqQ.0", +>>>>>>> main + "operation-id": "capabilities_sanitized", + "Operation-Location": "/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0pNawZAAAAADWbDqgYDTzSacZQozHSI6DV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1908ms" +======= + "X-Azure-Ref": "0GNJdZQAAAADZ4AqFkhG2SKrvR6MeDmLvUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3377ms" +>>>>>>> main + }, + "ResponseBody": { + "capabilitiesUpdateId": "sanitized" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:25 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:13 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:25 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "AraqRdro\u002BkGiWw5Un6g3pw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ptawZAAAAACN/weD3qWxSJH9\u002B0eSho5IV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "173ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:12 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "v0hLTTAfn0OQ9D4ftBWdZA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HNJdZQAAAABgDwMQJW0LQrUIJrR9Ti65UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1429ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:25.728242\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:04:12.0058672\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:25 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:15 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:25 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "BqdKfD4YsUC\u002B0JT6VpEwGQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ptawZAAAAAAId\u002B8OGUYxSrnXpUJxBk7SV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "193ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:13 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "XjhYemN1zUyrQ\u002B00lxfqUg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0HdJdZQAAAACN5Rxuwl7vTp9Z1zo6XkvtUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "355ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:25.728242\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:04:12.0058672\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:28 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:17 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:27 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "oH722SGmUEi2gQaRTfoI1w.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qNawZAAAAABgy8Ld1b36S484w7kPh0f9V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "171ms" + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:25.728242\u002B00:00", + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:30 GMT" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:30 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "8Kt8oYTe20idBmd2fmpK3A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0qtawZAAAAAB9Y60tw3k/QZZhaxCHPqk2V1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "176ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:15 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "4prJu3HxLkuB3YN8GywIIA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0INJdZQAAAABC2L8eKZyvR4n/i0yt8VjWUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "384ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:25.728242\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:04:12.0058672\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:30 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:17 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:31 GMT", + "MS-CV": "rJ0aaTGHvU\u002BGIgRd3517bg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0qtawZAAAAACTf5Ynrm1xQ5LH/oHgaz8fV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1196ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:17 GMT", + "MS-CV": "B9w/zaAQEUOida7kTgo3hg.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0INJdZQAAAAAQWjbWiIlIQpyVopqUoKVgUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1692ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig new file mode 100644 index 000000000000..d601f6c9e5c1 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_invalid.json.orig @@ -0,0 +1,67 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:31 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:20 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:31 GMT", + "MS-CV": "hxQ52BUBRUKRDekSi0MWYw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rNawZAAAAABrSEq\u002BwGfSQaFBHPyQd4uNV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "147ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:04:18 GMT", + "MS-CV": "C0ePEO4bGU6\u002B5fOanXn7Pw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0I9JdZQAAAACN8LFklJGdQ6U605vtZJYHUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "365ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig new file mode 100644 index 000000000000..d8337280ef46 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update/recording_update_throws_when_phone_number_is_unauthorized.json.orig @@ -0,0 +1,64 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:31 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "UC9kRixTqGBHL8/8LDOWaZFJCLceepyhWJ\u002B/vn6WEYQ=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:19 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 403, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:31 GMT", + "MS-CV": "pxZ8ePsEFESRLfLP8XJvpg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0rNawZAAAAABuOuiS/2P3TolcEj0nRcSSV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "193ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:04:18 GMT", + "MS-CV": "Yh8\u002BKjGtuUK05CqNC1ic6A.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ItJdZQAAAAAZ10iby/9gR5cVNdiObwP1UFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "468ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InsufficientPermissions", + "message": "Phone number not owned by this resource.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig new file mode 100644 index 000000000000..97b1ac24897c --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_can_update_a_phone_numbers_capabilities.json.orig @@ -0,0 +1,370 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 202, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Operation-Location,Location,operation-id,capabilities-id", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:16 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "p2Z2mxpzu0ORJ9saJcrKXA.0", +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "capabilities-id": "sanitized", + "Content-Length": "36", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:58 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "Cvc/gF1QgEyEwOZ8g5NVXA.0", +>>>>>>> main + "operation-id": "capabilities_sanitized", + "Operation-Location": "/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "Strict-Transport-Security": "max-age=2592000", +<<<<<<< HEAD + "X-Azure-Ref": "0mtawZAAAAADn6Su4c28xRYcuCfvMt\u002BzGV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1913ms" +======= + "X-Azure-Ref": "0DNJdZQAAAABL7CIhZZYxT7Tcr6Ht3aODUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "3784ms" +>>>>>>> main + }, + "ResponseBody": { + "capabilitiesUpdateId": "sanitized" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:16 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "9FBIZqH1LU6lq6LfBgZTmg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0nNawZAAAAABY3d/KvhY2SLvLmPiahVkoV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "161ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:59 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "iZsjMtvvuUCJWJxWsDHZgw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0D9JdZQAAAAB8SrgyoyAEQptyraE\u002BvpopUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "358ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:16.6358147\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:59.4805712\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:16 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "D7Qbt8xGQkeh30WGIEmh3Q.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ndawZAAAAAAMRU4ienQGTZRNr02QTL4TV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "203ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:03:59 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "42H3Cd10IUaa7vMIwBlYgQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0ENJdZQAAAAAHSkTrzi1FT6i1CdtT856MUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "414ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:16.6358147\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:59.4805712\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:18 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "g77JgfVUXkSTVnnwb9ZAyg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0n9awZAAAAACo/r05CxOuS6YHZ50Udw\u002BlV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "162ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:02 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "pIa7O2BsV06kSeU6f70AUQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0EtJdZQAAAABNffUIvOsiQZpzXPWTLmuzUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "378ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "running", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:16.6358147\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:59.4805712\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/operations/capabilities_sanitized?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Expose-Headers": "Location", +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:21 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "MS-CV": "ohbZzLyFCUGQmmTP0Wobxw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0odawZAAAAABNuitNAeMDQqZ0Xdo9nTegV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "151ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-11-15-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:04 GMT", + "Location": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "MS-CV": "yMfcAil7lUC/7tWrCMEDTQ.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0FdJdZQAAAAA3CyWp31QoRqrAvPut9m6AUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "373ms" +>>>>>>> main + }, + "ResponseBody": { + "operationType": "updatePhoneNumberCapabilities", + "status": "succeeded", +<<<<<<< HEAD + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "createdDateTime": "2023-07-14T05:01:16.6358147\u002B00:00", +======= + "resourceLocation": "/phoneNumbers/\u002B14155550100?api-version=2022-12-01", + "createdDateTime": "2023-11-22T10:03:59.4805712\u002B00:00", +>>>>>>> main + "id": "capabilities_sanitized", + "lastActionDateTime": "0001-01-01T00:00:00\u002B00:00" + } + }, + { + "RequestUri": "https://endpoint/phoneNumbers/\u002B14155550100?api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:22 GMT", + "MS-CV": "tYebWRFh/0SpZ3tvjBxsoA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0odawZAAAAAClqbM1JnRQTbJWg9KUC18XV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "968ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Length": "302", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:06 GMT", + "MS-CV": "CFvXqzvHJ0Ox8z80RwXyFA.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0FdJdZQAAAADuY1xzKgq8R5zmokQvnNpXUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1679ms" +>>>>>>> main + }, + "ResponseBody": { + "id": "14155550100", + "phoneNumber": "\u002B14155550100", + "countryCode": "US", + "phoneNumberType": "tollFree", + "capabilities": { + "calling": "none", + "sms": "outbound" + }, + "assignmentType": "application", +<<<<<<< HEAD + "purchaseDate": "2021-06-23T23:31:47.0550566\u002B00:00", +======= + "purchaseDate": "2023-11-10T09:57:45.4485137\u002B00:00", +>>>>>>> main + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig new file mode 100644 index 000000000000..c10d9377863a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_invalid.json.orig @@ -0,0 +1,63 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/invalid_phone_number/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 400, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:23 GMT", + "MS-CV": "e\u002BSF2cQ1e0eH8XXHkYNPgA.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0o9awZAAAAABGtSCRFO/uSaSDe2rNnRnPV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "143ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:04:07 GMT", + "MS-CV": "xx54KwYO9UyB2r\u002Bm/rvbvw.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0GNJdZQAAAAAZKU4BTx1oQ7g2RRpZIiwpUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "364ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InternalError", + "message": "The server encountered an internal error.", + "innererror": { + "code": "BadRequest", + "message": "Invalid telephone number \u0027invalid_phone_number\u0027" + } + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig new file mode 100644 index 000000000000..e7583c92e82a --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__lro__update_aad/recording_update_throws_when_phone_number_is_unauthorized.json.orig @@ -0,0 +1,60 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/phoneNumbers/%2B14155550100/capabilities?api-version=2023-05-01-preview", + "RequestMethod": "PATCH", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "35", + "Content-Type": "application/merge-patch\u002Bjson", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": { + "calling": "none", + "sms": "outbound" + }, + "StatusCode": 403, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Content-Type": "application/json", + "Date": "Fri, 14 Jul 2023 05:01:22 GMT", + "MS-CV": "RdBQCPNIk06ORHllsEfEJg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0o9awZAAAAABKFuWH95CjRa4juxps6YwVV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "198ms" +======= + "api-supported-versions": "2021-03-07, 2022-01-11-preview2, 2022-06-01-preview, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Content-Type": "application/json", + "Date": "Wed, 22 Nov 2023 10:04:07 GMT", + "MS-CV": "a4A349nUeEGPsZ9mSuQ5Kg.0", + "Strict-Transport-Security": "max-age=2592000", + "Transfer-Encoding": "chunked", + "X-Azure-Ref": "0F9JdZQAAAAAhiqeZ32zqRp7DhGWnN0RNUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "474ms" +>>>>>>> main + }, + "ResponseBody": { + "error": { + "code": "InsufficientPermissions", + "message": "Phone number not owned by this resource.", + "target": "phonenumber" + } + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig new file mode 100644 index 000000000000..287ea33077b5 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists/recording_can_list_available_offerings.json.orig @@ -0,0 +1,111 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/offerings?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Fri, 14 Jul 2023 05:01:34 GMT" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-content-sha256": "47DEQpj8HBSa\u002B/TImW\u002B5JCeuQeRkm5NMpJWZG3hSuFU=", + "x-ms-date": "Wed, 22 Nov 2023 10:04:22 GMT", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:34 GMT", + "MS-CV": "djWXycfWU0emtECrehvHpw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0rtawZAAAAACUVxHcQPn7QYtm8ZmmhkevV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "630ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:21 GMT", + "MS-CV": "Jth6kT2/hk6ReOvptHyeRQ.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0JdJdZQAAAADfhfAh6VTrTbKj5Wan7YKFUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1198ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberOfferings": [ + { + "phoneNumberType": "geographic", + "assignmentType": "person", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "geographic", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig new file mode 100644 index 000000000000..8e2ef3a5f7da --- /dev/null +++ b/sdk/communication/communication-phone-numbers/recordings/node/phonenumbersclient__offerings_lists_aad/recording_can_list_available_offerings.json.orig @@ -0,0 +1,107 @@ +{ + "Entries": [ + { + "RequestUri": "https://endpoint/availablePhoneNumbers/countries/US/offerings?skip=0\u0026maxPageSize=100\u0026api-version=2023-05-01-preview", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", +<<<<<<< HEAD + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.0 core-rest-pipeline/1.11.1 Node/v14.17.5 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized" +======= + "User-Agent": "azsdk-js-communication-phone-numbers/1.2.1 core-rest-pipeline/1.12.3 Node/v18.18.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "sanitized", + "x-ms-useragent": "fake-useragent" +>>>>>>> main + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { +<<<<<<< HEAD + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 14 Jul 2023 05:01:34 GMT", + "MS-CV": "tsNDPEWeTkaAJO3ckzDFbw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0rtawZAAAAAA\u002B3bctsGzsRLT3hD0A8ALtV1NURURHRTA4MjAAOWZjN2I1MTktYThjYy00Zjg5LTkzNWUtYzkxNDhhZTA5ZTgx", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "585ms" +======= + "api-supported-versions": "2021-03-07, 2022-12-01, 2022-12-02-preview2, 2023-05-01-preview, 2023-10-01-preview, 2024-01-31-preview", + "Cache-Control": "max-age=21600, private, stale-while-revalidate=86400", + "Content-Length": "861", + "Content-Type": "application/json; charset=utf-8", + "Date": "Wed, 22 Nov 2023 10:04:20 GMT", + "MS-CV": "A\u002BwXH6YTdE\u002BEFvzP3g/EIw.0", + "Strict-Transport-Security": "max-age=2592000", + "X-Azure-Ref": "0I9JdZQAAAABUtBurtXz3Qp01uG2msHMgUFJHMDFFREdFMDkxNgA5ZmM3YjUxOS1hOGNjLTRmODktOTM1ZS1jOTE0OGFlMDllODE=", + "X-Cache": "CONFIG_NOCACHE", + "X-Processing-Time": "1394ms" +>>>>>>> main + }, + "ResponseBody": { + "phoneNumberOfferings": [ + { + "phoneNumberType": "geographic", + "assignmentType": "person", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "geographic", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 1.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "inbound\u002Boutbound" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + }, + { + "phoneNumberType": "tollFree", + "assignmentType": "application", + "availableCapabilities": { + "calling": "inbound\u002Boutbound", + "sms": "none" + }, + "cost": { + "amount": 2.0, + "currencyCode": "USD", + "billingFrequency": "monthly" + } + } + ], + "nextLink": null + } + } + ], + "Variables": {} +} diff --git a/sdk/communication/communication-phone-numbers/review/communication-phone-numbers.api.md b/sdk/communication/communication-phone-numbers/review/communication-phone-numbers.api.md index 229be0c26921..f296d7125c87 100644 --- a/sdk/communication/communication-phone-numbers/review/communication-phone-numbers.api.md +++ b/sdk/communication/communication-phone-numbers/review/communication-phone-numbers.api.md @@ -72,6 +72,36 @@ export interface ListSipTrunksOptions extends OperationOptions { export interface ListTollFreeAreaCodesOptions extends Omit { } +// @public +export interface OperatorDetails { + mobileCountryCode?: string; + mobileNetworkCode?: string; + name: string; +} + +// @public +export interface OperatorInformation { + internationalFormat?: string; + isoCountryCode?: string; + nationalFormat?: string; + numberType?: OperatorNumberType; + operatorDetails?: OperatorDetails; + phoneNumber: string; +} + +// @public +export interface OperatorInformationOptions { + includeAdditionalOperatorDetails?: boolean; +} + +// @public +export interface OperatorInformationResult { + values?: OperatorInformation[]; +} + +// @public +export type OperatorNumberType = "unknown" | "other" | "geographic" | "mobile"; + // @public export interface PhoneNumberAdministrativeDivision { abbreviatedName: string; @@ -144,6 +174,7 @@ export class PhoneNumbersClient { listAvailableOfferings(countryCode: string, options?: ListOfferingsOptions): PagedAsyncIterableIterator; listAvailableTollFreeAreaCodes(countryCode: string, options?: ListTollFreeAreaCodesOptions): PagedAsyncIterableIterator; listPurchasedPhoneNumbers(options?: ListPurchasedPhoneNumbersOptions): PagedAsyncIterableIterator; + searchOperatorInformation(phoneNumbers: string[], options?: SearchOperatorInformationOptions): Promise; } // @public @@ -165,12 +196,17 @@ export interface PhoneNumberSearchResult { assignmentType: PhoneNumberAssignmentType; capabilities: PhoneNumberCapabilities; cost: PhoneNumberCost; + error?: PhoneNumberSearchResultError; + errorCode?: number; phoneNumbers: string[]; phoneNumberType: PhoneNumberType; searchExpiresBy: Date; searchId: string; } +// @public +export type PhoneNumberSearchResultError = "NoError" | "UnknownErrorCode" | "OutOfStock" | "AuthorizationDenied" | "MissingAddress" | "InvalidAddress" | "InvalidOfferModel" | "NotEnoughLicenses" | "NoWallet" | "NotEnoughCredit" | "NumbersPartiallyAcquired" | "AllNumbersNotAcquired" | "ReservationExpired" | "PurchaseFailed" | "BillingUnavailable" | "ProvisioningFailed" | "UnknownSearchError"; + // @public export interface PhoneNumbersListAreaCodesOptionalParams extends coreClient.OperationOptions { acceptLanguage?: string; @@ -209,6 +245,12 @@ export interface SearchAvailablePhoneNumbersRequest extends PhoneNumberSearchReq countryCode: string; } +// @public +export interface SearchOperatorInformationOptions extends OperationOptions { + // (undocumented) + includeAdditionalOperatorDetails: boolean; +} + // @public export class SipRoutingClient { constructor(connectionString: string, options?: SipRoutingClientOptions); diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/lroImpl.ts b/sdk/communication/communication-phone-numbers/src/generated/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/lroImpl.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/models/index.ts b/sdk/communication/communication-phone-numbers/src/generated/src/models/index.ts index 40764561db9c..6bec4706dbbe 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/models/index.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/models/index.ts @@ -159,6 +159,10 @@ export interface PhoneNumberSearchResult { cost: PhoneNumberCost; /** The date that this search result expires and phone numbers are no longer on hold. A search result expires in less than 15min, e.g. 2020-11-19T16:31:49.048Z. */ searchExpiresBy: Date; + /** The error code of the search. */ + errorCode?: number; + /** Mapping Error Messages to Codes */ + error?: PhoneNumberSearchResultError; } /** The phone number search purchase request. */ @@ -223,6 +227,55 @@ export interface PurchasedPhoneNumbers { nextLink?: string; } +/** Represents a search request for operator information for the given phone numbers. */ +export interface OperatorInformationRequest { + /** Phone number(s) whose operator information is being requested */ + phoneNumbers: string[]; + /** Represents options to modify a search request for operator information */ + options?: OperatorInformationOptions; +} + +/** Represents options to modify a search request for operator information */ +export interface OperatorInformationOptions { + /** Includes the fields operatorDetails, numberType, and isoCountryCode in the response. Please note: use of this option will result in additional costs */ + includeAdditionalOperatorDetails?: boolean; +} + +/** Represents a search result containing format and operator information associated with the requested phone numbers */ +export interface OperatorInformationResult { + /** + * Results of a search. + * This array will have one entry per requested phone number which will contain the relevant operator information. + */ + values?: OperatorInformation[]; +} + +/** Represents metadata about a phone number that is controlled/provided by that phone number's operator. */ +export interface OperatorInformation { + /** E.164 formatted string representation of the phone number */ + phoneNumber: string; + /** National format of the phone number */ + nationalFormat?: string; + /** International format of the phone number */ + internationalFormat?: string; + /** ISO 3166-1 two character ('alpha-2') code associated with the phone number. */ + isoCountryCode?: string; + /** Type of service associated with the phone number */ + numberType?: OperatorNumberType; + /** Represents metadata describing the operator of a phone number */ + operatorDetails?: OperatorDetails; +} + +/** Represents metadata describing the operator of a phone number */ +export interface OperatorDetails { + /** Name of the phone operator */ + name: string; + /** Mobile Network Code */ + mobileNetworkCode?: string; + /** Mobile Country Code */ + mobileCountryCode?: string; +} + /** Defines headers for PhoneNumbers_searchAvailablePhoneNumbers operation. */ export interface PhoneNumbersSearchAvailablePhoneNumbersHeaders { /** URL to retrieve the final result after operation completes. */ @@ -283,6 +336,25 @@ export type PhoneNumberCapabilityType = | "inbound" | "outbound" | "inbound+outbound"; +/** Defines values for PhoneNumberSearchResultError. */ +export type PhoneNumberSearchResultError = + | "NoError" + | "UnknownErrorCode" + | "OutOfStock" + | "AuthorizationDenied" + | "MissingAddress" + | "InvalidAddress" + | "InvalidOfferModel" + | "NotEnoughLicenses" + | "NoWallet" + | "NotEnoughCredit" + | "NumbersPartiallyAcquired" + | "AllNumbersNotAcquired" + | "ReservationExpired" + | "PurchaseFailed" + | "BillingUnavailable" + | "ProvisioningFailed" + | "UnknownSearchError"; /** Defines values for PhoneNumberOperationType. */ export type PhoneNumberOperationType = | "purchase" @@ -295,6 +367,8 @@ export type PhoneNumberOperationStatus = | "running" | "succeeded" | "failed"; +/** Defines values for OperatorNumberType. */ +export type OperatorNumberType = "unknown" | "other" | "geographic" | "mobile"; /** Optional parameters. */ export interface PhoneNumbersListAreaCodesOptionalParams @@ -303,7 +377,7 @@ export interface PhoneNumbersListAreaCodesOptionalParams skip?: number; /** An optional parameter for how many entries to return, for pagination purposes. The default value is 100. */ maxPageSize?: number; - /** Filter by assignmentType, e.g. User, Application. */ + /** Filter by assignmentType, e.g. Person, Application. */ assignmentType?: PhoneNumberAssignmentType; /** The name of locality or town in which to search for the area code. This is required if the number type is Geographic. */ locality?: string; @@ -378,8 +452,8 @@ export interface PhoneNumbersSearchAvailablePhoneNumbersOptionalParams } /** Contains response data for the searchAvailablePhoneNumbers operation. */ -export type PhoneNumbersSearchAvailablePhoneNumbersResponse = PhoneNumbersSearchAvailablePhoneNumbersHeaders & - PhoneNumberSearchResult; +export type PhoneNumbersSearchAvailablePhoneNumbersResponse = + PhoneNumbersSearchAvailablePhoneNumbersHeaders & PhoneNumberSearchResult; /** Optional parameters. */ export interface PhoneNumbersGetSearchResultOptionalParams @@ -400,7 +474,8 @@ export interface PhoneNumbersPurchasePhoneNumbersOptionalParams } /** Contains response data for the purchasePhoneNumbers operation. */ -export type PhoneNumbersPurchasePhoneNumbersResponse = PhoneNumbersPurchasePhoneNumbersHeaders; +export type PhoneNumbersPurchasePhoneNumbersResponse = + PhoneNumbersPurchasePhoneNumbersHeaders; /** Optional parameters. */ export interface PhoneNumbersGetOperationOptionalParams @@ -428,8 +503,8 @@ export interface PhoneNumbersUpdateCapabilitiesOptionalParams } /** Contains response data for the updateCapabilities operation. */ -export type PhoneNumbersUpdateCapabilitiesResponse = PhoneNumbersUpdateCapabilitiesHeaders & - PurchasedPhoneNumber; +export type PhoneNumbersUpdateCapabilitiesResponse = + PhoneNumbersUpdateCapabilitiesHeaders & PurchasedPhoneNumber; /** Optional parameters. */ export interface PhoneNumbersGetByNumberOptionalParams @@ -448,7 +523,8 @@ export interface PhoneNumbersReleasePhoneNumberOptionalParams } /** Contains response data for the releasePhoneNumber operation. */ -export type PhoneNumbersReleasePhoneNumberResponse = PhoneNumbersReleasePhoneNumberHeaders; +export type PhoneNumbersReleasePhoneNumberResponse = + PhoneNumbersReleasePhoneNumberHeaders; /** Optional parameters. */ export interface PhoneNumbersListPhoneNumbersOptionalParams @@ -462,6 +538,17 @@ export interface PhoneNumbersListPhoneNumbersOptionalParams /** Contains response data for the listPhoneNumbers operation. */ export type PhoneNumbersListPhoneNumbersResponse = PurchasedPhoneNumbers; +/** Optional parameters. */ +export interface PhoneNumbersOperatorInformationSearchOptionalParams + extends coreClient.OperationOptions { + /** Represents options to modify a search request for operator information */ + options?: OperatorInformationOptions; +} + +/** Contains response data for the operatorInformationSearch operation. */ +export type PhoneNumbersOperatorInformationSearchResponse = + OperatorInformationResult; + /** Optional parameters. */ export interface PhoneNumbersListAreaCodesNextOptionalParams extends coreClient.OperationOptions { @@ -480,7 +567,8 @@ export interface PhoneNumbersListAvailableCountriesNextOptionalParams } /** Contains response data for the listAvailableCountriesNext operation. */ -export type PhoneNumbersListAvailableCountriesNextResponse = PhoneNumberCountries; +export type PhoneNumbersListAvailableCountriesNextResponse = + PhoneNumberCountries; /** Optional parameters. */ export interface PhoneNumbersListAvailableLocalitiesNextOptionalParams @@ -490,7 +578,8 @@ export interface PhoneNumbersListAvailableLocalitiesNextOptionalParams } /** Contains response data for the listAvailableLocalitiesNext operation. */ -export type PhoneNumbersListAvailableLocalitiesNextResponse = PhoneNumberLocalities; +export type PhoneNumbersListAvailableLocalitiesNextResponse = + PhoneNumberLocalities; /** Optional parameters. */ export interface PhoneNumbersListOfferingsNextOptionalParams diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/models/mappers.ts b/sdk/communication/communication-phone-numbers/src/generated/src/models/mappers.ts index faa233a8d685..ebfe08889be2 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/models/mappers.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/models/mappers.ts @@ -21,19 +21,19 @@ export const PhoneNumberAreaCodes: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PhoneNumberAreaCode" - } - } - } + className: "PhoneNumberAreaCode", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberAreaCode: coreClient.CompositeMapper = { @@ -44,11 +44,11 @@ export const PhoneNumberAreaCode: coreClient.CompositeMapper = { areaCode: { serializedName: "areaCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunicationErrorResponse: coreClient.CompositeMapper = { @@ -60,11 +60,11 @@ export const CommunicationErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CommunicationError" - } - } - } - } + className: "CommunicationError", + }, + }, + }, + }, }; export const CommunicationError: coreClient.CompositeMapper = { @@ -76,22 +76,22 @@ export const CommunicationError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -101,20 +101,20 @@ export const CommunicationError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CommunicationError" - } - } - } + className: "CommunicationError", + }, + }, + }, }, innerError: { serializedName: "innererror", type: { name: "Composite", - className: "CommunicationError" - } - } - } - } + className: "CommunicationError", + }, + }, + }, + }, }; export const PhoneNumberCountries: coreClient.CompositeMapper = { @@ -129,19 +129,19 @@ export const PhoneNumberCountries: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PhoneNumberCountry" - } - } - } + className: "PhoneNumberCountry", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberCountry: coreClient.CompositeMapper = { @@ -153,18 +153,18 @@ export const PhoneNumberCountry: coreClient.CompositeMapper = { serializedName: "localizedName", required: true, type: { - name: "String" - } + name: "String", + }, }, countryCode: { serializedName: "countryCode", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberLocalities: coreClient.CompositeMapper = { @@ -179,19 +179,19 @@ export const PhoneNumberLocalities: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PhoneNumberLocality" - } - } - } + className: "PhoneNumberLocality", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberLocality: coreClient.CompositeMapper = { @@ -203,18 +203,18 @@ export const PhoneNumberLocality: coreClient.CompositeMapper = { serializedName: "localizedName", required: true, type: { - name: "String" - } + name: "String", + }, }, administrativeDivision: { serializedName: "administrativeDivision", type: { name: "Composite", - className: "PhoneNumberAdministrativeDivision" - } - } - } - } + className: "PhoneNumberAdministrativeDivision", + }, + }, + }, + }, }; export const PhoneNumberAdministrativeDivision: coreClient.CompositeMapper = { @@ -226,18 +226,18 @@ export const PhoneNumberAdministrativeDivision: coreClient.CompositeMapper = { serializedName: "localizedName", required: true, type: { - name: "String" - } + name: "String", + }, }, abbreviatedName: { serializedName: "abbreviatedName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OfferingsResponse: coreClient.CompositeMapper = { @@ -252,19 +252,19 @@ export const OfferingsResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PhoneNumberOffering" - } - } - } + className: "PhoneNumberOffering", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberOffering: coreClient.CompositeMapper = { @@ -275,31 +275,31 @@ export const PhoneNumberOffering: coreClient.CompositeMapper = { phoneNumberType: { serializedName: "phoneNumberType", type: { - name: "String" - } + name: "String", + }, }, assignmentType: { serializedName: "assignmentType", type: { - name: "String" - } + name: "String", + }, }, availableCapabilities: { serializedName: "availableCapabilities", type: { name: "Composite", - className: "PhoneNumberCapabilities" - } + className: "PhoneNumberCapabilities", + }, }, cost: { serializedName: "cost", type: { name: "Composite", - className: "PhoneNumberCost" - } - } - } - } + className: "PhoneNumberCost", + }, + }, + }, + }, }; export const PhoneNumberCapabilities: coreClient.CompositeMapper = { @@ -311,18 +311,18 @@ export const PhoneNumberCapabilities: coreClient.CompositeMapper = { serializedName: "calling", required: true, type: { - name: "String" - } + name: "String", + }, }, sms: { serializedName: "sms", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberCost: coreClient.CompositeMapper = { @@ -334,26 +334,26 @@ export const PhoneNumberCost: coreClient.CompositeMapper = { serializedName: "amount", required: true, type: { - name: "Number" - } + name: "Number", + }, }, currencyCode: { serializedName: "currencyCode", required: true, type: { - name: "String" - } + name: "String", + }, }, billingFrequency: { defaultValue: "monthly", isConstant: true, serializedName: "billingFrequency", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberSearchRequest: coreClient.CompositeMapper = { @@ -365,42 +365,42 @@ export const PhoneNumberSearchRequest: coreClient.CompositeMapper = { serializedName: "phoneNumberType", required: true, type: { - name: "String" - } + name: "String", + }, }, assignmentType: { serializedName: "assignmentType", required: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", type: { name: "Composite", - className: "PhoneNumberCapabilities" - } + className: "PhoneNumberCapabilities", + }, }, areaCode: { serializedName: "areaCode", type: { - name: "String" - } + name: "String", + }, }, quantity: { defaultValue: 1, constraints: { InclusiveMaximum: 2147483647, - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "quantity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PhoneNumberSearchResult: coreClient.CompositeMapper = { @@ -412,8 +412,8 @@ export const PhoneNumberSearchResult: coreClient.CompositeMapper = { serializedName: "searchId", required: true, type: { - name: "String" - } + name: "String", + }, }, phoneNumbers: { serializedName: "phoneNumbers", @@ -422,48 +422,60 @@ export const PhoneNumberSearchResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, phoneNumberType: { serializedName: "phoneNumberType", required: true, type: { - name: "String" - } + name: "String", + }, }, assignmentType: { serializedName: "assignmentType", required: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", type: { name: "Composite", - className: "PhoneNumberCapabilities" - } + className: "PhoneNumberCapabilities", + }, }, cost: { serializedName: "cost", type: { name: "Composite", - className: "PhoneNumberCost" - } + className: "PhoneNumberCost", + }, }, searchExpiresBy: { serializedName: "searchExpiresBy", required: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + errorCode: { + serializedName: "errorCode", + type: { + name: "Number", + }, + }, + error: { + serializedName: "error", + type: { + name: "String", + }, + }, + }, + }, }; export const PhoneNumberPurchaseRequest: coreClient.CompositeMapper = { @@ -474,11 +486,11 @@ export const PhoneNumberPurchaseRequest: coreClient.CompositeMapper = { searchId: { serializedName: "searchId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneNumberOperation: coreClient.CompositeMapper = { @@ -490,52 +502,52 @@ export const PhoneNumberOperation: coreClient.CompositeMapper = { serializedName: "operationType", required: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", required: true, type: { - name: "String" - } + name: "String", + }, }, resourceLocation: { serializedName: "resourceLocation", type: { - name: "String" - } + name: "String", + }, }, createdDateTime: { serializedName: "createdDateTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "CommunicationError" - } + className: "CommunicationError", + }, }, id: { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, lastActionDateTime: { serializedName: "lastActionDateTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const PhoneNumberCapabilitiesRequest: coreClient.CompositeMapper = { @@ -546,17 +558,17 @@ export const PhoneNumberCapabilitiesRequest: coreClient.CompositeMapper = { calling: { serializedName: "calling", type: { - name: "String" - } + name: "String", + }, }, sms: { serializedName: "sms", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PurchasedPhoneNumber: coreClient.CompositeMapper = { @@ -568,60 +580,60 @@ export const PurchasedPhoneNumber: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, phoneNumber: { serializedName: "phoneNumber", required: true, type: { - name: "String" - } + name: "String", + }, }, countryCode: { serializedName: "countryCode", required: true, type: { - name: "String" - } + name: "String", + }, }, phoneNumberType: { serializedName: "phoneNumberType", required: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", type: { name: "Composite", - className: "PhoneNumberCapabilities" - } + className: "PhoneNumberCapabilities", + }, }, assignmentType: { serializedName: "assignmentType", required: true, type: { - name: "String" - } + name: "String", + }, }, purchaseDate: { serializedName: "purchaseDate", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, cost: { serializedName: "cost", type: { name: "Composite", - className: "PhoneNumberCost" - } - } - } - } + className: "PhoneNumberCost", + }, + }, + }, + }, }; export const PurchasedPhoneNumbers: coreClient.CompositeMapper = { @@ -637,152 +649,295 @@ export const PurchasedPhoneNumbers: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PurchasedPhoneNumber" - } - } - } + className: "PurchasedPhoneNumber", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const PhoneNumbersSearchAvailablePhoneNumbersHeaders: coreClient.CompositeMapper = { +export const OperatorInformationRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersSearchAvailablePhoneNumbersHeaders", + className: "OperatorInformationRequest", modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - operationLocation: { - serializedName: "operation-location", + phoneNumbers: { + serializedName: "phoneNumbers", + required: true, type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, - operationId: { - serializedName: "operation-id", + options: { + serializedName: "options", type: { - name: "String" - } + name: "Composite", + className: "OperatorInformationOptions", + }, }, - searchId: { - serializedName: "search-id", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const PhoneNumbersPurchasePhoneNumbersHeaders: coreClient.CompositeMapper = { +export const OperatorInformationOptions: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersPurchasePhoneNumbersHeaders", + className: "OperatorInformationOptions", modelProperties: { - operationLocation: { - serializedName: "operation-location", + includeAdditionalOperatorDetails: { + serializedName: "includeAdditionalOperatorDetails", type: { - name: "String" - } - }, - operationId: { - serializedName: "operation-id", - type: { - name: "String" - } + name: "Boolean", + }, }, - purchaseId: { - serializedName: "purchase-id", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const PhoneNumbersGetOperationHeaders: coreClient.CompositeMapper = { +export const OperatorInformationResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersGetOperationHeaders", + className: "OperatorInformationResult", modelProperties: { - location: { - serializedName: "location", + values: { + serializedName: "values", type: { - name: "String" - } - } - } - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperatorInformation", + }, + }, + }, + }, + }, + }, }; -export const PhoneNumbersUpdateCapabilitiesHeaders: coreClient.CompositeMapper = { +export const OperatorInformation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersUpdateCapabilitiesHeaders", + className: "OperatorInformation", modelProperties: { - location: { - serializedName: "location", + phoneNumber: { + serializedName: "phoneNumber", + required: true, type: { - name: "String" - } + name: "String", + }, }, - operationLocation: { - serializedName: "operation-location", + nationalFormat: { + serializedName: "nationalFormat", type: { - name: "String" - } + name: "String", + }, }, - operationId: { - serializedName: "operation-id", + internationalFormat: { + serializedName: "internationalFormat", type: { - name: "String" - } + name: "String", + }, }, - capabilitiesId: { - serializedName: "capabilities-id", + isoCountryCode: { + serializedName: "isoCountryCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + numberType: { + serializedName: "numberType", + type: { + name: "String", + }, + }, + operatorDetails: { + serializedName: "operatorDetails", + type: { + name: "Composite", + className: "OperatorDetails", + }, + }, + }, + }, }; -export const PhoneNumbersReleasePhoneNumberHeaders: coreClient.CompositeMapper = { +export const OperatorDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PhoneNumbersReleasePhoneNumberHeaders", + className: "OperatorDetails", modelProperties: { - operationLocation: { - serializedName: "operation-location", + name: { + serializedName: "name", + required: true, type: { - name: "String" - } + name: "String", + }, }, - operationId: { - serializedName: "operation-id", + mobileNetworkCode: { + serializedName: "mobileNetworkCode", type: { - name: "String" - } + name: "String", + }, }, - releaseId: { - serializedName: "release-id", + mobileCountryCode: { + serializedName: "mobileCountryCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; + +export const PhoneNumbersSearchAvailablePhoneNumbersHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PhoneNumbersSearchAvailablePhoneNumbersHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + operationLocation: { + serializedName: "operation-location", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operation-id", + type: { + name: "String", + }, + }, + searchId: { + serializedName: "search-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PhoneNumbersPurchasePhoneNumbersHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PhoneNumbersPurchasePhoneNumbersHeaders", + modelProperties: { + operationLocation: { + serializedName: "operation-location", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operation-id", + type: { + name: "String", + }, + }, + purchaseId: { + serializedName: "purchase-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PhoneNumbersGetOperationHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PhoneNumbersGetOperationHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const PhoneNumbersUpdateCapabilitiesHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PhoneNumbersUpdateCapabilitiesHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + operationLocation: { + serializedName: "operation-location", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operation-id", + type: { + name: "String", + }, + }, + capabilitiesId: { + serializedName: "capabilities-id", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const PhoneNumbersReleasePhoneNumberHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PhoneNumbersReleasePhoneNumberHeaders", + modelProperties: { + operationLocation: { + serializedName: "operation-location", + type: { + name: "String", + }, + }, + operationId: { + serializedName: "operation-id", + type: { + name: "String", + }, + }, + releaseId: { + serializedName: "release-id", + type: { + name: "String", + }, + }, + }, + }, + }; diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/models/parameters.ts b/sdk/communication/communication-phone-numbers/src/generated/src/models/parameters.ts index c7c2d68c8f11..b97bdd9a9e7e 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/models/parameters.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/models/parameters.ts @@ -9,12 +9,13 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { PhoneNumberSearchRequest as PhoneNumberSearchRequestMapper, PhoneNumberPurchaseRequest as PhoneNumberPurchaseRequestMapper, - PhoneNumberCapabilitiesRequest as PhoneNumberCapabilitiesRequestMapper + PhoneNumberCapabilitiesRequest as PhoneNumberCapabilitiesRequestMapper, + OperatorInformationRequest as OperatorInformationRequestMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -24,9 +25,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const endpoint: OperationURLParameter = { @@ -35,10 +36,10 @@ export const endpoint: OperationURLParameter = { serializedName: "endpoint", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const countryCode: OperationURLParameter = { @@ -47,9 +48,9 @@ export const countryCode: OperationURLParameter = { serializedName: "countryCode", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const phoneNumberType: OperationQueryParameter = { @@ -59,9 +60,9 @@ export const phoneNumberType: OperationQueryParameter = { required: true, type: { name: "Enum", - allowedValues: ["geographic", "tollFree"] - } - } + allowedValues: ["geographic", "tollFree"], + }, + }, }; export const skip: OperationQueryParameter = { @@ -70,9 +71,9 @@ export const skip: OperationQueryParameter = { defaultValue: 0, serializedName: "skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const maxPageSize: OperationQueryParameter = { @@ -81,9 +82,9 @@ export const maxPageSize: OperationQueryParameter = { defaultValue: 100, serializedName: "maxPageSize", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const assignmentType: OperationQueryParameter = { @@ -92,9 +93,9 @@ export const assignmentType: OperationQueryParameter = { serializedName: "assignmentType", type: { name: "Enum", - allowedValues: ["person", "application"] - } - } + allowedValues: ["person", "application"], + }, + }, }; export const locality: OperationQueryParameter = { @@ -102,9 +103,9 @@ export const locality: OperationQueryParameter = { mapper: { serializedName: "locality", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const administrativeDivision: OperationQueryParameter = { @@ -112,21 +113,21 @@ export const administrativeDivision: OperationQueryParameter = { mapper: { serializedName: "administrativeDivision", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-12-01", + defaultValue: "2024-03-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const acceptLanguage: OperationParameter = { @@ -134,9 +135,9 @@ export const acceptLanguage: OperationParameter = { mapper: { serializedName: "accept-language", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const phoneNumberType1: OperationQueryParameter = { @@ -145,9 +146,9 @@ export const phoneNumberType1: OperationQueryParameter = { serializedName: "phoneNumberType", type: { name: "Enum", - allowedValues: ["geographic", "tollFree"] - } - } + allowedValues: ["geographic", "tollFree"], + }, + }, }; export const contentType: OperationParameter = { @@ -157,34 +158,34 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const phoneNumberType2: OperationParameter = { parameterPath: "phoneNumberType", - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const assignmentType1: OperationParameter = { parameterPath: "assignmentType", - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const capabilities: OperationParameter = { parameterPath: "capabilities", - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const areaCode: OperationParameter = { parameterPath: ["options", "areaCode"], - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const quantity: OperationParameter = { parameterPath: ["options", "quantity"], - mapper: PhoneNumberSearchRequestMapper + mapper: PhoneNumberSearchRequestMapper, }; export const searchId: OperationURLParameter = { @@ -193,14 +194,14 @@ export const searchId: OperationURLParameter = { serializedName: "searchId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchId1: OperationParameter = { parameterPath: ["options", "searchId"], - mapper: PhoneNumberPurchaseRequestMapper + mapper: PhoneNumberPurchaseRequestMapper, }; export const operationId: OperationURLParameter = { @@ -209,9 +210,9 @@ export const operationId: OperationURLParameter = { serializedName: "operationId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType1: OperationParameter = { @@ -221,19 +222,19 @@ export const contentType1: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const calling: OperationParameter = { parameterPath: ["options", "calling"], - mapper: PhoneNumberCapabilitiesRequestMapper + mapper: PhoneNumberCapabilitiesRequestMapper, }; export const sms: OperationParameter = { parameterPath: ["options", "sms"], - mapper: PhoneNumberCapabilitiesRequestMapper + mapper: PhoneNumberCapabilitiesRequestMapper, }; export const phoneNumber: OperationURLParameter = { @@ -242,9 +243,9 @@ export const phoneNumber: OperationURLParameter = { serializedName: "phoneNumber", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { @@ -253,9 +254,19 @@ export const top: OperationQueryParameter = { defaultValue: 100, serializedName: "top", type: { - name: "Number" - } - } + name: "Number", + }, + }, +}; + +export const phoneNumbers: OperationParameter = { + parameterPath: "phoneNumbers", + mapper: OperatorInformationRequestMapper, +}; + +export const options: OperationParameter = { + parameterPath: ["options", "options"], + mapper: OperatorInformationRequestMapper, }; export const nextLink: OperationURLParameter = { @@ -264,8 +275,8 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/operations/phoneNumbers.ts b/sdk/communication/communication-phone-numbers/src/generated/src/operations/phoneNumbers.ts index b58433a2c788..d820bf4838dd 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/operations/phoneNumbers.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/operations/phoneNumbers.ts @@ -55,11 +55,13 @@ import { PhoneNumbersGetByNumberResponse, PhoneNumbersReleasePhoneNumberOptionalParams, PhoneNumbersReleasePhoneNumberResponse, + PhoneNumbersOperatorInformationSearchOptionalParams, + PhoneNumbersOperatorInformationSearchResponse, PhoneNumbersListAreaCodesNextResponse, PhoneNumbersListAvailableCountriesNextResponse, PhoneNumbersListAvailableLocalitiesNextResponse, PhoneNumbersListOfferingsNextResponse, - PhoneNumbersListPhoneNumbersNextResponse + PhoneNumbersListPhoneNumbersNextResponse, } from "../models"; /// @@ -84,12 +86,12 @@ export class PhoneNumbersImpl implements PhoneNumbers { public listAreaCodes( countryCode: string, phoneNumberType: PhoneNumberType, - options?: PhoneNumbersListAreaCodesOptionalParams + options?: PhoneNumbersListAreaCodesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAreaCodesPagingAll( countryCode, phoneNumberType, - options + options, ); return { next() { @@ -106,9 +108,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { countryCode, phoneNumberType, options, - settings + settings, ); - } + }, }; } @@ -116,7 +118,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { countryCode: string, phoneNumberType: PhoneNumberType, options?: PhoneNumbersListAreaCodesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListAreaCodesResponse; let continuationToken = settings?.continuationToken; @@ -131,7 +133,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { result = await this._listAreaCodesNext( countryCode, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.areaCodes || []; @@ -143,12 +145,12 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async *listAreaCodesPagingAll( countryCode: string, phoneNumberType: PhoneNumberType, - options?: PhoneNumbersListAreaCodesOptionalParams + options?: PhoneNumbersListAreaCodesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAreaCodesPagingPage( countryCode, phoneNumberType, - options + options, )) { yield* page; } @@ -159,7 +161,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ public listAvailableCountries( - options?: PhoneNumbersListAvailableCountriesOptionalParams + options?: PhoneNumbersListAvailableCountriesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableCountriesPagingAll(options); return { @@ -174,13 +176,13 @@ export class PhoneNumbersImpl implements PhoneNumbers { throw new Error("maxPageSize is not supported by this operation."); } return this.listAvailableCountriesPagingPage(options, settings); - } + }, }; } private async *listAvailableCountriesPagingPage( options?: PhoneNumbersListAvailableCountriesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListAvailableCountriesResponse; let continuationToken = settings?.continuationToken; @@ -194,7 +196,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { while (continuationToken) { result = await this._listAvailableCountriesNext( continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.countries || []; @@ -204,7 +206,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { } private async *listAvailableCountriesPagingAll( - options?: PhoneNumbersListAvailableCountriesOptionalParams + options?: PhoneNumbersListAvailableCountriesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableCountriesPagingPage(options)) { yield* page; @@ -218,7 +220,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ public listAvailableLocalities( countryCode: string, - options?: PhoneNumbersListAvailableLocalitiesOptionalParams + options?: PhoneNumbersListAvailableLocalitiesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableLocalitiesPagingAll(countryCode, options); return { @@ -235,16 +237,16 @@ export class PhoneNumbersImpl implements PhoneNumbers { return this.listAvailableLocalitiesPagingPage( countryCode, options, - settings + settings, ); - } + }, }; } private async *listAvailableLocalitiesPagingPage( countryCode: string, options?: PhoneNumbersListAvailableLocalitiesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListAvailableLocalitiesResponse; let continuationToken = settings?.continuationToken; @@ -259,7 +261,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { result = await this._listAvailableLocalitiesNext( countryCode, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.phoneNumberLocalities || []; @@ -270,11 +272,11 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async *listAvailableLocalitiesPagingAll( countryCode: string, - options?: PhoneNumbersListAvailableLocalitiesOptionalParams + options?: PhoneNumbersListAvailableLocalitiesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableLocalitiesPagingPage( countryCode, - options + options, )) { yield* page; } @@ -287,7 +289,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ public listOfferings( countryCode: string, - options?: PhoneNumbersListOfferingsOptionalParams + options?: PhoneNumbersListOfferingsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOfferingsPagingAll(countryCode, options); return { @@ -302,14 +304,14 @@ export class PhoneNumbersImpl implements PhoneNumbers { throw new Error("maxPageSize is not supported by this operation."); } return this.listOfferingsPagingPage(countryCode, options, settings); - } + }, }; } private async *listOfferingsPagingPage( countryCode: string, options?: PhoneNumbersListOfferingsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListOfferingsResponse; let continuationToken = settings?.continuationToken; @@ -324,7 +326,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { result = await this._listOfferingsNext( countryCode, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.phoneNumberOfferings || []; @@ -335,11 +337,11 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async *listOfferingsPagingAll( countryCode: string, - options?: PhoneNumbersListOfferingsOptionalParams + options?: PhoneNumbersListOfferingsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOfferingsPagingPage( countryCode, - options + options, )) { yield* page; } @@ -350,7 +352,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ public listPhoneNumbers( - options?: PhoneNumbersListPhoneNumbersOptionalParams + options?: PhoneNumbersListPhoneNumbersOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPhoneNumbersPagingAll(options); return { @@ -365,13 +367,13 @@ export class PhoneNumbersImpl implements PhoneNumbers { throw new Error("maxPageSize is not supported by this operation."); } return this.listPhoneNumbersPagingPage(options, settings); - } + }, }; } private async *listPhoneNumbersPagingPage( options?: PhoneNumbersListPhoneNumbersOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PhoneNumbersListPhoneNumbersResponse; let continuationToken = settings?.continuationToken; @@ -392,7 +394,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { } private async *listPhoneNumbersPagingAll( - options?: PhoneNumbersListPhoneNumbersOptionalParams + options?: PhoneNumbersListPhoneNumbersOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPhoneNumbersPagingPage(options)) { yield* page; @@ -408,7 +410,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async _listAreaCodes( countryCode: string, phoneNumberType: PhoneNumberType, - options?: PhoneNumbersListAreaCodesOptionalParams + options?: PhoneNumbersListAreaCodesOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAreaCodes", @@ -416,9 +418,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, phoneNumberType, options }, - listAreaCodesOperationSpec + listAreaCodesOperationSpec, ) as Promise; - } + }, ); } @@ -427,7 +429,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ private async _listAvailableCountries( - options?: PhoneNumbersListAvailableCountriesOptionalParams + options?: PhoneNumbersListAvailableCountriesOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAvailableCountries", @@ -435,9 +437,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { options }, - listAvailableCountriesOperationSpec + listAvailableCountriesOperationSpec, ) as Promise; - } + }, ); } @@ -448,7 +450,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ private async _listAvailableLocalities( countryCode: string, - options?: PhoneNumbersListAvailableLocalitiesOptionalParams + options?: PhoneNumbersListAvailableLocalitiesOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAvailableLocalities", @@ -456,9 +458,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, options }, - listAvailableLocalitiesOperationSpec + listAvailableLocalitiesOperationSpec, ) as Promise; - } + }, ); } @@ -469,7 +471,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ private async _listOfferings( countryCode: string, - options?: PhoneNumbersListOfferingsOptionalParams + options?: PhoneNumbersListOfferingsOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listOfferings", @@ -477,9 +479,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, options }, - listOfferingsOperationSpec + listOfferingsOperationSpec, ) as Promise; - } + }, ); } @@ -497,7 +499,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { phoneNumberType: PhoneNumberType, assignmentType: PhoneNumberAssignmentType, capabilities: PhoneNumberCapabilities, - options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams + options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -506,29 +508,29 @@ export class PhoneNumbersImpl implements PhoneNumbers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return tracingClient.withSpan( "PhoneNumbersClient.beginSearchAvailablePhoneNumbers", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise< - PhoneNumbersSearchAvailablePhoneNumbersResponse - >; - } + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -537,8 +539,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -546,8 +548,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -558,14 +560,14 @@ export class PhoneNumbersImpl implements PhoneNumbers { phoneNumberType, assignmentType, capabilities, - options + options, }, - spec: searchAvailablePhoneNumbersOperationSpec + spec: searchAvailablePhoneNumbersOperationSpec, }); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + lroResourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -585,14 +587,14 @@ export class PhoneNumbersImpl implements PhoneNumbers { phoneNumberType: PhoneNumberType, assignmentType: PhoneNumberAssignmentType, capabilities: PhoneNumberCapabilities, - options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams + options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams, ): Promise { const poller = await this.beginSearchAvailablePhoneNumbers( countryCode, phoneNumberType, assignmentType, capabilities, - options + options, ); return poller.pollUntilDone(); } @@ -604,7 +606,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async getSearchResult( searchId: string, - options?: PhoneNumbersGetSearchResultOptionalParams + options?: PhoneNumbersGetSearchResultOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient.getSearchResult", @@ -612,9 +614,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { searchId, options }, - getSearchResultOperationSpec + getSearchResultOperationSpec, ) as Promise; - } + }, ); } @@ -623,7 +625,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ async beginPurchasePhoneNumbers( - options?: PhoneNumbersPurchasePhoneNumbersOptionalParams + options?: PhoneNumbersPurchasePhoneNumbersOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -632,29 +634,29 @@ export class PhoneNumbersImpl implements PhoneNumbers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return tracingClient.withSpan( "PhoneNumbersClient.beginPurchasePhoneNumbers", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise< - PhoneNumbersPurchasePhoneNumbersResponse - >; - } + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -663,8 +665,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -672,19 +674,19 @@ export class PhoneNumbersImpl implements PhoneNumbers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { options }, - spec: purchasePhoneNumbersOperationSpec + spec: purchasePhoneNumbersOperationSpec, }); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -695,7 +697,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ async beginPurchasePhoneNumbersAndWait( - options?: PhoneNumbersPurchasePhoneNumbersOptionalParams + options?: PhoneNumbersPurchasePhoneNumbersOptionalParams, ): Promise { const poller = await this.beginPurchasePhoneNumbers(options); return poller.pollUntilDone(); @@ -708,7 +710,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async getOperation( operationId: string, - options?: PhoneNumbersGetOperationOptionalParams + options?: PhoneNumbersGetOperationOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient.getOperation", @@ -716,9 +718,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { operationId, options }, - getOperationOperationSpec + getOperationOperationSpec, ) as Promise; - } + }, ); } @@ -729,7 +731,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async cancelOperation( operationId: string, - options?: PhoneNumbersCancelOperationOptionalParams + options?: PhoneNumbersCancelOperationOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient.cancelOperation", @@ -737,9 +739,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { operationId, options }, - cancelOperationOperationSpec + cancelOperationOperationSpec, ) as Promise; - } + }, ); } @@ -751,7 +753,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async beginUpdateCapabilities( phoneNumber: string, - options?: PhoneNumbersUpdateCapabilitiesOptionalParams + options?: PhoneNumbersUpdateCapabilitiesOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -760,29 +762,29 @@ export class PhoneNumbersImpl implements PhoneNumbers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return tracingClient.withSpan( "PhoneNumbersClient.beginUpdateCapabilities", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise< - PhoneNumbersUpdateCapabilitiesResponse - >; - } + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -791,8 +793,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -800,20 +802,20 @@ export class PhoneNumbersImpl implements PhoneNumbers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { phoneNumber, options }, - spec: updateCapabilitiesOperationSpec + spec: updateCapabilitiesOperationSpec, }); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - lroResourceLocationConfig: "location" + lroResourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -827,7 +829,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async beginUpdateCapabilitiesAndWait( phoneNumber: string, - options?: PhoneNumbersUpdateCapabilitiesOptionalParams + options?: PhoneNumbersUpdateCapabilitiesOptionalParams, ): Promise { const poller = await this.beginUpdateCapabilities(phoneNumber, options); return poller.pollUntilDone(); @@ -841,7 +843,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async getByNumber( phoneNumber: string, - options?: PhoneNumbersGetByNumberOptionalParams + options?: PhoneNumbersGetByNumberOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient.getByNumber", @@ -849,9 +851,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { phoneNumber, options }, - getByNumberOperationSpec + getByNumberOperationSpec, ) as Promise; - } + }, ); } @@ -862,7 +864,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async beginReleasePhoneNumber( phoneNumber: string, - options?: PhoneNumbersReleasePhoneNumberOptionalParams + options?: PhoneNumbersReleasePhoneNumberOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -871,29 +873,29 @@ export class PhoneNumbersImpl implements PhoneNumbers { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return tracingClient.withSpan( "PhoneNumbersClient.beginReleasePhoneNumber", options ?? {}, async () => { - return this.client.sendOperationRequest(args, spec) as Promise< - PhoneNumbersReleasePhoneNumberResponse - >; - } + return this.client.sendOperationRequest( + args, + spec, + ) as Promise; + }, ); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -902,8 +904,8 @@ export class PhoneNumbersImpl implements PhoneNumbers { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -911,19 +913,19 @@ export class PhoneNumbersImpl implements PhoneNumbers { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { phoneNumber, options }, - spec: releasePhoneNumberOperationSpec + spec: releasePhoneNumberOperationSpec, }); const poller = new LroEngine(lro, { resumeFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -936,7 +938,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ async beginReleasePhoneNumberAndWait( phoneNumber: string, - options?: PhoneNumbersReleasePhoneNumberOptionalParams + options?: PhoneNumbersReleasePhoneNumberOptionalParams, ): Promise { const poller = await this.beginReleasePhoneNumber(phoneNumber, options); return poller.pollUntilDone(); @@ -947,7 +949,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { * @param options The options parameters. */ private async _listPhoneNumbers( - options?: PhoneNumbersListPhoneNumbersOptionalParams + options?: PhoneNumbersListPhoneNumbersOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listPhoneNumbers", @@ -955,9 +957,30 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { options }, - listPhoneNumbersOperationSpec + listPhoneNumbersOperationSpec, ) as Promise; - } + }, + ); + } + + /** + * Searches for number format and operator information for a given list of phone numbers. + * @param phoneNumbers Phone number(s) whose operator information is being requested + * @param options The options parameters. + */ + async operatorInformationSearch( + phoneNumbers: string[], + options?: PhoneNumbersOperatorInformationSearchOptionalParams, + ): Promise { + return tracingClient.withSpan( + "PhoneNumbersClient.operatorInformationSearch", + options ?? {}, + async (options) => { + return this.client.sendOperationRequest( + { phoneNumbers, options }, + operatorInformationSearchOperationSpec, + ) as Promise; + }, ); } @@ -970,7 +993,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async _listAreaCodesNext( countryCode: string, nextLink: string, - options?: PhoneNumbersListAreaCodesNextOptionalParams + options?: PhoneNumbersListAreaCodesNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAreaCodesNext", @@ -978,9 +1001,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, nextLink, options }, - listAreaCodesNextOperationSpec + listAreaCodesNextOperationSpec, ) as Promise; - } + }, ); } @@ -991,7 +1014,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ private async _listAvailableCountriesNext( nextLink: string, - options?: PhoneNumbersListAvailableCountriesNextOptionalParams + options?: PhoneNumbersListAvailableCountriesNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAvailableCountriesNext", @@ -999,9 +1022,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { nextLink, options }, - listAvailableCountriesNextOperationSpec + listAvailableCountriesNextOperationSpec, ) as Promise; - } + }, ); } @@ -1015,7 +1038,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async _listAvailableLocalitiesNext( countryCode: string, nextLink: string, - options?: PhoneNumbersListAvailableLocalitiesNextOptionalParams + options?: PhoneNumbersListAvailableLocalitiesNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listAvailableLocalitiesNext", @@ -1023,9 +1046,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, nextLink, options }, - listAvailableLocalitiesNextOperationSpec + listAvailableLocalitiesNextOperationSpec, ) as Promise; - } + }, ); } @@ -1038,7 +1061,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { private async _listOfferingsNext( countryCode: string, nextLink: string, - options?: PhoneNumbersListOfferingsNextOptionalParams + options?: PhoneNumbersListOfferingsNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listOfferingsNext", @@ -1046,9 +1069,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { countryCode, nextLink, options }, - listOfferingsNextOperationSpec + listOfferingsNextOperationSpec, ) as Promise; - } + }, ); } @@ -1059,7 +1082,7 @@ export class PhoneNumbersImpl implements PhoneNumbers { */ private async _listPhoneNumbersNext( nextLink: string, - options?: PhoneNumbersListPhoneNumbersNextOptionalParams + options?: PhoneNumbersListPhoneNumbersNextOptionalParams, ): Promise { return tracingClient.withSpan( "PhoneNumbersClient._listPhoneNumbersNext", @@ -1067,9 +1090,9 @@ export class PhoneNumbersImpl implements PhoneNumbers { async (options) => { return this.client.sendOperationRequest( { nextLink, options }, - listPhoneNumbersNextOperationSpec + listPhoneNumbersNextOperationSpec, ) as Promise; - } + }, ); } } @@ -1081,11 +1104,11 @@ const listAreaCodesOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberAreaCodes + bodyMapper: Mappers.PhoneNumberAreaCodes, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [ Parameters.phoneNumberType, @@ -1094,74 +1117,74 @@ const listAreaCodesOperationSpec: coreClient.OperationSpec = { Parameters.assignmentType, Parameters.locality, Parameters.administrativeDivision, - Parameters.apiVersion + Parameters.apiVersion, ], urlParameters: [Parameters.endpoint, Parameters.countryCode], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listAvailableCountriesOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/countries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberCountries + bodyMapper: Mappers.PhoneNumberCountries, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [ Parameters.skip, Parameters.maxPageSize, - Parameters.apiVersion + Parameters.apiVersion, ], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listAvailableLocalitiesOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/countries/{countryCode}/localities", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberLocalities + bodyMapper: Mappers.PhoneNumberLocalities, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [ Parameters.skip, Parameters.maxPageSize, Parameters.administrativeDivision, - Parameters.apiVersion + Parameters.apiVersion, ], urlParameters: [Parameters.endpoint, Parameters.countryCode], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listOfferingsOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/countries/{countryCode}/offerings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OfferingsResponse + bodyMapper: Mappers.OfferingsResponse, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [ Parameters.skip, Parameters.maxPageSize, Parameters.assignmentType, Parameters.apiVersion, - Parameters.phoneNumberType1 + Parameters.phoneNumberType1, ], urlParameters: [Parameters.endpoint, Parameters.countryCode], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const searchAvailablePhoneNumbersOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/countries/{countryCode}/:search", @@ -1169,23 +1192,23 @@ const searchAvailablePhoneNumbersOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.PhoneNumberSearchResult, - headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders, }, 201: { bodyMapper: Mappers.PhoneNumberSearchResult, - headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders, }, 202: { bodyMapper: Mappers.PhoneNumberSearchResult, - headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders, }, 204: { bodyMapper: Mappers.PhoneNumberSearchResult, - headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersSearchAvailablePhoneNumbersHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, requestBody: { parameterPath: { @@ -1193,61 +1216,61 @@ const searchAvailablePhoneNumbersOperationSpec: coreClient.OperationSpec = { assignmentType: ["assignmentType"], capabilities: ["capabilities"], areaCode: ["options", "areaCode"], - quantity: ["options", "quantity"] + quantity: ["options", "quantity"], }, - mapper: { ...Mappers.PhoneNumberSearchRequest, required: true } + mapper: { ...Mappers.PhoneNumberSearchRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.countryCode], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getSearchResultOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/searchResults/{searchId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberSearchResult + bodyMapper: Mappers.PhoneNumberSearchResult, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.searchId], headerParameters: [Parameters.accept], - serializer + serializer, }; const purchasePhoneNumbersOperationSpec: coreClient.OperationSpec = { path: "/availablePhoneNumbers/:purchase", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders, }, 201: { - headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders, }, 202: { - headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders, }, 204: { - headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders + headersMapper: Mappers.PhoneNumbersPurchasePhoneNumbersHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, requestBody: { parameterPath: { searchId: ["options", "searchId"] }, - mapper: { ...Mappers.PhoneNumberPurchaseRequest, required: true } + mapper: { ...Mappers.PhoneNumberPurchaseRequest, required: true }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/operations/{operationId}", @@ -1255,16 +1278,16 @@ const getOperationOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.PhoneNumberOperation, - headersMapper: Mappers.PhoneNumbersGetOperationHeaders + headersMapper: Mappers.PhoneNumbersGetOperationHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.operationId], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelOperationOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/operations/{operationId}", @@ -1272,13 +1295,13 @@ const cancelOperationOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.operationId], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateCapabilitiesOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/{phoneNumber}/capabilities", @@ -1286,175 +1309,199 @@ const updateCapabilitiesOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: Mappers.PurchasedPhoneNumber, - headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders + headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders, }, 201: { bodyMapper: Mappers.PurchasedPhoneNumber, - headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders + headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders, }, 202: { bodyMapper: Mappers.PurchasedPhoneNumber, - headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders + headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders, }, 204: { bodyMapper: Mappers.PurchasedPhoneNumber, - headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders + headersMapper: Mappers.PhoneNumbersUpdateCapabilitiesHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, requestBody: { parameterPath: { calling: ["options", "calling"], sms: ["options", "sms"] }, - mapper: Mappers.PhoneNumberCapabilitiesRequest + mapper: Mappers.PhoneNumberCapabilitiesRequest, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.phoneNumber], headerParameters: [Parameters.accept, Parameters.contentType1], mediaType: "json", - serializer + serializer, }; const getByNumberOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/{phoneNumber}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PurchasedPhoneNumber + bodyMapper: Mappers.PurchasedPhoneNumber, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.phoneNumber], headerParameters: [Parameters.accept], - serializer + serializer, }; const releasePhoneNumberOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers/{phoneNumber}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders + headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders, }, 201: { - headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders + headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders, }, 202: { - headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders + headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders, }, 204: { - headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders + headersMapper: Mappers.PhoneNumbersReleasePhoneNumberHeaders, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.phoneNumber], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPhoneNumbersOperationSpec: coreClient.OperationSpec = { path: "/phoneNumbers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PurchasedPhoneNumbers + bodyMapper: Mappers.PurchasedPhoneNumbers, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, queryParameters: [Parameters.skip, Parameters.apiVersion, Parameters.top], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const operatorInformationSearchOperationSpec: coreClient.OperationSpec = { + path: "/operatorInformation/:search", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.OperatorInformationResult, + }, + default: { + bodyMapper: Mappers.CommunicationErrorResponse, + }, + }, + requestBody: { + parameterPath: { + phoneNumbers: ["phoneNumbers"], + options: ["options", "options"], + }, + mapper: { ...Mappers.OperatorInformationRequest, required: true }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.endpoint], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listAreaCodesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberAreaCodes + bodyMapper: Mappers.PhoneNumberAreaCodes, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [ Parameters.endpoint, Parameters.countryCode, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listAvailableCountriesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberCountries + bodyMapper: Mappers.PhoneNumberCountries, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [Parameters.endpoint, Parameters.nextLink], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listAvailableLocalitiesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PhoneNumberLocalities + bodyMapper: Mappers.PhoneNumberLocalities, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [ Parameters.endpoint, Parameters.countryCode, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listOfferingsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OfferingsResponse + bodyMapper: Mappers.OfferingsResponse, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [ Parameters.endpoint, Parameters.countryCode, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept, Parameters.acceptLanguage], - serializer + serializer, }; const listPhoneNumbersNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PurchasedPhoneNumbers + bodyMapper: Mappers.PurchasedPhoneNumbers, }, default: { - bodyMapper: Mappers.CommunicationErrorResponse - } + bodyMapper: Mappers.CommunicationErrorResponse, + }, }, urlParameters: [Parameters.endpoint, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/operationsInterfaces/phoneNumbers.ts b/sdk/communication/communication-phone-numbers/src/generated/src/operationsInterfaces/phoneNumbers.ts index c6f45a5bb26f..37375d736b80 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/operationsInterfaces/phoneNumbers.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/operationsInterfaces/phoneNumbers.ts @@ -36,7 +36,9 @@ import { PhoneNumbersGetByNumberOptionalParams, PhoneNumbersGetByNumberResponse, PhoneNumbersReleasePhoneNumberOptionalParams, - PhoneNumbersReleasePhoneNumberResponse + PhoneNumbersReleasePhoneNumberResponse, + PhoneNumbersOperatorInformationSearchOptionalParams, + PhoneNumbersOperatorInformationSearchResponse, } from "../models"; /// @@ -51,14 +53,14 @@ export interface PhoneNumbers { listAreaCodes( countryCode: string, phoneNumberType: PhoneNumberType, - options?: PhoneNumbersListAreaCodesOptionalParams + options?: PhoneNumbersListAreaCodesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of supported countries. * @param options The options parameters. */ listAvailableCountries( - options?: PhoneNumbersListAvailableCountriesOptionalParams + options?: PhoneNumbersListAvailableCountriesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of cities or towns with available phone numbers. @@ -67,7 +69,7 @@ export interface PhoneNumbers { */ listAvailableLocalities( countryCode: string, - options?: PhoneNumbersListAvailableLocalitiesOptionalParams + options?: PhoneNumbersListAvailableLocalitiesOptionalParams, ): PagedAsyncIterableIterator; /** * List available offerings of capabilities with rates for the given country. @@ -76,14 +78,14 @@ export interface PhoneNumbers { */ listOfferings( countryCode: string, - options?: PhoneNumbersListOfferingsOptionalParams + options?: PhoneNumbersListOfferingsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of all purchased phone numbers. * @param options The options parameters. */ listPhoneNumbers( - options?: PhoneNumbersListPhoneNumbersOptionalParams + options?: PhoneNumbersListPhoneNumbersOptionalParams, ): PagedAsyncIterableIterator; /** * Search for available phone numbers to purchase. @@ -99,7 +101,7 @@ export interface PhoneNumbers { phoneNumberType: PhoneNumberType, assignmentType: PhoneNumberAssignmentType, capabilities: PhoneNumberCapabilities, - options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams + options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -120,7 +122,7 @@ export interface PhoneNumbers { phoneNumberType: PhoneNumberType, assignmentType: PhoneNumberAssignmentType, capabilities: PhoneNumberCapabilities, - options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams + options?: PhoneNumbersSearchAvailablePhoneNumbersOptionalParams, ): Promise; /** * Gets a phone number search result by search id. @@ -129,14 +131,14 @@ export interface PhoneNumbers { */ getSearchResult( searchId: string, - options?: PhoneNumbersGetSearchResultOptionalParams + options?: PhoneNumbersGetSearchResultOptionalParams, ): Promise; /** * Purchases phone numbers. * @param options The options parameters. */ beginPurchasePhoneNumbers( - options?: PhoneNumbersPurchasePhoneNumbersOptionalParams + options?: PhoneNumbersPurchasePhoneNumbersOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -148,7 +150,7 @@ export interface PhoneNumbers { * @param options The options parameters. */ beginPurchasePhoneNumbersAndWait( - options?: PhoneNumbersPurchasePhoneNumbersOptionalParams + options?: PhoneNumbersPurchasePhoneNumbersOptionalParams, ): Promise; /** * Gets an operation by its id. @@ -157,7 +159,7 @@ export interface PhoneNumbers { */ getOperation( operationId: string, - options?: PhoneNumbersGetOperationOptionalParams + options?: PhoneNumbersGetOperationOptionalParams, ): Promise; /** * Cancels an operation by its id. @@ -166,7 +168,7 @@ export interface PhoneNumbers { */ cancelOperation( operationId: string, - options?: PhoneNumbersCancelOperationOptionalParams + options?: PhoneNumbersCancelOperationOptionalParams, ): Promise; /** * Updates the capabilities of a phone number. @@ -176,7 +178,7 @@ export interface PhoneNumbers { */ beginUpdateCapabilities( phoneNumber: string, - options?: PhoneNumbersUpdateCapabilitiesOptionalParams + options?: PhoneNumbersUpdateCapabilitiesOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -191,7 +193,7 @@ export interface PhoneNumbers { */ beginUpdateCapabilitiesAndWait( phoneNumber: string, - options?: PhoneNumbersUpdateCapabilitiesOptionalParams + options?: PhoneNumbersUpdateCapabilitiesOptionalParams, ): Promise; /** * Gets the details of the given purchased phone number. @@ -201,7 +203,7 @@ export interface PhoneNumbers { */ getByNumber( phoneNumber: string, - options?: PhoneNumbersGetByNumberOptionalParams + options?: PhoneNumbersGetByNumberOptionalParams, ): Promise; /** * Releases a purchased phone number. @@ -210,7 +212,7 @@ export interface PhoneNumbers { */ beginReleasePhoneNumber( phoneNumber: string, - options?: PhoneNumbersReleasePhoneNumberOptionalParams + options?: PhoneNumbersReleasePhoneNumberOptionalParams, ): Promise< PollerLike< PollOperationState, @@ -224,6 +226,15 @@ export interface PhoneNumbers { */ beginReleasePhoneNumberAndWait( phoneNumber: string, - options?: PhoneNumbersReleasePhoneNumberOptionalParams + options?: PhoneNumbersReleasePhoneNumberOptionalParams, ): Promise; + /** + * Searches for number format and operator information for a given list of phone numbers. + * @param phoneNumbers Phone number(s) whose operator information is being requested + * @param options The options parameters. + */ + operatorInformationSearch( + phoneNumbers: string[], + options?: PhoneNumbersOperatorInformationSearchOptionalParams, + ): Promise; } diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/pagingHelper.ts b/sdk/communication/communication-phone-numbers/src/generated/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/pagingHelper.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/phoneNumbersClient.ts b/sdk/communication/communication-phone-numbers/src/generated/src/phoneNumbersClient.ts index 92dac483fee0..313ce282de29 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/phoneNumbersClient.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/phoneNumbersClient.ts @@ -10,7 +10,7 @@ import * as coreClient from "@azure/core-client"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import { PhoneNumbersImpl } from "./operations"; import { PhoneNumbers } from "./operationsInterfaces"; @@ -35,7 +35,7 @@ export class PhoneNumbersClient extends coreClient.ServiceClient { options = {}; } const defaults: PhoneNumbersClientOptionalParams = { - requestContentType: "application/json; charset=utf-8" + requestContentType: "application/json; charset=utf-8", }; const packageDetails = `azsdk-js-communication-phone-numbers/1.2.1`; @@ -48,16 +48,16 @@ export class PhoneNumbersClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, - endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}" + endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}", }; super(optionsWithDefaults); // Parameter assignments this.endpoint = endpoint; // Assigning values to Constant parameters - this.apiVersion = options.apiVersion || "2022-12-01"; + this.apiVersion = options.apiVersion || "2024-03-01-preview"; this.phoneNumbers = new PhoneNumbersImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -71,7 +71,7 @@ export class PhoneNumbersClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -85,7 +85,7 @@ export class PhoneNumbersClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/communication/communication-phone-numbers/src/generated/src/tracing.ts b/sdk/communication/communication-phone-numbers/src/generated/src/tracing.ts index 202b328faa07..1307019cc683 100644 --- a/sdk/communication/communication-phone-numbers/src/generated/src/tracing.ts +++ b/sdk/communication/communication-phone-numbers/src/generated/src/tracing.ts @@ -11,5 +11,5 @@ import { createTracingClient } from "@azure/core-tracing"; export const tracingClient = createTracingClient({ namespace: "Microsoft.Communication", packageName: "@azure/communication-phone-numbers", - packageVersion: "1.2.1" + packageVersion: "1.2.1", }); diff --git a/sdk/communication/communication-phone-numbers/src/models.ts b/sdk/communication/communication-phone-numbers/src/models.ts index 195fecdcb925..60cd97407ede 100644 --- a/sdk/communication/communication-phone-numbers/src/models.ts +++ b/sdk/communication/communication-phone-numbers/src/models.ts @@ -66,6 +66,13 @@ export interface ListLocalitiesOptions extends OperationOptions { administrativeDivision?: string; } +/** + * Additional options for the search operator information request. + */ +export interface SearchOperatorInformationOptions extends OperationOptions { + includeAdditionalOperatorDetails: boolean; +} + /** * Additional options that can be passed to list SIP routes. */ @@ -98,8 +105,14 @@ export { PhoneNumberOffering, PhoneNumberSearchRequest, PhoneNumberSearchResult, + PhoneNumberSearchResultError, PhoneNumberType, PurchasedPhoneNumber, + OperatorDetails, + OperatorInformation, + OperatorInformationOptions, + OperatorInformationResult, + OperatorNumberType, } from "./generated/src/models/"; export { SipRoutingError, SipTrunkRoute } from "./generated/src/siprouting/models"; diff --git a/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts b/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts index 9caf5eb669e6..d04eb5307973 100644 --- a/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts +++ b/sdk/communication/communication-phone-numbers/src/phoneNumbersClient.ts @@ -13,6 +13,7 @@ import { PollOperationState, PollerLike } from "@azure/core-lro"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { PhoneNumbersClient as PhoneNumbersGeneratedClient } from "./generated/src"; import { + OperatorInformationResult, PhoneNumberAreaCode, PhoneNumberCapabilitiesRequest, PhoneNumberCountry, @@ -32,6 +33,7 @@ import { PurchasePhoneNumbersResult, ReleasePhoneNumberResult, SearchAvailablePhoneNumbersRequest, + SearchOperatorInformationOptions, } from "./models"; import { BeginPurchasePhoneNumbersOptions, @@ -538,4 +540,36 @@ export class PhoneNumbersClient { span.end(); } } + + /** + * Search for operator information about specified phone numbers. + * + * @param phoneNumbers - The phone numbers to search. + * @param options - Additional request options. + */ + public searchOperatorInformation( + phoneNumbers: string[], + options: SearchOperatorInformationOptions = { includeAdditionalOperatorDetails: false }, + ): Promise { + const { span, updatedOptions } = tracingClient.startSpan( + "PhoneNumbersClient-searchOperatorInformation", + options, + ); + + try { + return this.client.phoneNumbers.operatorInformationSearch(phoneNumbers, { + ...updatedOptions, + options: { includeAdditionalOperatorDetails: options.includeAdditionalOperatorDetails }, + }); + } catch (e: any) { + span.setStatus({ + status: "error", + error: e, + }); + + throw e; + } finally { + span.end(); + } + } } diff --git a/sdk/communication/communication-phone-numbers/swagger/README.md b/sdk/communication/communication-phone-numbers/swagger/README.md index 71b88d9771d1..827caaaf224c 100644 --- a/sdk/communication/communication-phone-numbers/swagger/README.md +++ b/sdk/communication/communication-phone-numbers/swagger/README.md @@ -7,11 +7,11 @@ ```yaml package-name: "@azure/communication-phone-numbers" description: Phone number configuration client -package-version: 1.2.1 +package-version: 1.3.0-beta.2 license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../src/generated -tag: package-phonenumber-2022-12-01 -require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/edf1d7365a436f0b124c0cecbefd63499e049af0/specification/communication/data-plane/PhoneNumbers/readme.md +tag: package-phonenumber-2024-03-01-preview +require: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b56afb26c5450157006a3a1d9be57bae429051a2/specification/communication/data-plane/PhoneNumbers/readme.md model-date-time-as-string: false optional-response-headers: true payload-flattening-threshold: 10 @@ -63,3 +63,19 @@ directive: transform: > $["x-ms-client-name"] = "AreaCodeItem"; ``` + +``` yaml +directive: + from: swagger-document + where: $.definitions.PhoneNumberSearchResult.properties.error.x-ms-enum + transform: > + $["name"] = "PhoneNumberSearchResultError"; +``` + +``` yaml +directive: + from: swagger-document + where: $.parameters.Endpoint + transform: > + $["format"] = ""; +``` diff --git a/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts b/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts index 4c7f35041476..8f5ee5fb89bb 100644 --- a/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/lro.search.spec.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { matrix } from "@azure/test-utils"; -import { Recorder, env } from "@azure-tools/test-recorder"; +import { Recorder, env, isPlaybackMode } from "@azure-tools/test-recorder"; import { assert } from "chai"; import { Context } from "mocha"; import { PhoneNumbersClient, SearchAvailablePhoneNumbersRequest } from "../../src"; @@ -25,7 +25,7 @@ matrix([[true, false]], async function (useAad) { before(function (this: Context) { const skipPhoneNumbersTests = env.COMMUNICATION_SKIP_INT_PHONENUMBERS_TESTS === "true"; - if (skipPhoneNumbersTests) { + if (skipPhoneNumbersTests && !isPlaybackMode()) { this.skip(); } }); diff --git a/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts b/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts index 5c359b03dfc4..1a6646e58c0a 100644 --- a/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts +++ b/sdk/communication/communication-phone-numbers/test/public/lro.update.spec.ts @@ -18,7 +18,8 @@ matrix([[true, false]], async function (useAad) { let client: PhoneNumbersClient; before(function (this: Context) { - const skipPhoneNumbersTests = env.COMMUNICATION_SKIP_INT_PHONENUMBERS_TESTS === "true"; + const skipPhoneNumbersTests = + !isPlaybackMode() && env.COMMUNICATION_SKIP_INT_PHONENUMBERS_TESTS === "true"; const skipUpdateCapabilitiesLiveTests = !isPlaybackMode() && env.SKIP_UPDATE_CAPABILITIES_LIVE_TESTS === "true"; diff --git a/sdk/communication/communication-phone-numbers/test/public/numberLookup.spec.ts b/sdk/communication/communication-phone-numbers/test/public/numberLookup.spec.ts new file mode 100644 index 000000000000..78170e8c6f30 --- /dev/null +++ b/sdk/communication/communication-phone-numbers/test/public/numberLookup.spec.ts @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { Recorder } from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; +import { PhoneNumbersClient } from "../../src"; +import { createRecordedClient } from "./utils/recordedClient"; +import { getPhoneNumber } from "./utils/testPhoneNumber"; + +describe(`PhoneNumbersClient - look up phone number`, function () { + let recorder: Recorder; + let client: PhoneNumbersClient; + + beforeEach(async function (this: Context) { + ({ client, recorder } = await createRecordedClient(this)); + }); + + afterEach(async function (this: Context) { + if (!this.currentTest?.isPending()) { + await recorder.stop(); + } + }); + + it("can look up a phone number", async function (this: Context) { + const phoneNumbers = [getPhoneNumber()]; + const operatorInformation = await client.searchOperatorInformation(phoneNumbers); + + const resultPhoneNumber = operatorInformation.values + ? operatorInformation.values[0].phoneNumber + : ""; + assert.strictEqual(resultPhoneNumber, phoneNumbers[0]); + }).timeout(60000); + + it("errors if multiple phone numbers are requested", async function () { + const phoneNumbers = [getPhoneNumber(), getPhoneNumber()]; + try { + await client.searchOperatorInformation(phoneNumbers); + } catch (error: any) { + assert.strictEqual(error.code, "BadRequest"); + assert.strictEqual(error.message, "Can only accept one phoneNumber"); + } + }).timeout(60000); + + it("respects includeAdditionalOperatorDetails option", async function (this: Context) { + const phoneNumbers = [getPhoneNumber()]; + + let operatorInformation = await client.searchOperatorInformation(phoneNumbers, { + includeAdditionalOperatorDetails: false, + }); + let resultPhoneNumber = operatorInformation.values + ? operatorInformation.values[0].phoneNumber + : ""; + assert.strictEqual(resultPhoneNumber, phoneNumbers[0]); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].nationalFormat : null, + ); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].internationalFormat : null, + ); + assert.isNull(operatorInformation.values ? operatorInformation.values[0].isoCountryCode : null); + assert.isNull(operatorInformation.values ? operatorInformation.values[0].numberType : null); + assert.isNull( + operatorInformation.values ? operatorInformation.values[0].operatorDetails : null, + ); + + operatorInformation = await client.searchOperatorInformation(phoneNumbers, { + includeAdditionalOperatorDetails: true, + }); + resultPhoneNumber = operatorInformation.values ? operatorInformation.values[0].phoneNumber : ""; + assert.strictEqual(resultPhoneNumber, phoneNumbers[0]); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].nationalFormat : null, + ); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].internationalFormat : null, + ); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].isoCountryCode : null, + ); + assert.isNotNull(operatorInformation.values ? operatorInformation.values[0].numberType : null); + assert.isNotNull( + operatorInformation.values ? operatorInformation.values[0].operatorDetails : null, + ); + }).timeout(60000); +}); diff --git a/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts b/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts index 66686791e282..7f388f056f25 100644 --- a/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts +++ b/sdk/communication/communication-phone-numbers/test/public/utils/recordedClient.ts @@ -29,14 +29,11 @@ export interface RecordedClient { const envSetupForPlayback: { [k: string]: string } = { COMMUNICATION_LIVETEST_STATIC_CONNECTION_STRING: "endpoint=https://endpoint/;accesskey=banana", - INCLUDE_PHONENUMBER_LIVE_TESTS: "false", - SKIP_UPDATE_CAPABILITIES_LIVE_TESTS: "false", COMMUNICATION_ENDPOINT: "https://endpoint/", AZURE_CLIENT_ID: "SomeClientId", AZURE_CLIENT_SECRET: "azure_client_secret", AZURE_TENANT_ID: "SomeTenantId", AZURE_PHONE_NUMBER: "+14155550100", - COMMUNICATION_SKIP_INT_PHONENUMBERS_TESTS: "false", AZURE_USERAGENT_OVERRIDE: "fake-useragent", }; From ded4957ec42791c84753bbf30bbb23ef3fe5ebde Mon Sep 17 00:00:00 2001 From: Harsha Nalluru Date: Thu, 14 Mar 2024 16:21:31 -0700 Subject: [PATCH 45/57] [dev-tool] Fix lint errors (#28930) ### Packages impacted by this PR `@azure/dev-tool` ### Issues associated with this PR Fixing lint errors in `dev-tool` to unblock https://github.com/Azure/azure-sdk-for-js/pull/28916 and [js - eslint-plugin - ci](https://dev.azure.com/azure-sdk/public/_build/results?buildId=3595289&view=logs&j=58292cae-3c74-5729-4cfd-9ceee65fe129&t=5e44d412-b571-5a43-3bb4-5c5145c0a5aa) --- .../test/customization/classes.spec.ts | 34 +++++++++++-------- .../test/customization/interfaces.spec.ts | 8 +++-- 2 files changed, 26 insertions(+), 16 deletions(-) diff --git a/common/tools/dev-tool/test/customization/classes.spec.ts b/common/tools/dev-tool/test/customization/classes.spec.ts index 30aae9c76856..df8eff4b8674 100644 --- a/common/tools/dev-tool/test/customization/classes.spec.ts +++ b/common/tools/dev-tool/test/customization/classes.spec.ts @@ -236,8 +236,9 @@ class MyClass {} parameters: [{ name: "foo", type: "string" }], }); augmentConstructor(customConstructor, originalClass!); - - assert.lengthOf(originalFile.getClass("MyClass")?.getConstructors()!, 1); + const constructorDeclarations = originalFile.getClass("MyClass")?.getConstructors() + assert.isDefined(constructorDeclarations); + if (constructorDeclarations) assert.lengthOf(constructorDeclarations, 1); }); it("should replace the original constructor with the custom constructor", () => { @@ -249,10 +250,13 @@ class MyClass {} }); augmentConstructor(customConstructor, originalClass!); - assert.lengthOf(originalFile.getClass("MyClass")?.getConstructors()!, 1); - assert.isDefined(originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("foo")); + const constructorDeclarations = originalFile.getClass("MyClass")?.getConstructors() + assert.isDefined(constructorDeclarations); + if (!constructorDeclarations) assert.fail("constructorDeclarations is undefined") + assert.lengthOf(constructorDeclarations, 1); + assert.isDefined(constructorDeclarations[0].getParameter("foo")); assert.isUndefined( - originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("bar"), + constructorDeclarations[0].getParameter("bar"), ); }); @@ -285,32 +289,34 @@ class MyClass {} augmentConstructor(customConstructor, originalClass!); - assert.lengthOf(originalFile.getClass("MyClass")?.getConstructors()!, 1); - assert.equal(originalFile.getClass("MyClass")?.getConstructors()[0].getJsDocs().length, 1); + const constructorDeclarations = originalFile.getClass("MyClass")?.getConstructors() + if (!constructorDeclarations) assert.fail("constructorDeclarations is undefined") + assert.lengthOf(constructorDeclarations, 1); + assert.equal(constructorDeclarations[0].getJsDocs().length, 1); assert.equal( - originalFile.getClass("MyClass")?.getConstructors()[0].getJsDocs()[0].getDescription(), + constructorDeclarations[0].getJsDocs()[0].getDescription(), "Customized docs", ); assert.isDefined( - originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("endpoint"), + constructorDeclarations[0].getParameter("endpoint"), ); assert.isUndefined( - originalFile.getClass("MyClass")?.getConstructors()[0].getParameter("baseUrl"), + constructorDeclarations[0].getParameter("baseUrl"), ); assert.include( - originalFile.getClass("MyClass")?.getConstructors()[0].getText(), + constructorDeclarations[0].getText(), "console.log('custom');", ); assert.include( - originalFile.getClass("MyClass")?.getConstructors()[0].getText(), + constructorDeclarations[0].getText(), "console.log('original');", ); assert.notInclude( - originalFile.getClass("MyClass")?.getConstructors()[0].getText(), + constructorDeclarations[0].getText(), "// @azsdk-constructor-end", ); assert.include( - originalFile.getClass("MyClass")?.getConstructors()[0].getText(), + constructorDeclarations[0].getText(), "console.log('finish custom');", ); }); diff --git a/common/tools/dev-tool/test/customization/interfaces.spec.ts b/common/tools/dev-tool/test/customization/interfaces.spec.ts index bcc208f86b25..5e2fced8bbb5 100644 --- a/common/tools/dev-tool/test/customization/interfaces.spec.ts +++ b/common/tools/dev-tool/test/customization/interfaces.spec.ts @@ -39,7 +39,9 @@ describe("Interfaces", () => { augmentInterface(customInterface, originalInterface, originalFile); assert.isDefined(originalFile.getInterface("myInterface")); - assert.lengthOf(originalFile.getInterface("myInterface")?.getProperties()!, 2); + const props = originalFile.getInterface("myInterface")?.getProperties() + if (!props) assert.fail("myInterface#getProperties() is undefined") + assert.lengthOf(props, 2); assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("foo")); assert.equal( originalFile.getInterface("myInterface")?.getProperty("foo")?.getType().getText(), @@ -67,7 +69,9 @@ describe("Interfaces", () => { augmentInterface(customInterface, originalInterface, originalFile); assert.isDefined(originalFile.getInterface("myInterface")); - assert.lengthOf(originalFile.getInterface("myInterface")?.getProperties()!, 2); + const props = originalFile.getInterface("myInterface")?.getProperties(); + if (!props) assert.fail("myInterface#getProperties() is undefined") + assert.lengthOf(props, 2); assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("foo")); assert.isDefined(originalFile.getInterface("myInterface")?.getProperty("baz")); From c6b79e3f1bfd106825ba1e99bbab192eaeea146f Mon Sep 17 00:00:00 2001 From: Minh-Anh Phan <111523473+minhanh-phan@users.noreply.github.com> Date: Thu, 14 Mar 2024 16:36:38 -0700 Subject: [PATCH 46/57] [OpenAI]add index property (#28910) ### Packages impacted by this PR @azure/openai ### Issues associated with this PR #28889 --- sdk/openai/openai/assets.json | 2 +- sdk/openai/openai/review/openai.api.md | 1 + .../sources/customizations/models/models.ts | 2 ++ sdk/openai/openai/src/models/models.ts | 2 ++ .../openai/test/public/completions.spec.ts | 34 +++++++++++++++++++ .../openai/test/public/utils/asserts.ts | 1 + 6 files changed, 41 insertions(+), 1 deletion(-) diff --git a/sdk/openai/openai/assets.json b/sdk/openai/openai/assets.json index 53d7b0049f59..0fba4f5078f9 100644 --- a/sdk/openai/openai/assets.json +++ b/sdk/openai/openai/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/openai/openai", - "Tag": "js/openai/openai_6b73e03317" + "Tag": "js/openai/openai_3df73efcf2" } diff --git a/sdk/openai/openai/review/openai.api.md b/sdk/openai/openai/review/openai.api.md index e6c1dcce4230..47152130509c 100644 --- a/sdk/openai/openai/review/openai.api.md +++ b/sdk/openai/openai/review/openai.api.md @@ -219,6 +219,7 @@ export interface ChatCompletions { export interface ChatCompletionsFunctionToolCall { function: FunctionCall; id: string; + index?: number; type: "function"; } diff --git a/sdk/openai/openai/sources/customizations/models/models.ts b/sdk/openai/openai/sources/customizations/models/models.ts index 40539b195492..4381b9a33d23 100644 --- a/sdk/openai/openai/sources/customizations/models/models.ts +++ b/sdk/openai/openai/sources/customizations/models/models.ts @@ -287,6 +287,8 @@ export interface ChatCompletionsFunctionToolCall { function: FunctionCall; /** The ID of the tool call. */ id: string; + /** The index of the tool call. */ + index?: number; } /** diff --git a/sdk/openai/openai/src/models/models.ts b/sdk/openai/openai/src/models/models.ts index adcbd83dcfbb..647feb0ec7f7 100644 --- a/sdk/openai/openai/src/models/models.ts +++ b/sdk/openai/openai/src/models/models.ts @@ -490,6 +490,8 @@ export interface ChatCompletionsFunctionToolCall { function: FunctionCall; /** The ID of the tool call. */ id: string; + /** The index of the tool call. */ + index?: number; } /** diff --git a/sdk/openai/openai/test/public/completions.spec.ts b/sdk/openai/openai/test/public/completions.spec.ts index cbef93243cf7..963af5a7d3e7 100644 --- a/sdk/openai/openai/test/public/completions.spec.ts +++ b/sdk/openai/openai/test/public/completions.spec.ts @@ -514,6 +514,40 @@ describe("OpenAI", function () { ); }); + it("calls toolCalls", async function () { + updateWithSucceeded( + await withDeployments( + getSucceeded( + authMethod, + deployments, + models, + chatCompletionDeployments, + chatCompletionModels, + ), + async (deploymentName) => + bufferAsyncIterable( + await client.streamChatCompletions( + deploymentName, + [{ role: "user", content: "What's the weather like in Boston?" }], + { + tools: [{ type: "function", function: getCurrentWeather }], + }, + ), + ), + (res) => + assertChatCompletionsList(res, { + functions: true, + // The API returns an empty choice in the first event for some + // reason. This should be fixed in the API. + allowEmptyChoices: true, + }), + ), + chatCompletionDeployments, + chatCompletionModels, + authMethod, + ); + }); + it("bring your own data", async function () { if (authMethod === "OpenAIKey") { this.skip(); diff --git a/sdk/openai/openai/test/public/utils/asserts.ts b/sdk/openai/openai/test/public/utils/asserts.ts index fe242cfd8bc0..4820838c2c18 100644 --- a/sdk/openai/openai/test/public/utils/asserts.ts +++ b/sdk/openai/openai/test/public/utils/asserts.ts @@ -180,6 +180,7 @@ function assertToolCall( ): void { assertIf(!stream, functionCall.type, assert.isString); assertIf(!stream, functionCall.id, assert.isString); + assertIf(Boolean(stream), functionCall.index, assert.isNumber); switch (functionCall.type) { case "function": assertFunctionCall(functionCall.function, { stream }); From c7b91e5eff5f38c232454708e69b35ace1583e3d Mon Sep 17 00:00:00 2001 From: Hector Hernandez <39923391+hectorhdzg@users.noreply.github.com> Date: Thu, 14 Mar 2024 17:04:41 -0700 Subject: [PATCH 47/57] [Azure Monitor OpenTelemetry] Update swagger definition file for Quickpulse (#28931) ### Packages impacted by this PR @azure/monitor-opentelemetry --- .../src/generated/models/index.ts | 467 +++++++++--------- .../src/generated/models/mappers.ts | 167 ++++--- .../src/generated/models/parameters.ts | 51 +- .../src/generated/quickpulseClient.ts | 153 +++--- .../src/metrics/quickpulse/export/exporter.ts | 12 +- .../src/metrics/quickpulse/export/sender.ts | 36 +- .../src/metrics/quickpulse/liveMetrics.ts | 30 +- .../src/metrics/quickpulse/types.ts | 4 +- .../src/metrics/quickpulse/utils.ts | 16 +- .../monitor-opentelemetry/swagger/README.md | 2 +- 10 files changed, 504 insertions(+), 434 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry/src/generated/models/index.ts b/sdk/monitor/monitor-opentelemetry/src/generated/models/index.ts index 88544509cecb..a4ec632df6b4 100644 --- a/sdk/monitor/monitor-opentelemetry/src/generated/models/index.ts +++ b/sdk/monitor/monitor-opentelemetry/src/generated/models/index.ts @@ -10,62 +10,62 @@ import * as coreClient from "@azure/core-client"; export type DocumentIngressUnion = | DocumentIngress - | Request - | RemoteDependency - | Exception | Event + | Exception + | RemoteDependency + | Request | Trace; -/** Monitoring data point coming from SDK, which includes metrics, documents and other metadata info. */ +/** Monitoring data point coming from the client, which includes metrics, documents and other metadata info. */ export interface MonitoringDataPoint { - /** AI SDK version. */ - version?: string; - /** Version/generation of the data contract (MonitoringDataPoint) between SDK and QuickPulse. */ - invariantVersion?: number; - /** Service instance name where AI SDK lives. */ - instance?: string; + /** Application Insights SDK version. */ + version: string; + /** Version/generation of the data contract (MonitoringDataPoint) between SDK and Live Metrics. */ + invariantVersion: number; + /** Service instance name where Application Insights SDK lives. */ + instance: string; /** Service role name. */ - roleName?: string; - /** Computer name where AI SDK lives. */ - machineName?: string; - /** Identifies an AI SDK as a trusted agent to report metrics and documents. */ - streamId?: string; + roleName: string; + /** Computer name where Application Insights SDK lives. */ + machineName: string; + /** Identifies an Application Insights SDK as a trusted agent to report metrics and documents. */ + streamId: string; /** Data point generation timestamp. */ timestamp?: Date; - /** Timestamp when SDK transmits the metrics and documents to QuickPulse. A 8-byte long type of ticks. */ + /** Timestamp when the client transmits the metrics and documents to Live Metrics. */ transmissionTime?: Date; /** True if the current application is an Azure Web App. */ - isWebApp?: boolean; + isWebApp: boolean; /** True if performance counters collection is supported. */ - performanceCollectionSupported?: boolean; - /** An array of meric data points. */ + performanceCollectionSupported: boolean; + /** An array of metric data points. */ metrics?: MetricPoint[]; /** An array of documents of a specific type {Request}, {RemoteDependency}, {Exception}, {Event}, or {Trace} */ documents?: DocumentIngressUnion[]; /** An array of top cpu consumption data point. */ topCpuProcesses?: ProcessCpuData[]; - /** An array of error while parsing and applying . */ + /** An array of error while SDK parses and applies the {CollectionConfigurationInfo} provided by Live Metrics. */ collectionConfigurationErrors?: CollectionConfigurationError[]; } /** Metric data point. */ export interface MetricPoint { /** Metric name. */ - name?: string; + name: string; /** Metric value. */ - value?: number; + value: number; /** Metric weight. */ - weight?: number; + weight: number; } /** Base class of the specific document types. */ export interface DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ documentType: - | "Request" - | "RemoteDependency" - | "Exception" | "Event" + | "Exception" + | "RemoteDependency" + | "Request" | "Trace"; /** An array of document streaming ids. Each id identifies a flow of documents customized by UX customers. */ documentStreamIds?: string[]; @@ -73,88 +73,95 @@ export interface DocumentIngress { properties?: KeyValuePairString[]; } +/** Key-value pair of string and string. */ export interface KeyValuePairString { - key?: string; - value?: string; + /** Key of the key-value pair. */ + key: string; + /** Value of the key-value pair. */ + value: string; } /** CPU consumption datapoint. */ export interface ProcessCpuData { /** Process name. */ - processName?: string; + processName: string; /** CPU consumption percentage. */ - cpuPercentage?: number; + cpuPercentage: number; } -/** Represents an error while SDK parsing and applying an instance of CollectionConfigurationInfo. */ +/** Represents an error while SDK parses and applies an instance of CollectionConfigurationInfo. */ export interface CollectionConfigurationError { - /** Collection configuration error type reported by SDK. */ - collectionConfigurationErrorType?: CollectionConfigurationErrorType; + /** Error type. */ + collectionConfigurationErrorType: CollectionConfigurationErrorType; /** Error message. */ - message?: string; - /** Exception that leads to the creation of the configuration error. */ - fullException?: string; + message: string; + /** Exception that led to the creation of the configuration error. */ + fullException: string; /** Custom properties to add more information to the error. */ - data?: KeyValuePairString[]; + data: KeyValuePairString[]; } -/** Represents the collection configuration - a customizable description of performance counters, metrics, and full telemetry documents to be collected by the SDK. */ +/** Represents the collection configuration - a customizable description of performance counters, metrics, and full telemetry documents to be collected by the client SDK. */ export interface CollectionConfigurationInfo { /** An encoded string that indicates whether the collection configuration is changed. */ - etag?: string; + eTag: string; /** An array of metric configuration info. */ - metrics?: DerivedMetricInfo[]; + metrics: DerivedMetricInfo[]; /** An array of document stream configuration info. */ - documentStreams?: DocumentStreamInfo[]; - /** Control document quotas for QuickPulse */ + documentStreams: DocumentStreamInfo[]; + /** Controls document quotas to be sent to Live Metrics. */ quotaInfo?: QuotaConfigurationInfo; } /** A metric configuration set by UX to scope the metrics it's interested in. */ export interface DerivedMetricInfo { /** metric configuration identifier. */ - id?: string; + id: string; /** Telemetry type. */ - telemetryType?: string; + telemetryType: string; /** A collection of filters to scope metrics that UX needs. */ - filterGroups?: FilterConjunctionGroupInfo[]; + filterGroups: FilterConjunctionGroupInfo[]; /** Telemetry's metric dimension whose value is to be aggregated. Example values: Duration, Count(),... */ - projection?: string; - /** Aggregation type. */ - aggregation?: DerivedMetricInfoAggregation; + projection: string; + /** Aggregation type. This is the aggregation done from everything within a single server. */ + aggregation: AggregationType; + /** Aggregation type. This Aggregation is done across the values for all the servers taken together. */ + backEndAggregation: AggregationType; } /** An AND-connected group of FilterInfo objects. */ export interface FilterConjunctionGroupInfo { - filters?: FilterInfo[]; + /** An array of filters. */ + filters: FilterInfo[]; } /** A filter set on UX */ export interface FilterInfo { /** dimension name of the filter */ - fieldName?: string; + fieldName: string; /** Operator of the filter */ - predicate?: FilterInfoPredicate; - comparand?: string; + predicate: PredicateType; + /** Comparand of the filter */ + comparand: string; } /** Configurations/filters set by UX to scope the document/telemetry it's interested in. */ export interface DocumentStreamInfo { /** Identifier of the document stream initiated by a UX. */ - id?: string; + id: string; /** Gets or sets an OR-connected collection of filter groups. */ - documentFilterGroups?: DocumentFilterConjunctionGroupInfo[]; + documentFilterGroups: DocumentFilterConjunctionGroupInfo[]; } -/** A collection of filters for a specificy telemetry type. */ +/** A collection of filters for a specific telemetry type. */ export interface DocumentFilterConjunctionGroupInfo { /** Telemetry type. */ - telemetryType?: DocumentFilterConjunctionGroupInfoTelemetryType; - /** An AND-connected group of FilterInfo objects. */ - filters?: FilterConjunctionGroupInfo; + telemetryType: TelemetryType; + /** An array of filter groups. */ + filters: FilterConjunctionGroupInfo; } -/** Control document quotas for QuickPulse */ +/** Controls document quotas to be sent to Live Metrics. */ export interface QuotaConfigurationInfo { /** Initial quota */ initialQuota?: number; @@ -164,41 +171,45 @@ export interface QuotaConfigurationInfo { quotaAccrualRatePerSec: number; } -/** Optional http response body, whose existance carries additional error descriptions. */ +/** Optional http response body, whose existence carries additional error descriptions. */ export interface ServiceError { - /** A guid of the request that triggers the service error. */ - requestId?: string; + /** A globally unique identifier to identify the diagnostic context. It defaults to the empty GUID. */ + requestId: string; /** Service error response date time. */ - responseDateTime?: Date; + responseDateTime: string; /** Error code. */ - code?: string; + code: string; /** Error message. */ - message?: string; + message: string; /** Message of the exception that triggers the error response. */ - exception?: string; + exception: string; } -/** Request type document */ -export interface Request extends DocumentIngress { +/** Event document type. */ +export interface Event extends DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ - documentType: "Request"; - /** Name of the request, e.g., 'GET /values/{id}'. */ + documentType: "Event"; + /** Event name. */ name?: string; - /** Request URL with all query string parameters. */ - url?: string; - /** Result of a request execution. For http requestss, it could be some HTTP status code. */ - responseCode?: string; - /** Request duration in ISO 8601 duration format, i.e., P[n]Y[n]M[n]DT[n]H[n]M[n]S or P[n]W. */ - duration?: string; } -/** Dependency type document */ +/** Exception document type. */ +export interface Exception extends DocumentIngress { + /** Polymorphic discriminator, which specifies the different types this object can be */ + documentType: "Exception"; + /** Exception type name. */ + exceptionType?: string; + /** Exception message. */ + exceptionMessage?: string; +} + +/** RemoteDependency document type. */ export interface RemoteDependency extends DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ documentType: "RemoteDependency"; - /** Name of the command initiated with this dependency call, e.g., GET /username */ + /** Name of the command initiated with this dependency call, e.g., GET /username. */ name?: string; - /** URL of the dependency call to the target, with all query string parameters */ + /** URL of the dependency call to the target, with all query string parameters. */ commandName?: string; /** Result code of a dependency call. Examples are SQL error code and HTTP status code. */ resultCode?: string; @@ -206,112 +217,105 @@ export interface RemoteDependency extends DocumentIngress { duration?: string; } -/** Exception type document */ -export interface Exception extends DocumentIngress { - /** Polymorphic discriminator, which specifies the different types this object can be */ - documentType: "Exception"; - /** Exception type name. */ - exceptionType?: string; - /** Exception message. */ - exceptionMessage?: string; -} - -/** Event type document. */ -export interface Event extends DocumentIngress { +/** Request document type. */ +export interface Request extends DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ - documentType: "Event"; - /** Event name. */ + documentType: "Request"; + /** Name of the request, e.g., 'GET /values/{id}'. */ name?: string; + /** Request URL with all query string parameters. */ + url?: string; + /** Result of a request execution. For http requests, it could be some HTTP status code. */ + responseCode?: string; + /** Request duration in ISO 8601 duration format, i.e., P[n]Y[n]M[n]DT[n]H[n]M[n]S or P[n]W. */ + duration?: string; } -/** Trace type name. */ +/** Trace document type. */ export interface Trace extends DocumentIngress { /** Polymorphic discriminator, which specifies the different types this object can be */ documentType: "Trace"; - /** Trace message */ + /** Trace message. */ message?: string; } -/** Defines headers for QuickpulseClient_ping operation. */ -export interface QuickpulseClientPingHeaders { - /** A boolean flag indicating whether there are active user sessions 'watching' the SDK's ikey. If true, SDK must start collecting data and post'ing it to QuickPulse. Otherwise, SDK must keep ping'ing. */ +/** Defines headers for QuickpulseClient_isSubscribed operation. */ +export interface QuickpulseClientIsSubscribedHeaders { + /** A boolean flag indicating whether there are active user sessions 'watching' the instrumentation key. If true, the client must start collecting data and posting it to Live Metrics. Otherwise, the client must keep pinging. */ xMsQpsSubscribed?: string; /** An encoded string that indicates whether the collection configuration is changed. */ xMsQpsConfigurationEtag?: string; - /** Recommended time (in milliseconds) before an SDK should ping the service again. This header exists only when ikey is not watched by UX. */ - xMsQpsServicePollingIntervalHint?: number; - /** Contains a URI of the service endpoint that an SDK must permanently use for the particular resource. This header exists only when SDK is talking to QuickPulse's global endpoint. */ + /** Recommended time (in milliseconds) before the client should ping the service again. This header exists only when the instrumentation key is not subscribed to. */ + xMsQpsServicePollingIntervalHint?: string; + /** Contains a URI of the service endpoint that the client must permanently use for the particular resource. This header exists only when the client is talking to Live Metrics global endpoint. */ xMsQpsServiceEndpointRedirectV2?: string; } -/** Defines headers for QuickpulseClient_post operation. */ -export interface QuickpulseClientPostHeaders { - /** Tells SDK whether the input ikey is subscribed to by UX. */ +/** Defines headers for QuickpulseClient_publish operation. */ +export interface QuickpulseClientPublishHeaders { + /** Tells the client whether the input instrumentation key is subscribed to. */ xMsQpsSubscribed?: string; /** An encoded string that indicates whether the collection configuration is changed. */ xMsQpsConfigurationEtag?: string; - /** A 8-byte long type of milliseconds QuickPulse suggests SDK polling period. */ - xMsQpsServicePollingIntervalHint?: number; - /** All official SDKs now uses v2 header. Use v2 instead. */ - xMsQpsServiceEndpointRedirect?: string; - /** URI of the service endpoint that an SDK must permanently use for the particular resource. */ - xMsQpsServiceEndpointRedirectV2?: string; } -/** Known values of {@link DocumentIngressDocumentType} that the service accepts. */ -export enum KnownDocumentIngressDocumentType { - /** Request */ +/** Known values of {@link DocumentType} that the service accepts. */ +export enum KnownDocumentType { + /** Represents a request telemetry type. */ Request = "Request", - /** RemoteDependency */ + /** Represents a remote dependency telemetry type. */ RemoteDependency = "RemoteDependency", - /** Exception */ + /** Represents an exception telemetry type. */ Exception = "Exception", - /** Event */ + /** Represents an event telemetry type. */ Event = "Event", - /** Trace */ + /** Represents a trace telemetry type. */ Trace = "Trace", + /** Represents an unknown telemetry type. */ + Unknown = "Unknown", } /** - * Defines values for DocumentIngressDocumentType. \ - * {@link KnownDocumentIngressDocumentType} can be used interchangeably with DocumentIngressDocumentType, + * Defines values for DocumentType. \ + * {@link KnownDocumentType} can be used interchangeably with DocumentType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Request** \ - * **RemoteDependency** \ - * **Exception** \ - * **Event** \ - * **Trace** + * **Request**: Represents a request telemetry type. \ + * **RemoteDependency**: Represents a remote dependency telemetry type. \ + * **Exception**: Represents an exception telemetry type. \ + * **Event**: Represents an event telemetry type. \ + * **Trace**: Represents a trace telemetry type. \ + * **Unknown**: Represents an unknown telemetry type. */ -export type DocumentIngressDocumentType = string; +export type DocumentType = string; /** Known values of {@link CollectionConfigurationErrorType} that the service accepts. */ export enum KnownCollectionConfigurationErrorType { - /** Unknown */ + /** Unknown error type. */ Unknown = "Unknown", - /** PerformanceCounterParsing */ + /** Performance counter parsing error. */ PerformanceCounterParsing = "PerformanceCounterParsing", - /** PerformanceCounterUnexpected */ + /** Performance counter unexpected error. */ PerformanceCounterUnexpected = "PerformanceCounterUnexpected", - /** PerformanceCounterDuplicateIds */ + /** Performance counter duplicate ids. */ PerformanceCounterDuplicateIds = "PerformanceCounterDuplicateIds", - /** DocumentStreamDuplicateIds */ + /** Document stream duplication ids. */ DocumentStreamDuplicateIds = "DocumentStreamDuplicateIds", - /** DocumentStreamFailureToCreate */ + /** Document stream failed to create. */ DocumentStreamFailureToCreate = "DocumentStreamFailureToCreate", - /** DocumentStreamFailureToCreateFilterUnexpected */ + /** Document stream failed to create filter unexpectedly. */ DocumentStreamFailureToCreateFilterUnexpected = "DocumentStreamFailureToCreateFilterUnexpected", - /** MetricDuplicateIds */ + /** Metric duplicate ids. */ MetricDuplicateIds = "MetricDuplicateIds", - /** MetricTelemetryTypeUnsupported */ + /** Metric telemetry type unsupported. */ MetricTelemetryTypeUnsupported = "MetricTelemetryTypeUnsupported", - /** MetricFailureToCreate */ + /** Metric failed to create. */ MetricFailureToCreate = "MetricFailureToCreate", - /** MetricFailureToCreateFilterUnexpected */ + /** Metric failed to create filter unexpectedly. */ MetricFailureToCreateFilterUnexpected = "MetricFailureToCreateFilterUnexpected", - /** FilterFailureToCreateUnexpected */ + /** Filter failed to create unexpectedly. */ FilterFailureToCreateUnexpected = "FilterFailureToCreateUnexpected", - /** CollectionConfigurationFailureToCreateUnexpected */ + /** Collection configuration failed to create unexpectedly. */ CollectionConfigurationFailureToCreateUnexpected = "CollectionConfigurationFailureToCreateUnexpected", } @@ -320,162 +324,159 @@ export enum KnownCollectionConfigurationErrorType { * {@link KnownCollectionConfigurationErrorType} can be used interchangeably with CollectionConfigurationErrorType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown** \ - * **PerformanceCounterParsing** \ - * **PerformanceCounterUnexpected** \ - * **PerformanceCounterDuplicateIds** \ - * **DocumentStreamDuplicateIds** \ - * **DocumentStreamFailureToCreate** \ - * **DocumentStreamFailureToCreateFilterUnexpected** \ - * **MetricDuplicateIds** \ - * **MetricTelemetryTypeUnsupported** \ - * **MetricFailureToCreate** \ - * **MetricFailureToCreateFilterUnexpected** \ - * **FilterFailureToCreateUnexpected** \ - * **CollectionConfigurationFailureToCreateUnexpected** + * **Unknown**: Unknown error type. \ + * **PerformanceCounterParsing**: Performance counter parsing error. \ + * **PerformanceCounterUnexpected**: Performance counter unexpected error. \ + * **PerformanceCounterDuplicateIds**: Performance counter duplicate ids. \ + * **DocumentStreamDuplicateIds**: Document stream duplication ids. \ + * **DocumentStreamFailureToCreate**: Document stream failed to create. \ + * **DocumentStreamFailureToCreateFilterUnexpected**: Document stream failed to create filter unexpectedly. \ + * **MetricDuplicateIds**: Metric duplicate ids. \ + * **MetricTelemetryTypeUnsupported**: Metric telemetry type unsupported. \ + * **MetricFailureToCreate**: Metric failed to create. \ + * **MetricFailureToCreateFilterUnexpected**: Metric failed to create filter unexpectedly. \ + * **FilterFailureToCreateUnexpected**: Filter failed to create unexpectedly. \ + * **CollectionConfigurationFailureToCreateUnexpected**: Collection configuration failed to create unexpectedly. */ export type CollectionConfigurationErrorType = string; -/** Known values of {@link FilterInfoPredicate} that the service accepts. */ -export enum KnownFilterInfoPredicate { - /** Equal */ +/** Known values of {@link PredicateType} that the service accepts. */ +export enum KnownPredicateType { + /** Represents an equality predicate. */ Equal = "Equal", - /** NotEqual */ + /** Represents a not-equal predicate. */ NotEqual = "NotEqual", - /** LessThan */ + /** Represents a less-than predicate. */ LessThan = "LessThan", - /** GreaterThan */ + /** Represents a greater-than predicate. */ GreaterThan = "GreaterThan", - /** LessThanOrEqual */ + /** Represents a less-than-or-equal predicate. */ LessThanOrEqual = "LessThanOrEqual", - /** GreaterThanOrEqual */ + /** Represents a greater-than-or-equal predicate. */ GreaterThanOrEqual = "GreaterThanOrEqual", - /** Contains */ + /** Represents a contains predicate. */ Contains = "Contains", - /** DoesNotContain */ + /** Represents a does-not-contain predicate. */ DoesNotContain = "DoesNotContain", } /** - * Defines values for FilterInfoPredicate. \ - * {@link KnownFilterInfoPredicate} can be used interchangeably with FilterInfoPredicate, + * Defines values for PredicateType. \ + * {@link KnownPredicateType} can be used interchangeably with PredicateType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Equal** \ - * **NotEqual** \ - * **LessThan** \ - * **GreaterThan** \ - * **LessThanOrEqual** \ - * **GreaterThanOrEqual** \ - * **Contains** \ - * **DoesNotContain** + * **Equal**: Represents an equality predicate. \ + * **NotEqual**: Represents a not-equal predicate. \ + * **LessThan**: Represents a less-than predicate. \ + * **GreaterThan**: Represents a greater-than predicate. \ + * **LessThanOrEqual**: Represents a less-than-or-equal predicate. \ + * **GreaterThanOrEqual**: Represents a greater-than-or-equal predicate. \ + * **Contains**: Represents a contains predicate. \ + * **DoesNotContain**: Represents a does-not-contain predicate. */ -export type FilterInfoPredicate = string; +export type PredicateType = string; -/** Known values of {@link DerivedMetricInfoAggregation} that the service accepts. */ -export enum KnownDerivedMetricInfoAggregation { - /** Avg */ +/** Known values of {@link AggregationType} that the service accepts. */ +export enum KnownAggregationType { + /** Average */ Avg = "Avg", /** Sum */ Sum = "Sum", - /** Min */ + /** Minimum */ Min = "Min", - /** Max */ + /** Maximum */ Max = "Max", } /** - * Defines values for DerivedMetricInfoAggregation. \ - * {@link KnownDerivedMetricInfoAggregation} can be used interchangeably with DerivedMetricInfoAggregation, + * Defines values for AggregationType. \ + * {@link KnownAggregationType} can be used interchangeably with AggregationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Avg** \ - * **Sum** \ - * **Min** \ - * **Max** + * **Avg**: Average \ + * **Sum**: Sum \ + * **Min**: Minimum \ + * **Max**: Maximum */ -export type DerivedMetricInfoAggregation = string; +export type AggregationType = string; -/** Known values of {@link DocumentFilterConjunctionGroupInfoTelemetryType} that the service accepts. */ -export enum KnownDocumentFilterConjunctionGroupInfoTelemetryType { - /** Request */ +/** Known values of {@link TelemetryType} that the service accepts. */ +export enum KnownTelemetryType { + /** Represents a request telemetry type. */ Request = "Request", - /** Dependency */ + /** Represents a dependency telemetry type. */ Dependency = "Dependency", - /** Exception */ + /** Represents an exception telemetry type. */ Exception = "Exception", - /** Event */ + /** Represents an event telemetry type. */ Event = "Event", - /** Metric */ + /** Represents a metric telemetry type. */ Metric = "Metric", - /** PerformanceCounter */ + /** Represents a performance counter telemetry type. */ PerformanceCounter = "PerformanceCounter", - /** Trace */ + /** Represents a trace telemetry type. */ Trace = "Trace", } /** - * Defines values for DocumentFilterConjunctionGroupInfoTelemetryType. \ - * {@link KnownDocumentFilterConjunctionGroupInfoTelemetryType} can be used interchangeably with DocumentFilterConjunctionGroupInfoTelemetryType, + * Defines values for TelemetryType. \ + * {@link KnownTelemetryType} can be used interchangeably with TelemetryType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Request** \ - * **Dependency** \ - * **Exception** \ - * **Event** \ - * **Metric** \ - * **PerformanceCounter** \ - * **Trace** + * **Request**: Represents a request telemetry type. \ + * **Dependency**: Represents a dependency telemetry type. \ + * **Exception**: Represents an exception telemetry type. \ + * **Event**: Represents an event telemetry type. \ + * **Metric**: Represents a metric telemetry type. \ + * **PerformanceCounter**: Represents a performance counter telemetry type. \ + * **Trace**: Represents a trace telemetry type. */ -export type DocumentFilterConjunctionGroupInfoTelemetryType = string; +export type TelemetryType = string; /** Optional parameters. */ -export interface PingOptionalParams extends coreClient.OperationOptions { - /** Data contract between SDK and QuickPulse. /QuickPulseService.svc/ping uses this as a backup source of machine name, instance name and invariant version. */ +export interface IsSubscribedOptionalParams + extends coreClient.OperationOptions { + /** Data contract between Application Insights client SDK and Live Metrics. /QuickPulseService.svc/ping uses this as a backup source of machine name, instance name and invariant version. */ monitoringDataPoint?: MonitoringDataPoint; - /** Deprecated. An alternative way to pass api key. Use AAD auth instead. */ - apikey?: string; - /** Timestamp when SDK transmits the metrics and documents to QuickPulse. A 8-byte long type of ticks. */ - xMsQpsTransmissionTime?: number; - /** Computer name where AI SDK lives. QuickPulse uses machine name with instance name as a backup. */ - xMsQpsMachineName?: string; - /** Service instance name where AI SDK lives. QuickPulse uses machine name with instance name as a backup. */ - xMsQpsInstanceName?: string; - /** Identifies an AI SDK as trusted agent to report metrics and documents. */ - xMsQpsStreamId?: string; - /** Cloud role name for which SDK reports metrics and documents. */ - xMsQpsRoleName?: string; - /** Version/generation of the data contract (MonitoringDataPoint) between SDK and QuickPulse. */ - xMsQpsInvariantVersion?: string; + /** Timestamp when the client transmits the metrics and documents to Live Metrics. A 8-byte long type of ticks. */ + transmissionTime?: number; + /** Computer name where Application Insights SDK lives. Live Metrics uses machine name with instance name as a backup. */ + machineName?: string; + /** Service instance name where Application Insights SDK lives. Live Metrics uses machine name with instance name as a backup. */ + instanceName?: string; + /** Identifies an Application Insights SDK as trusted agent to report metrics and documents. */ + streamId?: string; + /** Cloud role name of the service. */ + roleName?: string; + /** Version/generation of the data contract (MonitoringDataPoint) between the client and Live Metrics. */ + invariantVersion?: string; /** An encoded string that indicates whether the collection configuration is changed. */ - xMsQpsConfigurationEtag?: string; + configurationEtag?: string; } -/** Contains response data for the ping operation. */ -export type PingResponse = QuickpulseClientPingHeaders & +/** Contains response data for the isSubscribed operation. */ +export type IsSubscribedResponse = QuickpulseClientIsSubscribedHeaders & CollectionConfigurationInfo; /** Optional parameters. */ -export interface PostOptionalParams extends coreClient.OperationOptions { - /** An alternative way to pass api key. Deprecated. Use AAD authentication instead. */ - apikey?: string; - /** Timestamp when SDK transmits the metrics and documents to QuickPulse. A 8-byte long type of ticks. */ - xMsQpsTransmissionTime?: number; +export interface PublishOptionalParams extends coreClient.OperationOptions { + /** Timestamp when the client transmits the metrics and documents to Live Metrics. A 8-byte long type of ticks. */ + transmissionTime?: number; /** An encoded string that indicates whether the collection configuration is changed. */ - xMsQpsConfigurationEtag?: string; - /** Data contract between SDK and QuickPulse. /QuickPulseService.svc/post uses this to publish metrics and documents to the backend QuickPulse server. */ + configurationEtag?: string; + /** Data contract between the client and Live Metrics. /QuickPulseService.svc/ping uses this as a backup source of machine name, instance name and invariant version. */ monitoringDataPoints?: MonitoringDataPoint[]; } -/** Contains response data for the post operation. */ -export type PostResponse = QuickpulseClientPostHeaders & +/** Contains response data for the publish operation. */ +export type PublishResponse = QuickpulseClientPublishHeaders & CollectionConfigurationInfo; /** Optional parameters. */ export interface QuickpulseClientOptionalParams extends coreClient.ServiceClientOptions { - /** QuickPulse endpoint: https://rt.services.visualstudio.com */ - host?: string; + /** Api Version */ + apiVersion?: string; /** Overrides client endpoint. */ endpoint?: string; } diff --git a/sdk/monitor/monitor-opentelemetry/src/generated/models/mappers.ts b/sdk/monitor/monitor-opentelemetry/src/generated/models/mappers.ts index bb5052eb21dd..5cb6441383ca 100644 --- a/sdk/monitor/monitor-opentelemetry/src/generated/models/mappers.ts +++ b/sdk/monitor/monitor-opentelemetry/src/generated/models/mappers.ts @@ -15,36 +15,42 @@ export const MonitoringDataPoint: coreClient.CompositeMapper = { modelProperties: { version: { serializedName: "Version", + required: true, type: { name: "String", }, }, invariantVersion: { serializedName: "InvariantVersion", + required: true, type: { name: "Number", }, }, instance: { serializedName: "Instance", + required: true, type: { name: "String", }, }, roleName: { serializedName: "RoleName", + required: true, type: { name: "String", }, }, machineName: { serializedName: "MachineName", + required: true, type: { name: "String", }, }, streamId: { serializedName: "StreamId", + required: true, type: { name: "String", }, @@ -63,12 +69,14 @@ export const MonitoringDataPoint: coreClient.CompositeMapper = { }, isWebApp: { serializedName: "IsWebApp", + required: true, type: { name: "Boolean", }, }, performanceCollectionSupported: { serializedName: "PerformanceCollectionSupported", + required: true, type: { name: "Boolean", }, @@ -132,18 +140,21 @@ export const MetricPoint: coreClient.CompositeMapper = { modelProperties: { name: { serializedName: "Name", + required: true, type: { name: "String", }, }, value: { serializedName: "Value", + required: true, type: { name: "Number", }, }, weight: { serializedName: "Weight", + required: true, type: { name: "Number", }, @@ -203,12 +214,14 @@ export const KeyValuePairString: coreClient.CompositeMapper = { modelProperties: { key: { serializedName: "key", + required: true, type: { name: "String", }, }, value: { serializedName: "value", + required: true, type: { name: "String", }, @@ -224,12 +237,14 @@ export const ProcessCpuData: coreClient.CompositeMapper = { modelProperties: { processName: { serializedName: "ProcessName", + required: true, type: { name: "String", }, }, cpuPercentage: { serializedName: "CpuPercentage", + required: true, type: { name: "Number", }, @@ -245,24 +260,28 @@ export const CollectionConfigurationError: coreClient.CompositeMapper = { modelProperties: { collectionConfigurationErrorType: { serializedName: "CollectionConfigurationErrorType", + required: true, type: { name: "String", }, }, message: { serializedName: "Message", + required: true, type: { name: "String", }, }, fullException: { serializedName: "FullException", + required: true, type: { name: "String", }, }, data: { serializedName: "Data", + required: true, type: { name: "Sequence", element: { @@ -282,14 +301,16 @@ export const CollectionConfigurationInfo: coreClient.CompositeMapper = { name: "Composite", className: "CollectionConfigurationInfo", modelProperties: { - etag: { - serializedName: "Etag", + eTag: { + serializedName: "ETag", + required: true, type: { name: "String", }, }, metrics: { serializedName: "Metrics", + required: true, type: { name: "Sequence", element: { @@ -302,6 +323,7 @@ export const CollectionConfigurationInfo: coreClient.CompositeMapper = { }, documentStreams: { serializedName: "DocumentStreams", + required: true, type: { name: "Sequence", element: { @@ -330,18 +352,21 @@ export const DerivedMetricInfo: coreClient.CompositeMapper = { modelProperties: { id: { serializedName: "Id", + required: true, type: { name: "String", }, }, telemetryType: { serializedName: "TelemetryType", + required: true, type: { name: "String", }, }, filterGroups: { serializedName: "FilterGroups", + required: true, type: { name: "Sequence", element: { @@ -354,12 +379,21 @@ export const DerivedMetricInfo: coreClient.CompositeMapper = { }, projection: { serializedName: "Projection", + required: true, type: { name: "String", }, }, aggregation: { serializedName: "Aggregation", + required: true, + type: { + name: "String", + }, + }, + backEndAggregation: { + serializedName: "BackEndAggregation", + required: true, type: { name: "String", }, @@ -375,6 +409,7 @@ export const FilterConjunctionGroupInfo: coreClient.CompositeMapper = { modelProperties: { filters: { serializedName: "Filters", + required: true, type: { name: "Sequence", element: { @@ -396,18 +431,21 @@ export const FilterInfo: coreClient.CompositeMapper = { modelProperties: { fieldName: { serializedName: "FieldName", + required: true, type: { name: "String", }, }, predicate: { serializedName: "Predicate", + required: true, type: { name: "String", }, }, comparand: { serializedName: "Comparand", + required: true, type: { name: "String", }, @@ -423,12 +461,14 @@ export const DocumentStreamInfo: coreClient.CompositeMapper = { modelProperties: { id: { serializedName: "Id", + required: true, type: { name: "String", }, }, documentFilterGroups: { serializedName: "DocumentFilterGroups", + required: true, type: { name: "Sequence", element: { @@ -450,6 +490,7 @@ export const DocumentFilterConjunctionGroupInfo: coreClient.CompositeMapper = { modelProperties: { telemetryType: { serializedName: "TelemetryType", + required: true, type: { name: "String", }, @@ -500,31 +541,37 @@ export const ServiceError: coreClient.CompositeMapper = { className: "ServiceError", modelProperties: { requestId: { + defaultValue: "00000000-0000-0000-0000-000000000000", serializedName: "RequestId", + required: true, type: { name: "String", }, }, responseDateTime: { serializedName: "ResponseDateTime", + required: true, type: { - name: "DateTime", + name: "String", }, }, code: { serializedName: "Code", + required: true, type: { name: "String", }, }, message: { serializedName: "Message", + required: true, type: { name: "String", }, }, exception: { serializedName: "Exception", + required: true, type: { name: "String", }, @@ -533,44 +580,51 @@ export const ServiceError: coreClient.CompositeMapper = { }, }; -export const Request: coreClient.CompositeMapper = { - serializedName: "Request", +export const Event: coreClient.CompositeMapper = { + serializedName: "Event", type: { name: "Composite", - className: "Request", + className: "Event", uberParent: "DocumentIngress", polymorphicDiscriminator: DocumentIngress.type.polymorphicDiscriminator, modelProperties: { ...DocumentIngress.type.modelProperties, name: { constraints: { - MaxLength: 1024, + MaxLength: 512, }, serializedName: "Name", type: { name: "String", }, }, - url: { + }, + }, +}; + +export const Exception: coreClient.CompositeMapper = { + serializedName: "Exception", + type: { + name: "Composite", + className: "Exception", + uberParent: "DocumentIngress", + polymorphicDiscriminator: DocumentIngress.type.polymorphicDiscriminator, + modelProperties: { + ...DocumentIngress.type.modelProperties, + exceptionType: { constraints: { - MaxLength: 2048, + MaxLength: 1024, }, - serializedName: "Url", + serializedName: "ExceptionType", type: { name: "String", }, }, - responseCode: { + exceptionMessage: { constraints: { - MaxLength: 1024, - }, - serializedName: "ResponseCode", - type: { - name: "String", + MaxLength: 32768, }, - }, - duration: { - serializedName: "Duration", + serializedName: "ExceptionMessage", type: { name: "String", }, @@ -625,51 +679,44 @@ export const RemoteDependency: coreClient.CompositeMapper = { }, }; -export const Exception: coreClient.CompositeMapper = { - serializedName: "Exception", +export const Request: coreClient.CompositeMapper = { + serializedName: "Request", type: { name: "Composite", - className: "Exception", + className: "Request", uberParent: "DocumentIngress", polymorphicDiscriminator: DocumentIngress.type.polymorphicDiscriminator, modelProperties: { ...DocumentIngress.type.modelProperties, - exceptionType: { + name: { constraints: { MaxLength: 1024, }, - serializedName: "ExceptionType", + serializedName: "Name", type: { name: "String", }, }, - exceptionMessage: { + url: { constraints: { - MaxLength: 32768, + MaxLength: 2048, }, - serializedName: "ExceptionMessage", + serializedName: "Url", type: { name: "String", }, }, - }, - }, -}; - -export const Event: coreClient.CompositeMapper = { - serializedName: "Event", - type: { - name: "Composite", - className: "Event", - uberParent: "DocumentIngress", - polymorphicDiscriminator: DocumentIngress.type.polymorphicDiscriminator, - modelProperties: { - ...DocumentIngress.type.modelProperties, - name: { + responseCode: { constraints: { - MaxLength: 512, + MaxLength: 1024, }, - serializedName: "Name", + serializedName: "ResponseCode", + type: { + name: "String", + }, + }, + duration: { + serializedName: "Duration", type: { name: "String", }, @@ -700,10 +747,10 @@ export const Trace: coreClient.CompositeMapper = { }, }; -export const QuickpulseClientPingHeaders: coreClient.CompositeMapper = { +export const QuickpulseClientIsSubscribedHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuickpulseClientPingHeaders", + className: "QuickpulseClientIsSubscribedHeaders", modelProperties: { xMsQpsSubscribed: { serializedName: "x-ms-qps-subscribed", @@ -720,7 +767,7 @@ export const QuickpulseClientPingHeaders: coreClient.CompositeMapper = { xMsQpsServicePollingIntervalHint: { serializedName: "x-ms-qps-service-polling-interval-hint", type: { - name: "Number", + name: "String", }, }, xMsQpsServiceEndpointRedirectV2: { @@ -733,10 +780,10 @@ export const QuickpulseClientPingHeaders: coreClient.CompositeMapper = { }, }; -export const QuickpulseClientPostHeaders: coreClient.CompositeMapper = { +export const QuickpulseClientPublishHeaders: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QuickpulseClientPostHeaders", + className: "QuickpulseClientPublishHeaders", modelProperties: { xMsQpsSubscribed: { serializedName: "x-ms-qps-subscribed", @@ -750,33 +797,15 @@ export const QuickpulseClientPostHeaders: coreClient.CompositeMapper = { name: "String", }, }, - xMsQpsServicePollingIntervalHint: { - serializedName: "x-ms-qps-service-polling-interval-hint", - type: { - name: "Number", - }, - }, - xMsQpsServiceEndpointRedirect: { - serializedName: "x-ms-qps-service-endpoint-redirect", - type: { - name: "String", - }, - }, - xMsQpsServiceEndpointRedirectV2: { - serializedName: "x-ms-qps-service-endpoint-redirect-v2", - type: { - name: "String", - }, - }, }, }, }; export let discriminators = { DocumentIngress: DocumentIngress, - "DocumentIngress.Request": Request, - "DocumentIngress.RemoteDependency": RemoteDependency, - "DocumentIngress.Exception": Exception, "DocumentIngress.Event": Event, + "DocumentIngress.Exception": Exception, + "DocumentIngress.RemoteDependency": RemoteDependency, + "DocumentIngress.Request": Request, "DocumentIngress.Trace": Trace, }; diff --git a/sdk/monitor/monitor-opentelemetry/src/generated/models/parameters.ts b/sdk/monitor/monitor-opentelemetry/src/generated/models/parameters.ts index e6adbd3338bc..359b631dbd02 100644 --- a/sdk/monitor/monitor-opentelemetry/src/generated/models/parameters.ts +++ b/sdk/monitor/monitor-opentelemetry/src/generated/models/parameters.ts @@ -42,41 +42,42 @@ export const accept: OperationParameter = { }, }; -export const host: OperationURLParameter = { - parameterPath: "host", +export const endpoint: OperationURLParameter = { + parameterPath: "endpoint", mapper: { - serializedName: "Host", + serializedName: "endpoint", required: true, type: { name: "String", }, }, - skipEncoding: true, }; -export const ikey: OperationQueryParameter = { - parameterPath: "ikey", +export const apiVersion: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "ikey", - required: true, + defaultValue: "2024-04-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String", }, }, }; -export const apikey: OperationQueryParameter = { - parameterPath: ["options", "apikey"], +export const ikey: OperationQueryParameter = { + parameterPath: "ikey", mapper: { - serializedName: "apikey", + serializedName: "ikey", + required: true, type: { name: "String", }, }, }; -export const xMsQpsTransmissionTime: OperationParameter = { - parameterPath: ["options", "xMsQpsTransmissionTime"], +export const transmissionTime: OperationParameter = { + parameterPath: ["options", "transmissionTime"], mapper: { serializedName: "x-ms-qps-transmission-time", type: { @@ -85,8 +86,8 @@ export const xMsQpsTransmissionTime: OperationParameter = { }, }; -export const xMsQpsMachineName: OperationParameter = { - parameterPath: ["options", "xMsQpsMachineName"], +export const machineName: OperationParameter = { + parameterPath: ["options", "machineName"], mapper: { serializedName: "x-ms-qps-machine-name", type: { @@ -95,8 +96,8 @@ export const xMsQpsMachineName: OperationParameter = { }, }; -export const xMsQpsInstanceName: OperationParameter = { - parameterPath: ["options", "xMsQpsInstanceName"], +export const instanceName: OperationParameter = { + parameterPath: ["options", "instanceName"], mapper: { serializedName: "x-ms-qps-instance-name", type: { @@ -105,8 +106,8 @@ export const xMsQpsInstanceName: OperationParameter = { }, }; -export const xMsQpsStreamId: OperationParameter = { - parameterPath: ["options", "xMsQpsStreamId"], +export const streamId: OperationParameter = { + parameterPath: ["options", "streamId"], mapper: { serializedName: "x-ms-qps-stream-id", type: { @@ -115,8 +116,8 @@ export const xMsQpsStreamId: OperationParameter = { }, }; -export const xMsQpsRoleName: OperationParameter = { - parameterPath: ["options", "xMsQpsRoleName"], +export const roleName: OperationParameter = { + parameterPath: ["options", "roleName"], mapper: { serializedName: "x-ms-qps-role-name", type: { @@ -125,8 +126,8 @@ export const xMsQpsRoleName: OperationParameter = { }, }; -export const xMsQpsInvariantVersion: OperationParameter = { - parameterPath: ["options", "xMsQpsInvariantVersion"], +export const invariantVersion: OperationParameter = { + parameterPath: ["options", "invariantVersion"], mapper: { serializedName: "x-ms-qps-invariant-version", type: { @@ -135,8 +136,8 @@ export const xMsQpsInvariantVersion: OperationParameter = { }, }; -export const xMsQpsConfigurationEtag: OperationParameter = { - parameterPath: ["options", "xMsQpsConfigurationEtag"], +export const configurationEtag: OperationParameter = { + parameterPath: ["options", "configurationEtag"], mapper: { serializedName: "x-ms-qps-configuration-etag", type: { diff --git a/sdk/monitor/monitor-opentelemetry/src/generated/quickpulseClient.ts b/sdk/monitor/monitor-opentelemetry/src/generated/quickpulseClient.ts index ceeb9d8f891e..30f3666aa087 100644 --- a/sdk/monitor/monitor-opentelemetry/src/generated/quickpulseClient.ts +++ b/sdk/monitor/monitor-opentelemetry/src/generated/quickpulseClient.ts @@ -7,18 +7,23 @@ */ import * as coreClient from "@azure/core-client"; +import { + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; import { QuickpulseClientOptionalParams, - PingOptionalParams, - PingResponse, - PostOptionalParams, - PostResponse, + IsSubscribedOptionalParams, + IsSubscribedResponse, + PublishOptionalParams, + PublishResponse, } from "./models"; export class QuickpulseClient extends coreClient.ServiceClient { - host: string; + apiVersion: string; /** * Initializes a new instance of the QuickpulseClient class. @@ -45,116 +50,132 @@ export class QuickpulseClient extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix, }, - endpoint: options.endpoint ?? options.baseUri ?? "{Host}", + endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}", }; super(optionsWithDefaults); // Assigning values to Constant parameters - this.host = options.host || "https://rt.services.visualstudio.com"; + this.apiVersion = options.apiVersion || "2024-04-01-preview"; + this.addCustomApiVersionPolicy(options.apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest, + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + }, + }; + this.pipeline.addPolicy(apiVersionPolicy); } /** - * SDK ping - * @param ikey The ikey of the target Application Insights component that displays server info sent by - * /QuickPulseService.svc/ping + * Determine whether there is any subscription to the metrics and documents. + * @param endpoint The endpoint of the Live Metrics service. + * @param ikey The instrumentation key of the target Application Insights component for which the + * client checks whether there's any subscription to it. * @param options The options parameters. */ - ping(ikey: string, options?: PingOptionalParams): Promise { - return this.sendOperationRequest({ ikey, options }, pingOperationSpec); + isSubscribed( + endpoint: string, + ikey: string, + options?: IsSubscribedOptionalParams, + ): Promise { + return this.sendOperationRequest( + { endpoint, ikey, options }, + isSubscribedOperationSpec, + ); } /** - * SDK post - * @param ikey The ikey of the target Application Insights component that displays metrics and - * documents sent by /QuickPulseService.svc/post + * Publish live metrics to the Live Metrics service when there is an active subscription to the + * metrics. + * @param endpoint The endpoint of the Live Metrics service. + * @param ikey The instrumentation key of the target Application Insights component for which the + * client checks whether there's any subscription to it. * @param options The options parameters. */ - post(ikey: string, options?: PostOptionalParams): Promise { - return this.sendOperationRequest({ ikey, options }, postOperationSpec); + publish( + endpoint: string, + ikey: string, + options?: PublishOptionalParams, + ): Promise { + return this.sendOperationRequest( + { endpoint, ikey, options }, + publishOperationSpec, + ); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const pingOperationSpec: coreClient.OperationSpec = { +const isSubscribedOperationSpec: coreClient.OperationSpec = { path: "/QuickPulseService.svc/ping", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.CollectionConfigurationInfo, - headersMapper: Mappers.QuickpulseClientPingHeaders, - }, - 400: { - bodyMapper: Mappers.ServiceError, - }, - 401: { - bodyMapper: Mappers.ServiceError, - }, - 403: { - bodyMapper: Mappers.ServiceError, - }, - 404: { - bodyMapper: Mappers.ServiceError, - }, - 500: { - bodyMapper: Mappers.ServiceError, + headersMapper: Mappers.QuickpulseClientIsSubscribedHeaders, }, - 503: { + default: { bodyMapper: Mappers.ServiceError, }, }, requestBody: Parameters.monitoringDataPoint, - queryParameters: [Parameters.ikey, Parameters.apikey], - urlParameters: [Parameters.host], + queryParameters: [Parameters.apiVersion, Parameters.ikey], + urlParameters: [Parameters.endpoint], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.xMsQpsTransmissionTime, - Parameters.xMsQpsMachineName, - Parameters.xMsQpsInstanceName, - Parameters.xMsQpsStreamId, - Parameters.xMsQpsRoleName, - Parameters.xMsQpsInvariantVersion, - Parameters.xMsQpsConfigurationEtag, + Parameters.transmissionTime, + Parameters.machineName, + Parameters.instanceName, + Parameters.streamId, + Parameters.roleName, + Parameters.invariantVersion, + Parameters.configurationEtag, ], mediaType: "json", serializer, }; -const postOperationSpec: coreClient.OperationSpec = { +const publishOperationSpec: coreClient.OperationSpec = { path: "/QuickPulseService.svc/post", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.CollectionConfigurationInfo, - headersMapper: Mappers.QuickpulseClientPostHeaders, - }, - 400: { - bodyMapper: Mappers.ServiceError, - }, - 401: { - bodyMapper: Mappers.ServiceError, - }, - 403: { - bodyMapper: Mappers.ServiceError, - }, - 404: { - bodyMapper: Mappers.ServiceError, - }, - 500: { - bodyMapper: Mappers.ServiceError, + headersMapper: Mappers.QuickpulseClientPublishHeaders, }, - 503: { + default: { bodyMapper: Mappers.ServiceError, }, }, requestBody: Parameters.monitoringDataPoints, - queryParameters: [Parameters.ikey, Parameters.apikey], - urlParameters: [Parameters.host], + queryParameters: [Parameters.apiVersion, Parameters.ikey], + urlParameters: [Parameters.endpoint], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.xMsQpsTransmissionTime, - Parameters.xMsQpsConfigurationEtag, + Parameters.transmissionTime, + Parameters.configurationEtag, ], mediaType: "json", serializer, diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts index 0744845a0f8f..1800599d1f7f 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/exporter.ts @@ -13,8 +13,8 @@ import { QuickpulseSender } from "./sender"; import { DocumentIngress, MonitoringDataPoint, - PostOptionalParams, - PostResponse, + PublishOptionalParams, + PublishResponse, } from "../../../generated"; import { getTransmissionTime, resourceMetricsToQuickpulseDataPoint } from "../utils"; @@ -23,7 +23,7 @@ import { getTransmissionTime, resourceMetricsToQuickpulseDataPoint } from "../ut */ export class QuickpulseMetricExporter implements PushMetricExporter { private sender: QuickpulseSender; - private postCallback: (response: PostResponse | undefined) => void; + private postCallback: (response: PublishResponse | undefined) => void; private getDocumentsFn: () => DocumentIngress[]; // Monitoring data point with common properties private baseMonitoringDataPoint: MonitoringDataPoint; @@ -56,18 +56,18 @@ export class QuickpulseMetricExporter implements PushMetricExporter { resultCallback: (result: ExportResult) => void, ): Promise { diag.info(`Exporting Live metrics(s). Converting to envelopes...`); - let optionalParams: PostOptionalParams = { + let optionalParams: PublishOptionalParams = { monitoringDataPoints: resourceMetricsToQuickpulseDataPoint( metrics, this.baseMonitoringDataPoint, this.getDocumentsFn(), ), - xMsQpsTransmissionTime: getTransmissionTime(), + transmissionTime: getTransmissionTime(), }; // Supress tracing until OpenTelemetry Metrics SDK support it await context.with(suppressTracing(context.active()), async () => { try { - let postResponse = await this.sender.post(optionalParams); + let postResponse = await this.sender.publish(optionalParams); this.postCallback(postResponse); resultCallback({ code: ExportResultCode.SUCCESS }); } catch (error) { diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts index 8a5d13170278..a71b2e0b0658 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/export/sender.ts @@ -5,10 +5,10 @@ import { RestError, redirectPolicyName } from "@azure/core-rest-pipeline"; import { TokenCredential } from "@azure/core-auth"; import { diag } from "@opentelemetry/api"; import { - PingOptionalParams, - PingResponse, - PostOptionalParams, - PostResponse, + IsSubscribedOptionalParams, + IsSubscribedResponse, + PublishOptionalParams, + PublishResponse, QuickpulseClient, QuickpulseClientOptionalParams, } from "../../../generated"; @@ -23,6 +23,7 @@ export class QuickpulseSender { private readonly quickpulseClient: QuickpulseClient; private quickpulseClientOptions: QuickpulseClientOptionalParams; private instrumentationKey: string; + private endpointUrl: string; constructor(options: { endpointUrl: string; @@ -31,8 +32,9 @@ export class QuickpulseSender { aadAudience?: string; }) { // Build endpoint using provided configuration or default values + this.endpointUrl = options.endpointUrl; this.quickpulseClientOptions = { - host: options.endpointUrl, + endpoint: this.endpointUrl, }; this.instrumentationKey = options.instrumentationKey; @@ -54,12 +56,18 @@ export class QuickpulseSender { } /** - * Ping Quickpulse service + * isSubscribed Quickpulse service * @internal */ - async ping(optionalParams: PingOptionalParams): Promise { + async isSubscribed( + optionalParams: IsSubscribedOptionalParams, + ): Promise { try { - let response = await this.quickpulseClient.ping(this.instrumentationKey, optionalParams); + let response = await this.quickpulseClient.isSubscribed( + this.endpointUrl, + this.instrumentationKey, + optionalParams, + ); return response; } catch (error: any) { const restError = error as RestError; @@ -69,12 +77,16 @@ export class QuickpulseSender { } /** - * Post Quickpulse service + * publish Quickpulse service * @internal */ - async post(optionalParams: PostOptionalParams): Promise { + async publish(optionalParams: PublishOptionalParams): Promise { try { - let response = await this.quickpulseClient.post(this.instrumentationKey, optionalParams); + let response = await this.quickpulseClient.publish( + this.endpointUrl, + this.instrumentationKey, + optionalParams, + ); return response; } catch (error: any) { const restError = error as RestError; @@ -87,7 +99,7 @@ export class QuickpulseSender { if (location) { const locUrl = new url.URL(location); if (locUrl && locUrl.host) { - this.quickpulseClient.host = "https://" + locUrl.host; + this.endpointUrl = "https://" + locUrl.host; } } } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts index 8ac5e9baabc1..698c8304fde7 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/liveMetrics.ts @@ -24,9 +24,9 @@ import { DocumentIngress, Exception, MonitoringDataPoint, - PingOptionalParams, - PingResponse, - PostResponse, + IsSubscribedOptionalParams, + IsSubscribedResponse, + PublishResponse, RemoteDependency, Request, Trace, @@ -131,6 +131,8 @@ export class LiveMetrics { roleName: roleName, machineName: machineName, streamId: streamId, + performanceCollectionSupported: true, + isWebApp: process.env["WEBSITE_SITE_NAME"] ? true : false, }; const parsedConnectionString = ConnectionStringParser.parse( this.config.azureMonitorExporterOptions.connectionString, @@ -162,12 +164,12 @@ export class LiveMetrics { if (!this.isCollectingData) { // If not collecting, Ping try { - let params: PingOptionalParams = { - xMsQpsTransmissionTime: getTransmissionTime(), + let params: IsSubscribedOptionalParams = { + transmissionTime: getTransmissionTime(), monitoringDataPoint: this.baseMonitoringDataPoint, }; await context.with(suppressTracing(context.active()), async () => { - let response = await this.pingSender.ping(params); + let response = await this.pingSender.isSubscribed(params); this.quickPulseDone(response); }); } catch (error) { @@ -181,7 +183,7 @@ export class LiveMetrics { } } - private async quickPulseDone(response: PostResponse | PingResponse | undefined) { + private async quickPulseDone(response: PublishResponse | IsSubscribedResponse | undefined) { if (!response) { if (!this.isCollectingData) { if (Date.now() - this.lastSuccessTime >= MAX_PING_WAIT_TIME) { @@ -208,12 +210,14 @@ export class LiveMetrics { this.handle.unref(); } - this.pingSender.handlePermanentRedirect(response.xMsQpsServiceEndpointRedirectV2); - this.quickpulseExporter - .getSender() - .handlePermanentRedirect(response.xMsQpsServiceEndpointRedirectV2); - if (response.xMsQpsServicePollingIntervalHint) { - this.pingInterval = Number(response.xMsQpsServicePollingIntervalHint); + const endpointRedirect = (response as IsSubscribedResponse).xMsQpsServiceEndpointRedirectV2; + if (endpointRedirect) { + this.pingSender.handlePermanentRedirect(endpointRedirect); + this.quickpulseExporter.getSender().handlePermanentRedirect(endpointRedirect); + } + const pollingInterval = (response as IsSubscribedResponse).xMsQpsServicePollingIntervalHint; + if (pollingInterval) { + this.pingInterval = Number(pollingInterval); } else { this.pingInterval = PING_INTERVAL; } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/types.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/types.ts index cb1a0e1ab7e6..81ebc009c0e9 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/types.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/types.ts @@ -2,7 +2,7 @@ // Licensed under the MIT license. import { TokenCredential } from "@azure/core-auth"; -import { MonitoringDataPoint, PostResponse } from "../../generated"; +import { MonitoringDataPoint, PublishResponse } from "../../generated"; import { DocumentIngress } from "../../generated"; /** @@ -21,7 +21,7 @@ export interface QuickpulseExporterOptions { baseMonitoringDataPoint: MonitoringDataPoint; - postCallback: (response: PostResponse | undefined) => void; + postCallback: (response: PublishResponse | undefined) => void; getDocumentsFn: () => DocumentIngress[]; } diff --git a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts index 8f0a2c6a172d..dbb35ff27a03 100644 --- a/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts +++ b/sdk/monitor/monitor-opentelemetry/src/metrics/quickpulse/utils.ts @@ -7,7 +7,7 @@ import { DocumentIngress, Exception, KeyValuePairString, - KnownDocumentIngressDocumentType, + KnownDocumentType, MetricPoint, MonitoringDataPoint, RemoteDependency, @@ -151,6 +151,8 @@ export function resourceMetricsToQuickpulseDataPoint( metric.dataPoints.forEach((dataPoint) => { let metricPoint: MetricPoint = { weight: 4, + name: "", + value: 0, }; // Update name to expected value in Quickpulse, needed because those names are invalid in OTel @@ -214,7 +216,7 @@ function getIso8601Duration(milliseconds: number) { export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency { let document: Request | RemoteDependency = { - documentType: KnownDocumentIngressDocumentType.Request, + documentType: KnownDocumentType.Request, }; const httpMethod = span.attributes[SEMATTRS_HTTP_METHOD]; const grpcStatusCode = span.attributes[SEMATTRS_RPC_GRPC_STATUS_CODE]; @@ -232,7 +234,7 @@ export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency } document = { - documentType: KnownDocumentIngressDocumentType.Request, + documentType: KnownDocumentType.Request, name: span.name, url: url, responseCode: code, @@ -246,7 +248,7 @@ export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency } document = { - documentType: KnownDocumentIngressDocumentType.RemoteDependency, + documentType: KnownDocumentType.RemoteDependency, name: span.name, commandName: url, resultCode: code, @@ -259,19 +261,19 @@ export function getSpanDocument(span: ReadableSpan): Request | RemoteDependency export function getLogDocument(logRecord: LogRecord): Trace | Exception { let document: Trace | Exception = { - documentType: KnownDocumentIngressDocumentType.Exception, + documentType: KnownDocumentType.Exception, }; const exceptionType = String(logRecord.attributes[SEMATTRS_EXCEPTION_TYPE]); if (exceptionType) { const exceptionMessage = String(logRecord.attributes[SEMATTRS_EXCEPTION_MESSAGE]); document = { - documentType: KnownDocumentIngressDocumentType.Exception, + documentType: KnownDocumentType.Exception, exceptionType: exceptionType, exceptionMessage: exceptionMessage, }; } else { document = { - documentType: KnownDocumentIngressDocumentType.Trace, + documentType: KnownDocumentType.Trace, message: String(logRecord.body), }; } diff --git a/sdk/monitor/monitor-opentelemetry/swagger/README.md b/sdk/monitor/monitor-opentelemetry/swagger/README.md index 8aa9b9ab72d6..aca5c52c0581 100644 --- a/sdk/monitor/monitor-opentelemetry/swagger/README.md +++ b/sdk/monitor/monitor-opentelemetry/swagger/README.md @@ -21,7 +21,7 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated -input-file: https://quickpulsespecs.blob.core.windows.net/specs/swagger-v2-for%20sdk%20only.json +input-file: https://github.com/Azure/azure-rest-api-specs/blob/main/specification/applicationinsights/data-plane/LiveMetrics/preview/2024-04-01-preview/livemetrics.json add-credentials: false use-extension: "@autorest/typescript": "latest" From c5f5104f7a24c3b5a1e9a4085d4b350e40c29217 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:28:22 +0800 Subject: [PATCH 48/57] [mgmt] compute release (#28747) https://github.com/Azure/sdk-release-request/issues/4947 --- sdk/compute/arm-compute/CHANGELOG.md | 17 +- sdk/compute/arm-compute/LICENSE | 2 +- sdk/compute/arm-compute/_meta.json | 6 +- sdk/compute/arm-compute/assets.json | 2 +- sdk/compute/arm-compute/package.json | 7 +- .../arm-compute/review/arm-compute.api.md | 1 + .../availabilitySetsCreateOrUpdateSample.ts | 4 +- .../availabilitySetsDeleteSample.ts | 4 +- .../samples-dev/availabilitySetsGetSample.ts | 4 +- ...vailabilitySetsListAvailableSizesSample.ts | 4 +- ...vailabilitySetsListBySubscriptionSample.ts | 2 +- .../availabilitySetsUpdateSample.ts | 16 +- ...tyReservationGroupsCreateOrUpdateSample.ts | 10 +- .../capacityReservationGroupsDeleteSample.ts | 4 +- .../capacityReservationGroupsGetSample.ts | 4 +- ...ervationGroupsListByResourceGroupSample.ts | 6 +- ...servationGroupsListBySubscriptionSample.ts | 6 +- .../capacityReservationGroupsUpdateSample.ts | 8 +- ...apacityReservationsCreateOrUpdateSample.ts | 6 +- .../capacityReservationsDeleteSample.ts | 4 +- .../capacityReservationsGetSample.ts | 4 +- ...onsListByCapacityReservationGroupSample.ts | 2 +- .../capacityReservationsUpdateSample.ts | 14 +- ...erviceOperatingSystemsGetOSFamilySample.ts | 2 +- ...rviceOperatingSystemsGetOSVersionSample.ts | 2 +- ...iceOperatingSystemsListOSFamiliesSample.ts | 2 +- ...iceOperatingSystemsListOSVersionsSample.ts | 2 +- .../cloudServiceRoleInstancesDeleteSample.ts | 2 +- ...rviceRoleInstancesGetInstanceViewSample.ts | 2 +- ...RoleInstancesGetRemoteDesktopFileSample.ts | 2 +- .../cloudServiceRoleInstancesGetSample.ts | 2 +- .../cloudServiceRoleInstancesListSample.ts | 2 +- .../cloudServiceRoleInstancesRebuildSample.ts | 2 +- .../cloudServiceRoleInstancesReimageSample.ts | 2 +- .../cloudServiceRoleInstancesRestartSample.ts | 2 +- .../samples-dev/cloudServiceRolesGetSample.ts | 2 +- .../cloudServiceRolesListSample.ts | 2 +- .../cloudServicesCreateOrUpdateSample.ts | 172 +- .../cloudServicesDeleteInstancesSample.ts | 6 +- .../samples-dev/cloudServicesDeleteSample.ts | 2 +- .../cloudServicesGetInstanceViewSample.ts | 2 +- .../samples-dev/cloudServicesGetSample.ts | 2 +- .../cloudServicesPowerOffSample.ts | 2 +- .../samples-dev/cloudServicesRebuildSample.ts | 6 +- .../samples-dev/cloudServicesReimageSample.ts | 6 +- .../samples-dev/cloudServicesRestartSample.ts | 6 +- .../samples-dev/cloudServicesStartSample.ts | 2 +- ...rvicesUpdateDomainGetUpdateDomainSample.ts | 2 +- ...icesUpdateDomainListUpdateDomainsSample.ts | 2 +- ...vicesUpdateDomainWalkUpdateDomainSample.ts | 11 +- .../samples-dev/cloudServicesUpdateSample.ts | 4 +- .../communityGalleriesGetSample.ts | 4 +- .../communityGalleryImageVersionsGetSample.ts | 4 +- ...communityGalleryImageVersionsListSample.ts | 4 +- .../communityGalleryImagesGetSample.ts | 4 +- .../communityGalleryImagesListSample.ts | 4 +- ...dedicatedHostGroupsCreateOrUpdateSample.ts | 10 +- .../dedicatedHostGroupsDeleteSample.ts | 4 +- .../dedicatedHostGroupsGetSample.ts | 4 +- ...atedHostGroupsListByResourceGroupSample.ts | 4 +- .../dedicatedHostGroupsUpdateSample.ts | 20 +- .../dedicatedHostsCreateOrUpdateSample.ts | 4 +- .../samples-dev/dedicatedHostsDeleteSample.ts | 4 +- .../samples-dev/dedicatedHostsGetSample.ts | 4 +- .../dedicatedHostsListAvailableSizesSample.ts | 2 +- .../dedicatedHostsListByHostGroupSample.ts | 4 +- .../dedicatedHostsRedeploySample.ts | 2 +- .../dedicatedHostsRestartSample.ts | 2 +- .../samples-dev/dedicatedHostsUpdateSample.ts | 18 +- .../diskAccessesCreateOrUpdateSample.ts | 2 +- ...sDeleteAPrivateEndpointConnectionSample.ts | 11 +- .../samples-dev/diskAccessesDeleteSample.ts | 2 +- ...ssesGetAPrivateEndpointConnectionSample.ts | 2 +- ...skAccessesGetPrivateLinkResourcesSample.ts | 2 +- .../samples-dev/diskAccessesGetSample.ts | 4 +- .../diskAccessesListByResourceGroupSample.ts | 2 +- ...sesListPrivateEndpointConnectionsSample.ts | 2 +- ...sUpdateAPrivateEndpointConnectionSample.ts | 19 +- .../samples-dev/diskAccessesUpdateSample.ts | 4 +- .../diskEncryptionSetsCreateOrUpdateSample.ts | 26 +- .../diskEncryptionSetsDeleteSample.ts | 2 +- .../diskEncryptionSetsGetSample.ts | 4 +- ...yptionSetsListAssociatedResourcesSample.ts | 2 +- ...EncryptionSetsListByResourceGroupSample.ts | 2 +- .../diskEncryptionSetsUpdateSample.ts | 23 +- .../samples-dev/diskRestorePointGetSample.ts | 4 +- .../diskRestorePointGrantAccessSample.ts | 17 +- ...iskRestorePointListByRestorePointSample.ts | 2 +- .../diskRestorePointRevokeAccessSample.ts | 13 +- .../samples-dev/disksCreateOrUpdateSample.ts | 148 +- .../samples-dev/disksDeleteSample.ts | 2 +- .../samples-dev/disksGrantAccessSample.ts | 8 +- .../samples-dev/disksRevokeAccessSample.ts | 2 +- .../samples-dev/disksUpdateSample.ts | 28 +- .../galleriesCreateOrUpdateSample.ts | 28 +- .../samples-dev/galleriesDeleteSample.ts | 4 +- .../samples-dev/galleriesGetSample.ts | 14 +- .../galleriesListByResourceGroupSample.ts | 4 +- .../samples-dev/galleriesListSample.ts | 2 +- .../samples-dev/galleriesUpdateSample.ts | 6 +- ...ApplicationVersionsCreateOrUpdateSample.ts | 39 +- .../galleryApplicationVersionsDeleteSample.ts | 4 +- .../galleryApplicationVersionsGetSample.ts | 10 +- ...nVersionsListByGalleryApplicationSample.ts | 4 +- .../galleryApplicationVersionsUpdateSample.ts | 18 +- ...galleryApplicationsCreateOrUpdateSample.ts | 16 +- .../galleryApplicationsDeleteSample.ts | 4 +- .../galleryApplicationsGetSample.ts | 4 +- .../galleryApplicationsListByGallerySample.ts | 4 +- .../galleryApplicationsUpdateSample.ts | 16 +- ...alleryImageVersionsCreateOrUpdateSample.ts | 378 +- .../galleryImageVersionsDeleteSample.ts | 4 +- .../galleryImageVersionsGetSample.ts | 18 +- ...ryImageVersionsListByGalleryImageSample.ts | 4 +- .../galleryImageVersionsUpdateSample.ts | 31 +- .../galleryImagesCreateOrUpdateSample.ts | 8 +- .../samples-dev/galleryImagesDeleteSample.ts | 4 +- .../samples-dev/galleryImagesGetSample.ts | 4 +- .../galleryImagesListByGallerySample.ts | 4 +- .../samples-dev/galleryImagesUpdateSample.ts | 10 +- .../gallerySharingProfileUpdateSample.ts | 20 +- .../samples-dev/imagesCreateOrUpdateSample.ts | 124 +- .../samples-dev/imagesDeleteSample.ts | 4 +- .../samples-dev/imagesUpdateSample.ts | 7 +- ...lyticsExportRequestRateByIntervalSample.ts | 13 +- ...gAnalyticsExportThrottledRequestsSample.ts | 6 +- ...mityPlacementGroupsCreateOrUpdateSample.ts | 6 +- .../proximityPlacementGroupsDeleteSample.ts | 2 +- .../proximityPlacementGroupsGetSample.ts | 2 +- ...lacementGroupsListByResourceGroupSample.ts | 2 +- .../proximityPlacementGroupsUpdateSample.ts | 6 +- .../samples-dev/resourceSkusListSample.ts | 2 +- ...orePointCollectionsCreateOrUpdateSample.ts | 16 +- .../restorePointCollectionsDeleteSample.ts | 4 +- .../restorePointCollectionsGetSample.ts | 4 +- .../restorePointCollectionsListSample.ts | 2 +- .../restorePointCollectionsUpdateSample.ts | 11 +- .../samples-dev/restorePointsCreateSample.ts | 16 +- .../samples-dev/restorePointsDeleteSample.ts | 4 +- .../samples-dev/restorePointsGetSample.ts | 4 +- .../samples-dev/sharedGalleriesGetSample.ts | 2 +- .../samples-dev/sharedGalleriesListSample.ts | 2 +- .../sharedGalleryImageVersionsGetSample.ts | 4 +- .../sharedGalleryImageVersionsListSample.ts | 4 +- .../sharedGalleryImagesGetSample.ts | 4 +- .../sharedGalleryImagesListSample.ts | 4 +- .../snapshotsCreateOrUpdateSample.ts | 36 +- .../samples-dev/snapshotsDeleteSample.ts | 2 +- .../samples-dev/snapshotsGrantAccessSample.ts | 4 +- .../snapshotsListByResourceGroupSample.ts | 2 +- .../snapshotsRevokeAccessSample.ts | 2 +- .../samples-dev/snapshotsUpdateSample.ts | 8 +- .../samples-dev/sshPublicKeysCreateSample.ts | 6 +- .../samples-dev/sshPublicKeysDeleteSample.ts | 4 +- .../sshPublicKeysGenerateKeyPairSample.ts | 12 +- .../samples-dev/sshPublicKeysGetSample.ts | 2 +- .../sshPublicKeysListByResourceGroupSample.ts | 4 +- .../samples-dev/sshPublicKeysUpdateSample.ts | 8 +- .../virtualMachineExtensionImagesGetSample.ts | 4 +- ...alMachineExtensionImagesListTypesSample.ts | 4 +- ...achineExtensionImagesListVersionsSample.ts | 8 +- ...alMachineExtensionsCreateOrUpdateSample.ts | 40 +- .../virtualMachineExtensionsDeleteSample.ts | 4 +- .../virtualMachineExtensionsGetSample.ts | 6 +- .../virtualMachineExtensionsListSample.ts | 6 +- .../virtualMachineExtensionsUpdateSample.ts | 11 +- .../virtualMachineImagesEdgeZoneGetSample.ts | 4 +- ...alMachineImagesEdgeZoneListOffersSample.ts | 4 +- ...chineImagesEdgeZoneListPublishersSample.ts | 4 +- .../virtualMachineImagesEdgeZoneListSample.ts | 8 +- ...tualMachineImagesEdgeZoneListSkusSample.ts | 4 +- .../virtualMachineImagesGetSample.ts | 4 +- ...irtualMachineImagesListByEdgeZoneSample.ts | 4 +- .../virtualMachineImagesListOffersSample.ts | 4 +- .../virtualMachineImagesListSample.ts | 8 +- .../virtualMachineImagesListSkusSample.ts | 4 +- ...lMachineRunCommandsCreateOrUpdateSample.ts | 23 +- .../virtualMachineRunCommandsDeleteSample.ts | 2 +- ...ineRunCommandsGetByVirtualMachineSample.ts | 2 +- .../virtualMachineRunCommandsGetSample.ts | 2 +- ...neRunCommandsListByVirtualMachineSample.ts | 2 +- .../virtualMachineRunCommandsUpdateSample.ts | 12 +- ...eScaleSetExtensionsCreateOrUpdateSample.ts | 30 +- ...alMachineScaleSetExtensionsDeleteSample.ts | 22 +- ...rtualMachineScaleSetExtensionsGetSample.ts | 6 +- ...tualMachineScaleSetExtensionsListSample.ts | 4 +- ...alMachineScaleSetExtensionsUpdateSample.ts | 30 +- ...hineScaleSetRollingUpgradesCancelSample.ts | 18 +- ...eScaleSetRollingUpgradesGetLatestSample.ts | 4 +- ...lingUpgradesStartExtensionUpgradeSample.ts | 9 +- ...eSetRollingUpgradesStartOSUpgradeSample.ts | 18 +- ...caleSetVMExtensionsCreateOrUpdateSample.ts | 19 +- ...MachineScaleSetVMExtensionsDeleteSample.ts | 13 +- ...ualMachineScaleSetVMExtensionsGetSample.ts | 2 +- ...alMachineScaleSetVMExtensionsListSample.ts | 2 +- ...MachineScaleSetVMExtensionsUpdateSample.ts | 19 +- ...aleSetVMRunCommandsCreateOrUpdateSample.ts | 27 +- ...achineScaleSetVMRunCommandsDeleteSample.ts | 13 +- ...alMachineScaleSetVMRunCommandsGetSample.ts | 2 +- ...lMachineScaleSetVMRunCommandsListSample.ts | 2 +- ...achineScaleSetVMRunCommandsUpdateSample.ts | 23 +- ...eScaleSetVMSApproveRollingUpgradeSample.ts | 11 +- ...eScaleSetVMSAttachDetachDataDisksSample.ts | 52 +- ...rtualMachineScaleSetVMSDeallocateSample.ts | 4 +- .../virtualMachineScaleSetVMSDeleteSample.ts | 6 +- ...MachineScaleSetVMSGetInstanceViewSample.ts | 2 +- .../virtualMachineScaleSetVMSGetSample.ts | 4 +- .../virtualMachineScaleSetVMSListSample.ts | 8 +- ...hineScaleSetVMSPerformMaintenanceSample.ts | 22 +- ...virtualMachineScaleSetVMSPowerOffSample.ts | 8 +- ...virtualMachineScaleSetVMSRedeploySample.ts | 4 +- ...rtualMachineScaleSetVMSReimageAllSample.ts | 4 +- .../virtualMachineScaleSetVMSReimageSample.ts | 10 +- .../virtualMachineScaleSetVMSRestartSample.ts | 4 +- ...SetVMSRetrieveBootDiagnosticsDataSample.ts | 20 +- ...rtualMachineScaleSetVMSRunCommandSample.ts | 4 +- ...achineScaleSetVMSSimulateEvictionSample.ts | 2 +- .../virtualMachineScaleSetVMSStartSample.ts | 4 +- .../virtualMachineScaleSetVMSUpdateSample.ts | 238 +- ...ineScaleSetsApproveRollingUpgradeSample.ts | 17 +- ...SetsConvertToSinglePlacementGroupSample.ts | 26 +- ...ualMachineScaleSetsCreateOrUpdateSample.ts | 1763 +- ...virtualMachineScaleSetsDeallocateSample.ts | 10 +- ...alMachineScaleSetsDeleteInstancesSample.ts | 32 +- .../virtualMachineScaleSetsDeleteSample.ts | 6 +- ...iceFabricPlatformUpdateDomainWalkSample.ts | 22 +- ...alMachineScaleSetsGetInstanceViewSample.ts | 4 +- ...chineScaleSetsGetOSUpgradeHistorySample.ts | 4 +- .../virtualMachineScaleSetsGetSample.ts | 10 +- ...ualMachineScaleSetsListByLocationSample.ts | 2 +- .../virtualMachineScaleSetsListSample.ts | 4 +- .../virtualMachineScaleSetsListSkusSample.ts | 4 +- ...achineScaleSetsPerformMaintenanceSample.ts | 26 +- .../virtualMachineScaleSetsPowerOffSample.ts | 10 +- .../virtualMachineScaleSetsReapplySample.ts | 4 +- .../virtualMachineScaleSetsRedeploySample.ts | 10 +- ...virtualMachineScaleSetsReimageAllSample.ts | 10 +- .../virtualMachineScaleSetsReimageSample.ts | 10 +- .../virtualMachineScaleSetsRestartSample.ts | 10 +- ...eSetsSetOrchestrationServiceStateSample.ts | 28 +- .../virtualMachineScaleSetsStartSample.ts | 8 +- ...alMachineScaleSetsUpdateInstancesSample.ts | 28 +- .../virtualMachineScaleSetsUpdateSample.ts | 132 +- .../virtualMachinesAssessPatchesSample.ts | 2 +- ...tualMachinesAttachDetachDataDisksSample.ts | 30 +- .../virtualMachinesCaptureSample.ts | 10 +- ...tualMachinesConvertToManagedDisksSample.ts | 4 +- .../virtualMachinesCreateOrUpdateSample.ts | 1175 +- .../virtualMachinesDeallocateSample.ts | 6 +- .../virtualMachinesDeleteSample.ts | 4 +- .../virtualMachinesGeneralizeSample.ts | 2 +- .../samples-dev/virtualMachinesGetSample.ts | 6 +- .../virtualMachinesInstallPatchesSample.ts | 8 +- .../virtualMachinesInstanceViewSample.ts | 4 +- .../virtualMachinesListAllSample.ts | 2 +- ...virtualMachinesListAvailableSizesSample.ts | 2 +- .../samples-dev/virtualMachinesListSample.ts | 4 +- ...virtualMachinesPerformMaintenanceSample.ts | 4 +- .../virtualMachinesPowerOffSample.ts | 6 +- .../virtualMachinesReapplySample.ts | 2 +- .../virtualMachinesRedeploySample.ts | 4 +- .../virtualMachinesReimageSample.ts | 10 +- .../virtualMachinesRestartSample.ts | 4 +- ...chinesRetrieveBootDiagnosticsDataSample.ts | 6 +- .../virtualMachinesRunCommandSample.ts | 2 +- .../virtualMachinesSimulateEvictionSample.ts | 2 +- .../samples-dev/virtualMachinesStartSample.ts | 4 +- .../virtualMachinesUpdateSample.ts | 60 +- .../samples/v21/javascript/README.md | 76 +- .../javascript/communityGalleriesGetSample.js | 2 +- .../communityGalleryImageVersionsGetSample.js | 2 +- ...communityGalleryImageVersionsListSample.js | 2 +- .../communityGalleryImagesGetSample.js | 2 +- .../communityGalleryImagesListSample.js | 2 +- .../galleriesCreateOrUpdateSample.js | 8 +- .../v21/javascript/galleriesDeleteSample.js | 2 +- .../v21/javascript/galleriesGetSample.js | 8 +- .../galleriesListByResourceGroupSample.js | 2 +- .../v21/javascript/galleriesListSample.js | 2 +- .../v21/javascript/galleriesUpdateSample.js | 2 +- ...ApplicationVersionsCreateOrUpdateSample.js | 2 +- .../galleryApplicationVersionsDeleteSample.js | 2 +- .../galleryApplicationVersionsGetSample.js | 4 +- ...nVersionsListByGalleryApplicationSample.js | 2 +- .../galleryApplicationVersionsUpdateSample.js | 2 +- ...galleryApplicationsCreateOrUpdateSample.js | 2 +- .../galleryApplicationsDeleteSample.js | 2 +- .../galleryApplicationsGetSample.js | 2 +- .../galleryApplicationsListByGallerySample.js | 2 +- .../galleryApplicationsUpdateSample.js | 2 +- ...alleryImageVersionsCreateOrUpdateSample.js | 23 +- .../galleryImageVersionsDeleteSample.js | 2 +- .../galleryImageVersionsGetSample.js | 8 +- ...ryImageVersionsListByGalleryImageSample.js | 2 +- .../galleryImageVersionsUpdateSample.js | 4 +- .../galleryImagesCreateOrUpdateSample.js | 2 +- .../javascript/galleryImagesDeleteSample.js | 2 +- .../v21/javascript/galleryImagesGetSample.js | 2 +- .../galleryImagesListByGallerySample.js | 2 +- .../javascript/galleryImagesUpdateSample.js | 2 +- .../gallerySharingProfileUpdateSample.js | 6 +- .../javascript/sharedGalleriesGetSample.js | 2 +- .../javascript/sharedGalleriesListSample.js | 2 +- .../sharedGalleryImageVersionsGetSample.js | 2 +- .../sharedGalleryImageVersionsListSample.js | 2 +- .../sharedGalleryImagesGetSample.js | 2 +- .../sharedGalleryImagesListSample.js | 2 +- ...SetVMSRetrieveBootDiagnosticsDataSample.js | 4 +- ...ualMachineScaleSetsCreateOrUpdateSample.js | 5 +- .../javascript/virtualMachinesUpdateSample.js | 14 +- .../samples/v21/typescript/README.md | 76 +- .../availabilitySetsCreateOrUpdateSample.ts | 4 +- .../src/availabilitySetsDeleteSample.ts | 4 +- .../src/availabilitySetsGetSample.ts | 4 +- ...vailabilitySetsListAvailableSizesSample.ts | 4 +- ...vailabilitySetsListBySubscriptionSample.ts | 2 +- .../src/availabilitySetsUpdateSample.ts | 16 +- ...tyReservationGroupsCreateOrUpdateSample.ts | 10 +- .../capacityReservationGroupsDeleteSample.ts | 4 +- .../src/capacityReservationGroupsGetSample.ts | 4 +- ...ervationGroupsListByResourceGroupSample.ts | 6 +- ...servationGroupsListBySubscriptionSample.ts | 6 +- .../capacityReservationGroupsUpdateSample.ts | 8 +- ...apacityReservationsCreateOrUpdateSample.ts | 6 +- .../src/capacityReservationsDeleteSample.ts | 4 +- .../src/capacityReservationsGetSample.ts | 4 +- ...onsListByCapacityReservationGroupSample.ts | 2 +- .../src/capacityReservationsUpdateSample.ts | 14 +- ...erviceOperatingSystemsGetOSFamilySample.ts | 2 +- ...rviceOperatingSystemsGetOSVersionSample.ts | 2 +- ...iceOperatingSystemsListOSFamiliesSample.ts | 2 +- ...iceOperatingSystemsListOSVersionsSample.ts | 2 +- .../cloudServiceRoleInstancesDeleteSample.ts | 2 +- ...rviceRoleInstancesGetInstanceViewSample.ts | 2 +- ...RoleInstancesGetRemoteDesktopFileSample.ts | 2 +- .../src/cloudServiceRoleInstancesGetSample.ts | 2 +- .../cloudServiceRoleInstancesListSample.ts | 2 +- .../cloudServiceRoleInstancesRebuildSample.ts | 2 +- .../cloudServiceRoleInstancesReimageSample.ts | 2 +- .../cloudServiceRoleInstancesRestartSample.ts | 2 +- .../src/cloudServiceRolesGetSample.ts | 2 +- .../src/cloudServiceRolesListSample.ts | 2 +- .../src/cloudServicesCreateOrUpdateSample.ts | 172 +- .../src/cloudServicesDeleteInstancesSample.ts | 6 +- .../src/cloudServicesDeleteSample.ts | 2 +- .../src/cloudServicesGetInstanceViewSample.ts | 2 +- .../typescript/src/cloudServicesGetSample.ts | 2 +- .../src/cloudServicesPowerOffSample.ts | 2 +- .../src/cloudServicesRebuildSample.ts | 6 +- .../src/cloudServicesReimageSample.ts | 6 +- .../src/cloudServicesRestartSample.ts | 6 +- .../src/cloudServicesStartSample.ts | 2 +- ...rvicesUpdateDomainGetUpdateDomainSample.ts | 2 +- ...icesUpdateDomainListUpdateDomainsSample.ts | 2 +- ...vicesUpdateDomainWalkUpdateDomainSample.ts | 11 +- .../src/cloudServicesUpdateSample.ts | 4 +- .../src/communityGalleriesGetSample.ts | 4 +- .../communityGalleryImageVersionsGetSample.ts | 4 +- ...communityGalleryImageVersionsListSample.ts | 4 +- .../src/communityGalleryImagesGetSample.ts | 4 +- .../src/communityGalleryImagesListSample.ts | 4 +- ...dedicatedHostGroupsCreateOrUpdateSample.ts | 10 +- .../src/dedicatedHostGroupsDeleteSample.ts | 4 +- .../src/dedicatedHostGroupsGetSample.ts | 4 +- ...atedHostGroupsListByResourceGroupSample.ts | 4 +- .../src/dedicatedHostGroupsUpdateSample.ts | 20 +- .../src/dedicatedHostsCreateOrUpdateSample.ts | 4 +- .../src/dedicatedHostsDeleteSample.ts | 4 +- .../typescript/src/dedicatedHostsGetSample.ts | 4 +- .../dedicatedHostsListAvailableSizesSample.ts | 2 +- .../dedicatedHostsListByHostGroupSample.ts | 4 +- .../src/dedicatedHostsRedeploySample.ts | 2 +- .../src/dedicatedHostsRestartSample.ts | 2 +- .../src/dedicatedHostsUpdateSample.ts | 18 +- .../src/diskAccessesCreateOrUpdateSample.ts | 2 +- ...sDeleteAPrivateEndpointConnectionSample.ts | 11 +- .../src/diskAccessesDeleteSample.ts | 2 +- ...ssesGetAPrivateEndpointConnectionSample.ts | 2 +- ...skAccessesGetPrivateLinkResourcesSample.ts | 2 +- .../typescript/src/diskAccessesGetSample.ts | 4 +- .../diskAccessesListByResourceGroupSample.ts | 2 +- ...sesListPrivateEndpointConnectionsSample.ts | 2 +- ...sUpdateAPrivateEndpointConnectionSample.ts | 19 +- .../src/diskAccessesUpdateSample.ts | 4 +- .../diskEncryptionSetsCreateOrUpdateSample.ts | 26 +- .../src/diskEncryptionSetsDeleteSample.ts | 2 +- .../src/diskEncryptionSetsGetSample.ts | 4 +- ...yptionSetsListAssociatedResourcesSample.ts | 2 +- ...EncryptionSetsListByResourceGroupSample.ts | 2 +- .../src/diskEncryptionSetsUpdateSample.ts | 23 +- .../src/diskRestorePointGetSample.ts | 4 +- .../src/diskRestorePointGrantAccessSample.ts | 17 +- ...iskRestorePointListByRestorePointSample.ts | 2 +- .../src/diskRestorePointRevokeAccessSample.ts | 13 +- .../src/disksCreateOrUpdateSample.ts | 148 +- .../v21/typescript/src/disksDeleteSample.ts | 2 +- .../typescript/src/disksGrantAccessSample.ts | 8 +- .../typescript/src/disksRevokeAccessSample.ts | 2 +- .../v21/typescript/src/disksUpdateSample.ts | 28 +- .../src/galleriesCreateOrUpdateSample.ts | 28 +- .../typescript/src/galleriesDeleteSample.ts | 4 +- .../v21/typescript/src/galleriesGetSample.ts | 14 +- .../src/galleriesListByResourceGroupSample.ts | 4 +- .../v21/typescript/src/galleriesListSample.ts | 2 +- .../typescript/src/galleriesUpdateSample.ts | 6 +- ...ApplicationVersionsCreateOrUpdateSample.ts | 39 +- .../galleryApplicationVersionsDeleteSample.ts | 4 +- .../galleryApplicationVersionsGetSample.ts | 10 +- ...nVersionsListByGalleryApplicationSample.ts | 4 +- .../galleryApplicationVersionsUpdateSample.ts | 18 +- ...galleryApplicationsCreateOrUpdateSample.ts | 16 +- .../src/galleryApplicationsDeleteSample.ts | 4 +- .../src/galleryApplicationsGetSample.ts | 4 +- .../galleryApplicationsListByGallerySample.ts | 4 +- .../src/galleryApplicationsUpdateSample.ts | 16 +- ...alleryImageVersionsCreateOrUpdateSample.ts | 378 +- .../src/galleryImageVersionsDeleteSample.ts | 4 +- .../src/galleryImageVersionsGetSample.ts | 18 +- ...ryImageVersionsListByGalleryImageSample.ts | 4 +- .../src/galleryImageVersionsUpdateSample.ts | 31 +- .../src/galleryImagesCreateOrUpdateSample.ts | 8 +- .../src/galleryImagesDeleteSample.ts | 4 +- .../typescript/src/galleryImagesGetSample.ts | 4 +- .../src/galleryImagesListByGallerySample.ts | 4 +- .../src/galleryImagesUpdateSample.ts | 10 +- .../src/gallerySharingProfileUpdateSample.ts | 20 +- .../src/imagesCreateOrUpdateSample.ts | 124 +- .../v21/typescript/src/imagesDeleteSample.ts | 4 +- .../v21/typescript/src/imagesUpdateSample.ts | 7 +- ...lyticsExportRequestRateByIntervalSample.ts | 13 +- ...gAnalyticsExportThrottledRequestsSample.ts | 6 +- ...mityPlacementGroupsCreateOrUpdateSample.ts | 6 +- .../proximityPlacementGroupsDeleteSample.ts | 2 +- .../src/proximityPlacementGroupsGetSample.ts | 2 +- ...lacementGroupsListByResourceGroupSample.ts | 2 +- .../proximityPlacementGroupsUpdateSample.ts | 6 +- .../typescript/src/resourceSkusListSample.ts | 2 +- ...orePointCollectionsCreateOrUpdateSample.ts | 16 +- .../restorePointCollectionsDeleteSample.ts | 4 +- .../src/restorePointCollectionsGetSample.ts | 4 +- .../src/restorePointCollectionsListSample.ts | 2 +- .../restorePointCollectionsUpdateSample.ts | 11 +- .../src/restorePointsCreateSample.ts | 16 +- .../src/restorePointsDeleteSample.ts | 4 +- .../typescript/src/restorePointsGetSample.ts | 4 +- .../src/sharedGalleriesGetSample.ts | 2 +- .../src/sharedGalleriesListSample.ts | 2 +- .../sharedGalleryImageVersionsGetSample.ts | 4 +- .../sharedGalleryImageVersionsListSample.ts | 4 +- .../src/sharedGalleryImagesGetSample.ts | 4 +- .../src/sharedGalleryImagesListSample.ts | 4 +- .../src/snapshotsCreateOrUpdateSample.ts | 36 +- .../typescript/src/snapshotsDeleteSample.ts | 2 +- .../src/snapshotsGrantAccessSample.ts | 4 +- .../src/snapshotsListByResourceGroupSample.ts | 2 +- .../src/snapshotsRevokeAccessSample.ts | 2 +- .../typescript/src/snapshotsUpdateSample.ts | 8 +- .../src/sshPublicKeysCreateSample.ts | 6 +- .../src/sshPublicKeysDeleteSample.ts | 4 +- .../src/sshPublicKeysGenerateKeyPairSample.ts | 12 +- .../typescript/src/sshPublicKeysGetSample.ts | 2 +- .../sshPublicKeysListByResourceGroupSample.ts | 4 +- .../src/sshPublicKeysUpdateSample.ts | 8 +- .../virtualMachineExtensionImagesGetSample.ts | 4 +- ...alMachineExtensionImagesListTypesSample.ts | 4 +- ...achineExtensionImagesListVersionsSample.ts | 8 +- ...alMachineExtensionsCreateOrUpdateSample.ts | 40 +- .../virtualMachineExtensionsDeleteSample.ts | 4 +- .../src/virtualMachineExtensionsGetSample.ts | 6 +- .../src/virtualMachineExtensionsListSample.ts | 6 +- .../virtualMachineExtensionsUpdateSample.ts | 11 +- .../virtualMachineImagesEdgeZoneGetSample.ts | 4 +- ...alMachineImagesEdgeZoneListOffersSample.ts | 4 +- ...chineImagesEdgeZoneListPublishersSample.ts | 4 +- .../virtualMachineImagesEdgeZoneListSample.ts | 8 +- ...tualMachineImagesEdgeZoneListSkusSample.ts | 4 +- .../src/virtualMachineImagesGetSample.ts | 4 +- ...irtualMachineImagesListByEdgeZoneSample.ts | 4 +- .../virtualMachineImagesListOffersSample.ts | 4 +- .../src/virtualMachineImagesListSample.ts | 8 +- .../src/virtualMachineImagesListSkusSample.ts | 4 +- ...lMachineRunCommandsCreateOrUpdateSample.ts | 23 +- .../virtualMachineRunCommandsDeleteSample.ts | 2 +- ...ineRunCommandsGetByVirtualMachineSample.ts | 2 +- .../src/virtualMachineRunCommandsGetSample.ts | 2 +- ...neRunCommandsListByVirtualMachineSample.ts | 2 +- .../virtualMachineRunCommandsUpdateSample.ts | 12 +- ...eScaleSetExtensionsCreateOrUpdateSample.ts | 30 +- ...alMachineScaleSetExtensionsDeleteSample.ts | 22 +- ...rtualMachineScaleSetExtensionsGetSample.ts | 6 +- ...tualMachineScaleSetExtensionsListSample.ts | 4 +- ...alMachineScaleSetExtensionsUpdateSample.ts | 30 +- ...hineScaleSetRollingUpgradesCancelSample.ts | 18 +- ...eScaleSetRollingUpgradesGetLatestSample.ts | 4 +- ...lingUpgradesStartExtensionUpgradeSample.ts | 9 +- ...eSetRollingUpgradesStartOSUpgradeSample.ts | 18 +- ...caleSetVMExtensionsCreateOrUpdateSample.ts | 19 +- ...MachineScaleSetVMExtensionsDeleteSample.ts | 13 +- ...ualMachineScaleSetVMExtensionsGetSample.ts | 2 +- ...alMachineScaleSetVMExtensionsListSample.ts | 2 +- ...MachineScaleSetVMExtensionsUpdateSample.ts | 19 +- ...aleSetVMRunCommandsCreateOrUpdateSample.ts | 27 +- ...achineScaleSetVMRunCommandsDeleteSample.ts | 13 +- ...alMachineScaleSetVMRunCommandsGetSample.ts | 2 +- ...lMachineScaleSetVMRunCommandsListSample.ts | 2 +- ...achineScaleSetVMRunCommandsUpdateSample.ts | 23 +- ...eScaleSetVMSApproveRollingUpgradeSample.ts | 11 +- ...eScaleSetVMSAttachDetachDataDisksSample.ts | 52 +- ...rtualMachineScaleSetVMSDeallocateSample.ts | 4 +- .../virtualMachineScaleSetVMSDeleteSample.ts | 6 +- ...MachineScaleSetVMSGetInstanceViewSample.ts | 2 +- .../src/virtualMachineScaleSetVMSGetSample.ts | 4 +- .../virtualMachineScaleSetVMSListSample.ts | 8 +- ...hineScaleSetVMSPerformMaintenanceSample.ts | 22 +- ...virtualMachineScaleSetVMSPowerOffSample.ts | 8 +- ...virtualMachineScaleSetVMSRedeploySample.ts | 4 +- ...rtualMachineScaleSetVMSReimageAllSample.ts | 4 +- .../virtualMachineScaleSetVMSReimageSample.ts | 10 +- .../virtualMachineScaleSetVMSRestartSample.ts | 4 +- ...SetVMSRetrieveBootDiagnosticsDataSample.ts | 20 +- ...rtualMachineScaleSetVMSRunCommandSample.ts | 4 +- ...achineScaleSetVMSSimulateEvictionSample.ts | 2 +- .../virtualMachineScaleSetVMSStartSample.ts | 4 +- .../virtualMachineScaleSetVMSUpdateSample.ts | 238 +- ...ineScaleSetsApproveRollingUpgradeSample.ts | 17 +- ...SetsConvertToSinglePlacementGroupSample.ts | 26 +- ...ualMachineScaleSetsCreateOrUpdateSample.ts | 1763 +- ...virtualMachineScaleSetsDeallocateSample.ts | 10 +- ...alMachineScaleSetsDeleteInstancesSample.ts | 32 +- .../virtualMachineScaleSetsDeleteSample.ts | 6 +- ...iceFabricPlatformUpdateDomainWalkSample.ts | 22 +- ...alMachineScaleSetsGetInstanceViewSample.ts | 4 +- ...chineScaleSetsGetOSUpgradeHistorySample.ts | 4 +- .../src/virtualMachineScaleSetsGetSample.ts | 10 +- ...ualMachineScaleSetsListByLocationSample.ts | 2 +- .../src/virtualMachineScaleSetsListSample.ts | 4 +- .../virtualMachineScaleSetsListSkusSample.ts | 4 +- ...achineScaleSetsPerformMaintenanceSample.ts | 26 +- .../virtualMachineScaleSetsPowerOffSample.ts | 10 +- .../virtualMachineScaleSetsReapplySample.ts | 4 +- .../virtualMachineScaleSetsRedeploySample.ts | 10 +- ...virtualMachineScaleSetsReimageAllSample.ts | 10 +- .../virtualMachineScaleSetsReimageSample.ts | 10 +- .../virtualMachineScaleSetsRestartSample.ts | 10 +- ...eSetsSetOrchestrationServiceStateSample.ts | 28 +- .../src/virtualMachineScaleSetsStartSample.ts | 8 +- ...alMachineScaleSetsUpdateInstancesSample.ts | 28 +- .../virtualMachineScaleSetsUpdateSample.ts | 132 +- .../src/virtualMachinesAssessPatchesSample.ts | 2 +- ...tualMachinesAttachDetachDataDisksSample.ts | 30 +- .../src/virtualMachinesCaptureSample.ts | 10 +- ...tualMachinesConvertToManagedDisksSample.ts | 4 +- .../virtualMachinesCreateOrUpdateSample.ts | 1175 +- .../src/virtualMachinesDeallocateSample.ts | 6 +- .../src/virtualMachinesDeleteSample.ts | 4 +- .../src/virtualMachinesGeneralizeSample.ts | 2 +- .../src/virtualMachinesGetSample.ts | 6 +- .../virtualMachinesInstallPatchesSample.ts | 8 +- .../src/virtualMachinesInstanceViewSample.ts | 4 +- .../src/virtualMachinesListAllSample.ts | 2 +- ...virtualMachinesListAvailableSizesSample.ts | 2 +- .../src/virtualMachinesListSample.ts | 4 +- ...virtualMachinesPerformMaintenanceSample.ts | 4 +- .../src/virtualMachinesPowerOffSample.ts | 6 +- .../src/virtualMachinesReapplySample.ts | 2 +- .../src/virtualMachinesRedeploySample.ts | 4 +- .../src/virtualMachinesReimageSample.ts | 10 +- .../src/virtualMachinesRestartSample.ts | 4 +- ...chinesRetrieveBootDiagnosticsDataSample.ts | 6 +- .../src/virtualMachinesRunCommandSample.ts | 2 +- .../virtualMachinesSimulateEvictionSample.ts | 2 +- .../src/virtualMachinesStartSample.ts | 4 +- .../src/virtualMachinesUpdateSample.ts | 60 +- .../src/computeManagementClient.ts | 55 +- sdk/compute/arm-compute/src/lroImpl.ts | 6 +- sdk/compute/arm-compute/src/models/index.ts | 566 +- sdk/compute/arm-compute/src/models/mappers.ts | 14810 ++++++++-------- .../arm-compute/src/models/parameters.ts | 700 +- .../src/operations/availabilitySets.ts | 179 +- .../operations/capacityReservationGroups.ts | 155 +- .../src/operations/capacityReservations.ts | 245 +- .../cloudServiceOperatingSystems.ts | 121 +- .../operations/cloudServiceRoleInstances.ts | 266 +- .../src/operations/cloudServiceRoles.ts | 66 +- .../src/operations/cloudServices.ts | 490 +- .../operations/cloudServicesUpdateDomain.ts | 113 +- .../src/operations/communityGalleries.ts | 19 +- .../communityGalleryImageVersions.ts | 73 +- .../src/operations/communityGalleryImages.ts | 64 +- .../src/operations/dedicatedHostGroups.ts | 152 +- .../src/operations/dedicatedHosts.ts | 327 +- .../src/operations/diskAccesses.ts | 525 +- .../src/operations/diskEncryptionSets.ts | 290 +- .../operations/diskRestorePointOperations.ts | 171 +- .../arm-compute/src/operations/disks.ts | 294 +- .../arm-compute/src/operations/galleries.ts | 236 +- .../operations/galleryApplicationVersions.ts | 219 +- .../src/operations/galleryApplications.ts | 210 +- .../src/operations/galleryImageVersions.ts | 214 +- .../src/operations/galleryImages.ts | 210 +- .../src/operations/gallerySharingProfile.ts | 52 +- .../arm-compute/src/operations/images.ts | 234 +- .../src/operations/logAnalytics.ts | 100 +- .../arm-compute/src/operations/operations.ts | 20 +- .../operations/proximityPlacementGroups.ts | 152 +- .../src/operations/resourceSkus.ts | 32 +- .../src/operations/restorePointCollections.ts | 173 +- .../src/operations/restorePoints.ts | 115 +- .../src/operations/sharedGalleries.ts | 58 +- .../operations/sharedGalleryImageVersions.ts | 73 +- .../src/operations/sharedGalleryImages.ts | 64 +- .../arm-compute/src/operations/snapshots.ts | 298 +- .../src/operations/sshPublicKeys.ts | 169 +- .../src/operations/usageOperations.ts | 41 +- .../virtualMachineExtensionImages.ts | 74 +- .../operations/virtualMachineExtensions.ts | 178 +- .../src/operations/virtualMachineImages.ts | 138 +- .../virtualMachineImagesEdgeZone.ts | 124 +- .../operations/virtualMachineRunCommands.ts | 259 +- .../virtualMachineScaleSetExtensions.ts | 209 +- .../virtualMachineScaleSetRollingUpgrades.ts | 144 +- .../virtualMachineScaleSetVMExtensions.ts | 185 +- .../virtualMachineScaleSetVMRunCommands.ts | 217 +- .../operations/virtualMachineScaleSetVMs.ts | 684 +- .../src/operations/virtualMachineScaleSets.ts | 998 +- .../src/operations/virtualMachineSizes.ts | 27 +- .../src/operations/virtualMachines.ts | 963 +- .../operationsInterfaces/availabilitySets.ts | 16 +- .../capacityReservationGroups.ts | 14 +- .../capacityReservations.ts | 18 +- .../cloudServiceOperatingSystems.ts | 10 +- .../cloudServiceRoleInstances.ts | 26 +- .../operationsInterfaces/cloudServiceRoles.ts | 6 +- .../src/operationsInterfaces/cloudServices.ts | 46 +- .../cloudServicesUpdateDomain.ts | 10 +- .../communityGalleries.ts | 4 +- .../communityGalleryImageVersions.ts | 6 +- .../communityGalleryImages.ts | 6 +- .../dedicatedHostGroups.ts | 14 +- .../operationsInterfaces/dedicatedHosts.ts | 28 +- .../src/operationsInterfaces/diskAccesses.ts | 34 +- .../diskEncryptionSets.ts | 22 +- .../diskRestorePointOperations.ts | 14 +- .../src/operationsInterfaces/disks.ts | 26 +- .../src/operationsInterfaces/galleries.ts | 20 +- .../galleryApplicationVersions.ts | 18 +- .../galleryApplications.ts | 18 +- .../galleryImageVersions.ts | 18 +- .../src/operationsInterfaces/galleryImages.ts | 18 +- .../gallerySharingProfile.ts | 6 +- .../src/operationsInterfaces/images.ts | 18 +- .../src/operationsInterfaces/logAnalytics.ts | 10 +- .../src/operationsInterfaces/operations.ts | 2 +- .../proximityPlacementGroups.ts | 14 +- .../src/operationsInterfaces/resourceSkus.ts | 2 +- .../restorePointCollections.ts | 16 +- .../src/operationsInterfaces/restorePoints.ts | 12 +- .../operationsInterfaces/sharedGalleries.ts | 6 +- .../sharedGalleryImageVersions.ts | 6 +- .../sharedGalleryImages.ts | 6 +- .../src/operationsInterfaces/snapshots.ts | 28 +- .../src/operationsInterfaces/sshPublicKeys.ts | 16 +- .../operationsInterfaces/usageOperations.ts | 2 +- .../virtualMachineExtensionImages.ts | 8 +- .../virtualMachineExtensions.ts | 18 +- .../virtualMachineImages.ts | 14 +- .../virtualMachineImagesEdgeZone.ts | 12 +- .../virtualMachineRunCommands.ts | 22 +- .../virtualMachineScaleSetExtensions.ts | 18 +- .../virtualMachineScaleSetRollingUpgrades.ts | 16 +- .../virtualMachineScaleSetVMExtensions.ts | 18 +- .../virtualMachineScaleSetVMRunCommands.ts | 18 +- .../virtualMachineScaleSetVMs.ts | 64 +- .../virtualMachineScaleSets.ts | 88 +- .../virtualMachineSizes.ts | 4 +- .../operationsInterfaces/virtualMachines.ts | 88 +- sdk/compute/arm-compute/src/pagingHelper.ts | 2 +- 677 files changed, 19896 insertions(+), 20288 deletions(-) diff --git a/sdk/compute/arm-compute/CHANGELOG.md b/sdk/compute/arm-compute/CHANGELOG.md index f2ed7c4182f7..720e88b499cf 100644 --- a/sdk/compute/arm-compute/CHANGELOG.md +++ b/sdk/compute/arm-compute/CHANGELOG.md @@ -1,15 +1,12 @@ # Release History + +## 21.5.0 (2024-03-01) + +**Features** -## 21.4.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Interface GalleryArtifactVersionFullSource has a new optional parameter virtualMachineId + + ## 21.4.0 (2023-12-28) **Features** diff --git a/sdk/compute/arm-compute/LICENSE b/sdk/compute/arm-compute/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/compute/arm-compute/LICENSE +++ b/sdk/compute/arm-compute/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 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/compute/arm-compute/_meta.json b/sdk/compute/arm-compute/_meta.json index c573873d86d0..b6ab9e1afb26 100644 --- a/sdk/compute/arm-compute/_meta.json +++ b/sdk/compute/arm-compute/_meta.json @@ -1,8 +1,8 @@ { - "commit": "4792bce7667477529991457890b4a6b670e70508", + "commit": "c42fcc06eb3581fd22384936e55288496b66a0d4", "readme": "specification/compute/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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\\compute\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/compute/arm-compute/assets.json b/sdk/compute/arm-compute/assets.json index 06c93eb27b63..4ab798d0af3f 100644 --- a/sdk/compute/arm-compute/assets.json +++ b/sdk/compute/arm-compute/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/compute/arm-compute", - "Tag": "js/compute/arm-compute_dd8e9a143f" + "Tag": "js/compute/arm-compute_627455e772" } diff --git a/sdk/compute/arm-compute/package.json b/sdk/compute/arm-compute/package.json index 48ac66790f42..a99d7a4c7de0 100644 --- a/sdk/compute/arm-compute/package.json +++ b/sdk/compute/arm-compute/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ComputeManagementClient.", - "version": "21.4.1", + "version": "21.5.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -79,7 +79,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", diff --git a/sdk/compute/arm-compute/review/arm-compute.api.md b/sdk/compute/arm-compute/review/arm-compute.api.md index 509ce0009873..2f2f932c52ed 100644 --- a/sdk/compute/arm-compute/review/arm-compute.api.md +++ b/sdk/compute/arm-compute/review/arm-compute.api.md @@ -2540,6 +2540,7 @@ export interface GalleryArtifactSource { // @public export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource { communityGalleryImageId?: string; + virtualMachineId?: string; } // @public diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts index 4ae9419814a1..81654d45a8dc 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsCreateOrUpdateSample.ts @@ -29,14 +29,14 @@ async function createAnAvailabilitySet() { const parameters: AvailabilitySet = { location: "westus", platformFaultDomainCount: 2, - platformUpdateDomainCount: 20 + platformUpdateDomainCount: 20, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.createOrUpdate( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts index a5082c67c213..268ebf39c19f 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsDeleteSample.ts @@ -30,7 +30,7 @@ async function availabilitySetDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.delete( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function availabilitySetDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.delete( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts index 3e0b4504e136..531c122aa26a 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsGetSample.ts @@ -30,7 +30,7 @@ async function availabilitySetGetMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.get( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function availabilitySetGetMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.get( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts index da106655ad9a..4e42e4c546d8 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsListAvailableSizesSample.ts @@ -31,7 +31,7 @@ async function availabilitySetListAvailableSizesMaximumSetGen() { const resArray = new Array(); for await (let item of client.availabilitySets.listAvailableSizes( resourceGroupName, - availabilitySetName + availabilitySetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function availabilitySetListAvailableSizesMinimumSetGen() { const resArray = new Array(); for await (let item of client.availabilitySets.listAvailableSizes( resourceGroupName, - availabilitySetName + availabilitySetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts index 7b05ad01a62b..b16bab0d03fe 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsListBySubscriptionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AvailabilitySetsListBySubscriptionOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts index 6f20cb4ba9f0..f5862c24a093 100644 --- a/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/availabilitySetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AvailabilitySetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,24 +33,22 @@ async function availabilitySetUpdateMaximumSetGen() { platformFaultDomainCount: 2, platformUpdateDomainCount: 20, proximityPlacementGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, sku: { name: "DSv3-Type1", capacity: 7, tier: "aaa" }, tags: { key2574: "aaaaaaaa" }, virtualMachines: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ] + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.update( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } @@ -73,7 +71,7 @@ async function availabilitySetUpdateMinimumSetGen() { const result = await client.availabilitySets.update( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts index ce800888f48f..a670117d5bf8 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,18 +34,18 @@ async function createOrUpdateACapacityReservationGroup() { sharingProfile: { subscriptionIds: [ { id: "/subscriptions/{subscription-id1}" }, - { id: "/subscriptions/{subscription-id2}" } - ] + { id: "/subscriptions/{subscription-id2}" }, + ], }, tags: { department: "finance" }, - zones: ["1", "2"] + zones: ["1", "2"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.createOrUpdate( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts index c06dd9f67957..94ed277eab18 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function capacityReservationGroupDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.delete( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function capacityReservationGroupDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.delete( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts index 87ca92a4d6f7..82de4920495b 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getACapacityReservationGroup() { const result = await client.capacityReservationGroups.get( resourceGroupName, capacityReservationGroupName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts index b0ab68cbdd2d..0758be0b7724 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListByResourceGroupSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsListByResourceGroupOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,14 +30,14 @@ async function listCapacityReservationGroupsInResourceGroup() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const expand = "virtualMachines/$ref"; const options: CapacityReservationGroupsListByResourceGroupOptionalParams = { - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.capacityReservationGroups.listByResourceGroup( resourceGroupName, - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts index 0ef8a0773052..212be0c3128c 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsListBySubscriptionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsListBySubscriptionOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -28,13 +28,13 @@ async function listCapacityReservationGroupsInSubscription() { process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const expand = "virtualMachines/$ref"; const options: CapacityReservationGroupsListBySubscriptionOptionalParams = { - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.capacityReservationGroups.listBySubscription( - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts index 0ac2a9c8fdd7..043cff4b9792 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function capacityReservationGroupUpdateMaximumSetGen() { const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaa"; const parameters: CapacityReservationGroupUpdate = { instanceView: {}, - tags: { key5355: "aaa" } + tags: { key5355: "aaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.update( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } @@ -61,7 +61,7 @@ async function capacityReservationGroupUpdateMinimumSetGen() { const result = await client.capacityReservationGroups.update( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts index c476f2944dca..0042121a1a53 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservation, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function createOrUpdateACapacityReservation() { location: "westus", sku: { name: "Standard_DS1_v2", capacity: 4 }, tags: { department: "HR" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createOrUpdateACapacityReservation() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts index 1bc5d31d8c8e..6230084fece7 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsDeleteSample.ts @@ -32,7 +32,7 @@ async function capacityReservationDeleteMaximumSetGen() { const result = await client.capacityReservations.beginDeleteAndWait( resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ); console.log(result); } @@ -55,7 +55,7 @@ async function capacityReservationDeleteMinimumSetGen() { const result = await client.capacityReservations.beginDeleteAndWait( resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts index 589ef4ac03af..536f3cd53b95 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function getACapacityReservation() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts index 5daea6cd4226..877a9b20b370 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsListByCapacityReservationGroupSample.ts @@ -31,7 +31,7 @@ async function listCapacityReservationsInReservationGroup() { const resArray = new Array(); for await (let item of client.capacityReservations.listByCapacityReservationGroup( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts index 56553cb737fb..b9ff00f83221 100644 --- a/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/capacityReservationsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,13 +38,13 @@ async function capacityReservationUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - utilizationInfo: {} + utilizationInfo: {}, }, sku: { name: "Standard_DS1_v2", capacity: 7, tier: "aaa" }, - tags: { key4974: "aaaaaaaaaaaaaaaa" } + tags: { key4974: "aaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -52,7 +52,7 @@ async function capacityReservationUpdateMaximumSetGen() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } @@ -77,7 +77,7 @@ async function capacityReservationUpdateMinimumSetGen() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts index ab6dc68501b8..a4e18fcff385 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSFamilySample.ts @@ -29,7 +29,7 @@ async function getCloudServiceOSFamily() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServiceOperatingSystems.getOSFamily( location, - osFamilyName + osFamilyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts index 0c7c0bc926e5..274cae0c36c3 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsGetOSVersionSample.ts @@ -29,7 +29,7 @@ async function getCloudServiceOSVersion() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServiceOperatingSystems.getOSVersion( location, - osVersionName + osVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts index 1fee46624d07..9a6714cc6fbc 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSFamiliesSample.ts @@ -28,7 +28,7 @@ async function listCloudServiceOSFamiliesInASubscription() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServiceOperatingSystems.listOSFamilies( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts index 895dfd1f6bf0..5df0cbb820ec 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceOperatingSystemsListOSVersionsSample.ts @@ -28,7 +28,7 @@ async function listCloudServiceOSVersionsInASubscription() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServiceOperatingSystems.listOSVersions( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesDeleteSample.ts index 5254fe36483a..9856be3c0d30 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginDeleteAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts index 3fcbb262bfe9..d85964b931f6 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetInstanceViewSample.ts @@ -32,7 +32,7 @@ async function getInstanceViewOfCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.getInstanceView( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts index 9a38dad49fc4..a5e06d0be6c3 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRole() { const result = await client.cloudServiceRoleInstances.getRemoteDesktopFile( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetSample.ts index 4e51d9d34e47..1e7d095773e5 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesGetSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.get( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesListSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesListSample.ts index 282f0e88a897..f32a30568aa6 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesListSample.ts @@ -31,7 +31,7 @@ async function listRoleInstancesInACloudService() { const resArray = new Array(); for await (let item of client.cloudServiceRoleInstances.list( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRebuildSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRebuildSample.ts index 4d7a8a253019..60ad73148a9b 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRebuildSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRebuildSample.ts @@ -32,7 +32,7 @@ async function rebuildCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginRebuildAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesReimageSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesReimageSample.ts index 93a439d57637..fdd0fdf3d780 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesReimageSample.ts @@ -32,7 +32,7 @@ async function reimageCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginReimageAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRestartSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRestartSample.ts index f08faf5cb377..98bce6b1552c 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRoleInstancesRestartSample.ts @@ -32,7 +32,7 @@ async function restartCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginRestartAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRolesGetSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRolesGetSample.ts index 84e8b3456f22..9341d597dffd 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRolesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRolesGetSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRole() { const result = await client.cloudServiceRoles.get( roleName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServiceRolesListSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServiceRolesListSample.ts index d9e4e8fc7583..8e83d253d56a 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServiceRolesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServiceRolesListSample.ts @@ -31,7 +31,7 @@ async function listRolesInACloudService() { const resArray = new Array(); for await (let item of client.cloudServiceRoles.list( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesCreateOrUpdateSample.ts index 3f9342725fa9..dc8b863eabe4 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesCreateOrUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudService, CloudServicesCreateOrUpdateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -44,31 +44,30 @@ async function createNewCloudServiceWithMultipleRoles() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, }, { name: "ContosoBackend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -76,7 +75,7 @@ async function createNewCloudServiceWithMultipleRoles() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -107,32 +106,31 @@ async function createNewCloudServiceWithMultipleRolesInASpecificAvailabilityZone name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, }, { name: "ContosoBackend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" + upgradeMode: "Auto", }, - zones: ["1"] + zones: ["1"], }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -140,7 +138,7 @@ async function createNewCloudServiceWithMultipleRolesInASpecificAvailabilityZone const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -171,27 +169,26 @@ async function createNewCloudServiceWithSingleRole() { name: "myfe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -199,7 +196,7 @@ async function createNewCloudServiceWithSingleRole() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -230,43 +227,41 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, osProfile: { secrets: [ { sourceVault: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}", }, vaultCertificates: [ { certificateUrl: - "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" - } - ] - } - ] + "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}", + }, + ], + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -274,7 +269,7 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -307,10 +302,10 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { publisher: "Microsoft.Windows.Azure.Extensions", settings: "UserAzure10/22/2021 15:05:45", - typeHandlerVersion: "1.2" - } - } - ] + typeHandlerVersion: "1.2", + }, + }, + ], }, networkProfile: { loadBalancerConfigurations: [ @@ -322,27 +317,26 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -350,7 +344,7 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteInstancesSample.ts index d42f6ac115bd..87cb1725998e 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteInstancesSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesDeleteInstancesOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesDeleteInstancesOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginDeleteInstancesAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteSample.ts index 4f21f5533124..987468b55800 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginDeleteAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesGetInstanceViewSample.ts index 5c647ca833fd..c25984e5b520 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesGetInstanceViewSample.ts @@ -30,7 +30,7 @@ async function getCloudServiceInstanceViewWithMultipleRoles() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.getInstanceView( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesGetSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesGetSample.ts index 03929a56022a..28bfc86b4ad8 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesGetSample.ts @@ -30,7 +30,7 @@ async function getCloudServiceWithMultipleRolesAndRdpExtension() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.get( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesPowerOffSample.ts index 212bf61669d3..531159633edb 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesPowerOffSample.ts @@ -30,7 +30,7 @@ async function stopOrPowerOffCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginPowerOffAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesRebuildSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesRebuildSample.ts index a42ce6b3f68b..c359978941b0 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesRebuildSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesRebuildSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesRebuildOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesRebuildOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginRebuildAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesReimageSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesReimageSample.ts index 7bd3b6c06fce..32cdc98752f6 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesReimageSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesReimageOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginReimageAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesRestartSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesRestartSample.ts index 55a492e83a08..229f4dfca5f5 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesRestartSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesRestartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesRestartOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginRestartAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesStartSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesStartSample.ts index 8b67518cd20b..6716efdc1657 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesStartSample.ts @@ -30,7 +30,7 @@ async function startCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginStartAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts index 8b316f2ecd07..6e86e73a427f 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainGetUpdateDomainSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceUpdateDomain() { const result = await client.cloudServicesUpdateDomain.getUpdateDomain( resourceGroupName, cloudServiceName, - updateDomain + updateDomain, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts index 0efb0d0e7594..3890af6092d2 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainListUpdateDomainsSample.ts @@ -31,7 +31,7 @@ async function listUpdateDomainsInCloudService() { const resArray = new Array(); for await (let item of client.cloudServicesUpdateDomain.listUpdateDomains( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts index a993941c27ca..4e05cf443dcc 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateDomainWalkUpdateDomainSample.ts @@ -29,11 +29,12 @@ async function updateCloudServiceToSpecifiedDomain() { const updateDomain = 1; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.cloudServicesUpdateDomain.beginWalkUpdateDomainAndWait( - resourceGroupName, - cloudServiceName, - updateDomain - ); + const result = + await client.cloudServicesUpdateDomain.beginWalkUpdateDomainAndWait( + resourceGroupName, + cloudServiceName, + updateDomain, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateSample.ts index 2070ef181141..4e985a0a2787 100644 --- a/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/cloudServicesUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudServiceUpdate, CloudServicesUpdateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,7 +37,7 @@ async function updateExistingCloudServiceToAddTags() { const result = await client.cloudServices.beginUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleriesGetSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleriesGetSample.ts index 405aeee67cc7..a32c22450f48 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery by gallery public name. * * @summary Get a community gallery by gallery public name. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = @@ -29,7 +29,7 @@ async function getACommunityGallery() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.communityGalleries.get( location, - publicGalleryName + publicGalleryName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsGetSample.ts index 5239ca70cf2c..6e1954e2fe7b 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery image version. * * @summary Get a community gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json */ async function getACommunityGalleryImageVersion() { const subscriptionId = @@ -33,7 +33,7 @@ async function getACommunityGalleryImageVersion() { location, publicGalleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsListSample.ts index 379ca8f6f582..4124b7701d09 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleryImageVersionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List community gallery image versions inside an image. * * @summary List community gallery image versions inside an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json */ async function listCommunityGalleryImageVersions() { const subscriptionId = @@ -32,7 +32,7 @@ async function listCommunityGalleryImageVersions() { for await (let item of client.communityGalleryImageVersions.list( location, publicGalleryName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleryImagesGetSample.ts index e06146557f79..ba0705c3f9c6 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery image. * * @summary Get a community gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json */ async function getACommunityGalleryImage() { const subscriptionId = @@ -31,7 +31,7 @@ async function getACommunityGalleryImage() { const result = await client.communityGalleryImages.get( location, publicGalleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/communityGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples-dev/communityGalleryImagesListSample.ts index fa6a13caf8ff..32c46a871abc 100644 --- a/sdk/compute/arm-compute/samples-dev/communityGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/communityGalleryImagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List community gallery images inside a gallery. * * @summary List community gallery images inside a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json */ async function listCommunityGalleryImages() { const subscriptionId = @@ -30,7 +30,7 @@ async function listCommunityGalleryImages() { const resArray = new Array(); for await (let item of client.communityGalleryImages.list( location, - publicGalleryName + publicGalleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts index 22347f828c26..2c665764d3e1 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,14 +35,14 @@ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { department: "finance" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.createOrUpdate( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } @@ -64,14 +64,14 @@ async function createOrUpdateADedicatedHostGroup() { platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { department: "finance" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.createOrUpdate( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts index 48b680165837..fe062cf62652 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function dedicatedHostGroupDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.delete( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function dedicatedHostGroupDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.delete( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts index 16ffc0907515..24bf0a8be9e0 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsGetSample.ts @@ -30,7 +30,7 @@ async function createADedicatedHostGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.get( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function createAnUltraSsdEnabledDedicatedHostGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.get( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts index a07210a086c2..ea613c0ff0ef 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function dedicatedHostGroupListByResourceGroupMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHostGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function dedicatedHostGroupListByResourceGroupMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHostGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts index cdf8f3d01910..82f42f2542cf 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function dedicatedHostGroupUpdateMaximumSetGen() { hosts: [ { availableCapacity: { - allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }] + allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }], }, statuses: [ { @@ -42,23 +42,23 @@ async function dedicatedHostGroupUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] - } - ] + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], + }, + ], }, platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { key9921: "aaaaaaaaaa" }, - zones: ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"] + zones: ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.update( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function dedicatedHostGroupUpdateMinimumSetGen() { const result = await client.dedicatedHostGroups.update( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts index fc072f5560dc..dddc5c1d4b97 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsCreateOrUpdateSample.ts @@ -31,7 +31,7 @@ async function createOrUpdateADedicatedHost() { location: "westus", platformFaultDomain: 1, sku: { name: "DSv3-Type1" }, - tags: { department: "HR" } + tags: { department: "HR" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function createOrUpdateADedicatedHost() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts index c4502053da6b..b08765836393 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsDeleteSample.ts @@ -32,7 +32,7 @@ async function dedicatedHostDeleteMaximumSetGen() { const result = await client.dedicatedHosts.beginDeleteAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } @@ -55,7 +55,7 @@ async function dedicatedHostDeleteMinimumSetGen() { const result = await client.dedicatedHosts.beginDeleteAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts index 6d4a1d4588e5..ca1d89b28ddd 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function getADedicatedHost() { resourceGroupName, hostGroupName, hostName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts index f2bab8437922..ec96aa782a5d 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListAvailableSizesSample.ts @@ -33,7 +33,7 @@ async function getAvailableDedicatedHostSizes() { for await (let item of client.dedicatedHosts.listAvailableSizes( resourceGroupName, hostGroupName, - hostName + hostName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts index 16bde93349a7..39dc4beeb9ea 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsListByHostGroupSample.ts @@ -31,7 +31,7 @@ async function dedicatedHostListByHostGroupMaximumSetGen() { const resArray = new Array(); for await (let item of client.dedicatedHosts.listByHostGroup( resourceGroupName, - hostGroupName + hostGroupName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function dedicatedHostListByHostGroupMinimumSetGen() { const resArray = new Array(); for await (let item of client.dedicatedHosts.listByHostGroup( resourceGroupName, - hostGroupName + hostGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRedeploySample.ts index d004db93fb39..5602d99a584c 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRedeploySample.ts @@ -32,7 +32,7 @@ async function redeployDedicatedHost() { const result = await client.dedicatedHosts.beginRedeployAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts index 1a8c32099c90..2c17a6c4bcd3 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsRestartSample.ts @@ -32,7 +32,7 @@ async function restartDedicatedHost() { const result = await client.dedicatedHosts.beginRestartAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts index 226ca0f55bd0..8617aaf85e10 100644 --- a/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/dedicatedHostsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function dedicatedHostUpdateMaximumSetGen() { autoReplaceOnFailure: true, instanceView: { availableCapacity: { - allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }] + allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }], }, statuses: [ { @@ -42,13 +42,13 @@ async function dedicatedHostUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], }, licenseType: "Windows_Server_Hybrid", platformFaultDomain: 1, - tags: { key8813: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" } + tags: { key8813: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +56,7 @@ async function dedicatedHostUpdateMaximumSetGen() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function dedicatedHostUpdateMinimumSetGen() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } @@ -106,7 +106,7 @@ async function dedicatedHostUpdateResize() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesCreateOrUpdateSample.ts index 133f0909a9bc..30308cd7ef42 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesCreateOrUpdateSample.ts @@ -32,7 +32,7 @@ async function createADiskAccessResource() { const result = await client.diskAccesses.beginCreateOrUpdateAndWait( resourceGroupName, diskAccessName, - diskAccess + diskAccess, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts index 729ac386eb42..053484f4236e 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteAPrivateEndpointConnectionSample.ts @@ -29,11 +29,12 @@ async function deleteAPrivateEndpointConnectionUnderADiskAccessResource() { const privateEndpointConnectionName = "myPrivateEndpointConnection"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskAccesses.beginDeleteAPrivateEndpointConnectionAndWait( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName - ); + const result = + await client.diskAccesses.beginDeleteAPrivateEndpointConnectionAndWait( + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteSample.ts index bd476087eb66..5e288a7afcd8 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteADiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.beginDeleteAndWait( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts index d0ba69f2b9e9..3b7d5648af0c 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesGetAPrivateEndpointConnectionSample.ts @@ -32,7 +32,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso const result = await client.diskAccesses.getAPrivateEndpointConnection( resourceGroupName, diskAccessName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts index 819678ea8e1d..da1c00a9a93a 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesGetPrivateLinkResourcesSample.ts @@ -30,7 +30,7 @@ async function listAllPossiblePrivateLinkResourcesUnderDiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.getPrivateLinkResources( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesGetSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesGetSample.ts index a6fbf25cc18d..b80b4b552ac7 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesGetSample.ts @@ -30,7 +30,7 @@ async function getInformationAboutADiskAccessResourceWithPrivateEndpoints() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.get( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInformationAboutADiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.get( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesListByResourceGroupSample.ts index ec7b36c9a4b0..f57887bab2da 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllDiskAccessResourcesInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.diskAccesses.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts index 618778ad6bf6..7b2e7144a05d 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesListPrivateEndpointConnectionsSample.ts @@ -31,7 +31,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso const resArray = new Array(); for await (let item of client.diskAccesses.listPrivateEndpointConnections( resourceGroupName, - diskAccessName + diskAccessName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts index 9e1e3343a462..ad60027840ba 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateAPrivateEndpointConnectionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,17 +33,18 @@ async function approveAPrivateEndpointConnectionUnderADiskAccessResource() { const privateEndpointConnection: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approving myPrivateEndpointConnection", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskAccesses.beginUpdateAPrivateEndpointConnectionAndWait( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName, - privateEndpointConnection - ); + const result = + await client.diskAccesses.beginUpdateAPrivateEndpointConnectionAndWait( + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + privateEndpointConnection, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateSample.ts index 1c5bb3142bfa..cec7146dff6f 100644 --- a/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskAccessesUpdateSample.ts @@ -27,14 +27,14 @@ async function updateADiskAccessResource() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskAccessName = "myDiskAccess"; const diskAccess: DiskAccessUpdate = { - tags: { department: "Development", project: "PrivateEndpoints" } + tags: { department: "Development", project: "PrivateEndpoints" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.beginUpdateAndWait( resourceGroupName, diskAccessName, - diskAccess + diskAccess, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts index 7ecc7f898a30..4ba534ae7896 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsCreateOrUpdateSample.ts @@ -28,18 +28,18 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentSubscription() const diskEncryptionSetName = "myDiskEncryptionSet"; const diskEncryptionSet: DiskEncryptionSet = { activeKey: { - keyUrl: "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}" + keyUrl: "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -59,24 +59,25 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentTenant() { const diskEncryptionSet: DiskEncryptionSet = { activeKey: { keyUrl: - "https://myvaultdifferenttenant.vault-int.azure-int.net/keys/{key}" + "https://myvaultdifferenttenant.vault-int.azure-int.net/keys/{key}", }, encryptionType: "EncryptionAtRestWithCustomerKey", federatedClientId: "00000000-0000-0000-0000-000000000000", identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MicrosoftManagedIdentity/userAssignedIdentities/{identityName}": {} - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MicrosoftManagedIdentity/userAssignedIdentities/{identityName}": + {}, + }, }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -97,20 +98,19 @@ async function createADiskEncryptionSet() { activeKey: { keyUrl: "https://myvmvault.vault-int.azure-int.net/keys/{key}", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault", + }, }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsDeleteSample.ts index ec4c11b8621e..695a0958275b 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteADiskEncryptionSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginDeleteAndWait( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsGetSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsGetSample.ts index e72405a2c053..39b842d7e835 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsGetSample.ts @@ -30,7 +30,7 @@ async function getInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.get( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInformationAboutADiskEncryptionSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.get( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts index e2bfd3c32488..2d4bc04c1681 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListAssociatedResourcesSample.ts @@ -31,7 +31,7 @@ async function listAllResourcesThatAreEncryptedWithThisDiskEncryptionSet() { const resArray = new Array(); for await (let item of client.diskEncryptionSets.listAssociatedResources( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts index af7e304aa243..d6495c7875b3 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllDiskEncryptionSetsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.diskEncryptionSets.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsUpdateSample.ts index c98e27f0b93e..bfa64e97e97e 100644 --- a/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskEncryptionSetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DiskEncryptionSetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT const diskEncryptionSet: DiskEncryptionSetUpdate = { activeKey: { keyUrl: - "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1" + "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - rotationToLatestKeyVersionEnabled: true + rotationToLatestKeyVersionEnabled: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -63,18 +63,18 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT const diskEncryptionSet: DiskEncryptionSetUpdate = { activeKey: { keyUrl: - "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1" + "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - rotationToLatestKeyVersionEnabled: true + rotationToLatestKeyVersionEnabled: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -96,19 +96,18 @@ async function updateADiskEncryptionSet() { keyUrl: "https://myvmvault.vault-int.azure-int.net/keys/keyName/keyVersion", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault", + }, }, encryptionType: "EncryptionAtRestWithCustomerKey", - tags: { department: "Development", project: "Encryption" } + tags: { department: "Development", project: "Encryption" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskRestorePointGetSample.ts b/sdk/compute/arm-compute/samples-dev/diskRestorePointGetSample.ts index c9b6cddfd83a..759552ff5d79 100644 --- a/sdk/compute/arm-compute/samples-dev/diskRestorePointGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskRestorePointGetSample.ts @@ -35,7 +35,7 @@ async function getAnIncrementalDiskRestorePointResource() { resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ); console.log(result); } @@ -61,7 +61,7 @@ async function getAnIncrementalDiskRestorePointWhenSourceResourceIsFromADifferen resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskRestorePointGrantAccessSample.ts b/sdk/compute/arm-compute/samples-dev/diskRestorePointGrantAccessSample.ts index a1ea3e893723..a3727c1e1a40 100644 --- a/sdk/compute/arm-compute/samples-dev/diskRestorePointGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskRestorePointGrantAccessSample.ts @@ -32,17 +32,18 @@ async function grantsAccessToADiskRestorePoint() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHDX" + fileFormat: "VHDX", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskRestorePointOperations.beginGrantAccessAndWait( - resourceGroupName, - restorePointCollectionName, - vmRestorePointName, - diskRestorePointName, - grantAccessData - ); + const result = + await client.diskRestorePointOperations.beginGrantAccessAndWait( + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + grantAccessData, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/diskRestorePointListByRestorePointSample.ts b/sdk/compute/arm-compute/samples-dev/diskRestorePointListByRestorePointSample.ts index 0e6c7f6d0b7d..daabb88ee3ab 100644 --- a/sdk/compute/arm-compute/samples-dev/diskRestorePointListByRestorePointSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskRestorePointListByRestorePointSample.ts @@ -33,7 +33,7 @@ async function getAnIncrementalDiskRestorePointResource() { for await (let item of client.diskRestorePointOperations.listByRestorePoint( resourceGroupName, restorePointCollectionName, - vmRestorePointName + vmRestorePointName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/diskRestorePointRevokeAccessSample.ts b/sdk/compute/arm-compute/samples-dev/diskRestorePointRevokeAccessSample.ts index 58176b3b1c7f..b3d75eb42fd9 100644 --- a/sdk/compute/arm-compute/samples-dev/diskRestorePointRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/diskRestorePointRevokeAccessSample.ts @@ -31,12 +31,13 @@ async function revokesAccessToADiskRestorePoint() { "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskRestorePointOperations.beginRevokeAccessAndWait( - resourceGroupName, - restorePointCollectionName, - vmRestorePointName, - diskRestorePointName - ); + const result = + await client.diskRestorePointOperations.beginRevokeAccessAndWait( + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/disksCreateOrUpdateSample.ts index 6315c1f4e62b..7353c358b659 100644 --- a/sdk/compute/arm-compute/samples-dev/disksCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksCreateOrUpdateSample.ts @@ -30,24 +30,23 @@ async function createAConfidentialVMSupportedDiskEncryptedWithCustomerManagedKey creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0", + }, }, location: "West US", osType: "Windows", securityProfile: { secureVMDiskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - securityType: "ConfidentialVM_DiskEncryptedWithCustomerKey" - } + securityType: "ConfidentialVM_DiskEncryptedWithCustomerKey", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -70,14 +69,14 @@ async function createAManagedDiskAndAssociateWithDiskAccessResource() { "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}", diskSizeGB: 200, location: "West US", - networkAccessPolicy: "AllowPrivate" + networkAccessPolicy: "AllowPrivate", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -99,16 +98,16 @@ async function createAManagedDiskAndAssociateWithDiskEncryptionSet() { diskSizeGB: 200, encryption: { diskEncryptionSetId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -129,16 +128,16 @@ async function createAManagedDiskByCopyingASnapshot() { creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -161,16 +160,16 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscri sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -191,16 +190,16 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscripti creationData: { createOption: "Import", sourceUri: - "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -225,20 +224,20 @@ async function createAManagedDiskFromImportSecureCreateOption() { sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, location: "West US", osType: "Windows", securityProfile: { - securityType: "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" - } + securityType: "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -258,18 +257,18 @@ async function createAManagedDiskFromUploadPreparedSecureCreateOption() { const disk: Disk = { creationData: { createOption: "UploadPreparedSecure", - uploadSizeBytes: 10737418752 + uploadSizeBytes: 10737418752, }, location: "West US", osType: "Windows", - securityProfile: { securityType: "TrustedLaunch" } + securityProfile: { securityType: "TrustedLaunch" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -290,19 +289,18 @@ async function createAManagedDiskFromAPlatformImage() { creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -324,18 +322,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryCommunityImage() { createOption: "FromImage", galleryImageReference: { communityGalleryImageId: - "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0" - } + "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -357,18 +355,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryDirectSharedImage() { createOption: "FromImage", galleryImageReference: { sharedGalleryImageId: - "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0" - } + "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -389,19 +387,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryImage() { creationData: { createOption: "FromImage", galleryImageReference: { - id: - "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -422,16 +419,16 @@ async function createAManagedDiskFromAnExistingManagedDiskInTheSameOrDifferentSu creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -452,16 +449,16 @@ async function createAManagedDiskFromElasticSanVolumeSnapshot() { creationData: { createOption: "CopyFromSanSnapshot", elasticSanResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -482,14 +479,14 @@ async function createAManagedDiskWithDataAccessAuthMode() { creationData: { createOption: "Empty" }, dataAccessAuthMode: "AzureActiveDirectory", diskSizeGB: 200, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -510,14 +507,14 @@ async function createAManagedDiskWithOptimizedForFrequentAttach() { creationData: { createOption: "Empty" }, diskSizeGB: 200, location: "West US", - optimizedForFrequentAttach: true + optimizedForFrequentAttach: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -536,14 +533,14 @@ async function createAManagedDiskWithPerformancePlus() { const diskName = "myDisk"; const disk: Disk = { creationData: { createOption: "Upload", performancePlus: true }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -566,14 +563,14 @@ async function createAManagedDiskWithPremiumV2AccountType() { diskMBpsReadWrite: 3000, diskSizeGB: 200, location: "West US", - sku: { name: "PremiumV2_LRS" } + sku: { name: "PremiumV2_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -594,20 +591,19 @@ async function createAManagedDiskWithSecurityProfile() { creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}", + }, }, location: "North Central US", osType: "Windows", - securityProfile: { securityType: "TrustedLaunch" } + securityProfile: { securityType: "TrustedLaunch" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -628,14 +624,14 @@ async function createAManagedDiskWithSsdZrsAccountType() { creationData: { createOption: "Empty" }, diskSizeGB: 200, location: "West US", - sku: { name: "Premium_ZRS" } + sku: { name: "Premium_ZRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -659,14 +655,14 @@ async function createAManagedDiskWithUltraAccountTypeWithReadOnlyPropertySet() { diskSizeGB: 200, encryption: { type: "EncryptionAtRestWithPlatformKey" }, location: "West US", - sku: { name: "UltraSSD_LRS" } + sku: { name: "UltraSSD_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -685,14 +681,14 @@ async function createAManagedUploadDisk() { const diskName = "myDisk"; const disk: Disk = { creationData: { createOption: "Upload", uploadSizeBytes: 10737418752 }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -713,14 +709,14 @@ async function createAnEmptyManagedDiskInExtendedLocation() { creationData: { createOption: "Empty" }, diskSizeGB: 200, extendedLocation: { name: "{edge-zone-id}", type: "EdgeZone" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -740,14 +736,14 @@ async function createAnEmptyManagedDisk() { const disk: Disk = { creationData: { createOption: "Empty" }, diskSizeGB: 200, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -768,14 +764,14 @@ async function createAnUltraManagedDiskWithLogicalSectorSize512E() { creationData: { createOption: "Empty", logicalSectorSize: 512 }, diskSizeGB: 200, location: "West US", - sku: { name: "UltraSSD_LRS" } + sku: { name: "UltraSSD_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/disksDeleteSample.ts index 17fe2a2b2c9b..3ccb80f26724 100644 --- a/sdk/compute/arm-compute/samples-dev/disksDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAManagedDisk() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginDeleteAndWait( resourceGroupName, - diskName + diskName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksGrantAccessSample.ts b/sdk/compute/arm-compute/samples-dev/disksGrantAccessSample.ts index a7b5e03b9669..7c18d5813148 100644 --- a/sdk/compute/arm-compute/samples-dev/disksGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksGrantAccessSample.ts @@ -29,14 +29,14 @@ async function getASasOnAManagedDisk() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHD" + fileFormat: "VHD", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginGrantAccessAndWait( resourceGroupName, diskName, - grantAccessData + grantAccessData, ); console.log(result); } @@ -56,14 +56,14 @@ async function getSasOnManagedDiskAndVMGuestState() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - getSecureVMGuestStateSAS: true + getSecureVMGuestStateSAS: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginGrantAccessAndWait( resourceGroupName, diskName, - grantAccessData + grantAccessData, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksRevokeAccessSample.ts b/sdk/compute/arm-compute/samples-dev/disksRevokeAccessSample.ts index 14a1693d459e..1fea43813b80 100644 --- a/sdk/compute/arm-compute/samples-dev/disksRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksRevokeAccessSample.ts @@ -30,7 +30,7 @@ async function revokeAccessToAManagedDisk() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginRevokeAccessAndWait( resourceGroupName, - diskName + diskName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/disksUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/disksUpdateSample.ts index 198328942304..49d3774d5919 100644 --- a/sdk/compute/arm-compute/samples-dev/disksUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/disksUpdateSample.ts @@ -32,7 +32,7 @@ async function createOrUpdateABurstingEnabledManagedDisk() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -50,14 +50,14 @@ async function updateAManagedDiskToAddAcceleratedNetworking() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskName = "myDisk"; const disk: DiskUpdate = { - supportedCapabilities: { acceleratedNetwork: false } + supportedCapabilities: { acceleratedNetwork: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -80,7 +80,7 @@ async function updateAManagedDiskToAddArchitecture() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -102,15 +102,15 @@ async function updateAManagedDiskToAddPurchasePlan() { name: "myPurchasePlanName", product: "myPurchasePlanProduct", promotionCode: "myPurchasePlanPromotionCode", - publisher: "myPurchasePlanPublisher" - } + publisher: "myPurchasePlanPublisher", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -133,7 +133,7 @@ async function updateAManagedDiskToAddSupportsHibernation() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -156,7 +156,7 @@ async function updateAManagedDiskToChangeTier() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -179,7 +179,7 @@ async function updateAManagedDiskToDisableBursting() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -202,7 +202,7 @@ async function updateAManagedDiskToDisableOptimizedForFrequentAttach() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -220,14 +220,14 @@ async function updateAManagedDiskWithDiskControllerTypes() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskName = "myDisk"; const disk: DiskUpdate = { - supportedCapabilities: { diskControllerTypes: "SCSI" } + supportedCapabilities: { diskControllerTypes: "SCSI" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -250,7 +250,7 @@ async function updateManagedDiskToRemoveDiskAccessResourceAssociation() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleriesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesCreateOrUpdateSample.ts index ecefc848e0fe..082790fdaf86 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json */ async function createACommunityGallery() { const subscriptionId = @@ -34,17 +34,17 @@ async function createACommunityGallery() { eula: "eula", publicNamePrefix: "PirPublic", publisherContact: "pir@microsoft.com", - publisherUri: "uri" + publisherUri: "uri", }, - permissions: "Community" - } + permissions: "Community", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -53,7 +53,7 @@ async function createACommunityGallery() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json */ async function createOrUpdateASimpleGalleryWithSharingProfile() { const subscriptionId = @@ -64,14 +64,14 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { const gallery: Gallery = { description: "This is the gallery description.", location: "West US", - sharingProfile: { permissions: "Groups" } + sharingProfile: { permissions: "Groups" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -80,7 +80,7 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json */ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const subscriptionId = @@ -91,14 +91,14 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const gallery: Gallery = { description: "This is the gallery description.", location: "West US", - softDeletePolicy: { isSoftDeleteEnabled: true } + softDeletePolicy: { isSoftDeleteEnabled: true }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -107,7 +107,7 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create.json */ async function createOrUpdateASimpleGallery() { const subscriptionId = @@ -117,14 +117,14 @@ async function createOrUpdateASimpleGallery() { const galleryName = "myGalleryName"; const gallery: Gallery = { description: "This is the gallery description.", - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleriesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesDeleteSample.ts index aa2c1968e347..2cdad8d821ab 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a Shared Image Gallery. * * @summary Delete a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json */ async function deleteAGallery() { const subscriptionId = @@ -30,7 +30,7 @@ async function deleteAGallery() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginDeleteAndWait( resourceGroupName, - galleryName + galleryName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleriesGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesGetSample.ts index 64f03f905bbe..915d310529d9 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleriesGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = @@ -39,7 +39,7 @@ async function getACommunityGallery() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json */ async function getAGalleryWithExpandSharingProfileGroups() { const subscriptionId = @@ -54,7 +54,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { const result = await client.galleries.get( resourceGroupName, galleryName, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json */ async function getAGalleryWithSelectPermissions() { const subscriptionId = @@ -78,7 +78,7 @@ async function getAGalleryWithSelectPermissions() { const result = await client.galleries.get( resourceGroupName, galleryName, - options + options, ); console.log(result); } @@ -87,7 +87,7 @@ async function getAGalleryWithSelectPermissions() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json */ async function getAGallery() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/galleriesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesListByResourceGroupSample.ts index 1f566892d9f5..2b167c09f50a 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List galleries under a resource group. * * @summary List galleries under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json */ async function listGalleriesInAResourceGroup() { const subscriptionId = @@ -29,7 +29,7 @@ async function listGalleriesInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.galleries.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleriesListSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesListSample.ts index 8aaa25172f9d..728fa29bba77 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List galleries under a subscription. * * @summary List galleries under a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json */ async function listGalleriesInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/galleriesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleriesUpdateSample.ts index a11068594b2c..1a19b56f7ce2 100644 --- a/sdk/compute/arm-compute/samples-dev/galleriesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleriesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update a Shared Image Gallery. * * @summary Update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json */ async function updateASimpleGallery() { const subscriptionId = @@ -27,14 +27,14 @@ async function updateASimpleGallery() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const galleryName = "myGalleryName"; const gallery: GalleryUpdate = { - description: "This is the gallery description." + description: "This is the gallery description.", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts index 86451e0739a1..aaec62cdc642 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersion, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery Application Version. * * @summary Create or update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json */ async function createOrUpdateASimpleGalleryApplicationVersion() { const subscriptionId = @@ -44,22 +44,22 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], endOfLifeDate: new Date("2019-07-01T07:00:00Z"), manageActions: { install: 'powershell -command "Expand-Archive -Path package.zip -DestinationPath C:\\package"', - remove: "del C:\\package " + remove: "del C:\\package ", }, replicaCount: 1, source: { mediaLink: - "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}", }, storageAccountType: "Standard_LRS", targetRegions: [ @@ -67,21 +67,22 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1, - storageAccountType: "Standard_LRS" - } - ] + storageAccountType: "Standard_LRS", + }, + ], }, - safetyProfile: { allowDeletionOfReplicatedLocations: false } + safetyProfile: { allowDeletionOfReplicatedLocations: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.galleryApplicationVersions.beginCreateOrUpdateAndWait( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplicationVersionName, - galleryApplicationVersion - ); + const result = + await client.galleryApplicationVersions.beginCreateOrUpdateAndWait( + resourceGroupName, + galleryName, + galleryApplicationName, + galleryApplicationVersionName, + galleryApplicationVersion, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsDeleteSample.ts index 9af5ca0b658c..38f242f79412 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery Application Version. * * @summary Delete a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json */ async function deleteAGalleryApplicationVersion() { const subscriptionId = @@ -34,7 +34,7 @@ async function deleteAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsGetSample.ts index 6bc12a16971a..9fe6ca7bd9cb 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json */ async function getAGalleryApplicationVersionWithReplicationStatus() { const subscriptionId = @@ -40,7 +40,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, ); console.log(result); } @@ -49,7 +49,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json */ async function getAGalleryApplicationVersion() { const subscriptionId = @@ -65,7 +65,7 @@ async function getAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts index 5b5fd0d8371a..55a74ff36b20 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsListByGalleryApplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery Application Versions in a gallery Application Definition. * * @summary List gallery Application Versions in a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json */ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { const subscriptionId = @@ -33,7 +33,7 @@ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { for await (let item of client.galleryApplicationVersions.listByGalleryApplication( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsUpdateSample.ts index 6387db4be388..3d1ebc4e9c7b 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationVersionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery Application Version. * * @summary Update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json */ async function updateASimpleGalleryApplicationVersion() { const subscriptionId = @@ -37,12 +37,12 @@ async function updateASimpleGalleryApplicationVersion() { manageActions: { install: 'powershell -command "Expand-Archive -Path package.zip -DestinationPath C:\\package"', - remove: "del C:\\package " + remove: "del C:\\package ", }, replicaCount: 1, source: { mediaLink: - "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}", }, storageAccountType: "Standard_LRS", targetRegions: [ @@ -50,11 +50,11 @@ async function updateASimpleGalleryApplicationVersion() { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1, - storageAccountType: "Standard_LRS" - } - ] + storageAccountType: "Standard_LRS", + }, + ], }, - safetyProfile: { allowDeletionOfReplicatedLocations: false } + safetyProfile: { allowDeletionOfReplicatedLocations: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -63,7 +63,7 @@ async function updateASimpleGalleryApplicationVersion() { galleryName, galleryApplicationName, galleryApplicationVersionName, - galleryApplicationVersion + galleryApplicationVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsCreateOrUpdateSample.ts index 7e8bfd3dcb2f..13ec8d872b01 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplication, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery Application Definition. * * @summary Create or update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json */ async function createOrUpdateASimpleGalleryApplication() { const subscriptionId = @@ -42,17 +42,17 @@ async function createOrUpdateASimpleGalleryApplication() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], eula: "This is the gallery application EULA.", location: "West US", privacyStatementUri: "myPrivacyStatementUri}", releaseNoteUri: "myReleaseNoteUri", - supportedOSType: "Windows" + supportedOSType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -60,7 +60,7 @@ async function createOrUpdateASimpleGalleryApplication() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplication + galleryApplication, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsDeleteSample.ts index 4420b49c2068..dbf8d2a74f6c 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery Application. * * @summary Delete a gallery Application. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json */ async function deleteAGalleryApplication() { const subscriptionId = @@ -32,7 +32,7 @@ async function deleteAGalleryApplication() { const result = await client.galleryApplications.beginDeleteAndWait( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsGetSample.ts index 8824d03d0d5e..c7241ed0da23 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery Application Definition. * * @summary Retrieves information about a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json */ async function getAGalleryApplication() { const subscriptionId = @@ -32,7 +32,7 @@ async function getAGalleryApplication() { const result = await client.galleryApplications.get( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsListByGallerySample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsListByGallerySample.ts index f26edc619f0b..b2a567fa665b 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsListByGallerySample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsListByGallerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery Application Definitions in a gallery. * * @summary List gallery Application Definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json */ async function listGalleryApplicationsInAGallery() { const subscriptionId = @@ -31,7 +31,7 @@ async function listGalleryApplicationsInAGallery() { const resArray = new Array(); for await (let item of client.galleryApplications.listByGallery( resourceGroupName, - galleryName + galleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryApplicationsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryApplicationsUpdateSample.ts index 9f0354ada9e6..ac9c5128804e 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryApplicationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryApplicationsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery Application Definition. * * @summary Update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json */ async function updateASimpleGalleryApplication() { const subscriptionId = @@ -42,16 +42,16 @@ async function updateASimpleGalleryApplication() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], eula: "This is the gallery application EULA.", privacyStatementUri: "myPrivacyStatementUri}", releaseNoteUri: "myReleaseNoteUri", - supportedOSType: "Windows" + supportedOSType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -59,7 +59,7 @@ async function updateASimpleGalleryApplication() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplication + galleryApplication, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts index 34d31259d686..b3a2c2e67c30 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersion, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { const subscriptionId = @@ -42,21 +42,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 2 + regionalReplicaCount: 2, }, { name: "East US", @@ -65,32 +65,32 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" - } - } + virtualMachineId: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -99,7 +99,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -108,7 +108,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImageAsSource() { const subscriptionId = @@ -129,21 +129,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -152,32 +152,32 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { communityGalleryImageId: - "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}" - } - } + "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -186,7 +186,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -195,7 +195,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create.json */ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource() { const subscriptionId = @@ -216,21 +216,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -239,32 +239,31 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -273,7 +272,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -282,7 +281,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapshotsAsASource() { const subscriptionId = @@ -303,16 +302,16 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -321,19 +320,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -342,19 +341,17 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho hostCaching: "None", lun: 1, source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -363,7 +360,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -372,7 +369,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json */ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMode() { const subscriptionId = @@ -387,16 +384,15 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo publishingProfile: { replicationMode: "Shallow", targetRegions: [ - { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1 } - ] + { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1 }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -405,7 +401,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -414,7 +410,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource() { const subscriptionId = @@ -435,21 +431,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -458,32 +454,31 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -492,7 +487,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -501,7 +496,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { const subscriptionId = @@ -522,16 +517,16 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -540,19 +535,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -561,19 +556,17 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() hostCaching: "None", lun: 1, source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -582,7 +575,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -591,7 +584,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCustomUefiKeys() { const subscriptionId = @@ -612,24 +605,24 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, securityProfile: { @@ -637,10 +630,10 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust additionalSignatures: { db: [{ type: "x509", value: [""] }], dbx: [{ type: "x509", value: [""] }], - kek: [{ type: "sha256", value: [""] }] + kek: [{ type: "sha256", value: [""] }], }, - signatureTemplateNames: ["MicrosoftUefiCertificateAuthorityTemplate"] - } + signatureTemplateNames: ["MicrosoftUefiCertificateAuthorityTemplate"], + }, }, storageProfile: { dataDiskImages: [ @@ -650,21 +643,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -673,7 +664,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -682,7 +673,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { const subscriptionId = @@ -703,24 +694,24 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -731,21 +722,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -754,7 +743,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -763,7 +752,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json */ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocationsSpecified() { const subscriptionId = @@ -784,21 +773,21 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -807,32 +796,31 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -841,7 +829,7 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsDeleteSample.ts index b66f4ae64b5b..6a83e09ea49d 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery image version. * * @summary Delete a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json */ async function deleteAGalleryImageVersion() { const subscriptionId = @@ -34,7 +34,7 @@ async function deleteAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsGetSample.ts index 604e400364ca..1c7ce8a851d1 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json */ async function getAGalleryImageVersionWithReplicationStatus() { const subscriptionId = @@ -40,7 +40,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { galleryName, galleryImageName, galleryImageVersionName, - options + options, ); console.log(result); } @@ -49,7 +49,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json */ async function getAGalleryImageVersionWithSnapshotsAsASource() { const subscriptionId = @@ -65,7 +65,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } @@ -74,7 +74,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json */ async function getAGalleryImageVersionWithVhdAsASource() { const subscriptionId = @@ -90,7 +90,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } @@ -99,7 +99,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json */ async function getAGalleryImageVersion() { const subscriptionId = @@ -115,7 +115,7 @@ async function getAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsListByGalleryImageSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsListByGalleryImageSample.ts index 133f00a3f8c4..c48a9f9f1add 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsListByGalleryImageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsListByGalleryImageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery image versions in a gallery image definition. * * @summary List gallery image versions in a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json */ async function listGalleryImageVersionsInAGalleryImageDefinition() { const subscriptionId = @@ -33,7 +33,7 @@ async function listGalleryImageVersionsInAGalleryImageDefinition() { for await (let item of client.galleryImageVersions.listByGalleryImage( resourceGroupName, galleryName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsUpdateSample.ts index 426f609b01a4..e0e24976bbc0 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImageVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImageVersionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json */ async function updateASimpleGalleryImageVersionManagedImageAsSource() { const subscriptionId = @@ -38,16 +38,15 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { { name: "East US", regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +55,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -65,7 +64,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json */ async function updateASimpleGalleryImageVersionWithoutSourceId() { const subscriptionId = @@ -82,11 +81,11 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { { name: "East US", regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, - storageProfile: {} + storageProfile: {}, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -95,7 +94,7 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesCreateOrUpdateSample.ts index c7b4ea1843e2..0f63a0191f57 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery image definition. * * @summary Create or update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json */ async function createOrUpdateASimpleGalleryImage() { const subscriptionId = @@ -32,11 +32,11 @@ async function createOrUpdateASimpleGalleryImage() { identifier: { offer: "myOfferName", publisher: "myPublisherName", - sku: "mySkuName" + sku: "mySkuName", }, location: "West US", osState: "Generalized", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -44,7 +44,7 @@ async function createOrUpdateASimpleGalleryImage() { resourceGroupName, galleryName, galleryImageName, - galleryImage + galleryImage, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesDeleteSample.ts index 79aeace8fe9f..ef6bc052347f 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery image. * * @summary Delete a gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json */ async function deleteAGalleryImage() { const subscriptionId = @@ -32,7 +32,7 @@ async function deleteAGalleryImage() { const result = await client.galleryImages.beginDeleteAndWait( resourceGroupName, galleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesGetSample.ts index 90da9b06c25d..2d523eaabfe3 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery image definition. * * @summary Retrieves information about a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json */ async function getAGalleryImage() { const subscriptionId = @@ -32,7 +32,7 @@ async function getAGalleryImage() { const result = await client.galleryImages.get( resourceGroupName, galleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesListByGallerySample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesListByGallerySample.ts index c41ab8528af4..211a3cedfc09 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesListByGallerySample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesListByGallerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery image definitions in a gallery. * * @summary List gallery image definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json */ async function listGalleryImagesInAGallery() { const subscriptionId = @@ -31,7 +31,7 @@ async function listGalleryImagesInAGallery() { const resArray = new Array(); for await (let item of client.galleryImages.listByGallery( resourceGroupName, - galleryName + galleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/galleryImagesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/galleryImagesUpdateSample.ts index 8afac6ae429f..caf15968df97 100644 --- a/sdk/compute/arm-compute/samples-dev/galleryImagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/galleryImagesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery image definition. * * @summary Update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json */ async function updateASimpleGalleryImage() { const subscriptionId = @@ -35,10 +35,10 @@ async function updateASimpleGalleryImage() { identifier: { offer: "myOfferName", publisher: "myPublisherName", - sku: "mySkuName" + sku: "mySkuName", }, osState: "Generalized", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -46,7 +46,7 @@ async function updateASimpleGalleryImage() { resourceGroupName, galleryName, galleryImageName, - galleryImage + galleryImage, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/gallerySharingProfileUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/gallerySharingProfileUpdateSample.ts index 7cc06be19cb4..b3cbc70b8ce8 100644 --- a/sdk/compute/arm-compute/samples-dev/gallerySharingProfileUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/gallerySharingProfileUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json */ async function addSharingIdToTheSharingProfileOfAGallery() { const subscriptionId = @@ -32,19 +32,19 @@ async function addSharingIdToTheSharingProfileOfAGallery() { type: "Subscriptions", ids: [ "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] + "380fd389-260b-41aa-bad9-0a83108c370b", + ], }, - { type: "AADTenants", ids: ["c24c76aa-8897-4027-9b03-8f7928b54ff6"] } + { type: "AADTenants", ids: ["c24c76aa-8897-4027-9b03-8f7928b54ff6"] }, ], - operationType: "Add" + operationType: "Add", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } @@ -53,7 +53,7 @@ async function addSharingIdToTheSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ResetSharingProfile.json */ async function resetSharingProfileOfAGallery() { const subscriptionId = @@ -67,7 +67,7 @@ async function resetSharingProfileOfAGallery() { const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } @@ -76,7 +76,7 @@ async function resetSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json */ async function shareAGalleryToCommunity() { const subscriptionId = @@ -90,7 +90,7 @@ async function shareAGalleryToCommunity() { const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts index e1b9822fcdd3..18d2392fcafc 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesCreateOrUpdateSample.ts @@ -33,20 +33,19 @@ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource( blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, osState: "Generalized", - osType: "Linux" - } - } + osType: "Linux", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -70,17 +69,17 @@ async function createAVirtualMachineImageFromABlob() { blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -102,24 +101,22 @@ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetRe storageProfile: { osDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } - } - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -141,21 +138,20 @@ async function createAVirtualMachineImageFromAManagedDisk() { storageProfile: { osDisk: { managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -177,24 +173,22 @@ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResou storageProfile: { osDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" - } - } + osType: "Linux", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -218,19 +212,18 @@ async function createAVirtualMachineImageFromASnapshot() { osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -250,16 +243,15 @@ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { const parameters: Image = { location: "West US", sourceVirtualMachine: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -283,24 +275,24 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { { blobUri: "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd", - lun: 1 - } + lun: 1, + }, ], osDisk: { blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -324,28 +316,26 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() { lun: 1, managedDisk: { - id: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" - } - } + id: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2", + }, + }, ], osDisk: { managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -369,28 +359,26 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromASnapshot() { { lun: 1, snapshot: { - id: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" - } - } + id: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2", + }, + }, ], osDisk: { osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts index 5242180378a8..4128c7f9d8ea 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesDeleteSample.ts @@ -30,7 +30,7 @@ async function imageDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginDeleteAndWait( resourceGroupName, - imageName + imageName, ); console.log(result); } @@ -51,7 +51,7 @@ async function imageDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginDeleteAndWait( resourceGroupName, - imageName + imageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts index 4a7b86c53faf..0d52e7fb6b45 100644 --- a/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/imagesUpdateSample.ts @@ -29,17 +29,16 @@ async function updatesTagsOfAnImage() { const parameters: ImageUpdate = { hyperVGeneration: "V1", sourceVirtualMachine: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { department: "HR" } + tags: { department: "HR" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts index 4d5a028b6cc2..f4c666da9564 100644 --- a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts +++ b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportRequestRateByIntervalSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RequestRateByIntervalInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,14 +32,15 @@ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProvider fromTime: new Date("2018-01-21T01:54:06.862601Z"), groupByResourceName: true, intervalLength: "FiveMins", - toTime: new Date("2018-01-23T01:54:06.862601Z") + toTime: new Date("2018-01-23T01:54:06.862601Z"), }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.logAnalytics.beginExportRequestRateByIntervalAndWait( - location, - parameters - ); + const result = + await client.logAnalytics.beginExportRequestRateByIntervalAndWait( + location, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts index 0cde453f3d71..445887388967 100644 --- a/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/logAnalyticsExportThrottledRequestsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ThrottledRequestsInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,13 +34,13 @@ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourc groupByOperationName: true, groupByResourceName: false, groupByUserAgent: false, - toTime: new Date("2018-01-23T01:54:06.862601Z") + toTime: new Date("2018-01-23T01:54:06.862601Z"), }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.logAnalytics.beginExportThrottledRequestsAndWait( location, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts index 8da20c7470c7..b01db7389cc7 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ProximityPlacementGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,14 +33,14 @@ async function createOrUpdateAProximityPlacementGroup() { intent: { vmSizes: ["Basic_A0", "Basic_A2"] }, location: "westus", proximityPlacementGroupType: "Standard", - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.createOrUpdate( resourceGroupName, proximityPlacementGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts index 78cb930f4808..64d024b47ed9 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAProximityPlacementGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.delete( resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts index c781c18b8422..969a5d0ed9c2 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsGetSample.ts @@ -30,7 +30,7 @@ async function getProximityPlacementGroups() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.get( resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts index 6f2ccecf187c..ccb49b388f68 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listProximityPlacementGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.proximityPlacementGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts index f28165f24e28..6351d4f8b5b1 100644 --- a/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/proximityPlacementGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ProximityPlacementGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,14 +30,14 @@ async function updateAProximityPlacementGroup() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const proximityPlacementGroupName = "myProximityPlacementGroup"; const parameters: ProximityPlacementGroupUpdate = { - tags: { additionalProp1: "string" } + tags: { additionalProp1: "string" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.update( resourceGroupName, proximityPlacementGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/resourceSkusListSample.ts b/sdk/compute/arm-compute/samples-dev/resourceSkusListSample.ts index b3b4ae81defe..5a7e162de929 100644 --- a/sdk/compute/arm-compute/samples-dev/resourceSkusListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/resourceSkusListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ResourceSkusListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts index 0063719e7285..fbb15e579732 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RestorePointCollection, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,17 +32,16 @@ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { const parameters: RestorePointCollection = { location: "norwayeast", source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName", }, - tags: { myTag1: "tagValue1" } + tags: { myTag1: "tagValue1" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.createOrUpdate( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } @@ -62,17 +61,16 @@ async function createOrUpdateARestorePointCollection() { const parameters: RestorePointCollection = { location: "norwayeast", source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { myTag1: "tagValue1" } + tags: { myTag1: "tagValue1" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.createOrUpdate( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts index 0ec63a868e4e..8eaf6fbbeaa9 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsDeleteSample.ts @@ -30,7 +30,7 @@ async function restorePointCollectionDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.beginDeleteAndWait( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } @@ -51,7 +51,7 @@ async function restorePointCollectionDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.beginDeleteAndWait( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts index 2e84a0f854e1..7da1b103e447 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsGetSample.ts @@ -30,7 +30,7 @@ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRes const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.get( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getARestorePointCollectionIncludingTheRestorePointsContainedInThe const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.get( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts index 36b78b98acda..da4381f8e57c 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsListSample.ts @@ -29,7 +29,7 @@ async function getsTheListOfRestorePointCollectionsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.restorePointCollections.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts index 8139f2f0148a..56c3b839f3dd 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointCollectionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RestorePointCollectionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,16 @@ async function restorePointCollectionUpdateMaximumSetGen() { const restorePointCollectionName = "aaaaaaaaaaaaaaaaaaaa"; const parameters: RestorePointCollectionUpdate = { source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { key8536: "aaaaaaaaaaaaaaaaaaa" } + tags: { key8536: "aaaaaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.update( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } @@ -64,7 +63,7 @@ async function restorePointCollectionUpdateMinimumSetGen() { const result = await client.restorePointCollections.update( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts index 14ea6b48855a..5e9a8b176bc9 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsCreateSample.ts @@ -29,9 +29,8 @@ async function copyARestorePointToADifferentRegion() { const restorePointName = "rpName"; const parameters: RestorePoint = { sourceRestorePoint: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -39,7 +38,7 @@ async function copyARestorePointToADifferentRegion() { resourceGroupName, restorePointCollectionName, restorePointName, - parameters + parameters, ); console.log(result); } @@ -60,10 +59,9 @@ async function createARestorePoint() { const parameters: RestorePoint = { excludeDisks: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -71,7 +69,7 @@ async function createARestorePoint() { resourceGroupName, restorePointCollectionName, restorePointName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts index 04d487cb2a79..3830c72a49ae 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsDeleteSample.ts @@ -32,7 +32,7 @@ async function restorePointDeleteMaximumSetGen() { const result = await client.restorePoints.beginDeleteAndWait( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } @@ -55,7 +55,7 @@ async function restorePointDeleteMinimumSetGen() { const result = await client.restorePoints.beginDeleteAndWait( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts b/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts index 92b710e9edba..c45959186cb4 100644 --- a/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/restorePointsGetSample.ts @@ -32,7 +32,7 @@ async function getARestorePoint() { const result = await client.restorePoints.get( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } @@ -55,7 +55,7 @@ async function getRestorePointWithInstanceView() { const result = await client.restorePoints.get( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleriesGetSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleriesGetSample.ts index 116c46e83351..85674d442cf0 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery by subscription id or tenant id. * * @summary Get a shared gallery by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json */ async function getASharedGallery() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleriesListSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleriesListSample.ts index 0193a2a0acd1..cf12445c658f 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleriesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared galleries by subscription id or tenant id. * * @summary List shared galleries by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json */ async function listSharedGalleries() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsGetSample.ts index 2db65265c53e..0fc9d92c351c 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery image version by subscription id or tenant id. * * @summary Get a shared gallery image version by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json */ async function getASharedGalleryImageVersion() { const subscriptionId = @@ -33,7 +33,7 @@ async function getASharedGalleryImageVersion() { location, galleryUniqueName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsListSample.ts index e38e7ae0ef03..98ae70b401e2 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleryImageVersionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared gallery image versions by subscription id or tenant id. * * @summary List shared gallery image versions by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json */ async function listSharedGalleryImageVersions() { const subscriptionId = @@ -32,7 +32,7 @@ async function listSharedGalleryImageVersions() { for await (let item of client.sharedGalleryImageVersions.list( location, galleryUniqueName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesGetSample.ts index a2f5bbf42758..130e67be7970 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery image by subscription id or tenant id. * * @summary Get a shared gallery image by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json */ async function getASharedGalleryImage() { const subscriptionId = @@ -31,7 +31,7 @@ async function getASharedGalleryImage() { const result = await client.sharedGalleryImages.get( location, galleryUniqueName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesListSample.ts index 90d09b585616..be7c03622bf6 100644 --- a/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sharedGalleryImagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared gallery images by subscription id or tenant id. * * @summary List shared gallery images by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json */ async function listSharedGalleryImages() { const subscriptionId = @@ -30,7 +30,7 @@ async function listSharedGalleryImages() { const resArray = new Array(); for await (let item of client.sharedGalleryImages.list( location, - galleryUniqueName + galleryUniqueName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsCreateOrUpdateSample.ts index 238b8b1c9374..a7e3916053eb 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsCreateOrUpdateSample.ts @@ -32,16 +32,16 @@ async function createASnapshotByImportingAnUnmanagedBlobFromADifferentSubscripti sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -62,16 +62,16 @@ async function createASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription( creationData: { createOption: "Import", sourceUri: - "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -92,16 +92,16 @@ async function createASnapshotFromAnElasticSanVolumeSnapshot() { creationData: { createOption: "CopyFromSanSnapshot", elasticSanResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -123,16 +123,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri createOption: "CopyStart", provisionedBandwidthCopySpeed: "Enhanced", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -153,16 +153,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri creationData: { createOption: "CopyStart", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -183,16 +183,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsDeleteSample.ts index f7280932794e..0a19e08b60ff 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteASnapshot() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginDeleteAndWait( resourceGroupName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsGrantAccessSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsGrantAccessSample.ts index 0b480d5736f6..80c826644254 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsGrantAccessSample.ts @@ -29,14 +29,14 @@ async function getASasOnASnapshot() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHDX" + fileFormat: "VHDX", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginGrantAccessAndWait( resourceGroupName, snapshotName, - grantAccessData + grantAccessData, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsListByResourceGroupSample.ts index 5225bf7768cc..1357e3df3f30 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllSnapshotsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.snapshots.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsRevokeAccessSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsRevokeAccessSample.ts index f50d8dd83951..d56c77dd2f91 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsRevokeAccessSample.ts @@ -30,7 +30,7 @@ async function revokeAccessToASnapshot() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginRevokeAccessAndWait( resourceGroupName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/snapshotsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/snapshotsUpdateSample.ts index 61240be67d98..f7c88b819955 100644 --- a/sdk/compute/arm-compute/samples-dev/snapshotsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/snapshotsUpdateSample.ts @@ -29,14 +29,14 @@ async function updateASnapshotWithAcceleratedNetworking() { const snapshot: SnapshotUpdate = { diskSizeGB: 20, supportedCapabilities: { acceleratedNetwork: false }, - tags: { department: "Development", project: "UpdateSnapshots" } + tags: { department: "Development", project: "UpdateSnapshots" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -55,14 +55,14 @@ async function updateASnapshot() { const snapshotName = "mySnapshot"; const snapshot: SnapshotUpdate = { diskSizeGB: 20, - tags: { department: "Development", project: "UpdateSnapshots" } + tags: { department: "Development", project: "UpdateSnapshots" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts index f6bca8c1eecd..3ee613250145 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SshPublicKeyResource, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function createANewSshPublicKeyResource() { const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshPublicKeyResource = { location: "westus", - publicKey: "{ssh-rsa public key}" + publicKey: "{ssh-rsa public key}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.create( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts index ed5f68827f5e..1a380efe51fb 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysDeleteSample.ts @@ -30,7 +30,7 @@ async function sshPublicKeyDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.delete( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } @@ -51,7 +51,7 @@ async function sshPublicKeyDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.delete( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts index 13e203f44ab9..4de7ab6cfbd6 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGenerateKeyPairSample.ts @@ -11,7 +11,7 @@ import { SshGenerateKeyPairInputParameters, SshPublicKeysGenerateKeyPairOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function generateAnSshKeyPairWithEd25519Encryption() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshGenerateKeyPairInputParameters = { - encryptionType: "RSA" + encryptionType: "RSA", }; const options: SshPublicKeysGenerateKeyPairOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function generateAnSshKeyPairWithEd25519Encryption() { const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, sshPublicKeyName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function generateAnSshKeyPairWithRsaEncryption() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshGenerateKeyPairInputParameters = { - encryptionType: "RSA" + encryptionType: "RSA", }; const options: SshPublicKeysGenerateKeyPairOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -65,7 +65,7 @@ async function generateAnSshKeyPairWithRsaEncryption() { const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, sshPublicKeyName, - options + options, ); console.log(result); } @@ -86,7 +86,7 @@ async function generateAnSshKeyPair() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts index 69ea23c91ac4..3f96cc907874 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysGetSample.ts @@ -30,7 +30,7 @@ async function getAnSshPublicKey() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.get( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts index 9c69c2e99ac6..6cec1c49751b 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function sshPublicKeyListByResourceGroupMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.sshPublicKeys.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function sshPublicKeyListByResourceGroupMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.sshPublicKeys.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts index 5ef6ce84fb73..8f64aa963e4e 100644 --- a/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/sshPublicKeysUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SshPublicKeyUpdateResource, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function sshPublicKeyUpdateMaximumSetGen() { const sshPublicKeyName = "aaaaaaaaaaaa"; const parameters: SshPublicKeyUpdateResource = { publicKey: "{ssh-rsa public key}", - tags: { key2854: "a" } + tags: { key2854: "a" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.update( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } @@ -61,7 +61,7 @@ async function sshPublicKeyUpdateMinimumSetGen() { const result = await client.sshPublicKeys.update( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts index 867abfcdb602..4793d3b6449c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesGetSample.ts @@ -33,7 +33,7 @@ async function virtualMachineExtensionImageGetMaximumSetGen() { location, publisherName, typeParam, - version + version, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineExtensionImageGetMinimumSetGen() { location, publisherName, typeParam, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts index ca5f4b5e13af..be758e2fdf5d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListTypesSample.ts @@ -29,7 +29,7 @@ async function virtualMachineExtensionImageListTypesMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensionImages.listTypes( location, - publisherName + publisherName, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineExtensionImageListTypesMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensionImages.listTypes( location, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts index 356ca0f2377a..c762507d6723 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionImagesListVersionsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionImagesListVersionsOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineExtensionImageListVersionsMaximumSetGen() { const options: VirtualMachineExtensionImagesListVersionsOptionalParams = { filter, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineExtensionImageListVersionsMaximumSetGen() { location, publisherName, typeParam, - options + options, ); console.log(result); } @@ -65,7 +65,7 @@ async function virtualMachineExtensionImageListVersionsMinimumSetGen() { const result = await client.virtualMachineExtensionImages.listVersions( location, publisherName, - typeParam + typeParam, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts index 404c9c576cc7..6a7b121d4fb2 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -44,8 +44,8 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], substatuses: [ { @@ -53,10 +53,10 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa" + typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa", }, location: "westus", protectedSettings: {}, @@ -64,16 +64,17 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { settings: {}, suppressFailures: true, tags: { key9183: "aa" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + vmExtensionName, + extensionParameters, + ); console.log(result); } @@ -93,12 +94,13 @@ async function virtualMachineExtensionCreateOrUpdateMinimumSetGen() { const extensionParameters: VirtualMachineExtension = { location: "westus" }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts index e369cfaa8d56..895d5ffe4607 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsDeleteSample.ts @@ -32,7 +32,7 @@ async function virtualMachineExtensionDeleteMaximumSetGen() { const result = await client.virtualMachineExtensions.beginDeleteAndWait( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineExtensionDeleteMinimumSetGen() { const result = await client.virtualMachineExtensions.beginDeleteAndWait( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts index 07d1bf0e86c3..35788608c2c0 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function virtualMachineExtensionGetMaximumSetGen() { resourceGroupName, vmName, vmExtensionName, - options + options, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineExtensionGetMinimumSetGen() { const result = await client.virtualMachineExtensions.get( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts index 52c2112dee7a..1d85962c3380 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionsListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineExtensionListMaximumSetGen() { const result = await client.virtualMachineExtensions.list( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineExtensionListMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensions.list( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts index 13942d3566ba..db8f60a70f5c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,14 +37,13 @@ async function updateVMExtension() { secretUrl: "https://kvName.vault.azure.net/secrets/secretName/79b88b3a6f5440ffb2e73e44a0db712e", sourceVault: { - id: - "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName" - } + id: "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName", + }, }, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, suppressFailures: true, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -52,7 +51,7 @@ async function updateVMExtension() { resourceGroupName, vmName, vmExtensionName, - extensionParameters + extensionParameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts index 94b60cc56842..44a9c52f5d95 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneGetSample.ts @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } @@ -65,7 +65,7 @@ async function virtualMachineImagesEdgeZoneGetMinimumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts index a3de877e96c2..5389a691f62b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListOffersSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { const result = await client.virtualMachineImagesEdgeZone.listOffers( location, edgeZone, - publisherName + publisherName, ); console.log(result); } @@ -53,7 +53,7 @@ async function virtualMachineImagesEdgeZoneListOffersMinimumSetGen() { const result = await client.virtualMachineImagesEdgeZone.listOffers( location, edgeZone, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts index d71b26105a12..c8d0ba5d4bf2 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListPublishersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImagesEdgeZone.listPublishers( location, - edgeZone + edgeZone, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImagesEdgeZone.listPublishers( location, - edgeZone + edgeZone, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts index 5f8642135e82..c4410133de1d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineImagesEdgeZoneListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { const options: VirtualMachineImagesEdgeZoneListOptionalParams = { expand, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -47,7 +47,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { publisherName, offer, skus, - options + options, ); console.log(result); } @@ -73,7 +73,7 @@ async function virtualMachineImagesEdgeZoneListMinimumSetGen() { edgeZone, publisherName, offer, - skus + skus, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts index 13e997827eea..a19ca67066eb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesEdgeZoneListSkusSample.ts @@ -33,7 +33,7 @@ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { location, edgeZone, publisherName, - offer + offer, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineImagesEdgeZoneListSkusMinimumSetGen() { location, edgeZone, publisherName, - offer + offer, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts index 316151bf3739..4e8559d2e922 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesGetSample.ts @@ -35,7 +35,7 @@ async function virtualMachineImageGetMaximumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineImageGetMinimumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts index 3fca77533bfe..8e89d50c0eaf 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListByEdgeZoneSample.ts @@ -30,7 +30,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listByEdgeZone( location, - edgeZone + edgeZone, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listByEdgeZone( location, - edgeZone + edgeZone, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts index 2e8ebb3fb049..cfd20ea2bee3 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListOffersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImageListOffersMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listOffers( location, - publisherName + publisherName, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineImageListOffersMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listOffers( location, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts index a9a99490a7cc..963fd7931226 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineImagesListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineImageListMaximumSetGen() { const options: VirtualMachineImagesListOptionalParams = { expand, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -45,7 +45,7 @@ async function virtualMachineImageListMaximumSetGen() { publisherName, offer, skus, - options + options, ); console.log(result); } @@ -69,7 +69,7 @@ async function virtualMachineImageListMinimumSetGen() { location, publisherName, offer, - skus + skus, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts index 8d843fdbb89a..1c818c923ccb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineImagesListSkusSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImageListSkusMaximumSetGen() { const result = await client.virtualMachineImages.listSkus( location, publisherName, - offer + offer, ); console.log(result); } @@ -53,7 +53,7 @@ async function virtualMachineImageListSkusMinimumSetGen() { const result = await client.virtualMachineImages.listSkus( location, publisherName, - offer + offer, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts index dd4772f5b047..ae5760b8398b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommand, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,31 +36,32 @@ async function createOrUpdateARunCommand() { "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI", location: "West US", outputBlobManagedIdentity: { - clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", }, outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", source: { scriptUri: - "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI" + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI", }, timeoutInSeconds: 3600, - treatFailureAsDeploymentFailure: false + treatFailureAsDeploymentFailure: false, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineRunCommands.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts index 782b35cb18b1..d287aed0e43a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteARunCommand() { const result = await client.virtualMachineRunCommands.beginDeleteAndWait( resourceGroupName, vmName, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts index 984861a0ca7f..8776bbbf1db7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetByVirtualMachineSample.ts @@ -32,7 +32,7 @@ async function getARunCommand() { const result = await client.virtualMachineRunCommands.getByVirtualMachine( resourceGroupName, vmName, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts index 8c34005b96ef..aa34b017efed 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsGetSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRunCommandGet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineRunCommands.get( location, - commandId + commandId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts index c79a3451b142..f18c7e49f22f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsListByVirtualMachineSample.ts @@ -31,7 +31,7 @@ async function listRunCommandsInAVirtualMachine() { const resArray = new Array(); for await (let item of client.virtualMachineRunCommands.listByVirtualMachine( resourceGroupName, - vmName + vmName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts index 41e4c732f787..b7a3ce564dc9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineRunCommandsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommandUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,7 +33,7 @@ async function updateARunCommand() { const runCommand: VirtualMachineRunCommandUpdate = { asyncExecution: false, errorBlobManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", }, errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", @@ -41,14 +41,14 @@ async function updateARunCommand() { "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/outputUri", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", source: { - script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt" + script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt", }, - timeoutInSeconds: 3600 + timeoutInSeconds: 3600, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +56,7 @@ async function updateARunCommand() { resourceGroupName, vmName, runCommandName, - runCommand + runCommand, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts index 7b6ac65f4358..ba35635ee1ea 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -41,16 +41,17 @@ async function virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" + typeHandlerVersion: "{handler-version}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } @@ -70,12 +71,13 @@ async function virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen() { const extensionParameters: VirtualMachineScaleSetExtension = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts index 5fb679cd8ca8..e882f592ffff 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsDeleteSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetExtensionDeleteMaximumSetGen() { const vmssExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName - ); + const result = + await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetExtensionDeleteMinimumSetGen() { const vmssExtensionName = "aaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName - ); + const result = + await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts index e8163d6df0d9..cf03dda8c657 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtensionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function virtualMachineScaleSetExtensionGetMaximumSetGen() { resourceGroupName, vmScaleSetName, vmssExtensionName, - options + options, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineScaleSetExtensionGetMinimumSetGen() { const result = await client.virtualMachineScaleSetExtensions.get( resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts index 7c5fbffd1dca..1ff4028a265d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsListSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetExtensionListMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetExtensions.list( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetExtensionListMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetExtensions.list( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts index b162e3eca96d..8554b5dc3f0c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -40,16 +40,17 @@ async function virtualMachineScaleSetExtensionUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" + typeHandlerVersion: "{handler-version}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } @@ -69,12 +70,13 @@ async function virtualMachineScaleSetExtensionUpdateMinimumSetGen() { const extensionParameters: VirtualMachineScaleSetExtensionUpdate = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts index b296f958d1fe..00b963f2d3f9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesCancelSample.ts @@ -28,10 +28,11 @@ async function virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen() { const vmScaleSetName = "aaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } @@ -49,10 +50,11 @@ async function virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen() { const vmScaleSetName = "aaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts index 889a1c66f386..717aa5ca68eb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetRollingUpgrades.getLatest( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetRollingUpgrades.getLatest( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts index 54d1eeaef05f..5268c6960435 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts @@ -28,10 +28,11 @@ async function startAnExtensionRollingUpgrade() { const vmScaleSetName = "{vmss-name}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartExtensionUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartExtensionUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts index 65dc6a5bbf0e..8f5c578db840 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts @@ -28,10 +28,11 @@ async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen() const vmScaleSetName = "aaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } @@ -49,10 +50,11 @@ async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen() const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts index 5db4993df20a..14c84993c679 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,17 +36,18 @@ async function createVirtualMachineScaleSetVMExtension() { autoUpgradeMinorVersion: true, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts index 8e47771c1f50..2c121e55b4df 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsDeleteSample.ts @@ -30,12 +30,13 @@ async function deleteVirtualMachineScaleSetVMExtension() { const vmExtensionName = "myVMExtension"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts index 170bc0a1f9cd..952c187b273a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsGetSample.ts @@ -34,7 +34,7 @@ async function getVirtualMachineScaleSetVMExtension() { resourceGroupName, vmScaleSetName, instanceId, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts index 4d799048e325..59a303c8436f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsListSample.ts @@ -32,7 +32,7 @@ async function listExtensionsInVmssInstance() { const result = await client.virtualMachineScaleSetVMExtensions.list( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts index 98c562605ee2..bd420fc9a114 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,17 +36,18 @@ async function updateVirtualMachineScaleSetVMExtension() { autoUpgradeMinorVersion: true, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts index b846330cc38f..6952d366bf0c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommand, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,13 +38,13 @@ async function createVirtualMachineScaleSetVMRunCommand() { "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", location: "West US", outputBlobManagedIdentity: { - clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", }, outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", @@ -52,21 +52,22 @@ async function createVirtualMachineScaleSetVMRunCommand() { scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", scriptUriManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" - } + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, }, timeoutInSeconds: 3600, - treatFailureAsDeploymentFailure: true + treatFailureAsDeploymentFailure: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts index 4cd6ada176b4..e5cfa028f87c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsDeleteSample.ts @@ -30,12 +30,13 @@ async function deleteVirtualMachineScaleSetVMRunCommand() { const runCommandName = "myRunCommand"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts index 529347f9226c..6d07197de3e4 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsGetSample.ts @@ -34,7 +34,7 @@ async function getVirtualMachineScaleSetVMRunCommands() { resourceGroupName, vmScaleSetName, instanceId, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts index e2dca9fd24d9..0fdd22e4e2c7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsListSample.ts @@ -33,7 +33,7 @@ async function listRunCommandsInVmssInstance() { for await (let item of client.virtualMachineScaleSetVMRunCommands.list( resourceGroupName, vmScaleSetName, - instanceId + instanceId, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts index 22c1c16abaae..d210be566b25 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMRunCommandsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommandUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,19 +36,20 @@ async function updateVirtualMachineScaleSetVMRunCommand() { scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", scriptUriManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" - } - } + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts index b35d63ae4d37..5f6b38530d0c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetVMApproveRollingUpgrade() { const instanceId = "0123"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts index 73ca564036f8..755dcc730dde 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AttachDetachDataDisksRequest, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,35 +35,36 @@ async function virtualMachineScaleSetVMAttachDetachDataDisksMaximumSetGen() { { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - lun: 1 + lun: 1, }, { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_2_disk3_7d5e664bdafa49baa780eb2d128ff38e", - lun: 2 - } + lun: 2, + }, ], dataDisksToDetach: [ { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", }, { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - parameters - ); + const result = + await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + ); console.log(result); } @@ -84,24 +85,25 @@ async function virtualMachineScaleSetVMAttachDetachDataDisksMinimumSetGen() { dataDisksToAttach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + }, ], dataDisksToDetach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - parameters - ); + const result = + await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts index f076ab0a6f35..8a727fede9e7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeallocateSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMDeallocateMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMDeallocateMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts index 6b0b3e7dbcd3..b02200e5f276 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,7 +32,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { const instanceId = "0"; const forceDeletion = true; const options: VirtualMachineScaleSetVMsDeleteOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts index 076ca109aa0a..88aa4a2fae86 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetInstanceViewSample.ts @@ -32,7 +32,7 @@ async function getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicated const result = await client.virtualMachineScaleSetVMs.getInstanceView( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts index baf384de2618..33ce5ac50dad 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSGetSample.ts @@ -32,7 +32,7 @@ async function getVMScaleSetVMWithUserData() { const result = await client.virtualMachineScaleSetVMs.get( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function getVMScaleSetVMWithVMSizeProperties() { const result = await client.virtualMachineScaleSetVMs.get( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts index acec35e26723..2a93f94980e5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineScaleSetVMListMaximumSetGen() { const options: VirtualMachineScaleSetVMsListOptionalParams = { filter, select, - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineScaleSetVMListMaximumSetGen() { for await (let item of client.virtualMachineScaleSetVMs.list( resourceGroupName, virtualMachineScaleSetName, - options + options, )) { resArray.push(item); } @@ -67,7 +67,7 @@ async function virtualMachineScaleSetVMListMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetVMs.list( resourceGroupName, - virtualMachineScaleSetName + virtualMachineScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts index 28e4bb60c3bf..fb0209eba76d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPerformMaintenanceSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen() { const instanceId = "aaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen() { const instanceId = "aaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts index c85b508f98a0..ee654103db98 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSPowerOffSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { const instanceId = "aaaaaaaaa"; const skipShutdown = true; const options: VirtualMachineScaleSetVMsPowerOffOptionalParams = { - skipShutdown + skipShutdown, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function virtualMachineScaleSetVMPowerOffMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginPowerOffAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts index 6193a0c55c53..a52a7525f2d8 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRedeploySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMRedeployMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMRedeployMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts index 3a1cc2e18c11..282ff70d3e89 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageAllSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMReimageAllMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMReimageAllMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts index 34006e5930d6..73371f4f9509 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMReimageParameters, VirtualMachineScaleSetVMsReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,10 +32,10 @@ async function virtualMachineScaleSetVMReimageMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaa"; const instanceId = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmScaleSetVMReimageInput: VirtualMachineScaleSetVMReimageParameters = { - tempDisk: true + tempDisk: true, }; const options: VirtualMachineScaleSetVMsReimageOptionalParams = { - vmScaleSetVMReimageInput + vmScaleSetVMReimageInput, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineScaleSetVMReimageMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } @@ -66,7 +66,7 @@ async function virtualMachineScaleSetVMReimageMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts index 2a0aa2218e65..fad2732a6c9a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRestartSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMRestartMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRestartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMRestartMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRestartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts index 06d43dda8c39..1e265be799f9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmScaleSetName = "myvmScaleSet"; const instanceId = "0"; const sasUriExpirationTimeInMinutes = 60; - const options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams = { - sasUriExpirationTimeInMinutes - }; + const options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams = + { sasUriExpirationTimeInMinutes }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( - resourceGroupName, - vmScaleSetName, - instanceId, - options - ); + const result = + await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( + resourceGroupName, + vmScaleSetName, + instanceId, + options, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts index 56da7f345926..71acef1e6e11 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSRunCommandSample.ts @@ -29,7 +29,7 @@ async function virtualMachineScaleSetVMSRunCommand() { const instanceId = "0"; const parameters: RunCommandInput = { commandId: "RunPowerShellScript", - script: ["Write-Host Hello World!"] + script: ["Write-Host Hello World!"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function virtualMachineScaleSetVMSRunCommand() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts index 315eef0c467a..999a63637542 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSSimulateEvictionSample.ts @@ -32,7 +32,7 @@ async function simulateEvictionAVirtualMachine() { const result = await client.virtualMachineScaleSetVMs.simulateEviction( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts index 1f3538808f8c..bcfe0b5cc130 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSStartSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMStartMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginStartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMStartMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginStartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts index ec330dc91081..a3e1f23608bc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetVMSUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVM, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,15 +33,14 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { const parameters: VirtualMachineScaleSetVM = { additionalCapabilities: { hibernationEnabled: true, ultraSSDEnabled: true }, availabilitySet: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, diagnosticsProfile: { - bootDiagnostics: { enabled: true, storageUri: "aaaaaaaaaaaaa" } + bootDiagnostics: { enabled: true, storageUri: "aaaaaaaaaaaaa" }, }, hardwareProfile: { vmSize: "Basic_A0", - vmSizeProperties: { vCPUsAvailable: 9, vCPUsPerCore: 12 } + vmSizeProperties: { vCPUsAvailable: 9, vCPUsPerCore: 12 }, }, instanceView: { bootDiagnostics: { @@ -50,8 +49,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, }, disks: [ { @@ -61,19 +60,17 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { diskEncryptionKey: { secretUrl: "aaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, }, enabled: true, keyEncryptionKey: { keyUrl: "aaaaaaaaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, + }, ], statuses: [ { @@ -81,10 +78,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], + }, ], maintenanceRedeployStatus: { isCustomerInitiatedMaintenanceAllowed: true, @@ -93,7 +90,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { maintenanceWindowEndTime: new Date("2021-11-30T12:58:26.531Z"), maintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z"), preMaintenanceWindowEndTime: new Date("2021-11-30T12:58:26.531Z"), - preMaintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z") + preMaintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z"), }, placementGroupId: "aaa", platformFaultDomain: 14, @@ -105,8 +102,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], vmAgent: { extensionHandlers: [ @@ -117,10 +114,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") + time: new Date("2021-11-30T12:58:26.522Z"), }, - typeHandlerVersion: "aaaaa" - } + typeHandlerVersion: "aaaaa", + }, ], statuses: [ { @@ -128,10 +125,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - vmAgentVersion: "aaaaaaaaaaaaaaaaaaaaaaa" + vmAgentVersion: "aaaaaaaaaaaaaaaaaaaaaaa", }, vmHealth: { status: { @@ -139,8 +136,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, }, extensions: [ { @@ -152,8 +149,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], substatuses: [ { @@ -161,12 +158,12 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa" - } - ] + typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa", + }, + ], }, licenseType: "aaaaaaaaaa", location: "westus", @@ -178,8 +175,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { deleteOption: "Delete", dnsSettings: { dnsServers: ["aaaaaa"] }, dscpConfiguration: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, enableAcceleratedNetworking: true, enableFpga: true, @@ -189,21 +185,18 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { name: "aa", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], applicationSecurityGroups: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -215,38 +208,34 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { ipTags: [ { ipTagType: "aaaaaaaaaaaaaaaaaaaaaaaaa", - tag: "aaaaaaaaaaaaaaaaaaaa" - } + tag: "aaaaaaaaaaaaaaaaaaaa", + }, ], publicIPAddressVersion: "IPv4", publicIPAllocationMethod: "Dynamic", publicIPPrefix: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - sku: { name: "Basic", tier: "Regional" } + sku: { name: "Basic", tier: "Regional" }, }, subnet: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, ], networkSecurityGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - primary: true - } + primary: true, + }, ], networkInterfaces: [ { deleteOption: "Delete", - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", + primary: true, + }, + ], }, networkProfileConfiguration: { networkInterfaceConfigurations: [ @@ -262,27 +251,23 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { name: "vmsstestnetconfig9693", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], applicationSecurityGroups: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerInboundNatPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -292,28 +277,25 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { dnsSettings: { domainNameLabel: "aaaaaaaaaaaaaaaaaa" }, idleTimeoutInMinutes: 18, ipTags: [ - { ipTagType: "aaaaaaa", tag: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" } + { ipTagType: "aaaaaaa", tag: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" }, ], publicIPAddressVersion: "IPv4", publicIPPrefix: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - sku: { name: "Basic", tier: "Regional" } + sku: { name: "Basic", tier: "Regional" }, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503", + }, + }, ], networkSecurityGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "aaaaaaaaaaaaaaaa", @@ -325,10 +307,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { disablePasswordAuthentication: true, patchSettings: { assessmentMode: "ImageDefault", - patchMode: "ImageDefault" + patchMode: "ImageDefault", }, provisionVMAgent: true, - ssh: { publicKeys: [{ path: "aaa", keyData: "aaaaaa" }] } + ssh: { publicKeys: [{ path: "aaa", keyData: "aaaaaa" }] }, }, requireGuestProvisionSignal: true, secrets: [], @@ -338,38 +320,38 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { componentName: "Microsoft-Windows-Shell-Setup", content: "aaaaaaaaaaaaaaaaaaaa", passName: "OobeSystem", - settingName: "AutoLogon" - } + settingName: "AutoLogon", + }, ], enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault", enableHotpatching: true, - patchMode: "Manual" + patchMode: "Manual", }, provisionVMAgent: true, timeZone: "aaaaaaaaaaaaaaaaaaaaaaaaaaa", winRM: { listeners: [ - { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" } - ] - } - } + { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" }, + ], + }, + }, }, plan: { name: "aaaaaaaaaa", product: "aaaaaaaaaaaaaaaaaaaa", promotionCode: "aaaaaaaaaaaaaaaaaaaa", - publisher: "aaaaaaaaaaaaaaaaaaaaaa" + publisher: "aaaaaaaaaaaaaaaaaaaaaa", }, protectionPolicy: { protectFromScaleIn: true, - protectFromScaleSetActions: true + protectFromScaleSetActions: true, }, securityProfile: { encryptionAtHost: true, securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, sku: { name: "Classic", capacity: 29, tier: "aaaaaaaaaaaaaa" }, storageProfile: { @@ -382,23 +364,20 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { detachOption: "ForceDetach", diskSizeGB: 128, image: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, lun: 1, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - storageAccountType: "Standard_LRS" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + storageAccountType: "Standard_LRS", }, toBeDetached: true, vhd: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, ], imageReference: { id: "a", @@ -406,7 +385,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { publisher: "MicrosoftWindowsServer", sharedGalleryImageId: "aaaaaaaaaaaaaaaaaaaa", sku: "2012-R2-Datacenter", - version: "4.127.20180315" + version: "4.127.20180315", }, osDisk: { name: "vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", @@ -419,39 +398,34 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { diskEncryptionKey: { secretUrl: "aaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, }, enabled: true, keyEncryptionKey: { keyUrl: "aaaaaaaaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, }, image: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", - storageAccountType: "Standard_LRS" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", + storageAccountType: "Standard_LRS", }, osType: "Windows", vhd: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, }, tags: {}, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -459,7 +433,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } @@ -484,7 +458,7 @@ async function virtualMachineScaleSetVMUpdateMinimumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsApproveRollingUpgradeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsApproveRollingUpgradeSample.ts index 62de4563a48c..5cdc077b4ca7 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsApproveRollingUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsApproveRollingUpgradeSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,18 +31,19 @@ async function virtualMachineScaleSetApproveRollingUpgrade() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "vmssToApproveRollingUpgradeOn"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["0", "1", "2"] + instanceIds: ["0", "1", "2"], }; const options: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginApproveRollingUpgradeAndWait( - resourceGroupName, - vmScaleSetName, - options - ); + const result = + await client.virtualMachineScaleSets.beginApproveRollingUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + options, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts index a1468249a927..139a569554f0 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VMScaleSetConvertToSinglePlacementGroupInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,15 +30,16 @@ async function virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen( process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const parameters: VMScaleSetConvertToSinglePlacementGroupInput = { - activePlacementGroupId: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" + activePlacementGroupId: "aaaaaaaaaaaaaaaaaaaaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.convertToSinglePlacementGroup( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.convertToSinglePlacementGroup( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -57,11 +58,12 @@ async function virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen( const parameters: VMScaleSetConvertToSinglePlacementGroupInput = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.convertToSinglePlacementGroup( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.convertToSinglePlacementGroup( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts index 24c1090c5ba6..b9c0a8ea33b2 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSet, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -39,8 +39,8 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensions: [ @@ -51,9 +51,9 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -64,42 +64,42 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -125,8 +125,8 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensions: [ @@ -138,15 +138,14 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { secretUrl: "https://kvName.vault.azure.net/secrets/secretName/79b88b3a6f5440ffb2e73e44a0db712e", sourceVault: { - id: - "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName" - } + id: "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName", + }, }, publisher: "{extension-Publisher}", settings: {}, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -157,42 +156,42 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -223,19 +222,18 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { osDisk: { @@ -243,20 +241,20 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { caching: "ReadWrite", createOption: "FromImage", image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" - } - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -287,26 +285,25 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", @@ -317,19 +314,20 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { "http://{existing-storage-account-name-1}.blob.core.windows.net/vhdContainer", "http://{existing-storage-account-name-2}.blob.core.windows.net/vhdContainer", "http://{existing-storage-account-name-3}.blob.core.windows.net/vhdContainer", - "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer" - ] - } - } - } + "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer", + ], + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -360,40 +358,39 @@ async function createAScaleSetFromACustomImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -424,40 +421,39 @@ async function createAScaleSetFromAGeneralizedSharedImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -488,35 +484,34 @@ async function createAScaleSetFromASpecializedSharedImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -549,12 +544,11 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{nicConfig2-name}", @@ -567,40 +561,39 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() primary: true, privateIPAddressVersion: "IPv4", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -632,13 +625,13 @@ async function createAScaleSetWithApplicationProfile() { packageReferenceId: "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0", tags: "myTag1", - treatFailureAsDeploymentFailure: true + treatFailureAsDeploymentFailure: true, }, { packageReferenceId: - "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1" - } - ] + "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -649,42 +642,42 @@ async function createAScaleSetWithApplicationProfile() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -707,7 +700,7 @@ async function createAScaleSetWithDiskControllerType() { upgradePolicy: { mode: "Manual" }, virtualMachineProfile: { hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -718,19 +711,18 @@ async function createAScaleSetWithDiskControllerType() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { diskControllerType: "NVMe", @@ -738,24 +730,25 @@ async function createAScaleSetWithDiskControllerType() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -786,19 +779,18 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ @@ -809,38 +801,36 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() lun: 0, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } + storageAccountType: "Standard_LRS", + }, + }, ], imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } - } - } + storageAccountType: "Standard_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -871,12 +861,11 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{fpgaNic-Name}", @@ -889,40 +878,39 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { primary: true, privateIPAddressVersion: "IPv4", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -944,7 +932,7 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -958,19 +946,18 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { encryptionAtHost: true }, storageProfile: { @@ -978,23 +965,24 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1029,12 +1017,11 @@ async function createAScaleSetWithNetworkInterfacesWithPublicIPAddressDnsSetting { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{nicConfig2-name}", @@ -1050,45 +1037,44 @@ async function createAScaleSetWithNetworkInterfacesWithPublicIPAddressDnsSetting name: "publicip", dnsSettings: { domainNameLabel: "vmsstestlabel01", - domainNameLabelScope: "NoReuse" + domainNameLabelScope: "NoReuse", }, - idleTimeoutInMinutes: 10 + idleTimeoutInMinutes: 10, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1119,45 +1105,45 @@ async function createAScaleSetWithOSImageScheduledEventsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" } + osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1188,45 +1174,45 @@ async function createAScaleSetWithProxyAgentSettingsOfEnabledAndMode() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { - proxyAgentSettings: { enabled: true, mode: "Enforce" } + proxyAgentSettings: { enabled: true, mode: "Enforce" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1258,42 +1244,42 @@ async function createAScaleSetWithResilientVMCreationEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1325,42 +1311,42 @@ async function createAScaleSetWithResilientVMDeletionEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1382,7 +1368,7 @@ async function createAScaleSetWithSecurityPostureReference() { sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, upgradePolicy: { automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, - mode: "Automatic" + mode: "Automatic", }, virtualMachineProfile: { networkProfile: { @@ -1394,46 +1380,45 @@ async function createAScaleSetWithSecurityPostureReference() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityPostureReference: { - id: - "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest" + id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2022-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", caching: "ReadWrite", - createOption: "FromImage" - } - } - } + createOption: "FromImage", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1464,49 +1449,49 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "VMGuestStateOnly" }, - storageAccountType: "StandardSSD_LRS" - } - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1537,49 +1522,49 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVMAndNonPersistedTpm { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: false, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: false, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2022-datacenter-cvm", publisher: "UbuntuServer", sku: "linux-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "NonPersistedTPM" }, - storageAccountType: "StandardSSD_LRS" - } - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1601,7 +1586,7 @@ async function createAScaleSetWithServiceArtifactReference() { sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, upgradePolicy: { automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, - mode: "Automatic" + mode: "Automatic", }, virtualMachineProfile: { networkProfile: { @@ -1613,46 +1598,45 @@ async function createAScaleSetWithServiceArtifactReference() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, serviceArtifactReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2022-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", caching: "ReadWrite", - createOption: "FromImage" - } - } - } + createOption: "FromImage", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1683,46 +1667,46 @@ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "windowsserver-gen2preview-preview", publisher: "MicrosoftWindowsServer", sku: "windows10-tvm", - version: "18363.592.2001092016" + version: "18363.592.2001092016", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1744,7 +1728,7 @@ async function createAScaleSetWithAMarketplaceImagePlan() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_D1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -1758,42 +1742,42 @@ async function createAScaleSetWithAMarketplaceImagePlan() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1825,47 +1809,46 @@ async function createAScaleSetWithAnAzureApplicationGateway() { name: "{vmss-name}", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}", + }, ], subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1897,57 +1880,55 @@ async function createAScaleSetWithAnAzureLoadBalancer() { name: "{vmss-name}", loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}", + }, ], loadBalancerInboundNatPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}", + }, ], publicIPAddressConfiguration: { name: "{vmss-name}", - publicIPAddressVersion: "IPv4" + publicIPAddressVersion: "IPv4", }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1979,42 +1960,42 @@ async function createAScaleSetWithAutomaticRepairsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2040,8 +2021,8 @@ async function createAScaleSetWithBootDiagnostics() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -2052,42 +2033,42 @@ async function createAScaleSetWithBootDiagnostics() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2118,47 +2099,47 @@ async function createAScaleSetWithEmptyDataDisksOnEachVM() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", diskSizeGB: 512, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2180,7 +2161,7 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -2194,43 +2175,43 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "ResourceDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2252,7 +2233,7 @@ async function createAScaleSetWithEphemeralOSDisks() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -2266,43 +2247,43 @@ async function createAScaleSetWithEphemeralOSDisks() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2328,8 +2309,8 @@ async function createAScaleSetWithExtensionTimeBudget() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensionsTimeBudget: "PT1H20M", @@ -2340,9 +2321,9 @@ async function createAScaleSetWithExtensionTimeBudget() { autoUpgradeMinorVersion: false, publisher: "{extension-Publisher}", settings: {}, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -2353,42 +2334,42 @@ async function createAScaleSetWithExtensionTimeBudget() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2420,42 +2401,42 @@ async function createAScaleSetWithManagedBootDiagnostics() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2486,42 +2467,42 @@ async function createAScaleSetWithPasswordAuthentication() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2552,42 +2533,42 @@ async function createAScaleSetWithPremiumStorage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2608,7 +2589,7 @@ async function createAScaleSetWithPriorityMixPolicy() { orchestrationMode: "Flexible", priorityMixPolicy: { baseRegularPriorityCount: 4, - regularPriorityPercentageAboveBase: 50 + regularPriorityPercentageAboveBase: 50, }, singlePlacementGroup: false, sku: { name: "Standard_A8m_v2", capacity: 10, tier: "Standard" }, @@ -2624,19 +2605,18 @@ async function createAScaleSetWithPriorityMixPolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, priority: "Spot", storageProfile: { @@ -2644,23 +2624,24 @@ async function createAScaleSetWithPriorityMixPolicy() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2692,42 +2673,42 @@ async function createAScaleSetWithScaleInPolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2761,19 +2742,18 @@ async function createAScaleSetWithSpotRestorePolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, priority: "Spot", storageProfile: { @@ -2781,23 +2761,24 @@ async function createAScaleSetWithSpotRestorePolicy() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2828,14 +2809,13 @@ async function createAScaleSetWithSshAuthentication() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminUsername: "{your-username}", @@ -2847,34 +2827,35 @@ async function createAScaleSetWithSshAuthentication() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2905,45 +2886,48 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT5M" } + terminateNotificationProfile: { + enable: true, + notBeforeTimeout: "PT5M", + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2974,43 +2958,43 @@ async function createAScaleSetWithUserData() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3041,48 +3025,48 @@ async function createAScaleSetWithVirtualMachinesInDifferentZones() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", diskSizeGB: 512, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }, - zones: ["1", "3"] + zones: ["1", "3"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3105,7 +3089,7 @@ async function createAScaleSetWithVMSizeProperties() { upgradePolicy: { mode: "Manual" }, virtualMachineProfile: { hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -3116,43 +3100,43 @@ async function createAScaleSetWithVMSizeProperties() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3176,9 +3160,8 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { virtualMachineProfile: { capacityReservation: { capacityReservationGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}", + }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -3189,42 +3172,42 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts index cadf8fe95290..e4ab362d752f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeallocateSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsDeallocateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function virtualMachineScaleSetDeallocateMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const hibernate = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsDeallocateOptionalParams = { hibernate, - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -64,7 +64,7 @@ async function virtualMachineScaleSetDeallocateMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeallocateAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts index 43b4a6e0338e..5656c5c0167b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteInstancesSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceRequiredIDs, VirtualMachineScaleSetsDeleteInstancesOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,19 +32,20 @@ async function virtualMachineScaleSetDeleteInstancesMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaa"; const forceDeletion = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsDeleteInstancesOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs, - options - ); + const result = + await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + options, + ); console.log(result); } @@ -61,15 +62,16 @@ async function virtualMachineScaleSetDeleteInstancesMinimumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts index b69787c228d7..52c96828424e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetsDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function forceDeleteAVMScaleSet() { const vmScaleSetName = "myvmScaleSet"; const forceDeletion = true; const options: VirtualMachineScaleSetsDeleteOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeleteAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts index cc1a536cd4fe..b0696a161564 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDom const platformUpdateDomain = 30; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName, - vmScaleSetName, - platformUpdateDomain - ); + const result = + await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( + resourceGroupName, + vmScaleSetName, + platformUpdateDomain, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDom const platformUpdateDomain = 9; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName, - vmScaleSetName, - platformUpdateDomain - ); + const result = + await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( + resourceGroupName, + vmScaleSetName, + platformUpdateDomain, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts index c6401aff521a..0be4b5ed0ca5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetInstanceViewSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetGetInstanceViewMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.getInstanceView( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetGetInstanceViewMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.getInstanceView( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts index 3e8c4a0d3ea1..4cc783727ca6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listOSUpgradeHistory( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listOSUpgradeHistory( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts index cc41549c60cc..aab817379d35 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getVMScaleSetVMWithDiskControllerType() { const result = await client.virtualMachineScaleSets.get( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function getAVirtualMachineScaleSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.get( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -78,7 +78,7 @@ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutom const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.get( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -102,7 +102,7 @@ async function getAVirtualMachineScaleSetWithUserData() { const result = await client.virtualMachineScaleSets.get( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts index 482c0aaa56bf..8f158d60d364 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListByLocationSample.ts @@ -28,7 +28,7 @@ async function listsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifie const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listByLocation( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts index ef1a4d84817d..8b5a51a53d2a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSample.ts @@ -29,7 +29,7 @@ async function virtualMachineScaleSetListMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetListMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts index ac6f0f401d18..82d23dff4a2b 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsListSkusSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetListSkusMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listSkus( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetListSkusMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listSkus( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts index fe1f03a88c68..20c856c7fa22 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPerformMaintenanceSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsPerformMaintenanceOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,18 +31,19 @@ async function virtualMachineScaleSetPerformMaintenanceMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsPerformMaintenanceOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - options - ); + const result = + await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + options, + ); console.log(result); } @@ -60,10 +61,11 @@ async function virtualMachineScaleSetPerformMaintenanceMinimumSetGen() { const vmScaleSetName = "aa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts index fce76fa99f85..5d0ed3b593bf 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsPowerOffSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function virtualMachineScaleSetPowerOffMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; const skipShutdown = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsPowerOffOptionalParams = { skipShutdown, - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginPowerOffAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -64,7 +64,7 @@ async function virtualMachineScaleSetPowerOffMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginPowerOffAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts index 1c3863a32c1e..e3cc62f3b6c5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReapplySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetsReapplyMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReapplyAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetsReapplyMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReapplyAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts index bac68cc788d3..6b648e7063ad 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRedeploySample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsRedeployOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetRedeployMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsRedeployOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetRedeployMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRedeployAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts index 81aa76c55b76..01421e27086f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageAllSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsReimageAllOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetReimageAllMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsReimageAllOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetReimageAllMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAllAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts index d2d27e5a275a..4bfd776d5175 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetReimageParameters, VirtualMachineScaleSetsReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,17 +32,17 @@ async function virtualMachineScaleSetReimageMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmScaleSetReimageInput: VirtualMachineScaleSetReimageParameters = { instanceIds: ["aaaaaaaaaa"], - tempDisk: true + tempDisk: true, }; const options: VirtualMachineScaleSetsReimageOptionalParams = { - vmScaleSetReimageInput + vmScaleSetReimageInput, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function virtualMachineScaleSetReimageMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts index 310b99a21fb1..f2006349f0ce 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsRestartSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsRestartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetRestartMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsRestartOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRestartAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetRestartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRestartAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts index 2250fe5f7be3..f9562b55e0fa 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrchestrationServiceStateInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,15 +31,16 @@ async function virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaa"; const parameters: OrchestrationServiceStateInput = { action: "Resume", - serviceName: "AutomaticRepairs" + serviceName: "AutomaticRepairs", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -57,15 +58,16 @@ async function virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const parameters: OrchestrationServiceStateInput = { action: "Resume", - serviceName: "AutomaticRepairs" + serviceName: "AutomaticRepairs", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts index 41f57282a891..6347911d73cc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsStartSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsStartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function virtualMachineScaleSetStartMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsStartOptionalParams = { vmInstanceIDs }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function virtualMachineScaleSetStartMaximumSetGen() { const result = await client.virtualMachineScaleSets.beginStartAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -60,7 +60,7 @@ async function virtualMachineScaleSetStartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginStartAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts index 310a28f3459c..7178417d9db1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateInstancesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMInstanceRequiredIDs, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,15 +30,16 @@ async function virtualMachineScaleSetUpdateInstancesMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } @@ -55,15 +56,16 @@ async function virtualMachineScaleSetUpdateInstancesMinimumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts index 2456cfe0d345..7b328300bb1e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachineScaleSetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,18 +35,17 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { doNotRunExtensionsOnOverprovisionedVMs: true, identity: { type: "SystemAssigned", - userAssignedIdentities: { key3951: {} } + userAssignedIdentities: { key3951: {} }, }, overprovision: true, plan: { name: "windows2016", product: "windows-data-science-vm", promotionCode: "aaaaaaaaaa", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, proximityPlacementGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, scaleInPolicy: { forceDeletion: true, rules: ["OldestVM"] }, singlePlacementGroup: true, @@ -56,7 +55,7 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { automaticOSUpgradePolicy: { disableAutomaticRollback: true, enableAutomaticOSUpgrade: true, - osRollingUpgradeDeferral: true + osRollingUpgradeDeferral: true, }, mode: "Manual", rollingUpgradePolicy: { @@ -67,8 +66,8 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { maxUnhealthyUpgradedInstancePercent: 98, pauseTimeBetweenBatches: "aaaaaaaaaaaaaaa", prioritizeUnhealthyInstances: true, - rollbackFailedInstancesOnPolicyBreach: true - } + rollbackFailedInstancesOnPolicyBreach: true, + }, }, virtualMachineProfile: { billingProfile: { maxPrice: -1 }, @@ -76,8 +75,8 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensionsTimeBudget: "PT1H20M", @@ -93,15 +92,14 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, licenseType: "aaaaaaaaaaaa", networkProfile: { healthProbe: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", }, networkApiVersion: "2020-11-01", networkInterfaceConfigurations: [ @@ -117,27 +115,23 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", applicationGatewayBackendAddressPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], applicationSecurityGroups: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], loadBalancerBackendAddressPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], loadBalancerInboundNatPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -145,21 +139,19 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { name: "a", deleteOption: "Delete", dnsSettings: { domainNameLabel: "aaaaaaaaaaaaaaaaaa" }, - idleTimeoutInMinutes: 3 + idleTimeoutInMinutes: 3, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", + }, + }, ], networkSecurityGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { customData: "aaaaaaaaaaaaaaaaaaaaaaaaaa", @@ -167,7 +159,7 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { disablePasswordAuthentication: true, patchSettings: { assessmentMode: "ImageDefault", - patchMode: "ImageDefault" + patchMode: "ImageDefault", }, provisionVMAgent: true, ssh: { @@ -175,24 +167,23 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, }, secrets: [ { sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, vaultCertificates: [ { certificateStore: "aaaaaaaaaaaaaaaaaaaaaaaaa", - certificateUrl: "aaaaaaa" - } - ] - } + certificateUrl: "aaaaaaa", + }, + ], + }, ], windowsConfiguration: { additionalUnattendContent: [ @@ -200,35 +191,35 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { componentName: "Microsoft-Windows-Shell-Setup", content: "aaaaaaaaaaaaaaaaaaaa", passName: "OobeSystem", - settingName: "AutoLogon" - } + settingName: "AutoLogon", + }, ], enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault", automaticByPlatformSettings: { rebootSetting: "Never" }, enableHotpatching: true, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, provisionVMAgent: true, timeZone: "aaaaaaaaaaaaaaaa", winRM: { listeners: [ - { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" } - ] - } - } + { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" }, + ], + }, + }, }, scheduledEventsProfile: { terminateNotificationProfile: { enable: true, - notBeforeTimeout: "PT10M" - } + notBeforeTimeout: "PT10M", + }, }, securityProfile: { encryptionAtHost: true, securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { dataDisks: [ @@ -242,10 +233,10 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { lun: 26, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - storageAccountType: "Standard_LRS" + storageAccountType: "Standard_LRS", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, ], imageReference: { id: "aaaaaaaaaaaaaaaaaaa", @@ -253,32 +244,31 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { publisher: "MicrosoftWindowsServer", sharedGalleryImageId: "aaaaaa", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", diskSizeGB: 6, image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", }, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - storageAccountType: "Standard_LRS" + storageAccountType: "Standard_LRS", }, vhdContainers: ["aa"], - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, }, - userData: "aaaaaaaaaaaaa" - } + userData: "aaaaaaaaaaaaa", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginUpdateAndWait( resourceGroupName, vmScaleSetName, - parameters + parameters, ); console.log(result); } @@ -301,7 +291,7 @@ async function virtualMachineScaleSetUpdateMinimumSetGen() { const result = await client.virtualMachineScaleSets.beginUpdateAndWait( resourceGroupName, vmScaleSetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts index 4b22c5e47df6..7e144e4ac790 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesAssessPatchesSample.ts @@ -30,7 +30,7 @@ async function assessPatchStateOfAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAssessPatchesAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesAttachDetachDataDisksSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesAttachDetachDataDisksSample.ts index a6ae4d63ca6d..32db8c3aa8d5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesAttachDetachDataDisksSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesAttachDetachDataDisksSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AttachDetachDataDisksRequest, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,33 +34,33 @@ async function virtualMachineAttachDetachDataDisksMaximumSetGen() { { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - lun: 1 + lun: 1, }, { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_2_disk3_7d5e664bdafa49baa780eb2d128ff38e", - lun: 2 - } + lun: 2, + }, ], dataDisksToDetach: [ { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", }, { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAttachDetachDataDisksAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -81,22 +81,22 @@ async function virtualMachineAttachDetachDataDisksMinimumSetGen() { dataDisksToAttach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + }, ], dataDisksToDetach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAttachDetachDataDisksAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts index 8a97b3361028..35474c2a77a6 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesCaptureSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineCaptureParameters, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,14 +32,14 @@ async function virtualMachineCaptureMaximumSetGen() { const parameters: VirtualMachineCaptureParameters = { destinationContainerName: "aaaaaaa", overwriteVhds: true, - vhdPrefix: "aaaaaaaaa" + vhdPrefix: "aaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCaptureAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -59,14 +59,14 @@ async function virtualMachineCaptureMinimumSetGen() { const parameters: VirtualMachineCaptureParameters = { destinationContainerName: "aaaaaaa", overwriteVhds: true, - vhdPrefix: "aaaaaaaaa" + vhdPrefix: "aaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCaptureAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts index 8fba6f5bb4de..49972a1a2cdd 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesConvertToManagedDisksSample.ts @@ -30,7 +30,7 @@ async function virtualMachineConvertToManagedDisksMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginConvertToManagedDisksAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineConvertToManagedDisksMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginConvertToManagedDisksAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts index 72be2de6d0d5..944af4792dcc 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesCreateOrUpdateSample.ts @@ -32,11 +32,10 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -44,30 +43,30 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { computerName: "myVM", linuxConfiguration: { patchSettings: { assessmentMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -90,11 +89,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -105,34 +103,34 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA assessmentMode: "AutomaticByPlatform", automaticByPlatformSettings: { bypassPlatformSafetyChecksOnUserSchedule: true, - rebootSetting: "Never" + rebootSetting: "Never", }, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -155,11 +153,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -167,30 +164,30 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { computerName: "myVM", linuxConfiguration: { patchSettings: { patchMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -213,11 +210,10 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -226,32 +222,32 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu linuxConfiguration: { patchSettings: { assessmentMode: "AutomaticByPlatform", - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -274,36 +270,35 @@ async function createAVMFromACommunityGalleryImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { communityGalleryImageId: - "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName" + "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -326,36 +321,35 @@ async function createAVMFromASharedGalleryImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { sharedGalleryImageId: - "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName" + "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -377,24 +371,23 @@ async function createAVMWithDiskControllerType() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D4_v3" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { diskControllerType: "NVMe", @@ -402,23 +395,23 @@ async function createAVMWithDiskControllerType() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "U29tZSBDdXN0b20gRGF0YQ==" + userData: "U29tZSBDdXN0b20gRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -441,46 +434,45 @@ async function createAVMWithHibernationEnabled() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D2s_v3" }, location: "eastus2euap", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "{vm-name}" + computerName: "{vm-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "vmOSdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -503,16 +495,15 @@ async function createAVMWithProxyAgentSettingsOfEnabledAndMode() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { proxyAgentSettings: { enabled: true, mode: "Enforce" } }, storageProfile: { @@ -520,22 +511,22 @@ async function createAVMWithProxyAgentSettingsOfEnabledAndMode() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -558,42 +549,41 @@ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "windowsserver-gen2preview-preview", publisher: "MicrosoftWindowsServer", sku: "windows10-tvm", - version: "18363.592.2001092016" + version: "18363.592.2001092016", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -615,47 +605,46 @@ async function createAVMWithUserData() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "{vm-name}" + computerName: "{vm-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "vmOSdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -677,50 +666,49 @@ async function createAVMWithVMSizeProperties() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D4_v3", - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "U29tZSBDdXN0b20gRGF0YQ==" + userData: "U29tZSBDdXN0b20gRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -742,51 +730,51 @@ async function createAVMWithEncryptionIdentity() { identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/myIdentity": {} - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/myIdentity": + {}, + }, }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { encryptionIdentity: { userAssignedIdentityResourceId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity", + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -820,40 +808,40 @@ async function createAVMWithNetworkInterfaceConfiguration() { name: "{publicIP-config-name}", deleteOption: "Detach", publicIPAllocationMethod: "Static", - sku: { name: "Basic", tier: "Global" } - } - } + sku: { name: "Basic", tier: "Global" }, + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -888,43 +876,43 @@ async function createAVMWithNetworkInterfaceConfigurationWithPublicIPAddressDnsS deleteOption: "Detach", dnsSettings: { domainNameLabel: "aaaaa", - domainNameLabelScope: "TenantReuse" + domainNameLabelScope: "TenantReuse", }, publicIPAllocationMethod: "Static", - sku: { name: "Basic", tier: "Global" } - } - } + sku: { name: "Basic", tier: "Global" }, + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -947,27 +935,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -976,22 +963,21 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() managedDisk: { securityProfile: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - securityEncryptionType: "DiskWithVMGuestState" + securityEncryptionType: "DiskWithVMGuestState", }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1014,27 +1000,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithNonPersistedTpmSecurit networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: false, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: false, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2022-datacenter-cvm", publisher: "UbuntuServer", sku: "linux-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -1042,17 +1027,17 @@ async function createAVMWithSecurityTypeConfidentialVMWithNonPersistedTpmSecurit createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "NonPersistedTPM" }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1075,27 +1060,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -1103,17 +1087,17 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "DiskWithVMGuestState" }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1136,11 +1120,10 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1149,30 +1132,30 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1195,11 +1178,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1208,30 +1190,30 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { patchMode: "AutomaticByOS" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1254,11 +1236,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1270,34 +1251,34 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn assessmentMode: "AutomaticByPlatform", automaticByPlatformSettings: { bypassPlatformSafetyChecksOnUserSchedule: false, - rebootSetting: "Never" + rebootSetting: "Never", }, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1320,11 +1301,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1334,32 +1314,32 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn enableAutomaticUpdates: true, patchSettings: { enableHotpatching: true, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1382,11 +1362,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1395,30 +1374,30 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { patchMode: "Manual" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1441,11 +1420,10 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1455,32 +1433,32 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA enableAutomaticUpdates: true, patchSettings: { assessmentMode: "AutomaticByPlatform", - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1503,16 +1481,15 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { osDisk: { @@ -1520,23 +1497,21 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { caching: "ReadWrite", createOption: "FromImage", image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd", }, osType: "Windows", vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1559,16 +1534,15 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -1577,43 +1551,40 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { diskSizeGB: 1023, lun: 0, vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd" - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd", + }, }, { createOption: "Empty", diskSizeGB: 1023, lun: 1, vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd" - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd", + }, + }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1636,36 +1607,34 @@ async function createAVMFromACustomImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1688,36 +1657,34 @@ async function createAVMFromAGeneralizedSharedImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1740,31 +1707,29 @@ async function createAVMFromASpecializedSharedImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1787,16 +1752,15 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, platformFaultDomain: 1, storageProfile: { @@ -1804,26 +1768,25 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, virtualMachineScaleSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1842,46 +1805,44 @@ async function createAVMInAnAvailabilitySet() { const vmName = "myVM"; const parameters: VirtualMachine = { availabilitySet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}", }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1909,51 +1870,50 @@ async function createAVMWithApplicationProfile() { packageReferenceId: "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0", tags: "myTag1", - treatFailureAsDeploymentFailure: false + treatFailureAsDeploymentFailure: false, }, { packageReferenceId: - "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1" - } - ] + "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1", + }, + ], }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "{image_offer}", publisher: "{image_publisher}", sku: "{image_sku}", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1976,16 +1936,15 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -1996,11 +1955,10 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() lun: 0, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, }, { caching: "ReadWrite", @@ -2009,18 +1967,15 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() lun: 1, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}", - storageAccountType: "Standard_LRS" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}", + storageAccountType: "Standard_LRS", + }, + }, ], imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { name: "myVMosdisk", @@ -2028,20 +1983,19 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() createOption: "FromImage", managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } - } + storageAccountType: "Standard_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2064,21 +2018,20 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, securityProfile: { encryptionAtHost: true }, storageProfile: { @@ -2086,22 +2039,22 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2123,50 +2076,49 @@ async function createAVMWithScheduledEventsProfile() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, scheduledEventsProfile: { osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" }, - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT10M" } + terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT10M" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2189,43 +2141,42 @@ async function createAVMWithAMarketplaceImagePlan() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2247,8 +2198,8 @@ async function createAVMWithAnExtensionsTimeBudget() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionsTimeBudget: "PT30M", hardwareProfile: { vmSize: "Standard_D1_v2" }, @@ -2256,38 +2207,37 @@ async function createAVMWithAnExtensionsTimeBudget() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2309,46 +2259,45 @@ async function createAVMWithBootDiagnostics() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2371,42 +2320,41 @@ async function createAVMWithEmptyDataDisks() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2429,44 +2377,43 @@ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacement networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2489,44 +2436,43 @@ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacem networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "ResourceDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2549,44 +2495,43 @@ async function createAVMWithEphemeralOSDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2610,38 +2555,37 @@ async function createAVMWithManagedBootDiagnostics() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2664,38 +2608,37 @@ async function createAVMWithPasswordAuthentication() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2718,38 +2661,37 @@ async function createAVMWithPremiumStorage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2772,11 +2714,10 @@ async function createAVMWithSshAuthentication() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminUsername: "{your-username}", @@ -2788,33 +2729,33 @@ async function createAVMWithSshAuthentication() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, + }, }, storageProfile: { imageReference: { offer: "{image_offer}", publisher: "{image_publisher}", sku: "{image_sku}", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2834,52 +2775,50 @@ async function createOrUpdateAVMWithCapacityReservation() { const parameters: VirtualMachine = { capacityReservation: { capacityReservationGroup: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}", + }, }, hardwareProfile: { vmSize: "Standard_DS1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts index 351b0abf6769..67df8c2cf0bb 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeallocateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesDeallocateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineDeallocateMaximumSetGen() { const result = await client.virtualMachines.beginDeallocateAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineDeallocateMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginDeallocateAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts index 6fd67bd0ee3d..97641d945342 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function forceDeleteAVM() { const result = await client.virtualMachines.beginDeleteAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts index feb2d3e10e63..818fb3778160 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesGeneralizeSample.ts @@ -30,7 +30,7 @@ async function generalizeAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.generalize( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts index 2e96af10b5e2..186af1f68827 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getAVirtualMachine() { const result = await client.virtualMachines.get( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -78,7 +78,7 @@ async function getAVirtualMachineWithDiskControllerTypeProperties() { const result = await client.virtualMachines.get( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts index b1e5e8f75265..49d78acbb25f 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstallPatchesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineInstallPatchesParameters, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,15 +34,15 @@ async function installPatchStateOfAVirtualMachine() { rebootSetting: "IfRequired", windowsParameters: { classificationsToInclude: ["Critical", "Security"], - maxPatchPublishDate: new Date("2020-11-19T02:36:43.0539904+00:00") - } + maxPatchPublishDate: new Date("2020-11-19T02:36:43.0539904+00:00"), + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginInstallPatchesAndWait( resourceGroupName, vmName, - installPatchesInput + installPatchesInput, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts index 00dfd96b2eac..6df11c00d122 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesInstanceViewSample.ts @@ -30,7 +30,7 @@ async function getVirtualMachineInstanceView() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.instanceView( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroug const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.instanceView( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts index a2aceebd09cd..680c7972f3d9 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAllSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesListAllOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts index 29107a55014b..029b1a3fca05 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListAvailableSizesSample.ts @@ -31,7 +31,7 @@ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMac const resArray = new Array(); for await (let item of client.virtualMachines.listAvailableSizes( resourceGroupName, - vmName + vmName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts index 9692a239a9a8..359816f299b8 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineListMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachines.list( resourceGroupName, - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts index 7ceb8d97164c..91dca7f28ef1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesPerformMaintenanceSample.ts @@ -30,7 +30,7 @@ async function virtualMachinePerformMaintenanceMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPerformMaintenanceAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachinePerformMaintenanceMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPerformMaintenanceAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts index 15f84a6d5b82..b955a72f1ca1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesPowerOffSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachinePowerOffMaximumSetGen() { const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachinePowerOffMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts index a067f64f057c..857e7823d8f5 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesReapplySample.ts @@ -30,7 +30,7 @@ async function reapplyTheStateOfAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginReapplyAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts index e50756b6cbc3..e9468ef49a5e 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRedeploySample.ts @@ -30,7 +30,7 @@ async function virtualMachineRedeployMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRedeployAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineRedeployMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRedeployAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts index 2c68ff088e8e..a1ec8a6d0ec1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineReimageParameters, VirtualMachinesReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,9 +34,9 @@ async function reimageANonEphemeralVirtualMachine() { exactVersion: "aaaaaa", osProfile: { adminPassword: "{your-password}", - customData: "{your-custom-data}" + customData: "{your-custom-data}", }, - tempDisk: true + tempDisk: true, }; const options: VirtualMachinesReimageOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function reimageANonEphemeralVirtualMachine() { const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -68,7 +68,7 @@ async function reimageAVirtualMachine() { const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts index cebc0d8be944..7a8e9e6dc08a 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRestartSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRestartMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineRestartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts index 873ee356ff5d..a331d5e75b1d 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRetrieveBootDiagnosticsDataSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmName = "VMName"; const sasUriExpirationTimeInMinutes = 60; const options: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams = { - sasUriExpirationTimeInMinutes + sasUriExpirationTimeInMinutes, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.retrieveBootDiagnosticsData( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts index 0b640f230ac6..049402ca09bd 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesRunCommandSample.ts @@ -33,7 +33,7 @@ async function virtualMachineRunCommand() { const result = await client.virtualMachines.beginRunCommandAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts index cbe6578d22a0..49c46d4ab2f1 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesSimulateEvictionSample.ts @@ -30,7 +30,7 @@ async function simulateEvictionAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.simulateEviction( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts index 37d02b450959..b8b337a2cc83 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesStartSample.ts @@ -30,7 +30,7 @@ async function virtualMachineStartMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineStartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts b/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts index ce9191b96d39..a82f313c230c 100644 --- a/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples-dev/virtualMachinesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,42 +34,46 @@ async function updateAVMByDetachingDataDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0, toBeDetached: true }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false } + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, + }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -91,16 +95,15 @@ async function updateAVMByForceDetachingDataDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -109,30 +112,35 @@ async function updateAVMByForceDetachingDataDisk() { detachOption: "ForceDetach", diskSizeGB: 1023, lun: 0, - toBeDetached: true + toBeDetached: true, + }, + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false } ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/javascript/README.md b/sdk/compute/arm-compute/samples/v21/javascript/README.md index 5871b4c886d6..b8939a45b72f 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/README.md +++ b/sdk/compute/arm-compute/samples/v21/javascript/README.md @@ -52,11 +52,11 @@ These sample programs show how to use the JavaScript client libraries for in som | [cloudServicesUpdateDomainListUpdateDomainsSample.js][cloudservicesupdatedomainlistupdatedomainssample] | Gets a list of all update domains in a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceUpdateDomain_List.json | | [cloudServicesUpdateDomainWalkUpdateDomainSample.js][cloudservicesupdatedomainwalkupdatedomainsample] | Updates the role instances in the specified update domain. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceUpdateDomain_Update.json | | [cloudServicesUpdateSample.js][cloudservicesupdatesample] | Update a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudService_Update_ToIncludeTags.json | -| [communityGalleriesGetSample.js][communitygalleriesgetsample] | Get a community gallery by gallery public name. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json | -| [communityGalleryImageVersionsGetSample.js][communitygalleryimageversionsgetsample] | Get a community gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json | -| [communityGalleryImageVersionsListSample.js][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | -| [communityGalleryImagesGetSample.js][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | -| [communityGalleryImagesListSample.js][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | +| [communityGalleriesGetSample.js][communitygalleriesgetsample] | Get a community gallery by gallery public name. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json | +| [communityGalleryImageVersionsGetSample.js][communitygalleryimageversionsgetsample] | Get a community gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json | +| [communityGalleryImageVersionsListSample.js][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | +| [communityGalleryImagesGetSample.js][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | +| [communityGalleryImagesListSample.js][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | | [dedicatedHostGroupsCreateOrUpdateSample.js][dedicatedhostgroupscreateorupdatesample] | Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json | | [dedicatedHostGroupsDeleteSample.js][dedicatedhostgroupsdeletesample] | Delete a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json | | [dedicatedHostGroupsGetSample.js][dedicatedhostgroupsgetsample] | Retrieves information about a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json | @@ -101,33 +101,33 @@ These sample programs show how to use the JavaScript client libraries for in som | [disksListSample.js][diskslistsample] | Lists all the disks under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_ListBySubscription.json | | [disksRevokeAccessSample.js][disksrevokeaccesssample] | Revokes access to a disk. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_EndGetAccess.json | | [disksUpdateSample.js][disksupdatesample] | Updates (patches) a disk. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_CreateOrUpdate_BurstingEnabled.json | -| [galleriesCreateOrUpdateSample.js][galleriescreateorupdatesample] | Create or update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json | -| [galleriesDeleteSample.js][galleriesdeletesample] | Delete a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json | -| [galleriesGetSample.js][galleriesgetsample] | Retrieves information about a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json | -| [galleriesListByResourceGroupSample.js][gallerieslistbyresourcegroupsample] | List galleries under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json | -| [galleriesListSample.js][gallerieslistsample] | List galleries under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json | -| [galleriesUpdateSample.js][galleriesupdatesample] | Update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json | -| [galleryApplicationVersionsCreateOrUpdateSample.js][galleryapplicationversionscreateorupdatesample] | Create or update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json | -| [galleryApplicationVersionsDeleteSample.js][galleryapplicationversionsdeletesample] | Delete a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json | -| [galleryApplicationVersionsGetSample.js][galleryapplicationversionsgetsample] | Retrieves information about a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json | -| [galleryApplicationVersionsListByGalleryApplicationSample.js][galleryapplicationversionslistbygalleryapplicationsample] | List gallery Application Versions in a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json | -| [galleryApplicationVersionsUpdateSample.js][galleryapplicationversionsupdatesample] | Update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json | -| [galleryApplicationsCreateOrUpdateSample.js][galleryapplicationscreateorupdatesample] | Create or update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json | -| [galleryApplicationsDeleteSample.js][galleryapplicationsdeletesample] | Delete a gallery Application. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json | -| [galleryApplicationsGetSample.js][galleryapplicationsgetsample] | Retrieves information about a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json | -| [galleryApplicationsListByGallerySample.js][galleryapplicationslistbygallerysample] | List gallery Application Definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json | -| [galleryApplicationsUpdateSample.js][galleryapplicationsupdatesample] | Update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json | -| [galleryImageVersionsCreateOrUpdateSample.js][galleryimageversionscreateorupdatesample] | Create or update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json | -| [galleryImageVersionsDeleteSample.js][galleryimageversionsdeletesample] | Delete a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json | -| [galleryImageVersionsGetSample.js][galleryimageversionsgetsample] | Retrieves information about a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json | -| [galleryImageVersionsListByGalleryImageSample.js][galleryimageversionslistbygalleryimagesample] | List gallery image versions in a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json | -| [galleryImageVersionsUpdateSample.js][galleryimageversionsupdatesample] | Update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json | -| [galleryImagesCreateOrUpdateSample.js][galleryimagescreateorupdatesample] | Create or update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json | -| [galleryImagesDeleteSample.js][galleryimagesdeletesample] | Delete a gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json | -| [galleryImagesGetSample.js][galleryimagesgetsample] | Retrieves information about a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json | -| [galleryImagesListByGallerySample.js][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json | -| [galleryImagesUpdateSample.js][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json | -| [gallerySharingProfileUpdateSample.js][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | +| [galleriesCreateOrUpdateSample.js][galleriescreateorupdatesample] | Create or update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json | +| [galleriesDeleteSample.js][galleriesdeletesample] | Delete a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json | +| [galleriesGetSample.js][galleriesgetsample] | Retrieves information about a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json | +| [galleriesListByResourceGroupSample.js][gallerieslistbyresourcegroupsample] | List galleries under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json | +| [galleriesListSample.js][gallerieslistsample] | List galleries under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json | +| [galleriesUpdateSample.js][galleriesupdatesample] | Update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json | +| [galleryApplicationVersionsCreateOrUpdateSample.js][galleryapplicationversionscreateorupdatesample] | Create or update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json | +| [galleryApplicationVersionsDeleteSample.js][galleryapplicationversionsdeletesample] | Delete a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json | +| [galleryApplicationVersionsGetSample.js][galleryapplicationversionsgetsample] | Retrieves information about a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json | +| [galleryApplicationVersionsListByGalleryApplicationSample.js][galleryapplicationversionslistbygalleryapplicationsample] | List gallery Application Versions in a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json | +| [galleryApplicationVersionsUpdateSample.js][galleryapplicationversionsupdatesample] | Update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json | +| [galleryApplicationsCreateOrUpdateSample.js][galleryapplicationscreateorupdatesample] | Create or update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json | +| [galleryApplicationsDeleteSample.js][galleryapplicationsdeletesample] | Delete a gallery Application. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json | +| [galleryApplicationsGetSample.js][galleryapplicationsgetsample] | Retrieves information about a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json | +| [galleryApplicationsListByGallerySample.js][galleryapplicationslistbygallerysample] | List gallery Application Definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json | +| [galleryApplicationsUpdateSample.js][galleryapplicationsupdatesample] | Update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json | +| [galleryImageVersionsCreateOrUpdateSample.js][galleryimageversionscreateorupdatesample] | Create or update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json | +| [galleryImageVersionsDeleteSample.js][galleryimageversionsdeletesample] | Delete a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json | +| [galleryImageVersionsGetSample.js][galleryimageversionsgetsample] | Retrieves information about a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json | +| [galleryImageVersionsListByGalleryImageSample.js][galleryimageversionslistbygalleryimagesample] | List gallery image versions in a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json | +| [galleryImageVersionsUpdateSample.js][galleryimageversionsupdatesample] | Update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json | +| [galleryImagesCreateOrUpdateSample.js][galleryimagescreateorupdatesample] | Create or update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json | +| [galleryImagesDeleteSample.js][galleryimagesdeletesample] | Delete a gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json | +| [galleryImagesGetSample.js][galleryimagesgetsample] | Retrieves information about a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json | +| [galleryImagesListByGallerySample.js][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json | +| [galleryImagesUpdateSample.js][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json | +| [gallerySharingProfileUpdateSample.js][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | | [imagesCreateOrUpdateSample.js][imagescreateorupdatesample] | Create or update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json | | [imagesDeleteSample.js][imagesdeletesample] | Deletes an Image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json | | [imagesGetSample.js][imagesgetsample] | Gets an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Image_Get.json | @@ -153,12 +153,12 @@ These sample programs show how to use the JavaScript client libraries for in som | [restorePointsCreateSample.js][restorepointscreatesample] | The operation to create the restore point. Updating properties of an existing restore point is not allowed x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json | | [restorePointsDeleteSample.js][restorepointsdeletesample] | The operation to delete the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json | | [restorePointsGetSample.js][restorepointsgetsample] | The operation to get the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Get.json | -| [sharedGalleriesGetSample.js][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json | -| [sharedGalleriesListSample.js][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json | -| [sharedGalleryImageVersionsGetSample.js][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | -| [sharedGalleryImageVersionsListSample.js][sharedgalleryimageversionslistsample] | List shared gallery image versions by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json | -| [sharedGalleryImagesGetSample.js][sharedgalleryimagesgetsample] | Get a shared gallery image by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json | -| [sharedGalleryImagesListSample.js][sharedgalleryimageslistsample] | List shared gallery images by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json | +| [sharedGalleriesGetSample.js][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json | +| [sharedGalleriesListSample.js][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json | +| [sharedGalleryImageVersionsGetSample.js][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | +| [sharedGalleryImageVersionsListSample.js][sharedgalleryimageversionslistsample] | List shared gallery image versions by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json | +| [sharedGalleryImagesGetSample.js][sharedgalleryimagesgetsample] | Get a shared gallery image by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json | +| [sharedGalleryImagesListSample.js][sharedgalleryimageslistsample] | List shared gallery images by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json | | [snapshotsCreateOrUpdateSample.js][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Create_ByImportingAnUnmanagedBlobFromADifferentSubscription.json | | [snapshotsDeleteSample.js][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Delete.json | | [snapshotsGetSample.js][snapshotsgetsample] | Gets information about a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Get.json | diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js index 128441bf9a9d..576e174e415a 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleriesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a community gallery by gallery public name. * * @summary Get a community gallery by gallery public name. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js index f13a81de20c2..049f4b55999e 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a community gallery image version. * * @summary Get a community gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json */ async function getACommunityGalleryImageVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js index 445c0dcbb619..88e61fcb48fb 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImageVersionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List community gallery image versions inside an image. * * @summary List community gallery image versions inside an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json */ async function listCommunityGalleryImageVersions() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js index cd12a6eb6510..1474b3c62bc0 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a community gallery image. * * @summary Get a community gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json */ async function getACommunityGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js index beb50d512d92..ec9ade404036 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/communityGalleryImagesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List community gallery images inside a gallery. * * @summary List community gallery images inside a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json */ async function listCommunityGalleryImages() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js index 2acf21e6aa5d..5776a6b76712 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json */ async function createACommunityGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -49,7 +49,7 @@ async function createACommunityGallery() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json */ async function createOrUpdateASimpleGalleryWithSharingProfile() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -74,7 +74,7 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json */ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -99,7 +99,7 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create.json */ async function createOrUpdateASimpleGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js index 96f1855d35b1..b6d288221aca 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a Shared Image Gallery. * * @summary Delete a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json */ async function deleteAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js index 96b4e681a8fc..da9baaadf122 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -32,7 +32,7 @@ async function getACommunityGallery() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json */ async function getAGalleryWithExpandSharingProfileGroups() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -50,7 +50,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json */ async function getAGalleryWithSelectPermissions() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -68,7 +68,7 @@ async function getAGalleryWithSelectPermissions() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json */ async function getAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js index 77823b9f5eaf..092d006d047b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List galleries under a resource group. * * @summary List galleries under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json */ async function listGalleriesInAResourceGroup() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js index 0777d9ea7b41..95f2f5f50643 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List galleries under a subscription. * * @summary List galleries under a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json */ async function listGalleriesInASubscription() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js index b9771c8d3bda..79d776874161 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleriesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a Shared Image Gallery. * * @summary Update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json */ async function updateASimpleGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js index dfe20196931d..ee8661f0a50d 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a gallery Application Version. * * @summary Create or update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json */ async function createOrUpdateASimpleGalleryApplicationVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js index 9132cd50e369..45e1d3cf8802 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a gallery Application Version. * * @summary Delete a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json */ async function deleteAGalleryApplicationVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js index 8002a5564205..930a7224f651 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json */ async function getAGalleryApplicationVersionWithReplicationStatus() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -42,7 +42,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json */ async function getAGalleryApplicationVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js index 6d7356470e75..84ce819ed0c8 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsListByGalleryApplicationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List gallery Application Versions in a gallery Application Definition. * * @summary List gallery Application Versions in a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json */ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js index 5433217a30e7..2875bdfa30b4 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationVersionsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a gallery Application Version. * * @summary Update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json */ async function updateASimpleGalleryApplicationVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js index 613ddfbcfdb0..132b3db0ed0c 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a gallery Application Definition. * * @summary Create or update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json */ async function createOrUpdateASimpleGalleryApplication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js index ff836f726cad..85a99ae3cfb6 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a gallery Application. * * @summary Delete a gallery Application. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json */ async function deleteAGalleryApplication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js index 5e52d5d7fe40..321252a17c5d 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a gallery Application Definition. * * @summary Retrieves information about a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json */ async function getAGalleryApplication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js index d019e69395f4..0552712677b7 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsListByGallerySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List gallery Application Definitions in a gallery. * * @summary List gallery Application Definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json */ async function listGalleryApplicationsInAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js index 08c67d6cb5eb..a37d89455723 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryApplicationsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a gallery Application Definition. * * @summary Update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json */ async function updateASimpleGalleryApplication() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js index bf90abbadf99..3bd8b3a77d51 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -80,7 +80,8 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}", + virtualMachineId: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}", }, }, }; @@ -100,7 +101,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImageAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -185,7 +186,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create.json */ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -269,7 +270,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapshotsAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -355,7 +356,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json */ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMode() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -392,7 +393,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -476,7 +477,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -562,7 +563,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCustomUefiKeys() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -649,7 +650,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -726,7 +727,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json */ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocationsSpecified() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js index 014a291e3650..14d14ddc7a55 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a gallery image version. * * @summary Delete a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json */ async function deleteAGalleryImageVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js index 36a224bfc9d3..b72b3b9b13c4 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json */ async function getAGalleryImageVersionWithReplicationStatus() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -42,7 +42,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json */ async function getAGalleryImageVersionWithSnapshotsAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -65,7 +65,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json */ async function getAGalleryImageVersionWithVhdAsASource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -88,7 +88,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json */ async function getAGalleryImageVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js index 7cba4dd17e82..03240bb7c85b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsListByGalleryImageSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List gallery image versions in a gallery image definition. * * @summary List gallery image versions in a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json */ async function listGalleryImageVersionsInAGalleryImageDefinition() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js index 9606797140d9..375c73f014e2 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImageVersionsUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json */ async function updateASimpleGalleryImageVersionManagedImageAsSource() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -57,7 +57,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json */ async function updateASimpleGalleryImageVersionWithoutSourceId() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js index 2ab266ec5f34..0e4d0968697b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create or update a gallery image definition. * * @summary Create or update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json */ async function createOrUpdateASimpleGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js index ffcaf9e59bf4..69dd7371143b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete a gallery image. * * @summary Delete a gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json */ async function deleteAGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js index 2be71ec8099d..15c3e8c76f0c 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Retrieves information about a gallery image definition. * * @summary Retrieves information about a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json */ async function getAGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js index 63b3eb2d5962..c294af279686 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesListByGallerySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List gallery image definitions in a gallery. * * @summary List gallery image definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json */ async function listGalleryImagesInAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js index c6b54deb3cf4..a2280d7d8786 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/galleryImagesUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update a gallery image definition. * * @summary Update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json */ async function updateASimpleGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js index 6961b0fa5daa..42629c467466 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/gallerySharingProfileUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json */ async function addSharingIdToTheSharingProfileOfAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -46,7 +46,7 @@ async function addSharingIdToTheSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ResetSharingProfile.json */ async function resetSharingProfileOfAGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; @@ -67,7 +67,7 @@ async function resetSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json */ async function shareAGalleryToCommunity() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js index cf4edf7508b5..a61895fd181b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a shared gallery by subscription id or tenant id. * * @summary Get a shared gallery by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json */ async function getASharedGallery() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js index 8fe8e14b2274..041b9fa6aa3f 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleriesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List shared galleries by subscription id or tenant id. * * @summary List shared galleries by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json */ async function listSharedGalleries() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js index fb060c163aac..d1a3d9d8e46a 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a shared gallery image version by subscription id or tenant id. * * @summary Get a shared gallery image version by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json */ async function getASharedGalleryImageVersion() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js index 1b9bd2273cea..466de4f23b62 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImageVersionsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List shared gallery image versions by subscription id or tenant id. * * @summary List shared gallery image versions by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json */ async function listSharedGalleryImageVersions() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js index 1f517f67e00d..f864f4ed1999 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get a shared gallery image by subscription id or tenant id. * * @summary Get a shared gallery image by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json */ async function getASharedGalleryImage() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js index 21a369c0518f..97b1c2aabf2b 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/sharedGalleryImagesListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List shared gallery images by subscription id or tenant id. * * @summary List shared gallery images by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json */ async function listSharedGalleryImages() { const subscriptionId = process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; diff --git a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js index d71e8f70ce9b..883769a1d733 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.js @@ -24,9 +24,7 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmScaleSetName = "myvmScaleSet"; const instanceId = "0"; const sasUriExpirationTimeInMinutes = 60; - const options = { - sasUriExpirationTimeInMinutes, - }; + const options = { sasUriExpirationTimeInMinutes }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( diff --git a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js index 007b6120d124..66c50b5e8a58 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachineScaleSetsCreateOrUpdateSample.js @@ -2772,7 +2772,10 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT5M" }, + terminateNotificationProfile: { + enable: true, + notBeforeTimeout: "PT5M", + }, }, storageProfile: { imageReference: { diff --git a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js index 12416309a304..8331ea7c0e43 100644 --- a/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js +++ b/sdk/compute/arm-compute/samples/v21/javascript/virtualMachinesUpdateSample.js @@ -40,7 +40,12 @@ async function updateAVMByDetachingDataDisk() { storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0, toBeDetached: true }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false }, + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, + }, ], imageReference: { offer: "WindowsServer", @@ -100,7 +105,12 @@ async function updateAVMByForceDetachingDataDisk() { lun: 0, toBeDetached: true, }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false }, + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, + }, ], imageReference: { offer: "WindowsServer", diff --git a/sdk/compute/arm-compute/samples/v21/typescript/README.md b/sdk/compute/arm-compute/samples/v21/typescript/README.md index eaaf4458628c..d2dadb2b4bc1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/README.md +++ b/sdk/compute/arm-compute/samples/v21/typescript/README.md @@ -52,11 +52,11 @@ These sample programs show how to use the TypeScript client libraries for in som | [cloudServicesUpdateDomainListUpdateDomainsSample.ts][cloudservicesupdatedomainlistupdatedomainssample] | Gets a list of all update domains in a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceUpdateDomain_List.json | | [cloudServicesUpdateDomainWalkUpdateDomainSample.ts][cloudservicesupdatedomainwalkupdatedomainsample] | Updates the role instances in the specified update domain. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudServiceUpdateDomain_Update.json | | [cloudServicesUpdateSample.ts][cloudservicesupdatesample] | Update a cloud service. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/CloudserviceRP/stable/2022-09-04/examples/CloudService_Update_ToIncludeTags.json | -| [communityGalleriesGetSample.ts][communitygalleriesgetsample] | Get a community gallery by gallery public name. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json | -| [communityGalleryImageVersionsGetSample.ts][communitygalleryimageversionsgetsample] | Get a community gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json | -| [communityGalleryImageVersionsListSample.ts][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | -| [communityGalleryImagesGetSample.ts][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | -| [communityGalleryImagesListSample.ts][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | +| [communityGalleriesGetSample.ts][communitygalleriesgetsample] | Get a community gallery by gallery public name. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json | +| [communityGalleryImageVersionsGetSample.ts][communitygalleryimageversionsgetsample] | Get a community gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json | +| [communityGalleryImageVersionsListSample.ts][communitygalleryimageversionslistsample] | List community gallery image versions inside an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json | +| [communityGalleryImagesGetSample.ts][communitygalleryimagesgetsample] | Get a community gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json | +| [communityGalleryImagesListSample.ts][communitygalleryimageslistsample] | List community gallery images inside a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json | | [dedicatedHostGroupsCreateOrUpdateSample.ts][dedicatedhostgroupscreateorupdatesample] | Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups please see [Dedicated Host Documentation] (https://go.microsoft.com/fwlink/?linkid=2082596) x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_CreateOrUpdate_WithUltraSSD.json | | [dedicatedHostGroupsDeleteSample.ts][dedicatedhostgroupsdeletesample] | Delete a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_Delete_MaximumSet_Gen.json | | [dedicatedHostGroupsGetSample.ts][dedicatedhostgroupsgetsample] | Retrieves information about a dedicated host group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/dedicatedHostExamples/DedicatedHostGroup_Get.json | @@ -101,33 +101,33 @@ These sample programs show how to use the TypeScript client libraries for in som | [disksListSample.ts][diskslistsample] | Lists all the disks under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_ListBySubscription.json | | [disksRevokeAccessSample.ts][disksrevokeaccesssample] | Revokes access to a disk. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_EndGetAccess.json | | [disksUpdateSample.ts][disksupdatesample] | Updates (patches) a disk. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/diskExamples/Disk_CreateOrUpdate_BurstingEnabled.json | -| [galleriesCreateOrUpdateSample.ts][galleriescreateorupdatesample] | Create or update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json | -| [galleriesDeleteSample.ts][galleriesdeletesample] | Delete a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json | -| [galleriesGetSample.ts][galleriesgetsample] | Retrieves information about a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json | -| [galleriesListByResourceGroupSample.ts][gallerieslistbyresourcegroupsample] | List galleries under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json | -| [galleriesListSample.ts][gallerieslistsample] | List galleries under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json | -| [galleriesUpdateSample.ts][galleriesupdatesample] | Update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json | -| [galleryApplicationVersionsCreateOrUpdateSample.ts][galleryapplicationversionscreateorupdatesample] | Create or update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json | -| [galleryApplicationVersionsDeleteSample.ts][galleryapplicationversionsdeletesample] | Delete a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json | -| [galleryApplicationVersionsGetSample.ts][galleryapplicationversionsgetsample] | Retrieves information about a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json | -| [galleryApplicationVersionsListByGalleryApplicationSample.ts][galleryapplicationversionslistbygalleryapplicationsample] | List gallery Application Versions in a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json | -| [galleryApplicationVersionsUpdateSample.ts][galleryapplicationversionsupdatesample] | Update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json | -| [galleryApplicationsCreateOrUpdateSample.ts][galleryapplicationscreateorupdatesample] | Create or update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json | -| [galleryApplicationsDeleteSample.ts][galleryapplicationsdeletesample] | Delete a gallery Application. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json | -| [galleryApplicationsGetSample.ts][galleryapplicationsgetsample] | Retrieves information about a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json | -| [galleryApplicationsListByGallerySample.ts][galleryapplicationslistbygallerysample] | List gallery Application Definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json | -| [galleryApplicationsUpdateSample.ts][galleryapplicationsupdatesample] | Update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json | -| [galleryImageVersionsCreateOrUpdateSample.ts][galleryimageversionscreateorupdatesample] | Create or update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json | -| [galleryImageVersionsDeleteSample.ts][galleryimageversionsdeletesample] | Delete a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json | -| [galleryImageVersionsGetSample.ts][galleryimageversionsgetsample] | Retrieves information about a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json | -| [galleryImageVersionsListByGalleryImageSample.ts][galleryimageversionslistbygalleryimagesample] | List gallery image versions in a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json | -| [galleryImageVersionsUpdateSample.ts][galleryimageversionsupdatesample] | Update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json | -| [galleryImagesCreateOrUpdateSample.ts][galleryimagescreateorupdatesample] | Create or update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json | -| [galleryImagesDeleteSample.ts][galleryimagesdeletesample] | Delete a gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json | -| [galleryImagesGetSample.ts][galleryimagesgetsample] | Retrieves information about a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json | -| [galleryImagesListByGallerySample.ts][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json | -| [galleryImagesUpdateSample.ts][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json | -| [gallerySharingProfileUpdateSample.ts][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | +| [galleriesCreateOrUpdateSample.ts][galleriescreateorupdatesample] | Create or update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json | +| [galleriesDeleteSample.ts][galleriesdeletesample] | Delete a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json | +| [galleriesGetSample.ts][galleriesgetsample] | Retrieves information about a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json | +| [galleriesListByResourceGroupSample.ts][gallerieslistbyresourcegroupsample] | List galleries under a resource group. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json | +| [galleriesListSample.ts][gallerieslistsample] | List galleries under a subscription. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json | +| [galleriesUpdateSample.ts][galleriesupdatesample] | Update a Shared Image Gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json | +| [galleryApplicationVersionsCreateOrUpdateSample.ts][galleryapplicationversionscreateorupdatesample] | Create or update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json | +| [galleryApplicationVersionsDeleteSample.ts][galleryapplicationversionsdeletesample] | Delete a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json | +| [galleryApplicationVersionsGetSample.ts][galleryapplicationversionsgetsample] | Retrieves information about a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json | +| [galleryApplicationVersionsListByGalleryApplicationSample.ts][galleryapplicationversionslistbygalleryapplicationsample] | List gallery Application Versions in a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json | +| [galleryApplicationVersionsUpdateSample.ts][galleryapplicationversionsupdatesample] | Update a gallery Application Version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json | +| [galleryApplicationsCreateOrUpdateSample.ts][galleryapplicationscreateorupdatesample] | Create or update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json | +| [galleryApplicationsDeleteSample.ts][galleryapplicationsdeletesample] | Delete a gallery Application. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json | +| [galleryApplicationsGetSample.ts][galleryapplicationsgetsample] | Retrieves information about a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json | +| [galleryApplicationsListByGallerySample.ts][galleryapplicationslistbygallerysample] | List gallery Application Definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json | +| [galleryApplicationsUpdateSample.ts][galleryapplicationsupdatesample] | Update a gallery Application Definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json | +| [galleryImageVersionsCreateOrUpdateSample.ts][galleryimageversionscreateorupdatesample] | Create or update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json | +| [galleryImageVersionsDeleteSample.ts][galleryimageversionsdeletesample] | Delete a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json | +| [galleryImageVersionsGetSample.ts][galleryimageversionsgetsample] | Retrieves information about a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json | +| [galleryImageVersionsListByGalleryImageSample.ts][galleryimageversionslistbygalleryimagesample] | List gallery image versions in a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json | +| [galleryImageVersionsUpdateSample.ts][galleryimageversionsupdatesample] | Update a gallery image version. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json | +| [galleryImagesCreateOrUpdateSample.ts][galleryimagescreateorupdatesample] | Create or update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json | +| [galleryImagesDeleteSample.ts][galleryimagesdeletesample] | Delete a gallery image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json | +| [galleryImagesGetSample.ts][galleryimagesgetsample] | Retrieves information about a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json | +| [galleryImagesListByGallerySample.ts][galleryimageslistbygallerysample] | List gallery image definitions in a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json | +| [galleryImagesUpdateSample.ts][galleryimagesupdatesample] | Update a gallery image definition. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json | +| [gallerySharingProfileUpdateSample.ts][gallerysharingprofileupdatesample] | Update sharing profile of a gallery. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json | | [imagesCreateOrUpdateSample.ts][imagescreateorupdatesample] | Create or update an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Image_CreateFromABlobWithDiskEncryptionSet.json | | [imagesDeleteSample.ts][imagesdeletesample] | Deletes an Image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Images_Delete_MaximumSet_Gen.json | | [imagesGetSample.ts][imagesgetsample] | Gets an image. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/imageExamples/Image_Get.json | @@ -153,12 +153,12 @@ These sample programs show how to use the TypeScript client libraries for in som | [restorePointsCreateSample.ts][restorepointscreatesample] | The operation to create the restore point. Updating properties of an existing restore point is not allowed x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Copy_BetweenRegions.json | | [restorePointsDeleteSample.ts][restorepointsdeletesample] | The operation to delete the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Delete_MaximumSet_Gen.json | | [restorePointsGetSample.ts][restorepointsgetsample] | The operation to get the restore point. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2023-09-01/examples/restorePointExamples/RestorePoint_Get.json | -| [sharedGalleriesGetSample.ts][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json | -| [sharedGalleriesListSample.ts][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json | -| [sharedGalleryImageVersionsGetSample.ts][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | -| [sharedGalleryImageVersionsListSample.ts][sharedgalleryimageversionslistsample] | List shared gallery image versions by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json | -| [sharedGalleryImagesGetSample.ts][sharedgalleryimagesgetsample] | Get a shared gallery image by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json | -| [sharedGalleryImagesListSample.ts][sharedgalleryimageslistsample] | List shared gallery images by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json | +| [sharedGalleriesGetSample.ts][sharedgalleriesgetsample] | Get a shared gallery by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json | +| [sharedGalleriesListSample.ts][sharedgallerieslistsample] | List shared galleries by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json | +| [sharedGalleryImageVersionsGetSample.ts][sharedgalleryimageversionsgetsample] | Get a shared gallery image version by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json | +| [sharedGalleryImageVersionsListSample.ts][sharedgalleryimageversionslistsample] | List shared gallery image versions by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json | +| [sharedGalleryImagesGetSample.ts][sharedgalleryimagesgetsample] | Get a shared gallery image by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json | +| [sharedGalleryImagesListSample.ts][sharedgalleryimageslistsample] | List shared gallery images by subscription id or tenant id. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json | | [snapshotsCreateOrUpdateSample.ts][snapshotscreateorupdatesample] | Creates or updates a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Create_ByImportingAnUnmanagedBlobFromADifferentSubscription.json | | [snapshotsDeleteSample.ts][snapshotsdeletesample] | Deletes a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Delete.json | | [snapshotsGetSample.ts][snapshotsgetsample] | Gets information about a snapshot. x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/DiskRP/stable/2023-10-02/examples/snapshotExamples/Snapshot_Get.json | diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts index 4ae9419814a1..81654d45a8dc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsCreateOrUpdateSample.ts @@ -29,14 +29,14 @@ async function createAnAvailabilitySet() { const parameters: AvailabilitySet = { location: "westus", platformFaultDomainCount: 2, - platformUpdateDomainCount: 20 + platformUpdateDomainCount: 20, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.createOrUpdate( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts index a5082c67c213..268ebf39c19f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsDeleteSample.ts @@ -30,7 +30,7 @@ async function availabilitySetDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.delete( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function availabilitySetDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.delete( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts index 3e0b4504e136..531c122aa26a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsGetSample.ts @@ -30,7 +30,7 @@ async function availabilitySetGetMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.get( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function availabilitySetGetMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.get( resourceGroupName, - availabilitySetName + availabilitySetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts index da106655ad9a..4e42e4c546d8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListAvailableSizesSample.ts @@ -31,7 +31,7 @@ async function availabilitySetListAvailableSizesMaximumSetGen() { const resArray = new Array(); for await (let item of client.availabilitySets.listAvailableSizes( resourceGroupName, - availabilitySetName + availabilitySetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function availabilitySetListAvailableSizesMinimumSetGen() { const resArray = new Array(); for await (let item of client.availabilitySets.listAvailableSizes( resourceGroupName, - availabilitySetName + availabilitySetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts index 7b05ad01a62b..b16bab0d03fe 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsListBySubscriptionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AvailabilitySetsListBySubscriptionOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts index 6f20cb4ba9f0..f5862c24a093 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/availabilitySetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AvailabilitySetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,24 +33,22 @@ async function availabilitySetUpdateMaximumSetGen() { platformFaultDomainCount: 2, platformUpdateDomainCount: 20, proximityPlacementGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, sku: { name: "DSv3-Type1", capacity: 7, tier: "aaa" }, tags: { key2574: "aaaaaaaa" }, virtualMachines: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - ] + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.availabilitySets.update( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } @@ -73,7 +71,7 @@ async function availabilitySetUpdateMinimumSetGen() { const result = await client.availabilitySets.update( resourceGroupName, availabilitySetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts index ce800888f48f..a670117d5bf8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,18 +34,18 @@ async function createOrUpdateACapacityReservationGroup() { sharingProfile: { subscriptionIds: [ { id: "/subscriptions/{subscription-id1}" }, - { id: "/subscriptions/{subscription-id2}" } - ] + { id: "/subscriptions/{subscription-id2}" }, + ], }, tags: { department: "finance" }, - zones: ["1", "2"] + zones: ["1", "2"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.createOrUpdate( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts index c06dd9f67957..94ed277eab18 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function capacityReservationGroupDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.delete( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function capacityReservationGroupDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.delete( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts index 87ca92a4d6f7..82de4920495b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getACapacityReservationGroup() { const result = await client.capacityReservationGroups.get( resourceGroupName, capacityReservationGroupName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts index b0ab68cbdd2d..0758be0b7724 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListByResourceGroupSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsListByResourceGroupOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,14 +30,14 @@ async function listCapacityReservationGroupsInResourceGroup() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const expand = "virtualMachines/$ref"; const options: CapacityReservationGroupsListByResourceGroupOptionalParams = { - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.capacityReservationGroups.listByResourceGroup( resourceGroupName, - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts index 0ef8a0773052..212be0c3128c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsListBySubscriptionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupsListBySubscriptionOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -28,13 +28,13 @@ async function listCapacityReservationGroupsInSubscription() { process.env["COMPUTE_SUBSCRIPTION_ID"] || "{subscription-id}"; const expand = "virtualMachines/$ref"; const options: CapacityReservationGroupsListBySubscriptionOptionalParams = { - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.capacityReservationGroups.listBySubscription( - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts index 0ac2a9c8fdd7..043cff4b9792 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function capacityReservationGroupUpdateMaximumSetGen() { const capacityReservationGroupName = "aaaaaaaaaaaaaaaaaaaaaa"; const parameters: CapacityReservationGroupUpdate = { instanceView: {}, - tags: { key5355: "aaa" } + tags: { key5355: "aaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.capacityReservationGroups.update( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } @@ -61,7 +61,7 @@ async function capacityReservationGroupUpdateMinimumSetGen() { const result = await client.capacityReservationGroups.update( resourceGroupName, capacityReservationGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts index c476f2944dca..0042121a1a53 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservation, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function createOrUpdateACapacityReservation() { location: "westus", sku: { name: "Standard_DS1_v2", capacity: 4 }, tags: { department: "HR" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createOrUpdateACapacityReservation() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts index 1bc5d31d8c8e..6230084fece7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsDeleteSample.ts @@ -32,7 +32,7 @@ async function capacityReservationDeleteMaximumSetGen() { const result = await client.capacityReservations.beginDeleteAndWait( resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ); console.log(result); } @@ -55,7 +55,7 @@ async function capacityReservationDeleteMinimumSetGen() { const result = await client.capacityReservations.beginDeleteAndWait( resourceGroupName, capacityReservationGroupName, - capacityReservationName + capacityReservationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts index 589ef4ac03af..536f3cd53b95 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function getACapacityReservation() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts index 5daea6cd4226..877a9b20b370 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsListByCapacityReservationGroupSample.ts @@ -31,7 +31,7 @@ async function listCapacityReservationsInReservationGroup() { const resArray = new Array(); for await (let item of client.capacityReservations.listByCapacityReservationGroup( resourceGroupName, - capacityReservationGroupName + capacityReservationGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts index 56553cb737fb..b9ff00f83221 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/capacityReservationsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CapacityReservationUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,13 +38,13 @@ async function capacityReservationUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - utilizationInfo: {} + utilizationInfo: {}, }, sku: { name: "Standard_DS1_v2", capacity: 7, tier: "aaa" }, - tags: { key4974: "aaaaaaaaaaaaaaaa" } + tags: { key4974: "aaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -52,7 +52,7 @@ async function capacityReservationUpdateMaximumSetGen() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } @@ -77,7 +77,7 @@ async function capacityReservationUpdateMinimumSetGen() { resourceGroupName, capacityReservationGroupName, capacityReservationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts index ab6dc68501b8..a4e18fcff385 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSFamilySample.ts @@ -29,7 +29,7 @@ async function getCloudServiceOSFamily() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServiceOperatingSystems.getOSFamily( location, - osFamilyName + osFamilyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts index 0c7c0bc926e5..274cae0c36c3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsGetOSVersionSample.ts @@ -29,7 +29,7 @@ async function getCloudServiceOSVersion() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServiceOperatingSystems.getOSVersion( location, - osVersionName + osVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts index 1fee46624d07..9a6714cc6fbc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSFamiliesSample.ts @@ -28,7 +28,7 @@ async function listCloudServiceOSFamiliesInASubscription() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServiceOperatingSystems.listOSFamilies( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts index 895dfd1f6bf0..5df0cbb820ec 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceOperatingSystemsListOSVersionsSample.ts @@ -28,7 +28,7 @@ async function listCloudServiceOSVersionsInASubscription() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.cloudServiceOperatingSystems.listOSVersions( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts index 5254fe36483a..9856be3c0d30 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginDeleteAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts index 3fcbb262bfe9..d85964b931f6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetInstanceViewSample.ts @@ -32,7 +32,7 @@ async function getInstanceViewOfCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.getInstanceView( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts index 9a38dad49fc4..a5e06d0be6c3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetRemoteDesktopFileSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRole() { const result = await client.cloudServiceRoleInstances.getRemoteDesktopFile( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts index 4e51d9d34e47..1e7d095773e5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesGetSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.get( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts index 282f0e88a897..f32a30568aa6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesListSample.ts @@ -31,7 +31,7 @@ async function listRoleInstancesInACloudService() { const resArray = new Array(); for await (let item of client.cloudServiceRoleInstances.list( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts index 4d7a8a253019..60ad73148a9b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRebuildSample.ts @@ -32,7 +32,7 @@ async function rebuildCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginRebuildAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts index 93a439d57637..fdd0fdf3d780 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesReimageSample.ts @@ -32,7 +32,7 @@ async function reimageCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginReimageAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts index f08faf5cb377..98bce6b1552c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRoleInstancesRestartSample.ts @@ -32,7 +32,7 @@ async function restartCloudServiceRoleInstance() { const result = await client.cloudServiceRoleInstances.beginRestartAndWait( roleInstanceName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts index 84e8b3456f22..9341d597dffd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesGetSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceRole() { const result = await client.cloudServiceRoles.get( roleName, resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts index d9e4e8fc7583..8e83d253d56a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServiceRolesListSample.ts @@ -31,7 +31,7 @@ async function listRolesInACloudService() { const resArray = new Array(); for await (let item of client.cloudServiceRoles.list( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts index 3f9342725fa9..dc8b863eabe4 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesCreateOrUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudService, CloudServicesCreateOrUpdateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -44,31 +44,30 @@ async function createNewCloudServiceWithMultipleRoles() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, }, { name: "ContosoBackend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -76,7 +75,7 @@ async function createNewCloudServiceWithMultipleRoles() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -107,32 +106,31 @@ async function createNewCloudServiceWithMultipleRolesInASpecificAvailabilityZone name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, }, { name: "ContosoBackend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" + upgradeMode: "Auto", }, - zones: ["1"] + zones: ["1"], }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -140,7 +138,7 @@ async function createNewCloudServiceWithMultipleRolesInASpecificAvailabilityZone const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -171,27 +169,26 @@ async function createNewCloudServiceWithSingleRole() { name: "myfe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/myPublicIP", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -199,7 +196,7 @@ async function createNewCloudServiceWithSingleRole() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -230,43 +227,41 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, osProfile: { secrets: [ { sourceVault: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.KeyVault/vaults/{keyvault-name}", }, vaultCertificates: [ { certificateUrl: - "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}" - } - ] - } - ] + "https://{keyvault-name}.vault.azure.net:443/secrets/ContosoCertificate/{secret-id}", + }, + ], + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -274,7 +269,7 @@ async function createNewCloudServiceWithSingleRoleAndCertificateFromKeyVault() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } @@ -307,10 +302,10 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { publisher: "Microsoft.Windows.Azure.Extensions", settings: "UserAzure10/22/2021 15:05:45", - typeHandlerVersion: "1.2" - } - } - ] + typeHandlerVersion: "1.2", + }, + }, + ], }, networkProfile: { loadBalancerConfigurations: [ @@ -322,27 +317,26 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { name: "contosofe", properties: { publicIPAddress: { - id: - "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip" - } - } - } - ] - } - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/ConstosoRG/providers/Microsoft.Network/publicIPAddresses/contosopublicip", + }, + }, + }, + ], + }, + }, + ], }, packageUrl: "{PackageUrl}", roleProfile: { roles: [ { name: "ContosoFrontend", - sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" } - } - ] + sku: { name: "Standard_D1_v2", capacity: 1, tier: "Standard" }, + }, + ], }, - upgradeMode: "Auto" - } + upgradeMode: "Auto", + }, }; const options: CloudServicesCreateOrUpdateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -350,7 +344,7 @@ async function createNewCloudServiceWithSingleRoleAndRdpExtension() { const result = await client.cloudServices.beginCreateOrUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts index d42f6ac115bd..87cb1725998e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteInstancesSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesDeleteInstancesOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesDeleteInstancesOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function deleteCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginDeleteInstancesAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts index 4f21f5533124..987468b55800 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginDeleteAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts index 5c647ca833fd..c25984e5b520 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetInstanceViewSample.ts @@ -30,7 +30,7 @@ async function getCloudServiceInstanceViewWithMultipleRoles() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.getInstanceView( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts index 03929a56022a..28bfc86b4ad8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesGetSample.ts @@ -30,7 +30,7 @@ async function getCloudServiceWithMultipleRolesAndRdpExtension() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.get( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts index 212bf61669d3..531159633edb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesPowerOffSample.ts @@ -30,7 +30,7 @@ async function stopOrPowerOffCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginPowerOffAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts index a42ce6b3f68b..c359978941b0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRebuildSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesRebuildOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesRebuildOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function rebuildCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginRebuildAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts index 7bd3b6c06fce..32cdc98752f6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesReimageSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesReimageOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function reimageCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginReimageAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts index 55a492e83a08..229f4dfca5f5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesRestartSample.ts @@ -11,7 +11,7 @@ import { RoleInstances, CloudServicesRestartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { process.env["COMPUTE_RESOURCE_GROUP"] || "ConstosoRG"; const cloudServiceName = "{cs-name}"; const parameters: RoleInstances = { - roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"] + roleInstances: ["ContosoFrontend_IN_0", "ContosoBackend_IN_1"], }; const options: CloudServicesRestartOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function restartCloudServiceRoleInstancesInACloudService() { const result = await client.cloudServices.beginRestartAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts index 8b67518cd20b..6716efdc1657 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesStartSample.ts @@ -30,7 +30,7 @@ async function startCloudService() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.cloudServices.beginStartAndWait( resourceGroupName, - cloudServiceName + cloudServiceName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts index 8b316f2ecd07..6e86e73a427f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainGetUpdateDomainSample.ts @@ -32,7 +32,7 @@ async function getCloudServiceUpdateDomain() { const result = await client.cloudServicesUpdateDomain.getUpdateDomain( resourceGroupName, cloudServiceName, - updateDomain + updateDomain, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts index 0efb0d0e7594..3890af6092d2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainListUpdateDomainsSample.ts @@ -31,7 +31,7 @@ async function listUpdateDomainsInCloudService() { const resArray = new Array(); for await (let item of client.cloudServicesUpdateDomain.listUpdateDomains( resourceGroupName, - cloudServiceName + cloudServiceName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts index a993941c27ca..4e05cf443dcc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateDomainWalkUpdateDomainSample.ts @@ -29,11 +29,12 @@ async function updateCloudServiceToSpecifiedDomain() { const updateDomain = 1; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.cloudServicesUpdateDomain.beginWalkUpdateDomainAndWait( - resourceGroupName, - cloudServiceName, - updateDomain - ); + const result = + await client.cloudServicesUpdateDomain.beginWalkUpdateDomainAndWait( + resourceGroupName, + cloudServiceName, + updateDomain, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts index 2070ef181141..4e985a0a2787 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/cloudServicesUpdateSample.ts @@ -11,7 +11,7 @@ import { CloudServiceUpdate, CloudServicesUpdateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,7 +37,7 @@ async function updateExistingCloudServiceToAddTags() { const result = await client.cloudServices.beginUpdateAndWait( resourceGroupName, cloudServiceName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts index 405aeee67cc7..a32c22450f48 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery by gallery public name. * * @summary Get a community gallery by gallery public name. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = @@ -29,7 +29,7 @@ async function getACommunityGallery() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.communityGalleries.get( location, - publicGalleryName + publicGalleryName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts index 5239ca70cf2c..6e1954e2fe7b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery image version. * * @summary Get a community gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_Get.json */ async function getACommunityGalleryImageVersion() { const subscriptionId = @@ -33,7 +33,7 @@ async function getACommunityGalleryImageVersion() { location, publicGalleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts index 379ca8f6f582..4124b7701d09 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImageVersionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List community gallery image versions inside an image. * * @summary List community gallery image versions inside an image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImageVersion_List.json */ async function listCommunityGalleryImageVersions() { const subscriptionId = @@ -32,7 +32,7 @@ async function listCommunityGalleryImageVersions() { for await (let item of client.communityGalleryImageVersions.list( location, publicGalleryName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts index e06146557f79..ba0705c3f9c6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a community gallery image. * * @summary Get a community gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_Get.json */ async function getACommunityGalleryImage() { const subscriptionId = @@ -31,7 +31,7 @@ async function getACommunityGalleryImage() { const result = await client.communityGalleryImages.get( location, publicGalleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts index fa6a13caf8ff..32c46a871abc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/communityGalleryImagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List community gallery images inside a gallery. * * @summary List community gallery images inside a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/communityGalleryExamples/CommunityGalleryImage_List.json */ async function listCommunityGalleryImages() { const subscriptionId = @@ -30,7 +30,7 @@ async function listCommunityGalleryImages() { const resArray = new Array(); for await (let item of client.communityGalleryImages.list( location, - publicGalleryName + publicGalleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts index 22347f828c26..2c665764d3e1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,14 +35,14 @@ async function createOrUpdateADedicatedHostGroupWithUltraSsdSupport() { platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { department: "finance" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.createOrUpdate( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } @@ -64,14 +64,14 @@ async function createOrUpdateADedicatedHostGroup() { platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { department: "finance" }, - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.createOrUpdate( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts index 48b680165837..fe062cf62652 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function dedicatedHostGroupDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.delete( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function dedicatedHostGroupDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.delete( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts index 16ffc0907515..24bf0a8be9e0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsGetSample.ts @@ -30,7 +30,7 @@ async function createADedicatedHostGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.get( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } @@ -51,7 +51,7 @@ async function createAnUltraSsdEnabledDedicatedHostGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.get( resourceGroupName, - hostGroupName + hostGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts index a07210a086c2..ea613c0ff0ef 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function dedicatedHostGroupListByResourceGroupMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHostGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function dedicatedHostGroupListByResourceGroupMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.dedicatedHostGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts index cdf8f3d01910..82f42f2542cf 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function dedicatedHostGroupUpdateMaximumSetGen() { hosts: [ { availableCapacity: { - allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }] + allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }], }, statuses: [ { @@ -42,23 +42,23 @@ async function dedicatedHostGroupUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] - } - ] + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], + }, + ], }, platformFaultDomainCount: 3, supportAutomaticPlacement: true, tags: { key9921: "aaaaaaaaaa" }, - zones: ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"] + zones: ["aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.dedicatedHostGroups.update( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function dedicatedHostGroupUpdateMinimumSetGen() { const result = await client.dedicatedHostGroups.update( resourceGroupName, hostGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts index fc072f5560dc..dddc5c1d4b97 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsCreateOrUpdateSample.ts @@ -31,7 +31,7 @@ async function createOrUpdateADedicatedHost() { location: "westus", platformFaultDomain: 1, sku: { name: "DSv3-Type1" }, - tags: { department: "HR" } + tags: { department: "HR" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function createOrUpdateADedicatedHost() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts index c4502053da6b..b08765836393 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsDeleteSample.ts @@ -32,7 +32,7 @@ async function dedicatedHostDeleteMaximumSetGen() { const result = await client.dedicatedHosts.beginDeleteAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } @@ -55,7 +55,7 @@ async function dedicatedHostDeleteMinimumSetGen() { const result = await client.dedicatedHosts.beginDeleteAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts index 6d4a1d4588e5..ca1d89b28ddd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function getADedicatedHost() { resourceGroupName, hostGroupName, hostName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts index f2bab8437922..ec96aa782a5d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListAvailableSizesSample.ts @@ -33,7 +33,7 @@ async function getAvailableDedicatedHostSizes() { for await (let item of client.dedicatedHosts.listAvailableSizes( resourceGroupName, hostGroupName, - hostName + hostName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts index 16bde93349a7..39dc4beeb9ea 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsListByHostGroupSample.ts @@ -31,7 +31,7 @@ async function dedicatedHostListByHostGroupMaximumSetGen() { const resArray = new Array(); for await (let item of client.dedicatedHosts.listByHostGroup( resourceGroupName, - hostGroupName + hostGroupName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function dedicatedHostListByHostGroupMinimumSetGen() { const resArray = new Array(); for await (let item of client.dedicatedHosts.listByHostGroup( resourceGroupName, - hostGroupName + hostGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRedeploySample.ts index d004db93fb39..5602d99a584c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRedeploySample.ts @@ -32,7 +32,7 @@ async function redeployDedicatedHost() { const result = await client.dedicatedHosts.beginRedeployAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts index 1a8c32099c90..2c17a6c4bcd3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsRestartSample.ts @@ -32,7 +32,7 @@ async function restartDedicatedHost() { const result = await client.dedicatedHosts.beginRestartAndWait( resourceGroupName, hostGroupName, - hostName + hostName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts index 226ca0f55bd0..8617aaf85e10 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/dedicatedHostsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DedicatedHostUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,7 +34,7 @@ async function dedicatedHostUpdateMaximumSetGen() { autoReplaceOnFailure: true, instanceView: { availableCapacity: { - allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }] + allocatableVMs: [{ count: 26, vmSize: "aaaaaaaaaaaaaaaaaaaa" }], }, statuses: [ { @@ -42,13 +42,13 @@ async function dedicatedHostUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], }, licenseType: "Windows_Server_Hybrid", platformFaultDomain: 1, - tags: { key8813: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" } + tags: { key8813: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +56,7 @@ async function dedicatedHostUpdateMaximumSetGen() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } @@ -81,7 +81,7 @@ async function dedicatedHostUpdateMinimumSetGen() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } @@ -106,7 +106,7 @@ async function dedicatedHostUpdateResize() { resourceGroupName, hostGroupName, hostName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts index 133f0909a9bc..30308cd7ef42 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesCreateOrUpdateSample.ts @@ -32,7 +32,7 @@ async function createADiskAccessResource() { const result = await client.diskAccesses.beginCreateOrUpdateAndWait( resourceGroupName, diskAccessName, - diskAccess + diskAccess, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts index 729ac386eb42..053484f4236e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteAPrivateEndpointConnectionSample.ts @@ -29,11 +29,12 @@ async function deleteAPrivateEndpointConnectionUnderADiskAccessResource() { const privateEndpointConnectionName = "myPrivateEndpointConnection"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskAccesses.beginDeleteAPrivateEndpointConnectionAndWait( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName - ); + const result = + await client.diskAccesses.beginDeleteAPrivateEndpointConnectionAndWait( + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts index bd476087eb66..5e288a7afcd8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteADiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.beginDeleteAndWait( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts index d0ba69f2b9e9..3b7d5648af0c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetAPrivateEndpointConnectionSample.ts @@ -32,7 +32,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso const result = await client.diskAccesses.getAPrivateEndpointConnection( resourceGroupName, diskAccessName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts index 819678ea8e1d..da1c00a9a93a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetPrivateLinkResourcesSample.ts @@ -30,7 +30,7 @@ async function listAllPossiblePrivateLinkResourcesUnderDiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.getPrivateLinkResources( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts index a6fbf25cc18d..b80b4b552ac7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesGetSample.ts @@ -30,7 +30,7 @@ async function getInformationAboutADiskAccessResourceWithPrivateEndpoints() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.get( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInformationAboutADiskAccessResource() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.get( resourceGroupName, - diskAccessName + diskAccessName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts index ec7b36c9a4b0..f57887bab2da 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllDiskAccessResourcesInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.diskAccesses.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts index 618778ad6bf6..7b2e7144a05d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesListPrivateEndpointConnectionsSample.ts @@ -31,7 +31,7 @@ async function getInformationAboutAPrivateEndpointConnectionUnderADiskAccessReso const resArray = new Array(); for await (let item of client.diskAccesses.listPrivateEndpointConnections( resourceGroupName, - diskAccessName + diskAccessName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts index 9e1e3343a462..ad60027840ba 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateAPrivateEndpointConnectionSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,17 +33,18 @@ async function approveAPrivateEndpointConnectionUnderADiskAccessResource() { const privateEndpointConnection: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approving myPrivateEndpointConnection", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskAccesses.beginUpdateAPrivateEndpointConnectionAndWait( - resourceGroupName, - diskAccessName, - privateEndpointConnectionName, - privateEndpointConnection - ); + const result = + await client.diskAccesses.beginUpdateAPrivateEndpointConnectionAndWait( + resourceGroupName, + diskAccessName, + privateEndpointConnectionName, + privateEndpointConnection, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts index 1c5bb3142bfa..cec7146dff6f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskAccessesUpdateSample.ts @@ -27,14 +27,14 @@ async function updateADiskAccessResource() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskAccessName = "myDiskAccess"; const diskAccess: DiskAccessUpdate = { - tags: { department: "Development", project: "PrivateEndpoints" } + tags: { department: "Development", project: "PrivateEndpoints" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskAccesses.beginUpdateAndWait( resourceGroupName, diskAccessName, - diskAccess + diskAccess, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts index 7ecc7f898a30..4ba534ae7896 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsCreateOrUpdateSample.ts @@ -28,18 +28,18 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentSubscription() const diskEncryptionSetName = "myDiskEncryptionSet"; const diskEncryptionSet: DiskEncryptionSet = { activeKey: { - keyUrl: "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}" + keyUrl: "https://myvaultdifferentsub.vault-int.azure-int.net/keys/{key}", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -59,24 +59,25 @@ async function createADiskEncryptionSetWithKeyVaultFromADifferentTenant() { const diskEncryptionSet: DiskEncryptionSet = { activeKey: { keyUrl: - "https://myvaultdifferenttenant.vault-int.azure-int.net/keys/{key}" + "https://myvaultdifferenttenant.vault-int.azure-int.net/keys/{key}", }, encryptionType: "EncryptionAtRestWithCustomerKey", federatedClientId: "00000000-0000-0000-0000-000000000000", identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MicrosoftManagedIdentity/userAssignedIdentities/{identityName}": {} - } + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MicrosoftManagedIdentity/userAssignedIdentities/{identityName}": + {}, + }, }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -97,20 +98,19 @@ async function createADiskEncryptionSet() { activeKey: { keyUrl: "https://myvmvault.vault-int.azure-int.net/keys/{key}", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault", + }, }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginCreateOrUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts index ec4c11b8621e..695a0958275b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteADiskEncryptionSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginDeleteAndWait( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts index e72405a2c053..39b842d7e835 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsGetSample.ts @@ -30,7 +30,7 @@ async function getInformationAboutADiskEncryptionSetWhenAutoKeyRotationFailed() const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.get( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInformationAboutADiskEncryptionSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.get( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts index e2bfd3c32488..2d4bc04c1681 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListAssociatedResourcesSample.ts @@ -31,7 +31,7 @@ async function listAllResourcesThatAreEncryptedWithThisDiskEncryptionSet() { const resArray = new Array(); for await (let item of client.diskEncryptionSets.listAssociatedResources( resourceGroupName, - diskEncryptionSetName + diskEncryptionSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts index af7e304aa243..d6495c7875b3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllDiskEncryptionSetsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.diskEncryptionSets.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts index c98e27f0b93e..bfa64e97e97e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskEncryptionSetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { DiskEncryptionSetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT const diskEncryptionSet: DiskEncryptionSetUpdate = { activeKey: { keyUrl: - "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1" + "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - rotationToLatestKeyVersionEnabled: true + rotationToLatestKeyVersionEnabled: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -63,18 +63,18 @@ async function updateADiskEncryptionSetWithRotationToLatestKeyVersionEnabledSetT const diskEncryptionSet: DiskEncryptionSetUpdate = { activeKey: { keyUrl: - "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1" + "https://myvaultdifferentsub.vault-int.azure-int.net/keys/keyName/keyVersion1", }, encryptionType: "EncryptionAtRestWithCustomerKey", identity: { type: "SystemAssigned" }, - rotationToLatestKeyVersionEnabled: true + rotationToLatestKeyVersionEnabled: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } @@ -96,19 +96,18 @@ async function updateADiskEncryptionSet() { keyUrl: "https://myvmvault.vault-int.azure-int.net/keys/keyName/keyVersion", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/myVMVault", + }, }, encryptionType: "EncryptionAtRestWithCustomerKey", - tags: { department: "Development", project: "Encryption" } + tags: { department: "Development", project: "Encryption" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.diskEncryptionSets.beginUpdateAndWait( resourceGroupName, diskEncryptionSetName, - diskEncryptionSet + diskEncryptionSet, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts index c9b6cddfd83a..759552ff5d79 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGetSample.ts @@ -35,7 +35,7 @@ async function getAnIncrementalDiskRestorePointResource() { resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ); console.log(result); } @@ -61,7 +61,7 @@ async function getAnIncrementalDiskRestorePointWhenSourceResourceIsFromADifferen resourceGroupName, restorePointCollectionName, vmRestorePointName, - diskRestorePointName + diskRestorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts index a1ea3e893723..a3727c1e1a40 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointGrantAccessSample.ts @@ -32,17 +32,18 @@ async function grantsAccessToADiskRestorePoint() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHDX" + fileFormat: "VHDX", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskRestorePointOperations.beginGrantAccessAndWait( - resourceGroupName, - restorePointCollectionName, - vmRestorePointName, - diskRestorePointName, - grantAccessData - ); + const result = + await client.diskRestorePointOperations.beginGrantAccessAndWait( + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + grantAccessData, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts index 0e6c7f6d0b7d..daabb88ee3ab 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointListByRestorePointSample.ts @@ -33,7 +33,7 @@ async function getAnIncrementalDiskRestorePointResource() { for await (let item of client.diskRestorePointOperations.listByRestorePoint( resourceGroupName, restorePointCollectionName, - vmRestorePointName + vmRestorePointName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts index 58176b3b1c7f..b3d75eb42fd9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/diskRestorePointRevokeAccessSample.ts @@ -31,12 +31,13 @@ async function revokesAccessToADiskRestorePoint() { "TestDisk45ceb03433006d1baee0_b70cd924-3362-4a80-93c2-9415eaa12745"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.diskRestorePointOperations.beginRevokeAccessAndWait( - resourceGroupName, - restorePointCollectionName, - vmRestorePointName, - diskRestorePointName - ); + const result = + await client.diskRestorePointOperations.beginRevokeAccessAndWait( + resourceGroupName, + restorePointCollectionName, + vmRestorePointName, + diskRestorePointName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts index 6315c1f4e62b..7353c358b659 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksCreateOrUpdateSample.ts @@ -30,24 +30,23 @@ async function createAConfidentialVMSupportedDiskEncryptedWithCustomerManagedKey creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0", + }, }, location: "West US", osType: "Windows", securityProfile: { secureVMDiskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", - securityType: "ConfidentialVM_DiskEncryptedWithCustomerKey" - } + securityType: "ConfidentialVM_DiskEncryptedWithCustomerKey", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -70,14 +69,14 @@ async function createAManagedDiskAndAssociateWithDiskAccessResource() { "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskAccesses/{existing-diskAccess-name}", diskSizeGB: 200, location: "West US", - networkAccessPolicy: "AllowPrivate" + networkAccessPolicy: "AllowPrivate", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -99,16 +98,16 @@ async function createAManagedDiskAndAssociateWithDiskEncryptionSet() { diskSizeGB: 200, encryption: { diskEncryptionSetId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -129,16 +128,16 @@ async function createAManagedDiskByCopyingASnapshot() { creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -161,16 +160,16 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromADifferentSubscri sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -191,16 +190,16 @@ async function createAManagedDiskByImportingAnUnmanagedBlobFromTheSameSubscripti creationData: { createOption: "Import", sourceUri: - "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -225,20 +224,20 @@ async function createAManagedDiskFromImportSecureCreateOption() { sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, location: "West US", osType: "Windows", securityProfile: { - securityType: "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey" - } + securityType: "ConfidentialVM_VMGuestStateOnlyEncryptedWithPlatformKey", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -258,18 +257,18 @@ async function createAManagedDiskFromUploadPreparedSecureCreateOption() { const disk: Disk = { creationData: { createOption: "UploadPreparedSecure", - uploadSizeBytes: 10737418752 + uploadSizeBytes: 10737418752, }, location: "West US", osType: "Windows", - securityProfile: { securityType: "TrustedLaunch" } + securityProfile: { securityType: "TrustedLaunch" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -290,19 +289,18 @@ async function createAManagedDiskFromAPlatformImage() { creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/westus/Publishers/{publisher}/ArtifactTypes/VMImage/Offers/{offer}/Skus/{sku}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -324,18 +322,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryCommunityImage() { createOption: "FromImage", galleryImageReference: { communityGalleryImageId: - "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0" - } + "/CommunityGalleries/{communityGalleryPublicGalleryName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -357,18 +355,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryDirectSharedImage() { createOption: "FromImage", galleryImageReference: { sharedGalleryImageId: - "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0" - } + "/SharedGalleries/{sharedGalleryUniqueName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -389,19 +387,18 @@ async function createAManagedDiskFromAnAzureComputeGalleryImage() { creationData: { createOption: "FromImage", galleryImageReference: { - id: - "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0" - } + id: "/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/Providers/Microsoft.Compute/Galleries/{galleryName}/Images/{imageName}/Versions/1.0.0", + }, }, location: "West US", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -422,16 +419,16 @@ async function createAManagedDiskFromAnExistingManagedDiskInTheSameOrDifferentSu creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1" + "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myDisk1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -452,16 +449,16 @@ async function createAManagedDiskFromElasticSanVolumeSnapshot() { creationData: { createOption: "CopyFromSanSnapshot", elasticSanResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -482,14 +479,14 @@ async function createAManagedDiskWithDataAccessAuthMode() { creationData: { createOption: "Empty" }, dataAccessAuthMode: "AzureActiveDirectory", diskSizeGB: 200, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -510,14 +507,14 @@ async function createAManagedDiskWithOptimizedForFrequentAttach() { creationData: { createOption: "Empty" }, diskSizeGB: 200, location: "West US", - optimizedForFrequentAttach: true + optimizedForFrequentAttach: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -536,14 +533,14 @@ async function createAManagedDiskWithPerformancePlus() { const diskName = "myDisk"; const disk: Disk = { creationData: { createOption: "Upload", performancePlus: true }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -566,14 +563,14 @@ async function createAManagedDiskWithPremiumV2AccountType() { diskMBpsReadWrite: 3000, diskSizeGB: 200, location: "West US", - sku: { name: "PremiumV2_LRS" } + sku: { name: "PremiumV2_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -594,20 +591,19 @@ async function createAManagedDiskWithSecurityProfile() { creationData: { createOption: "FromImage", imageReference: { - id: - "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}" - } + id: "/Subscriptions/{subscriptionId}/Providers/Microsoft.Compute/Locations/uswest/Publishers/Microsoft/ArtifactTypes/VMImage/Offers/{offer}", + }, }, location: "North Central US", osType: "Windows", - securityProfile: { securityType: "TrustedLaunch" } + securityProfile: { securityType: "TrustedLaunch" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -628,14 +624,14 @@ async function createAManagedDiskWithSsdZrsAccountType() { creationData: { createOption: "Empty" }, diskSizeGB: 200, location: "West US", - sku: { name: "Premium_ZRS" } + sku: { name: "Premium_ZRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -659,14 +655,14 @@ async function createAManagedDiskWithUltraAccountTypeWithReadOnlyPropertySet() { diskSizeGB: 200, encryption: { type: "EncryptionAtRestWithPlatformKey" }, location: "West US", - sku: { name: "UltraSSD_LRS" } + sku: { name: "UltraSSD_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -685,14 +681,14 @@ async function createAManagedUploadDisk() { const diskName = "myDisk"; const disk: Disk = { creationData: { createOption: "Upload", uploadSizeBytes: 10737418752 }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -713,14 +709,14 @@ async function createAnEmptyManagedDiskInExtendedLocation() { creationData: { createOption: "Empty" }, diskSizeGB: 200, extendedLocation: { name: "{edge-zone-id}", type: "EdgeZone" }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -740,14 +736,14 @@ async function createAnEmptyManagedDisk() { const disk: Disk = { creationData: { createOption: "Empty" }, diskSizeGB: 200, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -768,14 +764,14 @@ async function createAnUltraManagedDiskWithLogicalSectorSize512E() { creationData: { createOption: "Empty", logicalSectorSize: 512 }, diskSizeGB: 200, location: "West US", - sku: { name: "UltraSSD_LRS" } + sku: { name: "UltraSSD_LRS" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginCreateOrUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts index 17fe2a2b2c9b..3ccb80f26724 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAManagedDisk() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginDeleteAndWait( resourceGroupName, - diskName + diskName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts index a7b5e03b9669..7c18d5813148 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksGrantAccessSample.ts @@ -29,14 +29,14 @@ async function getASasOnAManagedDisk() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHD" + fileFormat: "VHD", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginGrantAccessAndWait( resourceGroupName, diskName, - grantAccessData + grantAccessData, ); console.log(result); } @@ -56,14 +56,14 @@ async function getSasOnManagedDiskAndVMGuestState() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - getSecureVMGuestStateSAS: true + getSecureVMGuestStateSAS: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginGrantAccessAndWait( resourceGroupName, diskName, - grantAccessData + grantAccessData, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts index 14a1693d459e..1fea43813b80 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksRevokeAccessSample.ts @@ -30,7 +30,7 @@ async function revokeAccessToAManagedDisk() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginRevokeAccessAndWait( resourceGroupName, - diskName + diskName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts index 198328942304..49d3774d5919 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/disksUpdateSample.ts @@ -32,7 +32,7 @@ async function createOrUpdateABurstingEnabledManagedDisk() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -50,14 +50,14 @@ async function updateAManagedDiskToAddAcceleratedNetworking() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskName = "myDisk"; const disk: DiskUpdate = { - supportedCapabilities: { acceleratedNetwork: false } + supportedCapabilities: { acceleratedNetwork: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -80,7 +80,7 @@ async function updateAManagedDiskToAddArchitecture() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -102,15 +102,15 @@ async function updateAManagedDiskToAddPurchasePlan() { name: "myPurchasePlanName", product: "myPurchasePlanProduct", promotionCode: "myPurchasePlanPromotionCode", - publisher: "myPurchasePlanPublisher" - } + publisher: "myPurchasePlanPublisher", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -133,7 +133,7 @@ async function updateAManagedDiskToAddSupportsHibernation() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -156,7 +156,7 @@ async function updateAManagedDiskToChangeTier() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -179,7 +179,7 @@ async function updateAManagedDiskToDisableBursting() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -202,7 +202,7 @@ async function updateAManagedDiskToDisableOptimizedForFrequentAttach() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -220,14 +220,14 @@ async function updateAManagedDiskWithDiskControllerTypes() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const diskName = "myDisk"; const disk: DiskUpdate = { - supportedCapabilities: { diskControllerTypes: "SCSI" } + supportedCapabilities: { diskControllerTypes: "SCSI" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } @@ -250,7 +250,7 @@ async function updateManagedDiskToRemoveDiskAccessResourceAssociation() { const result = await client.disks.beginUpdateAndWait( resourceGroupName, diskName, - disk + disk, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts index ecefc848e0fe..082790fdaf86 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Create.json */ async function createACommunityGallery() { const subscriptionId = @@ -34,17 +34,17 @@ async function createACommunityGallery() { eula: "eula", publicNamePrefix: "PirPublic", publisherContact: "pir@microsoft.com", - publisherUri: "uri" + publisherUri: "uri", }, - permissions: "Community" - } + permissions: "Community", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -53,7 +53,7 @@ async function createACommunityGallery() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_WithSharingProfile.json */ async function createOrUpdateASimpleGalleryWithSharingProfile() { const subscriptionId = @@ -64,14 +64,14 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { const gallery: Gallery = { description: "This is the gallery description.", location: "West US", - sharingProfile: { permissions: "Groups" } + sharingProfile: { permissions: "Groups" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -80,7 +80,7 @@ async function createOrUpdateASimpleGalleryWithSharingProfile() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create_SoftDeletionEnabled.json */ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const subscriptionId = @@ -91,14 +91,14 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { const gallery: Gallery = { description: "This is the gallery description.", location: "West US", - softDeletePolicy: { isSoftDeleteEnabled: true } + softDeletePolicy: { isSoftDeleteEnabled: true }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } @@ -107,7 +107,7 @@ async function createOrUpdateASimpleGalleryWithSoftDeletionEnabled() { * This sample demonstrates how to Create or update a Shared Image Gallery. * * @summary Create or update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Create.json */ async function createOrUpdateASimpleGallery() { const subscriptionId = @@ -117,14 +117,14 @@ async function createOrUpdateASimpleGallery() { const galleryName = "myGalleryName"; const gallery: Gallery = { description: "This is the gallery description.", - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginCreateOrUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts index aa2c1968e347..2cdad8d821ab 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a Shared Image Gallery. * * @summary Delete a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Delete.json */ async function deleteAGallery() { const subscriptionId = @@ -30,7 +30,7 @@ async function deleteAGallery() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginDeleteAndWait( resourceGroupName, - galleryName + galleryName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts index 64f03f905bbe..915d310529d9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleriesGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/CommunityGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/CommunityGallery_Get.json */ async function getACommunityGallery() { const subscriptionId = @@ -39,7 +39,7 @@ async function getACommunityGallery() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithExpandSharingProfileGroups.json */ async function getAGalleryWithExpandSharingProfileGroups() { const subscriptionId = @@ -54,7 +54,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { const result = await client.galleries.get( resourceGroupName, galleryName, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function getAGalleryWithExpandSharingProfileGroups() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get_WithSelectPermissions.json */ async function getAGalleryWithSelectPermissions() { const subscriptionId = @@ -78,7 +78,7 @@ async function getAGalleryWithSelectPermissions() { const result = await client.galleries.get( resourceGroupName, galleryName, - options + options, ); console.log(result); } @@ -87,7 +87,7 @@ async function getAGalleryWithSelectPermissions() { * This sample demonstrates how to Retrieves information about a Shared Image Gallery. * * @summary Retrieves information about a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Get.json */ async function getAGallery() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts index 1f566892d9f5..2b167c09f50a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List galleries under a resource group. * * @summary List galleries under a resource group. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListByResourceGroup.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListByResourceGroup.json */ async function listGalleriesInAResourceGroup() { const subscriptionId = @@ -29,7 +29,7 @@ async function listGalleriesInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.galleries.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts index 8aaa25172f9d..728fa29bba77 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List galleries under a subscription. * * @summary List galleries under a subscription. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ListBySubscription.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ListBySubscription.json */ async function listGalleriesInASubscription() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts index a11068594b2c..1a19b56f7ce2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleriesUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update a Shared Image Gallery. * * @summary Update a Shared Image Gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_Update.json */ async function updateASimpleGallery() { const subscriptionId = @@ -27,14 +27,14 @@ async function updateASimpleGallery() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const galleryName = "myGalleryName"; const gallery: GalleryUpdate = { - description: "This is the gallery description." + description: "This is the gallery description.", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.galleries.beginUpdateAndWait( resourceGroupName, galleryName, - gallery + gallery, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts index 86451e0739a1..aaec62cdc642 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersion, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery Application Version. * * @summary Create or update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Create.json */ async function createOrUpdateASimpleGalleryApplicationVersion() { const subscriptionId = @@ -44,22 +44,22 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], endOfLifeDate: new Date("2019-07-01T07:00:00Z"), manageActions: { install: 'powershell -command "Expand-Archive -Path package.zip -DestinationPath C:\\package"', - remove: "del C:\\package " + remove: "del C:\\package ", }, replicaCount: 1, source: { mediaLink: - "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}", }, storageAccountType: "Standard_LRS", targetRegions: [ @@ -67,21 +67,22 @@ async function createOrUpdateASimpleGalleryApplicationVersion() { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1, - storageAccountType: "Standard_LRS" - } - ] + storageAccountType: "Standard_LRS", + }, + ], }, - safetyProfile: { allowDeletionOfReplicatedLocations: false } + safetyProfile: { allowDeletionOfReplicatedLocations: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.galleryApplicationVersions.beginCreateOrUpdateAndWait( - resourceGroupName, - galleryName, - galleryApplicationName, - galleryApplicationVersionName, - galleryApplicationVersion - ); + const result = + await client.galleryApplicationVersions.beginCreateOrUpdateAndWait( + resourceGroupName, + galleryName, + galleryApplicationName, + galleryApplicationVersionName, + galleryApplicationVersion, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts index 9af5ca0b658c..38f242f79412 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery Application Version. * * @summary Delete a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Delete.json */ async function deleteAGalleryApplicationVersion() { const subscriptionId = @@ -34,7 +34,7 @@ async function deleteAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts index 6bc12a16971a..9fe6ca7bd9cb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get_WithReplicationStatus.json */ async function getAGalleryApplicationVersionWithReplicationStatus() { const subscriptionId = @@ -40,7 +40,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, ); console.log(result); } @@ -49,7 +49,7 @@ async function getAGalleryApplicationVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery Application Version. * * @summary Retrieves information about a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Get.json */ async function getAGalleryApplicationVersion() { const subscriptionId = @@ -65,7 +65,7 @@ async function getAGalleryApplicationVersion() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplicationVersionName + galleryApplicationVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts index 5b5fd0d8371a..55a74ff36b20 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsListByGalleryApplicationSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery Application Versions in a gallery Application Definition. * * @summary List gallery Application Versions in a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_ListByGalleryApplication.json */ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { const subscriptionId = @@ -33,7 +33,7 @@ async function listGalleryApplicationVersionsInAGalleryApplicationDefinition() { for await (let item of client.galleryApplicationVersions.listByGalleryApplication( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts index 6387db4be388..3d1ebc4e9c7b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationVersionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationVersionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery Application Version. * * @summary Update a gallery Application Version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplicationVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplicationVersion_Update.json */ async function updateASimpleGalleryApplicationVersion() { const subscriptionId = @@ -37,12 +37,12 @@ async function updateASimpleGalleryApplicationVersion() { manageActions: { install: 'powershell -command "Expand-Archive -Path package.zip -DestinationPath C:\\package"', - remove: "del C:\\package " + remove: "del C:\\package ", }, replicaCount: 1, source: { mediaLink: - "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}" + "https://mystorageaccount.blob.core.windows.net/mycontainer/package.zip?{sasKey}", }, storageAccountType: "Standard_LRS", targetRegions: [ @@ -50,11 +50,11 @@ async function updateASimpleGalleryApplicationVersion() { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1, - storageAccountType: "Standard_LRS" - } - ] + storageAccountType: "Standard_LRS", + }, + ], }, - safetyProfile: { allowDeletionOfReplicatedLocations: false } + safetyProfile: { allowDeletionOfReplicatedLocations: false }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -63,7 +63,7 @@ async function updateASimpleGalleryApplicationVersion() { galleryName, galleryApplicationName, galleryApplicationVersionName, - galleryApplicationVersion + galleryApplicationVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts index 7e8bfd3dcb2f..13ec8d872b01 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplication, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery Application Definition. * * @summary Create or update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Create.json */ async function createOrUpdateASimpleGalleryApplication() { const subscriptionId = @@ -42,17 +42,17 @@ async function createOrUpdateASimpleGalleryApplication() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], eula: "This is the gallery application EULA.", location: "West US", privacyStatementUri: "myPrivacyStatementUri}", releaseNoteUri: "myReleaseNoteUri", - supportedOSType: "Windows" + supportedOSType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -60,7 +60,7 @@ async function createOrUpdateASimpleGalleryApplication() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplication + galleryApplication, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts index 4420b49c2068..dbf8d2a74f6c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery Application. * * @summary Delete a gallery Application. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Delete.json */ async function deleteAGalleryApplication() { const subscriptionId = @@ -32,7 +32,7 @@ async function deleteAGalleryApplication() { const result = await client.galleryApplications.beginDeleteAndWait( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts index 8824d03d0d5e..c7241ed0da23 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery Application Definition. * * @summary Retrieves information about a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Get.json */ async function getAGalleryApplication() { const subscriptionId = @@ -32,7 +32,7 @@ async function getAGalleryApplication() { const result = await client.galleryApplications.get( resourceGroupName, galleryName, - galleryApplicationName + galleryApplicationName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts index f26edc619f0b..b2a567fa665b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsListByGallerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery Application Definitions in a gallery. * * @summary List gallery Application Definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_ListByGallery.json */ async function listGalleryApplicationsInAGallery() { const subscriptionId = @@ -31,7 +31,7 @@ async function listGalleryApplicationsInAGallery() { const resArray = new Array(); for await (let item of client.galleryApplications.listByGallery( resourceGroupName, - galleryName + galleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts index 9f0354ada9e6..ac9c5128804e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryApplicationsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryApplicationUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery Application Definition. * * @summary Update a gallery Application Definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryApplication_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryApplication_Update.json */ async function updateASimpleGalleryApplication() { const subscriptionId = @@ -42,16 +42,16 @@ async function updateASimpleGalleryApplication() { type: "String", description: "This is the description of the parameter", defaultValue: "default value of parameter.", - required: false - } + required: false, + }, ], - script: "myCustomActionScript" - } + script: "myCustomActionScript", + }, ], eula: "This is the gallery application EULA.", privacyStatementUri: "myPrivacyStatementUri}", releaseNoteUri: "myReleaseNoteUri", - supportedOSType: "Windows" + supportedOSType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -59,7 +59,7 @@ async function updateASimpleGalleryApplication() { resourceGroupName, galleryName, galleryApplicationName, - galleryApplication + galleryApplication, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts index 34d31259d686..b3a2c2e67c30 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersion, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVmAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { const subscriptionId = @@ -42,21 +42,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 2 + regionalReplicaCount: 2, }, { name: "East US", @@ -65,32 +65,32 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}" - } - } + virtualMachineId: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/virtualMachines/{vmName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -99,7 +99,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -108,7 +108,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVMAsSource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithCommunityImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImageAsSource() { const subscriptionId = @@ -129,21 +129,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -152,32 +152,32 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { communityGalleryImageId: - "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}" - } - } + "/communityGalleries/{communityGalleryName}/images/{communityGalleryImageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -186,7 +186,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -195,7 +195,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingCommunityGalleryImag * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create.json */ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource() { const subscriptionId = @@ -216,21 +216,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -239,32 +239,31 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -273,7 +272,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -282,7 +281,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingManagedImageAsSource * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapshotsAsASource() { const subscriptionId = @@ -303,16 +302,16 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -321,19 +320,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -342,19 +341,17 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho hostCaching: "None", lun: 1, source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -363,7 +360,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -372,7 +369,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingMixOfDisksAndSnapsho * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithShallowReplicationMode.json */ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMode() { const subscriptionId = @@ -387,16 +384,15 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo publishingProfile: { replicationMode: "Shallow", targetRegions: [ - { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1 } - ] + { name: "West US", excludeFromLatest: false, regionalReplicaCount: 1 }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -405,7 +401,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -414,7 +410,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingShallowReplicationMo * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithImageVersionAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource() { const subscriptionId = @@ -435,21 +431,21 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -458,32 +454,31 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -492,7 +487,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -501,7 +496,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSharedImageAsSource( * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithSnapshotsAsSource.json */ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { const subscriptionId = @@ -522,16 +517,16 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -540,19 +535,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -561,19 +556,17 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() hostCaching: "None", lun: 1, source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/disks/{dataDiskName}", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/snapshots/{osSnapshotName}", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -582,7 +575,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -591,7 +584,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingSnapshotsAsASource() * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD_UefiSettings.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCustomUefiKeys() { const subscriptionId = @@ -612,24 +605,24 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, securityProfile: { @@ -637,10 +630,10 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust additionalSignatures: { db: [{ type: "x509", value: [""] }], dbx: [{ type: "x509", value: [""] }], - kek: [{ type: "sha256", value: [""] }] + kek: [{ type: "sha256", value: [""] }], }, - signatureTemplateNames: ["MicrosoftUefiCertificateAuthorityTemplate"] - } + signatureTemplateNames: ["MicrosoftUefiCertificateAuthorityTemplate"], + }, }, storageProfile: { dataDiskImages: [ @@ -650,21 +643,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -673,7 +664,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -682,7 +673,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASourceWithCust * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithVHD.json */ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { const subscriptionId = @@ -703,24 +694,24 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { @@ -731,21 +722,19 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, ], osDiskImage: { hostCaching: "ReadOnly", source: { storageAccountId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/{storageAccount}", - uri: - "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd" - } - } - } + uri: "https://gallerysourcencus.blob.core.windows.net/myvhds/Windows-Server-2012-R2-20171216-en.us-128GB.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -754,7 +743,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -763,7 +752,7 @@ async function createOrUpdateASimpleGalleryImageVersionUsingVhdAsASource() { * This sample demonstrates how to Create or update a gallery image version. * * @summary Create or update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Create_WithTargetExtendedLocations.json */ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocationsSpecified() { const subscriptionId = @@ -784,21 +773,21 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherWestUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myWestUSDiskEncryptionSet", + }, }, excludeFromLatest: false, - regionalReplicaCount: 1 + regionalReplicaCount: 1, }, { name: "East US", @@ -807,32 +796,31 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myOtherEastUSDiskEncryptionSet", - lun: 0 + lun: 0, }, { diskEncryptionSetId: "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", - lun: 1 - } + lun: 1, + }, ], osDiskImage: { diskEncryptionSetId: - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet" - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSet/myEastUSDiskEncryptionSet", + }, }, excludeFromLatest: false, regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, safetyProfile: { allowDeletionOfReplicatedLocations: false }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -841,7 +829,7 @@ async function createOrUpdateASimpleGalleryImageVersionWithTargetExtendedLocatio galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts index b66f4ae64b5b..6a83e09ea49d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery image version. * * @summary Delete a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Delete.json */ async function deleteAGalleryImageVersion() { const subscriptionId = @@ -34,7 +34,7 @@ async function deleteAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts index 604e400364ca..1c7ce8a851d1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithReplicationStatus.json */ async function getAGalleryImageVersionWithReplicationStatus() { const subscriptionId = @@ -40,7 +40,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { galleryName, galleryImageName, galleryImageVersionName, - options + options, ); console.log(result); } @@ -49,7 +49,7 @@ async function getAGalleryImageVersionWithReplicationStatus() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithSnapshotsAsSource.json */ async function getAGalleryImageVersionWithSnapshotsAsASource() { const subscriptionId = @@ -65,7 +65,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } @@ -74,7 +74,7 @@ async function getAGalleryImageVersionWithSnapshotsAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get_WithVhdAsSource.json */ async function getAGalleryImageVersionWithVhdAsASource() { const subscriptionId = @@ -90,7 +90,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } @@ -99,7 +99,7 @@ async function getAGalleryImageVersionWithVhdAsASource() { * This sample demonstrates how to Retrieves information about a gallery image version. * * @summary Retrieves information about a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Get.json */ async function getAGalleryImageVersion() { const subscriptionId = @@ -115,7 +115,7 @@ async function getAGalleryImageVersion() { resourceGroupName, galleryName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts index 133f00a3f8c4..c48a9f9f1add 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsListByGalleryImageSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery image versions in a gallery image definition. * * @summary List gallery image versions in a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_ListByGalleryImage.json */ async function listGalleryImageVersionsInAGalleryImageDefinition() { const subscriptionId = @@ -33,7 +33,7 @@ async function listGalleryImageVersionsInAGalleryImageDefinition() { for await (let item of client.galleryImageVersions.listByGalleryImage( resourceGroupName, galleryName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts index 426f609b01a4..e0e24976bbc0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImageVersionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageVersionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update.json */ async function updateASimpleGalleryImageVersionManagedImageAsSource() { const subscriptionId = @@ -38,16 +38,15 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { { name: "East US", regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, storageProfile: { source: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/images/{imageName}", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +55,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } @@ -65,7 +64,7 @@ async function updateASimpleGalleryImageVersionManagedImageAsSource() { * This sample demonstrates how to Update a gallery image version. * * @summary Update a gallery image version. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImageVersion_Update_WithoutSourceId.json */ async function updateASimpleGalleryImageVersionWithoutSourceId() { const subscriptionId = @@ -82,11 +81,11 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { { name: "East US", regionalReplicaCount: 2, - storageAccountType: "Standard_ZRS" - } - ] + storageAccountType: "Standard_ZRS", + }, + ], }, - storageProfile: {} + storageProfile: {}, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -95,7 +94,7 @@ async function updateASimpleGalleryImageVersionWithoutSourceId() { galleryName, galleryImageName, galleryImageVersionName, - galleryImageVersion + galleryImageVersion, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts index c7b4ea1843e2..0f63a0191f57 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesCreateOrUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create or update a gallery image definition. * * @summary Create or update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Create.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Create.json */ async function createOrUpdateASimpleGalleryImage() { const subscriptionId = @@ -32,11 +32,11 @@ async function createOrUpdateASimpleGalleryImage() { identifier: { offer: "myOfferName", publisher: "myPublisherName", - sku: "mySkuName" + sku: "mySkuName", }, location: "West US", osState: "Generalized", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -44,7 +44,7 @@ async function createOrUpdateASimpleGalleryImage() { resourceGroupName, galleryName, galleryImageName, - galleryImage + galleryImage, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts index 79aeace8fe9f..ef6bc052347f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete a gallery image. * * @summary Delete a gallery image. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Delete.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Delete.json */ async function deleteAGalleryImage() { const subscriptionId = @@ -32,7 +32,7 @@ async function deleteAGalleryImage() { const result = await client.galleryImages.beginDeleteAndWait( resourceGroupName, galleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts index 90da9b06c25d..2d523eaabfe3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Retrieves information about a gallery image definition. * * @summary Retrieves information about a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Get.json */ async function getAGalleryImage() { const subscriptionId = @@ -32,7 +32,7 @@ async function getAGalleryImage() { const result = await client.galleryImages.get( resourceGroupName, galleryName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts index c41ab8528af4..211a3cedfc09 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesListByGallerySample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List gallery image definitions in a gallery. * * @summary List gallery image definitions in a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_ListByGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_ListByGallery.json */ async function listGalleryImagesInAGallery() { const subscriptionId = @@ -31,7 +31,7 @@ async function listGalleryImagesInAGallery() { const resArray = new Array(); for await (let item of client.galleryImages.listByGallery( resourceGroupName, - galleryName + galleryName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts index 8afac6ae429f..caf15968df97 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/galleryImagesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { GalleryImageUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Update a gallery image definition. * * @summary Update a gallery image definition. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/GalleryImage_Update.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/GalleryImage_Update.json */ async function updateASimpleGalleryImage() { const subscriptionId = @@ -35,10 +35,10 @@ async function updateASimpleGalleryImage() { identifier: { offer: "myOfferName", publisher: "myPublisherName", - sku: "mySkuName" + sku: "mySkuName", }, osState: "Generalized", - osType: "Windows" + osType: "Windows", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -46,7 +46,7 @@ async function updateASimpleGalleryImage() { resourceGroupName, galleryName, galleryImageName, - galleryImage + galleryImage, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts index 7cc06be19cb4..b3cbc70b8ce8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/gallerySharingProfileUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_AddToSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_AddToSharingProfile.json */ async function addSharingIdToTheSharingProfileOfAGallery() { const subscriptionId = @@ -32,19 +32,19 @@ async function addSharingIdToTheSharingProfileOfAGallery() { type: "Subscriptions", ids: [ "34a4ab42-0d72-47d9-bd1a-aed207386dac", - "380fd389-260b-41aa-bad9-0a83108c370b" - ] + "380fd389-260b-41aa-bad9-0a83108c370b", + ], }, - { type: "AADTenants", ids: ["c24c76aa-8897-4027-9b03-8f7928b54ff6"] } + { type: "AADTenants", ids: ["c24c76aa-8897-4027-9b03-8f7928b54ff6"] }, ], - operationType: "Add" + operationType: "Add", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } @@ -53,7 +53,7 @@ async function addSharingIdToTheSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_ResetSharingProfile.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_ResetSharingProfile.json */ async function resetSharingProfileOfAGallery() { const subscriptionId = @@ -67,7 +67,7 @@ async function resetSharingProfileOfAGallery() { const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } @@ -76,7 +76,7 @@ async function resetSharingProfileOfAGallery() { * This sample demonstrates how to Update sharing profile of a gallery. * * @summary Update sharing profile of a gallery. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/galleryExamples/Gallery_EnableCommunityGallery.json */ async function shareAGalleryToCommunity() { const subscriptionId = @@ -90,7 +90,7 @@ async function shareAGalleryToCommunity() { const result = await client.gallerySharingProfile.beginUpdateAndWait( resourceGroupName, galleryName, - sharingUpdate + sharingUpdate, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts index e1b9822fcdd3..18d2392fcafc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesCreateOrUpdateSample.ts @@ -33,20 +33,19 @@ async function createAVirtualMachineImageFromABlobWithDiskEncryptionSetResource( blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, osState: "Generalized", - osType: "Linux" - } - } + osType: "Linux", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -70,17 +69,17 @@ async function createAVirtualMachineImageFromABlob() { blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -102,24 +101,22 @@ async function createAVirtualMachineImageFromAManagedDiskWithDiskEncryptionSetRe storageProfile: { osDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } - } - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -141,21 +138,20 @@ async function createAVirtualMachineImageFromAManagedDisk() { storageProfile: { osDisk: { managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -177,24 +173,22 @@ async function createAVirtualMachineImageFromASnapshotWithDiskEncryptionSetResou storageProfile: { osDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" - } - } + osType: "Linux", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -218,19 +212,18 @@ async function createAVirtualMachineImageFromASnapshot() { osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -250,16 +243,15 @@ async function createAVirtualMachineImageFromAnExistingVirtualMachine() { const parameters: Image = { location: "West US", sourceVirtualMachine: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -283,24 +275,24 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromABlob() { { blobUri: "https://mystorageaccount.blob.core.windows.net/dataimages/dataimage.vhd", - lun: 1 - } + lun: 1, + }, ], osDisk: { blobUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -324,28 +316,26 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromAManagedDisk() { lun: 1, managedDisk: { - id: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2" - } - } + id: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk2", + }, + }, ], osDisk: { managedDisk: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/myManagedDisk", }, osState: "Generalized", - osType: "Linux" + osType: "Linux", }, - zoneResilient: false - } + zoneResilient: false, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } @@ -369,28 +359,26 @@ async function createAVirtualMachineImageThatIncludesADataDiskFromASnapshot() { { lun: 1, snapshot: { - id: - "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2" - } - } + id: "subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot2", + }, + }, ], osDisk: { osState: "Generalized", osType: "Linux", snapshot: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, }, - zoneResilient: true - } + zoneResilient: true, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginCreateOrUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts index 5242180378a8..4128c7f9d8ea 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesDeleteSample.ts @@ -30,7 +30,7 @@ async function imageDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginDeleteAndWait( resourceGroupName, - imageName + imageName, ); console.log(result); } @@ -51,7 +51,7 @@ async function imageDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginDeleteAndWait( resourceGroupName, - imageName + imageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts index 4a7b86c53faf..0d52e7fb6b45 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/imagesUpdateSample.ts @@ -29,17 +29,16 @@ async function updatesTagsOfAnImage() { const parameters: ImageUpdate = { hyperVGeneration: "V1", sourceVirtualMachine: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { department: "HR" } + tags: { department: "HR" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.images.beginUpdateAndWait( resourceGroupName, imageName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts index 4d5a028b6cc2..f4c666da9564 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportRequestRateByIntervalSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RequestRateByIntervalInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,14 +32,15 @@ async function exportLogsWhichContainAllApiRequestsMadeToComputeResourceProvider fromTime: new Date("2018-01-21T01:54:06.862601Z"), groupByResourceName: true, intervalLength: "FiveMins", - toTime: new Date("2018-01-23T01:54:06.862601Z") + toTime: new Date("2018-01-23T01:54:06.862601Z"), }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.logAnalytics.beginExportRequestRateByIntervalAndWait( - location, - parameters - ); + const result = + await client.logAnalytics.beginExportRequestRateByIntervalAndWait( + location, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts index 0cde453f3d71..445887388967 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/logAnalyticsExportThrottledRequestsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ThrottledRequestsInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,13 +34,13 @@ async function exportLogsWhichContainAllThrottledApiRequestsMadeToComputeResourc groupByOperationName: true, groupByResourceName: false, groupByUserAgent: false, - toTime: new Date("2018-01-23T01:54:06.862601Z") + toTime: new Date("2018-01-23T01:54:06.862601Z"), }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.logAnalytics.beginExportThrottledRequestsAndWait( location, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts index 8da20c7470c7..b01db7389cc7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ProximityPlacementGroup, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,14 +33,14 @@ async function createOrUpdateAProximityPlacementGroup() { intent: { vmSizes: ["Basic_A0", "Basic_A2"] }, location: "westus", proximityPlacementGroupType: "Standard", - zones: ["1"] + zones: ["1"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.createOrUpdate( resourceGroupName, proximityPlacementGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts index 78cb930f4808..64d024b47ed9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteAProximityPlacementGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.delete( resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts index c781c18b8422..969a5d0ed9c2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsGetSample.ts @@ -30,7 +30,7 @@ async function getProximityPlacementGroups() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.get( resourceGroupName, - proximityPlacementGroupName + proximityPlacementGroupName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts index 6f2ccecf187c..ccb49b388f68 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listProximityPlacementGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.proximityPlacementGroups.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts index f28165f24e28..6351d4f8b5b1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/proximityPlacementGroupsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ProximityPlacementGroupUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,14 +30,14 @@ async function updateAProximityPlacementGroup() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const proximityPlacementGroupName = "myProximityPlacementGroup"; const parameters: ProximityPlacementGroupUpdate = { - tags: { additionalProp1: "string" } + tags: { additionalProp1: "string" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.proximityPlacementGroups.update( resourceGroupName, proximityPlacementGroupName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts index b3b4ae81defe..5a7e162de929 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/resourceSkusListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ResourceSkusListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts index 0063719e7285..fbb15e579732 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RestorePointCollection, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,17 +32,16 @@ async function createOrUpdateARestorePointCollectionForCrossRegionCopy() { const parameters: RestorePointCollection = { location: "norwayeast", source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName", }, - tags: { myTag1: "tagValue1" } + tags: { myTag1: "tagValue1" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.createOrUpdate( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } @@ -62,17 +61,16 @@ async function createOrUpdateARestorePointCollection() { const parameters: RestorePointCollection = { location: "norwayeast", source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { myTag1: "tagValue1" } + tags: { myTag1: "tagValue1" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.createOrUpdate( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts index 0ec63a868e4e..8eaf6fbbeaa9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsDeleteSample.ts @@ -30,7 +30,7 @@ async function restorePointCollectionDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.beginDeleteAndWait( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } @@ -51,7 +51,7 @@ async function restorePointCollectionDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.beginDeleteAndWait( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts index 2e84a0f854e1..7da1b103e447 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsGetSample.ts @@ -30,7 +30,7 @@ async function getARestorePointCollectionButNotTheRestorePointsContainedInTheRes const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.get( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getARestorePointCollectionIncludingTheRestorePointsContainedInThe const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.get( resourceGroupName, - restorePointCollectionName + restorePointCollectionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts index 36b78b98acda..da4381f8e57c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsListSample.ts @@ -29,7 +29,7 @@ async function getsTheListOfRestorePointCollectionsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.restorePointCollections.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts index 8139f2f0148a..56c3b839f3dd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointCollectionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { RestorePointCollectionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,16 @@ async function restorePointCollectionUpdateMaximumSetGen() { const restorePointCollectionName = "aaaaaaaaaaaaaaaaaaaa"; const parameters: RestorePointCollectionUpdate = { source: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/myVM", }, - tags: { key8536: "aaaaaaaaaaaaaaaaaaa" } + tags: { key8536: "aaaaaaaaaaaaaaaaaaa" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.restorePointCollections.update( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } @@ -64,7 +63,7 @@ async function restorePointCollectionUpdateMinimumSetGen() { const result = await client.restorePointCollections.update( resourceGroupName, restorePointCollectionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts index 14ea6b48855a..5e9a8b176bc9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsCreateSample.ts @@ -29,9 +29,8 @@ async function copyARestorePointToADifferentRegion() { const restorePointName = "rpName"; const parameters: RestorePoint = { sourceRestorePoint: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/restorePointCollections/sourceRpcName/restorePoints/sourceRpName", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -39,7 +38,7 @@ async function copyARestorePointToADifferentRegion() { resourceGroupName, restorePointCollectionName, restorePointName, - parameters + parameters, ); console.log(result); } @@ -60,10 +59,9 @@ async function createARestorePoint() { const parameters: RestorePoint = { excludeDisks: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -71,7 +69,7 @@ async function createARestorePoint() { resourceGroupName, restorePointCollectionName, restorePointName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts index 04d487cb2a79..3830c72a49ae 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsDeleteSample.ts @@ -32,7 +32,7 @@ async function restorePointDeleteMaximumSetGen() { const result = await client.restorePoints.beginDeleteAndWait( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } @@ -55,7 +55,7 @@ async function restorePointDeleteMinimumSetGen() { const result = await client.restorePoints.beginDeleteAndWait( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts index 92b710e9edba..c45959186cb4 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/restorePointsGetSample.ts @@ -32,7 +32,7 @@ async function getARestorePoint() { const result = await client.restorePoints.get( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } @@ -55,7 +55,7 @@ async function getRestorePointWithInstanceView() { const result = await client.restorePoints.get( resourceGroupName, restorePointCollectionName, - restorePointName + restorePointName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts index 116c46e83351..85674d442cf0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery by subscription id or tenant id. * * @summary Get a shared gallery by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_Get.json */ async function getASharedGallery() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts index 0193a2a0acd1..cf12445c658f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleriesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared galleries by subscription id or tenant id. * * @summary List shared galleries by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGallery_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGallery_List.json */ async function listSharedGalleries() { const subscriptionId = diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts index 2db65265c53e..0fc9d92c351c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery image version by subscription id or tenant id. * * @summary Get a shared gallery image version by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersion_Get.json */ async function getASharedGalleryImageVersion() { const subscriptionId = @@ -33,7 +33,7 @@ async function getASharedGalleryImageVersion() { location, galleryUniqueName, galleryImageName, - galleryImageVersionName + galleryImageVersionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts index e38e7ae0ef03..98ae70b401e2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImageVersionsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared gallery image versions by subscription id or tenant id. * * @summary List shared gallery image versions by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImageVersions_List.json */ async function listSharedGalleryImageVersions() { const subscriptionId = @@ -32,7 +32,7 @@ async function listSharedGalleryImageVersions() { for await (let item of client.sharedGalleryImageVersions.list( location, galleryUniqueName, - galleryImageName + galleryImageName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts index a2f5bbf42758..130e67be7970 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get a shared gallery image by subscription id or tenant id. * * @summary Get a shared gallery image by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImage_Get.json */ async function getASharedGalleryImage() { const subscriptionId = @@ -31,7 +31,7 @@ async function getASharedGalleryImage() { const result = await client.sharedGalleryImages.get( location, galleryUniqueName, - galleryImageName + galleryImageName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts index 90d09b585616..be7c03622bf6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sharedGalleryImagesListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List shared gallery images by subscription id or tenant id. * * @summary List shared gallery images by subscription id or tenant id. - * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2022-08-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json + * x-ms-original-file: specification/compute/resource-manager/Microsoft.Compute/GalleryRP/stable/2023-07-03/examples/sharedGalleryExamples/SharedGalleryImages_List.json */ async function listSharedGalleryImages() { const subscriptionId = @@ -30,7 +30,7 @@ async function listSharedGalleryImages() { const resArray = new Array(); for await (let item of client.sharedGalleryImages.list( location, - galleryUniqueName + galleryUniqueName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts index 238b8b1c9374..a7e3916053eb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsCreateOrUpdateSample.ts @@ -32,16 +32,16 @@ async function createASnapshotByImportingAnUnmanagedBlobFromADifferentSubscripti sourceUri: "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", storageAccountId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Storage/storageAccounts/myStorageAccount", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -62,16 +62,16 @@ async function createASnapshotByImportingAnUnmanagedBlobFromTheSameSubscription( creationData: { createOption: "Import", sourceUri: - "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd" + "https://mystorageaccount.blob.core.windows.net/osimages/osimage.vhd", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -92,16 +92,16 @@ async function createASnapshotFromAnElasticSanVolumeSnapshot() { creationData: { createOption: "CopyFromSanSnapshot", elasticSanResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ElasticSan/elasticSans/myElasticSan/volumegroups/myElasticSanVolumeGroup/snapshots/myElasticSanVolumeSnapshot", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -123,16 +123,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri createOption: "CopyStart", provisionedBandwidthCopySpeed: "Enhanced", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -153,16 +153,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri creationData: { createOption: "CopyStart", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -183,16 +183,16 @@ async function createASnapshotFromAnExistingSnapshotInTheSameOrADifferentSubscri creationData: { createOption: "Copy", sourceResourceId: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1" + "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot1", }, - location: "West US" + location: "West US", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginCreateOrUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts index f7280932794e..0a19e08b60ff 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsDeleteSample.ts @@ -30,7 +30,7 @@ async function deleteASnapshot() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginDeleteAndWait( resourceGroupName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts index 0b480d5736f6..80c826644254 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsGrantAccessSample.ts @@ -29,14 +29,14 @@ async function getASasOnASnapshot() { const grantAccessData: GrantAccessData = { access: "Read", durationInSeconds: 300, - fileFormat: "VHDX" + fileFormat: "VHDX", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginGrantAccessAndWait( resourceGroupName, snapshotName, - grantAccessData + grantAccessData, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts index 5225bf7768cc..1357e3df3f30 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function listAllSnapshotsInAResourceGroup() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.snapshots.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts index f50d8dd83951..d56c77dd2f91 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsRevokeAccessSample.ts @@ -30,7 +30,7 @@ async function revokeAccessToASnapshot() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginRevokeAccessAndWait( resourceGroupName, - snapshotName + snapshotName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts index 61240be67d98..f7c88b819955 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/snapshotsUpdateSample.ts @@ -29,14 +29,14 @@ async function updateASnapshotWithAcceleratedNetworking() { const snapshot: SnapshotUpdate = { diskSizeGB: 20, supportedCapabilities: { acceleratedNetwork: false }, - tags: { department: "Development", project: "UpdateSnapshots" } + tags: { department: "Development", project: "UpdateSnapshots" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } @@ -55,14 +55,14 @@ async function updateASnapshot() { const snapshotName = "mySnapshot"; const snapshot: SnapshotUpdate = { diskSizeGB: 20, - tags: { department: "Development", project: "UpdateSnapshots" } + tags: { department: "Development", project: "UpdateSnapshots" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.snapshots.beginUpdateAndWait( resourceGroupName, snapshotName, - snapshot + snapshot, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts index f6bca8c1eecd..3ee613250145 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SshPublicKeyResource, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function createANewSshPublicKeyResource() { const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshPublicKeyResource = { location: "westus", - publicKey: "{ssh-rsa public key}" + publicKey: "{ssh-rsa public key}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.create( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts index ed5f68827f5e..1a380efe51fb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysDeleteSample.ts @@ -30,7 +30,7 @@ async function sshPublicKeyDeleteMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.delete( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } @@ -51,7 +51,7 @@ async function sshPublicKeyDeleteMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.delete( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts index 13e203f44ab9..4de7ab6cfbd6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGenerateKeyPairSample.ts @@ -11,7 +11,7 @@ import { SshGenerateKeyPairInputParameters, SshPublicKeysGenerateKeyPairOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function generateAnSshKeyPairWithEd25519Encryption() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshGenerateKeyPairInputParameters = { - encryptionType: "RSA" + encryptionType: "RSA", }; const options: SshPublicKeysGenerateKeyPairOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function generateAnSshKeyPairWithEd25519Encryption() { const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, sshPublicKeyName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function generateAnSshKeyPairWithRsaEncryption() { process.env["COMPUTE_RESOURCE_GROUP"] || "myResourceGroup"; const sshPublicKeyName = "mySshPublicKeyName"; const parameters: SshGenerateKeyPairInputParameters = { - encryptionType: "RSA" + encryptionType: "RSA", }; const options: SshPublicKeysGenerateKeyPairOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -65,7 +65,7 @@ async function generateAnSshKeyPairWithRsaEncryption() { const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, sshPublicKeyName, - options + options, ); console.log(result); } @@ -86,7 +86,7 @@ async function generateAnSshKeyPair() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.generateKeyPair( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts index 69ea23c91ac4..3f96cc907874 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysGetSample.ts @@ -30,7 +30,7 @@ async function getAnSshPublicKey() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.get( resourceGroupName, - sshPublicKeyName + sshPublicKeyName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts index 9c69c2e99ac6..6cec1c49751b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysListByResourceGroupSample.ts @@ -29,7 +29,7 @@ async function sshPublicKeyListByResourceGroupMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.sshPublicKeys.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function sshPublicKeyListByResourceGroupMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.sshPublicKeys.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts index 5ef6ce84fb73..8f64aa963e4e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/sshPublicKeysUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { SshPublicKeyUpdateResource, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function sshPublicKeyUpdateMaximumSetGen() { const sshPublicKeyName = "aaaaaaaaaaaa"; const parameters: SshPublicKeyUpdateResource = { publicKey: "{ssh-rsa public key}", - tags: { key2854: "a" } + tags: { key2854: "a" }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.sshPublicKeys.update( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } @@ -61,7 +61,7 @@ async function sshPublicKeyUpdateMinimumSetGen() { const result = await client.sshPublicKeys.update( resourceGroupName, sshPublicKeyName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts index 867abfcdb602..4793d3b6449c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesGetSample.ts @@ -33,7 +33,7 @@ async function virtualMachineExtensionImageGetMaximumSetGen() { location, publisherName, typeParam, - version + version, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineExtensionImageGetMinimumSetGen() { location, publisherName, typeParam, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts index ca5f4b5e13af..be758e2fdf5d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListTypesSample.ts @@ -29,7 +29,7 @@ async function virtualMachineExtensionImageListTypesMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensionImages.listTypes( location, - publisherName + publisherName, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineExtensionImageListTypesMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensionImages.listTypes( location, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts index 356ca0f2377a..c762507d6723 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionImagesListVersionsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionImagesListVersionsOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineExtensionImageListVersionsMaximumSetGen() { const options: VirtualMachineExtensionImagesListVersionsOptionalParams = { filter, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineExtensionImageListVersionsMaximumSetGen() { location, publisherName, typeParam, - options + options, ); console.log(result); } @@ -65,7 +65,7 @@ async function virtualMachineExtensionImageListVersionsMinimumSetGen() { const result = await client.virtualMachineExtensionImages.listVersions( location, publisherName, - typeParam + typeParam, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts index 404c9c576cc7..6a7b121d4fb2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -44,8 +44,8 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], substatuses: [ { @@ -53,10 +53,10 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa" + typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa", }, location: "westus", protectedSettings: {}, @@ -64,16 +64,17 @@ async function virtualMachineExtensionCreateOrUpdateMaximumSetGen() { settings: {}, suppressFailures: true, tags: { key9183: "aa" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + vmExtensionName, + extensionParameters, + ); console.log(result); } @@ -93,12 +94,13 @@ async function virtualMachineExtensionCreateOrUpdateMinimumSetGen() { const extensionParameters: VirtualMachineExtension = { location: "westus" }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts index e369cfaa8d56..895d5ffe4607 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsDeleteSample.ts @@ -32,7 +32,7 @@ async function virtualMachineExtensionDeleteMaximumSetGen() { const result = await client.virtualMachineExtensions.beginDeleteAndWait( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineExtensionDeleteMinimumSetGen() { const result = await client.virtualMachineExtensions.beginDeleteAndWait( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts index 07d1bf0e86c3..35788608c2c0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function virtualMachineExtensionGetMaximumSetGen() { resourceGroupName, vmName, vmExtensionName, - options + options, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineExtensionGetMinimumSetGen() { const result = await client.virtualMachineExtensions.get( resourceGroupName, vmName, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts index 52c2112dee7a..1d85962c3380 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionsListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineExtensionListMaximumSetGen() { const result = await client.virtualMachineExtensions.list( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineExtensionListMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineExtensions.list( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts index 13942d3566ba..db8f60a70f5c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,14 +37,13 @@ async function updateVMExtension() { secretUrl: "https://kvName.vault.azure.net/secrets/secretName/79b88b3a6f5440ffb2e73e44a0db712e", sourceVault: { - id: - "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName" - } + id: "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName", + }, }, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, suppressFailures: true, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -52,7 +51,7 @@ async function updateVMExtension() { resourceGroupName, vmName, vmExtensionName, - extensionParameters + extensionParameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts index 94b60cc56842..44a9c52f5d95 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneGetSample.ts @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneGetMaximumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } @@ -65,7 +65,7 @@ async function virtualMachineImagesEdgeZoneGetMinimumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts index a3de877e96c2..5389a691f62b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListOffersSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImagesEdgeZoneListOffersMaximumSetGen() { const result = await client.virtualMachineImagesEdgeZone.listOffers( location, edgeZone, - publisherName + publisherName, ); console.log(result); } @@ -53,7 +53,7 @@ async function virtualMachineImagesEdgeZoneListOffersMinimumSetGen() { const result = await client.virtualMachineImagesEdgeZone.listOffers( location, edgeZone, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts index d71b26105a12..c8d0ba5d4bf2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListPublishersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImagesEdgeZone.listPublishers( location, - edgeZone + edgeZone, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineImagesEdgeZoneListPublishersMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImagesEdgeZone.listPublishers( location, - edgeZone + edgeZone, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts index 5f8642135e82..c4410133de1d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineImagesEdgeZoneListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -37,7 +37,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { const options: VirtualMachineImagesEdgeZoneListOptionalParams = { expand, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -47,7 +47,7 @@ async function virtualMachineImagesEdgeZoneListMaximumSetGen() { publisherName, offer, skus, - options + options, ); console.log(result); } @@ -73,7 +73,7 @@ async function virtualMachineImagesEdgeZoneListMinimumSetGen() { edgeZone, publisherName, offer, - skus + skus, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts index 13e997827eea..a19ca67066eb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesEdgeZoneListSkusSample.ts @@ -33,7 +33,7 @@ async function virtualMachineImagesEdgeZoneListSkusMaximumSetGen() { location, edgeZone, publisherName, - offer + offer, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineImagesEdgeZoneListSkusMinimumSetGen() { location, edgeZone, publisherName, - offer + offer, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts index 316151bf3739..4e8559d2e922 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesGetSample.ts @@ -35,7 +35,7 @@ async function virtualMachineImageGetMaximumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineImageGetMinimumSetGen() { publisherName, offer, skus, - version + version, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts index 3fca77533bfe..8e89d50c0eaf 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListByEdgeZoneSample.ts @@ -30,7 +30,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listByEdgeZone( location, - edgeZone + edgeZone, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineImagesEdgeZoneListByEdgeZoneMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listByEdgeZone( location, - edgeZone + edgeZone, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts index 2e8ebb3fb049..cfd20ea2bee3 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListOffersSample.ts @@ -29,7 +29,7 @@ async function virtualMachineImageListOffersMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listOffers( location, - publisherName + publisherName, ); console.log(result); } @@ -49,7 +49,7 @@ async function virtualMachineImageListOffersMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineImages.listOffers( location, - publisherName + publisherName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts index a9a99490a7cc..963fd7931226 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineImagesListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineImageListMaximumSetGen() { const options: VirtualMachineImagesListOptionalParams = { expand, top, - orderby + orderby, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -45,7 +45,7 @@ async function virtualMachineImageListMaximumSetGen() { publisherName, offer, skus, - options + options, ); console.log(result); } @@ -69,7 +69,7 @@ async function virtualMachineImageListMinimumSetGen() { location, publisherName, offer, - skus + skus, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts index 8d843fdbb89a..1c818c923ccb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineImagesListSkusSample.ts @@ -31,7 +31,7 @@ async function virtualMachineImageListSkusMaximumSetGen() { const result = await client.virtualMachineImages.listSkus( location, publisherName, - offer + offer, ); console.log(result); } @@ -53,7 +53,7 @@ async function virtualMachineImageListSkusMinimumSetGen() { const result = await client.virtualMachineImages.listSkus( location, publisherName, - offer + offer, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts index dd4772f5b047..ae5760b8398b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommand, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,31 +36,32 @@ async function createOrUpdateARunCommand() { "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI", location: "West US", outputBlobManagedIdentity: { - clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", }, outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", source: { scriptUri: - "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI" + "https://mystorageaccount.blob.core.windows.net/scriptcontainer/scriptURI", }, timeoutInSeconds: 3600, - treatFailureAsDeploymentFailure: false + treatFailureAsDeploymentFailure: false, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineRunCommands.beginCreateOrUpdateAndWait( - resourceGroupName, - vmName, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + vmName, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts index 782b35cb18b1..d287aed0e43a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsDeleteSample.ts @@ -32,7 +32,7 @@ async function deleteARunCommand() { const result = await client.virtualMachineRunCommands.beginDeleteAndWait( resourceGroupName, vmName, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts index 984861a0ca7f..8776bbbf1db7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetByVirtualMachineSample.ts @@ -32,7 +32,7 @@ async function getARunCommand() { const result = await client.virtualMachineRunCommands.getByVirtualMachine( resourceGroupName, vmName, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts index 8c34005b96ef..aa34b017efed 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsGetSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRunCommandGet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineRunCommands.get( location, - commandId + commandId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts index c79a3451b142..f18c7e49f22f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsListByVirtualMachineSample.ts @@ -31,7 +31,7 @@ async function listRunCommandsInAVirtualMachine() { const resArray = new Array(); for await (let item of client.virtualMachineRunCommands.listByVirtualMachine( resourceGroupName, - vmName + vmName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts index 41e4c732f787..b7a3ce564dc9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineRunCommandsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommandUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,7 +33,7 @@ async function updateARunCommand() { const runCommand: VirtualMachineRunCommandUpdate = { asyncExecution: false, errorBlobManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", }, errorBlobUri: "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", @@ -41,14 +41,14 @@ async function updateARunCommand() { "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/outputUri", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", source: { - script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt" + script: "Write-Host Hello World! ; Remove-Item C:\test\testFile.txt", }, - timeoutInSeconds: 3600 + timeoutInSeconds: 3600, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -56,7 +56,7 @@ async function updateARunCommand() { resourceGroupName, vmName, runCommandName, - runCommand + runCommand, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts index 7b6ac65f4358..ba35635ee1ea 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -41,16 +41,17 @@ async function virtualMachineScaleSetExtensionCreateOrUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" + typeHandlerVersion: "{handler-version}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } @@ -70,12 +71,13 @@ async function virtualMachineScaleSetExtensionCreateOrUpdateMinimumSetGen() { const extensionParameters: VirtualMachineScaleSetExtension = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts index 5fb679cd8ca8..e882f592ffff 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsDeleteSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetExtensionDeleteMaximumSetGen() { const vmssExtensionName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName - ); + const result = + await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetExtensionDeleteMinimumSetGen() { const vmssExtensionName = "aaaaaaaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName - ); + const result = + await client.virtualMachineScaleSetExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts index e8163d6df0d9..cf03dda8c657 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtensionsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,7 +38,7 @@ async function virtualMachineScaleSetExtensionGetMaximumSetGen() { resourceGroupName, vmScaleSetName, vmssExtensionName, - options + options, ); console.log(result); } @@ -61,7 +61,7 @@ async function virtualMachineScaleSetExtensionGetMinimumSetGen() { const result = await client.virtualMachineScaleSetExtensions.get( resourceGroupName, vmScaleSetName, - vmssExtensionName + vmssExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts index 7c5fbffd1dca..1ff4028a265d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsListSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetExtensionListMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetExtensions.list( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetExtensionListMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetExtensions.list( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts index b162e3eca96d..8554b5dc3f0c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -40,16 +40,17 @@ async function virtualMachineScaleSetExtensionUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" + typeHandlerVersion: "{handler-version}", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } @@ -69,12 +70,13 @@ async function virtualMachineScaleSetExtensionUpdateMinimumSetGen() { const extensionParameters: VirtualMachineScaleSetExtensionUpdate = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - vmssExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + vmssExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts index b296f958d1fe..00b963f2d3f9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesCancelSample.ts @@ -28,10 +28,11 @@ async function virtualMachineScaleSetRollingUpgradeCancelMaximumSetGen() { const vmScaleSetName = "aaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } @@ -49,10 +50,11 @@ async function virtualMachineScaleSetRollingUpgradeCancelMinimumSetGen() { const vmScaleSetName = "aaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginCancelAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts index 889a1c66f386..717aa5ca68eb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesGetLatestSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetRollingUpgradeGetLatestMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetRollingUpgrades.getLatest( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetRollingUpgradeGetLatestMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSetRollingUpgrades.getLatest( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts index 54d1eeaef05f..5268c6960435 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartExtensionUpgradeSample.ts @@ -28,10 +28,11 @@ async function startAnExtensionRollingUpgrade() { const vmScaleSetName = "{vmss-name}"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartExtensionUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartExtensionUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts index 65dc6a5bbf0e..8f5c578db840 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetRollingUpgradesStartOSUpgradeSample.ts @@ -28,10 +28,11 @@ async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMaximumSetGen() const vmScaleSetName = "aaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } @@ -49,10 +50,11 @@ async function virtualMachineScaleSetRollingUpgradeStartOSUpgradeMinimumSetGen() const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSetRollingUpgrades.beginStartOSUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts index 5db4993df20a..14c84993c679 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMExtension, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,17 +36,18 @@ async function createVirtualMachineScaleSetVMExtension() { autoUpgradeMinorVersion: true, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts index 8e47771c1f50..2c121e55b4df 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsDeleteSample.ts @@ -30,12 +30,13 @@ async function deleteVirtualMachineScaleSetVMExtension() { const vmExtensionName = "myVMExtension"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts index 170bc0a1f9cd..952c187b273a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsGetSample.ts @@ -34,7 +34,7 @@ async function getVirtualMachineScaleSetVMExtension() { resourceGroupName, vmScaleSetName, instanceId, - vmExtensionName + vmExtensionName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts index 4d799048e325..59a303c8436f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsListSample.ts @@ -32,7 +32,7 @@ async function listExtensionsInVmssInstance() { const result = await client.virtualMachineScaleSetVMExtensions.list( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts index 98c562605ee2..bd420fc9a114 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMExtensionsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMExtensionUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,17 +36,18 @@ async function updateVirtualMachineScaleSetVMExtension() { autoUpgradeMinorVersion: true, publisher: "extPublisher", settings: { UserName: "xyz@microsoft.com" }, - typeHandlerVersion: "1.2" + typeHandlerVersion: "1.2", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMExtensions.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - vmExtensionName, - extensionParameters - ); + const result = + await client.virtualMachineScaleSetVMExtensions.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + vmExtensionName, + extensionParameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts index b846330cc38f..6952d366bf0c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommand, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -38,13 +38,13 @@ async function createVirtualMachineScaleSetVMRunCommand() { "https://mystorageaccount.blob.core.windows.net/mycontainer/MyScriptError.txt", location: "West US", outputBlobManagedIdentity: { - clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a" + clientId: "22d35efb-0c99-4041-8c5b-6d24db33a69a", }, outputBlobUri: "https://mystorageaccount.blob.core.windows.net/myscriptoutputcontainer/MyScriptoutput.txt", parameters: [ { name: "param1", value: "value1" }, - { name: "param2", value: "value2" } + { name: "param2", value: "value2" }, ], runAsPassword: "", runAsUser: "user1", @@ -52,21 +52,22 @@ async function createVirtualMachineScaleSetVMRunCommand() { scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", scriptUriManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" - } + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, }, timeoutInSeconds: 3600, - treatFailureAsDeploymentFailure: true + treatFailureAsDeploymentFailure: true, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts index 4cd6ada176b4..e5cfa028f87c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsDeleteSample.ts @@ -30,12 +30,13 @@ async function deleteVirtualMachineScaleSetVMRunCommand() { const runCommandName = "myRunCommand"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginDeleteAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginDeleteAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts index 529347f9226c..6d07197de3e4 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsGetSample.ts @@ -34,7 +34,7 @@ async function getVirtualMachineScaleSetVMRunCommands() { resourceGroupName, vmScaleSetName, instanceId, - runCommandName + runCommandName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts index e2dca9fd24d9..0fdd22e4e2c7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsListSample.ts @@ -33,7 +33,7 @@ async function listRunCommandsInVmssInstance() { for await (let item of client.virtualMachineScaleSetVMRunCommands.list( resourceGroupName, vmScaleSetName, - instanceId + instanceId, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts index 22c1c16abaae..d210be566b25 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMRunCommandsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineRunCommandUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,19 +36,20 @@ async function updateVirtualMachineScaleSetVMRunCommand() { scriptUri: "https://mystorageaccount.blob.core.windows.net/scriptcontainer/MyScript.ps1", scriptUriManagedIdentity: { - objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072" - } - } + objectId: "4231e4d2-33e4-4e23-96b2-17888afa6072", + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMRunCommands.beginUpdateAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - runCommandName, - runCommand - ); + const result = + await client.virtualMachineScaleSetVMRunCommands.beginUpdateAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + runCommandName, + runCommand, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts index b35d63ae4d37..5f6b38530d0c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSApproveRollingUpgradeSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetVMApproveRollingUpgrade() { const instanceId = "0123"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginApproveRollingUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts index 73ca564036f8..755dcc730dde 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSAttachDetachDataDisksSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AttachDetachDataDisksRequest, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,35 +35,36 @@ async function virtualMachineScaleSetVMAttachDetachDataDisksMaximumSetGen() { { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - lun: 1 + lun: 1, }, { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_2_disk3_7d5e664bdafa49baa780eb2d128ff38e", - lun: 2 - } + lun: 2, + }, ], dataDisksToDetach: [ { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", }, { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - parameters - ); + const result = + await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + ); console.log(result); } @@ -84,24 +85,25 @@ async function virtualMachineScaleSetVMAttachDetachDataDisksMinimumSetGen() { dataDisksToAttach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + }, ], dataDisksToDetach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( - resourceGroupName, - vmScaleSetName, - instanceId, - parameters - ); + const result = + await client.virtualMachineScaleSetVMs.beginAttachDetachDataDisksAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts index f076ab0a6f35..8a727fede9e7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeallocateSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMDeallocateMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMDeallocateMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts index 6b0b3e7dbcd3..b02200e5f276 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,7 +32,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { const instanceId = "0"; const forceDeletion = true; const options: VirtualMachineScaleSetVMsDeleteOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function forceDeleteAVirtualMachineFromAVMScaleSet() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts index 076ca109aa0a..88aa4a2fae86 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetInstanceViewSample.ts @@ -32,7 +32,7 @@ async function getInstanceViewOfAVirtualMachineFromAVMScaleSetPlacedOnADedicated const result = await client.virtualMachineScaleSetVMs.getInstanceView( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts index baf384de2618..33ce5ac50dad 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSGetSample.ts @@ -32,7 +32,7 @@ async function getVMScaleSetVMWithUserData() { const result = await client.virtualMachineScaleSetVMs.get( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function getVMScaleSetVMWithVMSizeProperties() { const result = await client.virtualMachineScaleSetVMs.get( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts index acec35e26723..2a93f94980e5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineScaleSetVMListMaximumSetGen() { const options: VirtualMachineScaleSetVMsListOptionalParams = { filter, select, - expand + expand, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineScaleSetVMListMaximumSetGen() { for await (let item of client.virtualMachineScaleSetVMs.list( resourceGroupName, virtualMachineScaleSetName, - options + options, )) { resArray.push(item); } @@ -67,7 +67,7 @@ async function virtualMachineScaleSetVMListMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSetVMs.list( resourceGroupName, - virtualMachineScaleSetName + virtualMachineScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts index 28e4bb60c3bf..fb0209eba76d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPerformMaintenanceSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetVMPerformMaintenanceMaximumSetGen() { const instanceId = "aaaaaaaaaaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetVMPerformMaintenanceMinimumSetGen() { const instanceId = "aaaa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - instanceId - ); + const result = + await client.virtualMachineScaleSetVMs.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + instanceId, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts index c85b508f98a0..ee654103db98 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSPowerOffSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { const instanceId = "aaaaaaaaa"; const skipShutdown = true; const options: VirtualMachineScaleSetVMsPowerOffOptionalParams = { - skipShutdown + skipShutdown, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -40,7 +40,7 @@ async function virtualMachineScaleSetVMPowerOffMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function virtualMachineScaleSetVMPowerOffMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginPowerOffAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts index 6193a0c55c53..a52a7525f2d8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRedeploySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMRedeployMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMRedeployMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts index 3a1cc2e18c11..282ff70d3e89 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageAllSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMReimageAllMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMReimageAllMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts index 34006e5930d6..73371f4f9509 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMReimageParameters, VirtualMachineScaleSetVMsReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,10 +32,10 @@ async function virtualMachineScaleSetVMReimageMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaa"; const instanceId = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmScaleSetVMReimageInput: VirtualMachineScaleSetVMReimageParameters = { - tempDisk: true + tempDisk: true, }; const options: VirtualMachineScaleSetVMsReimageOptionalParams = { - vmScaleSetVMReimageInput + vmScaleSetVMReimageInput, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -43,7 +43,7 @@ async function virtualMachineScaleSetVMReimageMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - options + options, ); console.log(result); } @@ -66,7 +66,7 @@ async function virtualMachineScaleSetVMReimageMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginReimageAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts index 2a0aa2218e65..fad2732a6c9a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRestartSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMRestartMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRestartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMRestartMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginRestartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts index 06d43dda8c39..1e265be799f9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRetrieveBootDiagnosticsDataSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmScaleSetName = "myvmScaleSet"; const instanceId = "0"; const sasUriExpirationTimeInMinutes = 60; - const options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams = { - sasUriExpirationTimeInMinutes - }; + const options: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams = + { sasUriExpirationTimeInMinutes }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( - resourceGroupName, - vmScaleSetName, - instanceId, - options - ); + const result = + await client.virtualMachineScaleSetVMs.retrieveBootDiagnosticsData( + resourceGroupName, + vmScaleSetName, + instanceId, + options, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts index 56da7f345926..71acef1e6e11 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSRunCommandSample.ts @@ -29,7 +29,7 @@ async function virtualMachineScaleSetVMSRunCommand() { const instanceId = "0"; const parameters: RunCommandInput = { commandId: "RunPowerShellScript", - script: ["Write-Host Hello World!"] + script: ["Write-Host Hello World!"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function virtualMachineScaleSetVMSRunCommand() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts index 315eef0c467a..999a63637542 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSSimulateEvictionSample.ts @@ -32,7 +32,7 @@ async function simulateEvictionAVirtualMachine() { const result = await client.virtualMachineScaleSetVMs.simulateEviction( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts index 1f3538808f8c..bcfe0b5cc130 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSStartSample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetVMStartMaximumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginStartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetVMStartMinimumSetGen() { const result = await client.virtualMachineScaleSetVMs.beginStartAndWait( resourceGroupName, vmScaleSetName, - instanceId + instanceId, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts index ec330dc91081..a3e1f23608bc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetVMSUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVM, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -33,15 +33,14 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { const parameters: VirtualMachineScaleSetVM = { additionalCapabilities: { hibernationEnabled: true, ultraSSDEnabled: true }, availabilitySet: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, diagnosticsProfile: { - bootDiagnostics: { enabled: true, storageUri: "aaaaaaaaaaaaa" } + bootDiagnostics: { enabled: true, storageUri: "aaaaaaaaaaaaa" }, }, hardwareProfile: { vmSize: "Basic_A0", - vmSizeProperties: { vCPUsAvailable: 9, vCPUsPerCore: 12 } + vmSizeProperties: { vCPUsAvailable: 9, vCPUsPerCore: 12 }, }, instanceView: { bootDiagnostics: { @@ -50,8 +49,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, }, disks: [ { @@ -61,19 +60,17 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { diskEncryptionKey: { secretUrl: "aaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, }, enabled: true, keyEncryptionKey: { keyUrl: "aaaaaaaaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, + }, ], statuses: [ { @@ -81,10 +78,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } - ] - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, + ], + }, ], maintenanceRedeployStatus: { isCustomerInitiatedMaintenanceAllowed: true, @@ -93,7 +90,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { maintenanceWindowEndTime: new Date("2021-11-30T12:58:26.531Z"), maintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z"), preMaintenanceWindowEndTime: new Date("2021-11-30T12:58:26.531Z"), - preMaintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z") + preMaintenanceWindowStartTime: new Date("2021-11-30T12:58:26.531Z"), }, placementGroupId: "aaa", platformFaultDomain: 14, @@ -105,8 +102,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], vmAgent: { extensionHandlers: [ @@ -117,10 +114,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") + time: new Date("2021-11-30T12:58:26.522Z"), }, - typeHandlerVersion: "aaaaa" - } + typeHandlerVersion: "aaaaa", + }, ], statuses: [ { @@ -128,10 +125,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - vmAgentVersion: "aaaaaaaaaaaaaaaaaaaaaaa" + vmAgentVersion: "aaaaaaaaaaaaaaaaaaaaaaa", }, vmHealth: { status: { @@ -139,8 +136,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, }, extensions: [ { @@ -152,8 +149,8 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], substatuses: [ { @@ -161,12 +158,12 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { displayStatus: "aaaaaa", level: "Info", message: "a", - time: new Date("2021-11-30T12:58:26.522Z") - } + time: new Date("2021-11-30T12:58:26.522Z"), + }, ], - typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa" - } - ] + typeHandlerVersion: "aaaaaaaaaaaaaaaaaaaaaaaaaa", + }, + ], }, licenseType: "aaaaaaaaaa", location: "westus", @@ -178,8 +175,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { deleteOption: "Delete", dnsSettings: { dnsServers: ["aaaaaa"] }, dscpConfiguration: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, enableAcceleratedNetworking: true, enableFpga: true, @@ -189,21 +185,18 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { name: "aa", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], applicationSecurityGroups: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -215,38 +208,34 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { ipTags: [ { ipTagType: "aaaaaaaaaaaaaaaaaaaaaaaaa", - tag: "aaaaaaaaaaaaaaaaaaaa" - } + tag: "aaaaaaaaaaaaaaaaaaaa", + }, ], publicIPAddressVersion: "IPv4", publicIPAllocationMethod: "Dynamic", publicIPPrefix: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - sku: { name: "Basic", tier: "Regional" } + sku: { name: "Basic", tier: "Regional" }, }, subnet: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, ], networkSecurityGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - primary: true - } + primary: true, + }, ], networkInterfaces: [ { deleteOption: "Delete", - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{vmss-name}/virtualMachines/0/networkInterfaces/vmsstestnetconfig5415", + primary: true, + }, + ], }, networkProfileConfiguration: { networkInterfaceConfigurations: [ @@ -262,27 +251,23 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { name: "vmsstestnetconfig9693", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], applicationSecurityGroups: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], loadBalancerInboundNatPools: [ { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -292,28 +277,25 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { dnsSettings: { domainNameLabel: "aaaaaaaaaaaaaaaaaa" }, idleTimeoutInMinutes: 18, ipTags: [ - { ipTagType: "aaaaaaa", tag: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" } + { ipTagType: "aaaaaaa", tag: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" }, ], publicIPAddressVersion: "IPv4", publicIPPrefix: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - sku: { name: "Basic", tier: "Regional" } + sku: { name: "Basic", tier: "Regional" }, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/vn4071/subnets/sn5503", + }, + }, ], networkSecurityGroup: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "aaaaaaaaaaaaaaaa", @@ -325,10 +307,10 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { disablePasswordAuthentication: true, patchSettings: { assessmentMode: "ImageDefault", - patchMode: "ImageDefault" + patchMode: "ImageDefault", }, provisionVMAgent: true, - ssh: { publicKeys: [{ path: "aaa", keyData: "aaaaaa" }] } + ssh: { publicKeys: [{ path: "aaa", keyData: "aaaaaa" }] }, }, requireGuestProvisionSignal: true, secrets: [], @@ -338,38 +320,38 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { componentName: "Microsoft-Windows-Shell-Setup", content: "aaaaaaaaaaaaaaaaaaaa", passName: "OobeSystem", - settingName: "AutoLogon" - } + settingName: "AutoLogon", + }, ], enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault", enableHotpatching: true, - patchMode: "Manual" + patchMode: "Manual", }, provisionVMAgent: true, timeZone: "aaaaaaaaaaaaaaaaaaaaaaaaaaa", winRM: { listeners: [ - { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" } - ] - } - } + { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" }, + ], + }, + }, }, plan: { name: "aaaaaaaaaa", product: "aaaaaaaaaaaaaaaaaaaa", promotionCode: "aaaaaaaaaaaaaaaaaaaa", - publisher: "aaaaaaaaaaaaaaaaaaaaaa" + publisher: "aaaaaaaaaaaaaaaaaaaaaa", }, protectionPolicy: { protectFromScaleIn: true, - protectFromScaleSetActions: true + protectFromScaleSetActions: true, }, securityProfile: { encryptionAtHost: true, securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, sku: { name: "Classic", capacity: 29, tier: "aaaaaaaaaaaaaa" }, storageProfile: { @@ -382,23 +364,20 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { detachOption: "ForceDetach", diskSizeGB: 128, image: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, lun: 1, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - storageAccountType: "Standard_LRS" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + storageAccountType: "Standard_LRS", }, toBeDetached: true, vhd: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, ], imageReference: { id: "a", @@ -406,7 +385,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { publisher: "MicrosoftWindowsServer", sharedGalleryImageId: "aaaaaaaaaaaaaaaaaaaa", sku: "2012-R2-Datacenter", - version: "4.127.20180315" + version: "4.127.20180315", }, osDisk: { name: "vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", @@ -419,39 +398,34 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { diskEncryptionKey: { secretUrl: "aaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, }, enabled: true, keyEncryptionKey: { keyUrl: "aaaaaaaaaaaaaa", sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" - } - } + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + }, + }, }, image: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", - storageAccountType: "Standard_LRS" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_OsDisk_1_6d72b805e50e4de6830303c5055077fc", + storageAccountType: "Standard_LRS", }, osType: "Windows", vhd: { - uri: - "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd" + uri: "https://{storageAccountName}.blob.core.windows.net/{containerName}/{vhdName}.vhd", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, }, tags: {}, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); @@ -459,7 +433,7 @@ async function virtualMachineScaleSetVMUpdateMaximumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } @@ -484,7 +458,7 @@ async function virtualMachineScaleSetVMUpdateMinimumSetGen() { resourceGroupName, vmScaleSetName, instanceId, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsApproveRollingUpgradeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsApproveRollingUpgradeSample.ts index 62de4563a48c..5cdc077b4ca7 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsApproveRollingUpgradeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsApproveRollingUpgradeSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,18 +31,19 @@ async function virtualMachineScaleSetApproveRollingUpgrade() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "vmssToApproveRollingUpgradeOn"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["0", "1", "2"] + instanceIds: ["0", "1", "2"], }; const options: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginApproveRollingUpgradeAndWait( - resourceGroupName, - vmScaleSetName, - options - ); + const result = + await client.virtualMachineScaleSets.beginApproveRollingUpgradeAndWait( + resourceGroupName, + vmScaleSetName, + options, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts index a1468249a927..139a569554f0 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsConvertToSinglePlacementGroupSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VMScaleSetConvertToSinglePlacementGroupInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,15 +30,16 @@ async function virtualMachineScaleSetConvertToSinglePlacementGroupMaximumSetGen( process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const parameters: VMScaleSetConvertToSinglePlacementGroupInput = { - activePlacementGroupId: "aaaaaaaaaaaaaaaaaaaaaaaaaaa" + activePlacementGroupId: "aaaaaaaaaaaaaaaaaaaaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.convertToSinglePlacementGroup( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.convertToSinglePlacementGroup( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -57,11 +58,12 @@ async function virtualMachineScaleSetConvertToSinglePlacementGroupMinimumSetGen( const parameters: VMScaleSetConvertToSinglePlacementGroupInput = {}; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.convertToSinglePlacementGroup( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.convertToSinglePlacementGroup( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts index 24c1090c5ba6..b9c0a8ea33b2 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSet, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -39,8 +39,8 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensions: [ @@ -51,9 +51,9 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -64,42 +64,42 @@ async function createAVmssWithAnExtensionThatHasSuppressFailuresEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -125,8 +125,8 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensions: [ @@ -138,15 +138,14 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { secretUrl: "https://kvName.vault.azure.net/secrets/secretName/79b88b3a6f5440ffb2e73e44a0db712e", sourceVault: { - id: - "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName" - } + id: "/subscriptions/a53f7094-a16c-47af-abe4-b05c05d0d79a/resourceGroups/myResourceGroup/providers/Microsoft.KeyVault/vaults/kvName", + }, }, publisher: "{extension-Publisher}", settings: {}, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -157,42 +156,42 @@ async function createAVmssWithAnExtensionWithProtectedSettingsFromKeyVault() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -223,19 +222,18 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { osDisk: { @@ -243,20 +241,20 @@ async function createACustomImageScaleSetFromAnUnmanagedGeneralizedOSImage() { caching: "ReadWrite", createOption: "FromImage", image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" - } - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -287,26 +285,25 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", @@ -317,19 +314,20 @@ async function createAPlatformImageScaleSetWithUnmanagedOSDisks() { "http://{existing-storage-account-name-1}.blob.core.windows.net/vhdContainer", "http://{existing-storage-account-name-2}.blob.core.windows.net/vhdContainer", "http://{existing-storage-account-name-3}.blob.core.windows.net/vhdContainer", - "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer" - ] - } - } - } + "http://{existing-storage-account-name-4}.blob.core.windows.net/vhdContainer", + ], + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -360,40 +358,39 @@ async function createAScaleSetFromACustomImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -424,40 +421,39 @@ async function createAScaleSetFromAGeneralizedSharedImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -488,35 +484,34 @@ async function createAScaleSetFromASpecializedSharedImage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -549,12 +544,11 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{nicConfig2-name}", @@ -567,40 +561,39 @@ async function createAScaleSetWhereNicConfigHasDisableTcpStateTrackingProperty() primary: true, privateIPAddressVersion: "IPv4", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -632,13 +625,13 @@ async function createAScaleSetWithApplicationProfile() { packageReferenceId: "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0", tags: "myTag1", - treatFailureAsDeploymentFailure: true + treatFailureAsDeploymentFailure: true, }, { packageReferenceId: - "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1" - } - ] + "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -649,42 +642,42 @@ async function createAScaleSetWithApplicationProfile() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -707,7 +700,7 @@ async function createAScaleSetWithDiskControllerType() { upgradePolicy: { mode: "Manual" }, virtualMachineProfile: { hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -718,19 +711,18 @@ async function createAScaleSetWithDiskControllerType() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { diskControllerType: "NVMe", @@ -738,24 +730,25 @@ async function createAScaleSetWithDiskControllerType() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -786,19 +779,18 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ @@ -809,38 +801,36 @@ async function createAScaleSetWithDiskEncryptionSetResourceInOSDiskAndDataDisk() lun: 0, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } + storageAccountType: "Standard_LRS", + }, + }, ], imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } - } - } + storageAccountType: "Standard_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -871,12 +861,11 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{fpgaNic-Name}", @@ -889,40 +878,39 @@ async function createAScaleSetWithFpgaNetworkInterfaces() { primary: true, privateIPAddressVersion: "IPv4", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -944,7 +932,7 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -958,19 +946,18 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { encryptionAtHost: true }, storageProfile: { @@ -978,23 +965,24 @@ async function createAScaleSetWithHostEncryptionUsingEncryptionAtHostProperty() offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1029,12 +1017,11 @@ async function createAScaleSetWithNetworkInterfacesWithPublicIPAddressDnsSetting { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true + primary: true, }, { name: "{nicConfig2-name}", @@ -1050,45 +1037,44 @@ async function createAScaleSetWithNetworkInterfacesWithPublicIPAddressDnsSetting name: "publicip", dnsSettings: { domainNameLabel: "vmsstestlabel01", - domainNameLabelScope: "NoReuse" + domainNameLabelScope: "NoReuse", }, - idleTimeoutInMinutes: 10 + idleTimeoutInMinutes: 10, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-fpga-subnet-name2}", + }, + }, ], - primary: false - } - ] + primary: false, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1119,45 +1105,45 @@ async function createAScaleSetWithOSImageScheduledEventsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" } + osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1188,45 +1174,45 @@ async function createAScaleSetWithProxyAgentSettingsOfEnabledAndMode() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { - proxyAgentSettings: { enabled: true, mode: "Enforce" } + proxyAgentSettings: { enabled: true, mode: "Enforce" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1258,42 +1244,42 @@ async function createAScaleSetWithResilientVMCreationEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1325,42 +1311,42 @@ async function createAScaleSetWithResilientVMDeletionEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1382,7 +1368,7 @@ async function createAScaleSetWithSecurityPostureReference() { sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, upgradePolicy: { automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, - mode: "Automatic" + mode: "Automatic", }, virtualMachineProfile: { networkProfile: { @@ -1394,46 +1380,45 @@ async function createAScaleSetWithSecurityPostureReference() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityPostureReference: { - id: - "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest" + id: "/CommunityGalleries/{communityGalleryName}/securityPostures/{securityPostureName}/versions/{major.minor.patch}|{major.*}|latest", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2022-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", caching: "ReadWrite", - createOption: "FromImage" - } - } - } + createOption: "FromImage", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1464,49 +1449,49 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVM() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "VMGuestStateOnly" }, - storageAccountType: "StandardSSD_LRS" - } - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1537,49 +1522,49 @@ async function createAScaleSetWithSecurityTypeAsConfidentialVMAndNonPersistedTpm { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: false, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: false, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2022-datacenter-cvm", publisher: "UbuntuServer", sku: "linux-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "NonPersistedTPM" }, - storageAccountType: "StandardSSD_LRS" - } - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1601,7 +1586,7 @@ async function createAScaleSetWithServiceArtifactReference() { sku: { name: "Standard_A1", capacity: 3, tier: "Standard" }, upgradePolicy: { automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, - mode: "Automatic" + mode: "Automatic", }, virtualMachineProfile: { networkProfile: { @@ -1613,46 +1598,45 @@ async function createAScaleSetWithServiceArtifactReference() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, serviceArtifactReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/serviceArtifacts/serviceArtifactName/vmArtifactsProfiles/vmArtifactsProfilesName", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2022-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "osDisk", caching: "ReadWrite", - createOption: "FromImage" - } - } - } + createOption: "FromImage", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1683,46 +1667,46 @@ async function createAScaleSetWithUefiSettingsOfSecureBootAndVTpm() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, securityProfile: { securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "windowsserver-gen2preview-preview", publisher: "MicrosoftWindowsServer", sku: "windows10-tvm", - version: "18363.592.2001092016" + version: "18363.592.2001092016", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1744,7 +1728,7 @@ async function createAScaleSetWithAMarketplaceImagePlan() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_D1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -1758,42 +1742,42 @@ async function createAScaleSetWithAMarketplaceImagePlan() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1825,47 +1809,46 @@ async function createAScaleSetWithAnAzureApplicationGateway() { name: "{vmss-name}", applicationGatewayBackendAddressPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/applicationGateways/{existing-application-gateway-name}/backendAddressPools/{existing-backend-address-pool-name}", + }, ], subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1897,57 +1880,55 @@ async function createAScaleSetWithAnAzureLoadBalancer() { name: "{vmss-name}", loadBalancerBackendAddressPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/backendAddressPools/{existing-backend-address-pool-name}", + }, ], loadBalancerInboundNatPools: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/loadBalancers/{existing-load-balancer-name}/inboundNatPools/{existing-nat-pool-name}", + }, ], publicIPAddressConfiguration: { name: "{vmss-name}", - publicIPAddressVersion: "IPv4" + publicIPAddressVersion: "IPv4", }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -1979,42 +1960,42 @@ async function createAScaleSetWithAutomaticRepairsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2040,8 +2021,8 @@ async function createAScaleSetWithBootDiagnostics() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -2052,42 +2033,42 @@ async function createAScaleSetWithBootDiagnostics() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2118,47 +2099,47 @@ async function createAScaleSetWithEmptyDataDisksOnEachVM() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", diskSizeGB: 512, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2180,7 +2161,7 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -2194,43 +2175,43 @@ async function createAScaleSetWithEphemeralOSDisksUsingPlacementProperty() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "ResourceDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2252,7 +2233,7 @@ async function createAScaleSetWithEphemeralOSDisks() { plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, sku: { name: "Standard_DS1_v2", capacity: 3, tier: "Standard" }, upgradePolicy: { mode: "Manual" }, @@ -2266,43 +2247,43 @@ async function createAScaleSetWithEphemeralOSDisks() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2328,8 +2309,8 @@ async function createAScaleSetWithExtensionTimeBudget() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensionsTimeBudget: "PT1H20M", @@ -2340,9 +2321,9 @@ async function createAScaleSetWithExtensionTimeBudget() { autoUpgradeMinorVersion: false, publisher: "{extension-Publisher}", settings: {}, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, networkProfile: { networkInterfaceConfigurations: [ @@ -2353,42 +2334,42 @@ async function createAScaleSetWithExtensionTimeBudget() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2420,42 +2401,42 @@ async function createAScaleSetWithManagedBootDiagnostics() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2486,42 +2467,42 @@ async function createAScaleSetWithPasswordAuthentication() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2552,42 +2533,42 @@ async function createAScaleSetWithPremiumStorage() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2608,7 +2589,7 @@ async function createAScaleSetWithPriorityMixPolicy() { orchestrationMode: "Flexible", priorityMixPolicy: { baseRegularPriorityCount: 4, - regularPriorityPercentageAboveBase: 50 + regularPriorityPercentageAboveBase: 50, }, singlePlacementGroup: false, sku: { name: "Standard_A8m_v2", capacity: 10, tier: "Standard" }, @@ -2624,19 +2605,18 @@ async function createAScaleSetWithPriorityMixPolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, priority: "Spot", storageProfile: { @@ -2644,23 +2624,24 @@ async function createAScaleSetWithPriorityMixPolicy() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2692,42 +2673,42 @@ async function createAScaleSetWithScaleInPolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2761,19 +2742,18 @@ async function createAScaleSetWithSpotRestorePolicy() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, priority: "Spot", storageProfile: { @@ -2781,23 +2761,24 @@ async function createAScaleSetWithSpotRestorePolicy() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2828,14 +2809,13 @@ async function createAScaleSetWithSshAuthentication() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminUsername: "{your-username}", @@ -2847,34 +2827,35 @@ async function createAScaleSetWithSshAuthentication() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2905,45 +2886,48 @@ async function createAScaleSetWithTerminateScheduledEventsEnabled() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, scheduledEventsProfile: { - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT5M" } + terminateNotificationProfile: { + enable: true, + notBeforeTimeout: "PT5M", + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -2974,43 +2958,43 @@ async function createAScaleSetWithUserData() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3041,48 +3025,48 @@ async function createAScaleSetWithVirtualMachinesInDifferentZones() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", diskSizeGB: 512, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }, - zones: ["1", "3"] + zones: ["1", "3"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3105,7 +3089,7 @@ async function createAScaleSetWithVMSizeProperties() { upgradePolicy: { mode: "Manual" }, virtualMachineProfile: { hardwareProfile: { - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -3116,43 +3100,43 @@ async function createAScaleSetWithVMSizeProperties() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" - } + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -3176,9 +3160,8 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { virtualMachineProfile: { capacityReservation: { capacityReservationGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}", + }, }, networkProfile: { networkInterfaceConfigurations: [ @@ -3189,42 +3172,42 @@ async function createOrUpdateAScaleSetWithCapacityReservation() { { name: "{vmss-name}", subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/virtualNetworks/{existing-virtual-network-name}/subnets/{existing-subnet-name}", + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerNamePrefix: "{vmss-name}" + computerNamePrefix: "{vmss-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginCreateOrUpdateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts index cadf8fe95290..e4ab362d752f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeallocateSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsDeallocateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function virtualMachineScaleSetDeallocateMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const hibernate = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsDeallocateOptionalParams = { hibernate, - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeallocateAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -64,7 +64,7 @@ async function virtualMachineScaleSetDeallocateMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeallocateAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts index 43b4a6e0338e..5656c5c0167b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteInstancesSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceRequiredIDs, VirtualMachineScaleSetsDeleteInstancesOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,19 +32,20 @@ async function virtualMachineScaleSetDeleteInstancesMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaa"; const forceDeletion = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsDeleteInstancesOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs, - options - ); + const result = + await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + options, + ); console.log(result); } @@ -61,15 +62,16 @@ async function virtualMachineScaleSetDeleteInstancesMinimumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginDeleteInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts index b69787c228d7..52c96828424e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetsDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function forceDeleteAVMScaleSet() { const vmScaleSetName = "myvmScaleSet"; const forceDeletion = true; const options: VirtualMachineScaleSetsDeleteOptionalParams = { - forceDeletion + forceDeletion, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginDeleteAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts index cc1a536cd4fe..b0696a161564 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkSample.ts @@ -29,11 +29,12 @@ async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDom const platformUpdateDomain = 30; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName, - vmScaleSetName, - platformUpdateDomain - ); + const result = + await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( + resourceGroupName, + vmScaleSetName, + platformUpdateDomain, + ); console.log(result); } @@ -52,11 +53,12 @@ async function virtualMachineScaleSetForceRecoveryServiceFabricPlatformUpdateDom const platformUpdateDomain = 9; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( - resourceGroupName, - vmScaleSetName, - platformUpdateDomain - ); + const result = + await client.virtualMachineScaleSets.forceRecoveryServiceFabricPlatformUpdateDomainWalk( + resourceGroupName, + vmScaleSetName, + platformUpdateDomain, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts index c6401aff521a..0be4b5ed0ca5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetInstanceViewSample.ts @@ -30,7 +30,7 @@ async function virtualMachineScaleSetGetInstanceViewMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.getInstanceView( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetGetInstanceViewMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.getInstanceView( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts index 3e8c4a0d3ea1..4cc783727ca6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetOSUpgradeHistorySample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetGetOSUpgradeHistoryMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listOSUpgradeHistory( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetGetOSUpgradeHistoryMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listOSUpgradeHistory( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts index cc41549c60cc..aab817379d35 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetsGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getVMScaleSetVMWithDiskControllerType() { const result = await client.virtualMachineScaleSets.get( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function getAVirtualMachineScaleSet() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.get( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -78,7 +78,7 @@ async function getAVirtualMachineScaleSetPlacedOnADedicatedHostGroupThroughAutom const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.get( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -102,7 +102,7 @@ async function getAVirtualMachineScaleSetWithUserData() { const result = await client.virtualMachineScaleSets.get( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts index 482c0aaa56bf..8f158d60d364 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListByLocationSample.ts @@ -28,7 +28,7 @@ async function listsAllTheVMScaleSetsUnderTheSpecifiedSubscriptionForTheSpecifie const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listByLocation( - location + location, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts index ef1a4d84817d..8b5a51a53d2a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSample.ts @@ -29,7 +29,7 @@ async function virtualMachineScaleSetListMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } @@ -51,7 +51,7 @@ async function virtualMachineScaleSetListMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.list( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts index ac6f0f401d18..82d23dff4a2b 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsListSkusSample.ts @@ -31,7 +31,7 @@ async function virtualMachineScaleSetListSkusMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listSkus( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetListSkusMinimumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachineScaleSets.listSkus( resourceGroupName, - vmScaleSetName + vmScaleSetName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts index fe1f03a88c68..20c856c7fa22 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPerformMaintenanceSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsPerformMaintenanceOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,18 +31,19 @@ async function virtualMachineScaleSetPerformMaintenanceMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsPerformMaintenanceOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName, - options - ); + const result = + await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + options, + ); console.log(result); } @@ -60,10 +61,11 @@ async function virtualMachineScaleSetPerformMaintenanceMinimumSetGen() { const vmScaleSetName = "aa"; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( - resourceGroupName, - vmScaleSetName - ); + const result = + await client.virtualMachineScaleSets.beginPerformMaintenanceAndWait( + resourceGroupName, + vmScaleSetName, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts index fce76fa99f85..5d0ed3b593bf 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsPowerOffSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,18 +32,18 @@ async function virtualMachineScaleSetPowerOffMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaa"; const skipShutdown = true; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsPowerOffOptionalParams = { skipShutdown, - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginPowerOffAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -64,7 +64,7 @@ async function virtualMachineScaleSetPowerOffMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginPowerOffAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts index 1c3863a32c1e..e3cc62f3b6c5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReapplySample.ts @@ -32,7 +32,7 @@ async function virtualMachineScaleSetsReapplyMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReapplyAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } @@ -55,7 +55,7 @@ async function virtualMachineScaleSetsReapplyMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReapplyAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts index bac68cc788d3..6b648e7063ad 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRedeploySample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsRedeployOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetRedeployMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsRedeployOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRedeployAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetRedeployMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRedeployAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts index 81aa76c55b76..01421e27086f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageAllSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsReimageAllOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetReimageAllMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsReimageAllOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAllAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetReimageAllMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAllAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts index d2d27e5a275a..4bfd776d5175 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetReimageParameters, VirtualMachineScaleSetsReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,17 +32,17 @@ async function virtualMachineScaleSetReimageMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmScaleSetReimageInput: VirtualMachineScaleSetReimageParameters = { instanceIds: ["aaaaaaaaaa"], - tempDisk: true + tempDisk: true, }; const options: VirtualMachineScaleSetsReimageOptionalParams = { - vmScaleSetReimageInput + vmScaleSetReimageInput, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -63,7 +63,7 @@ async function virtualMachineScaleSetReimageMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginReimageAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts index 310b99a21fb1..f2006349f0ce 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsRestartSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsRestartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,17 +31,17 @@ async function virtualMachineScaleSetRestartMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsRestartOptionalParams = { - vmInstanceIDs + vmInstanceIDs, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRestartAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -62,7 +62,7 @@ async function virtualMachineScaleSetRestartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginRestartAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts index 2250fe5f7be3..f9562b55e0fa 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsSetOrchestrationServiceStateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrchestrationServiceStateInput, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,15 +31,16 @@ async function virtualMachineScaleSetOrchestrationServiceStateMaximumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaa"; const parameters: OrchestrationServiceStateInput = { action: "Resume", - serviceName: "AutomaticRepairs" + serviceName: "AutomaticRepairs", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } @@ -57,15 +58,16 @@ async function virtualMachineScaleSetOrchestrationServiceStateMinimumSetGen() { const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const parameters: OrchestrationServiceStateInput = { action: "Resume", - serviceName: "AutomaticRepairs" + serviceName: "AutomaticRepairs", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( - resourceGroupName, - vmScaleSetName, - parameters - ); + const result = + await client.virtualMachineScaleSets.beginSetOrchestrationServiceStateAndWait( + resourceGroupName, + vmScaleSetName, + parameters, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts index 41f57282a891..6347911d73cc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsStartSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineScaleSetVMInstanceIDs, VirtualMachineScaleSetsStartOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,7 +31,7 @@ async function virtualMachineScaleSetStartMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaa"], }; const options: VirtualMachineScaleSetsStartOptionalParams = { vmInstanceIDs }; const credential = new DefaultAzureCredential(); @@ -39,7 +39,7 @@ async function virtualMachineScaleSetStartMaximumSetGen() { const result = await client.virtualMachineScaleSets.beginStartAndWait( resourceGroupName, vmScaleSetName, - options + options, ); console.log(result); } @@ -60,7 +60,7 @@ async function virtualMachineScaleSetStartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginStartAndWait( resourceGroupName, - vmScaleSetName + vmScaleSetName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts index 310a28f3459c..7178417d9db1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateInstancesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetVMInstanceRequiredIDs, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -30,15 +30,16 @@ async function virtualMachineScaleSetUpdateInstancesMaximumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } @@ -55,15 +56,16 @@ async function virtualMachineScaleSetUpdateInstancesMinimumSetGen() { process.env["COMPUTE_RESOURCE_GROUP"] || "rgcompute"; const vmScaleSetName = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; const vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs = { - instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"] + instanceIds: ["aaaaaaaaaaaaaaaaaaaaaaaaa"], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); - const result = await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( - resourceGroupName, - vmScaleSetName, - vmInstanceIDs - ); + const result = + await client.virtualMachineScaleSets.beginUpdateInstancesAndWait( + resourceGroupName, + vmScaleSetName, + vmInstanceIDs, + ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts index 2456cfe0d345..7b328300bb1e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachineScaleSetsUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineScaleSetUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,18 +35,17 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { doNotRunExtensionsOnOverprovisionedVMs: true, identity: { type: "SystemAssigned", - userAssignedIdentities: { key3951: {} } + userAssignedIdentities: { key3951: {} }, }, overprovision: true, plan: { name: "windows2016", product: "windows-data-science-vm", promotionCode: "aaaaaaaaaa", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, proximityPlacementGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, scaleInPolicy: { forceDeletion: true, rules: ["OldestVM"] }, singlePlacementGroup: true, @@ -56,7 +55,7 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { automaticOSUpgradePolicy: { disableAutomaticRollback: true, enableAutomaticOSUpgrade: true, - osRollingUpgradeDeferral: true + osRollingUpgradeDeferral: true, }, mode: "Manual", rollingUpgradePolicy: { @@ -67,8 +66,8 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { maxUnhealthyUpgradedInstancePercent: 98, pauseTimeBetweenBatches: "aaaaaaaaaaaaaaa", prioritizeUnhealthyInstances: true, - rollbackFailedInstancesOnPolicyBreach: true - } + rollbackFailedInstancesOnPolicyBreach: true, + }, }, virtualMachineProfile: { billingProfile: { maxPrice: -1 }, @@ -76,8 +75,8 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionProfile: { extensionsTimeBudget: "PT1H20M", @@ -93,15 +92,14 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { publisher: "{extension-Publisher}", settings: {}, suppressFailures: true, - typeHandlerVersion: "{handler-version}" - } - ] + typeHandlerVersion: "{handler-version}", + }, + ], }, licenseType: "aaaaaaaaaaaa", networkProfile: { healthProbe: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", }, networkApiVersion: "2020-11-01", networkInterfaceConfigurations: [ @@ -117,27 +115,23 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { name: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", applicationGatewayBackendAddressPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], applicationSecurityGroups: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], loadBalancerBackendAddressPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], loadBalancerInboundNatPools: [ { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" - } + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", + }, ], primary: true, privateIPAddressVersion: "IPv4", @@ -145,21 +139,19 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { name: "a", deleteOption: "Delete", dnsSettings: { domainNameLabel: "aaaaaaaaaaaaaaaaaa" }, - idleTimeoutInMinutes: 3 + idleTimeoutInMinutes: 3, }, subnet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/disk123", + }, + }, ], networkSecurityGroup: { - id: - "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot" + id: "subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/snapshots/mySnapshot", }, - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { customData: "aaaaaaaaaaaaaaaaaaaaaaaaaa", @@ -167,7 +159,7 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { disablePasswordAuthentication: true, patchSettings: { assessmentMode: "ImageDefault", - patchMode: "ImageDefault" + patchMode: "ImageDefault", }, provisionVMAgent: true, ssh: { @@ -175,24 +167,23 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, }, secrets: [ { sourceVault: { - id: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}" + id: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", }, vaultCertificates: [ { certificateStore: "aaaaaaaaaaaaaaaaaaaaaaaaa", - certificateUrl: "aaaaaaa" - } - ] - } + certificateUrl: "aaaaaaa", + }, + ], + }, ], windowsConfiguration: { additionalUnattendContent: [ @@ -200,35 +191,35 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { componentName: "Microsoft-Windows-Shell-Setup", content: "aaaaaaaaaaaaaaaaaaaa", passName: "OobeSystem", - settingName: "AutoLogon" - } + settingName: "AutoLogon", + }, ], enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault", automaticByPlatformSettings: { rebootSetting: "Never" }, enableHotpatching: true, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, provisionVMAgent: true, timeZone: "aaaaaaaaaaaaaaaa", winRM: { listeners: [ - { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" } - ] - } - } + { certificateUrl: "aaaaaaaaaaaaaaaaaaaaaa", protocol: "Http" }, + ], + }, + }, }, scheduledEventsProfile: { terminateNotificationProfile: { enable: true, - notBeforeTimeout: "PT10M" - } + notBeforeTimeout: "PT10M", + }, }, securityProfile: { encryptionAtHost: true, securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { dataDisks: [ @@ -242,10 +233,10 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { lun: 26, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - storageAccountType: "Standard_LRS" + storageAccountType: "Standard_LRS", }, - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, ], imageReference: { id: "aaaaaaaaaaaaaaaaaaa", @@ -253,32 +244,31 @@ async function virtualMachineScaleSetUpdateMaximumSetGen() { publisher: "MicrosoftWindowsServer", sharedGalleryImageId: "aaaaaa", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { caching: "ReadWrite", diskSizeGB: 6, image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", }, managedDisk: { diskEncryptionSet: { id: "aaaaaaaaaaaa" }, - storageAccountType: "Standard_LRS" + storageAccountType: "Standard_LRS", }, vhdContainers: ["aa"], - writeAcceleratorEnabled: true - } + writeAcceleratorEnabled: true, + }, }, - userData: "aaaaaaaaaaaaa" - } + userData: "aaaaaaaaaaaaa", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachineScaleSets.beginUpdateAndWait( resourceGroupName, vmScaleSetName, - parameters + parameters, ); console.log(result); } @@ -301,7 +291,7 @@ async function virtualMachineScaleSetUpdateMinimumSetGen() { const result = await client.virtualMachineScaleSets.beginUpdateAndWait( resourceGroupName, vmScaleSetName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts index 4b22c5e47df6..7e144e4ac790 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAssessPatchesSample.ts @@ -30,7 +30,7 @@ async function assessPatchStateOfAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAssessPatchesAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAttachDetachDataDisksSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAttachDetachDataDisksSample.ts index a6ae4d63ca6d..32db8c3aa8d5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAttachDetachDataDisksSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesAttachDetachDataDisksSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AttachDetachDataDisksRequest, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,33 +34,33 @@ async function virtualMachineAttachDetachDataDisksMaximumSetGen() { { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", - lun: 1 + lun: 1, }, { diskId: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_2_disk3_7d5e664bdafa49baa780eb2d128ff38e", - lun: 2 - } + lun: 2, + }, ], dataDisksToDetach: [ { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", }, { detachOption: "ForceDetach", diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_4_disk4_4d4e784bdafa49baa780eb2d256ff41z", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAttachDetachDataDisksAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -81,22 +81,22 @@ async function virtualMachineAttachDetachDataDisksMinimumSetGen() { dataDisksToAttach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_0_disk2_6c4f554bdafa49baa780eb2d128ff39d", + }, ], dataDisksToDetach: [ { diskId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x" - } - ] + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/vmss3176_vmss3176_1_disk1_1a4e784bdafa49baa780eb2d128ff65x", + }, + ], }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginAttachDetachDataDisksAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts index 8a97b3361028..35474c2a77a6 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCaptureSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineCaptureParameters, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -32,14 +32,14 @@ async function virtualMachineCaptureMaximumSetGen() { const parameters: VirtualMachineCaptureParameters = { destinationContainerName: "aaaaaaa", overwriteVhds: true, - vhdPrefix: "aaaaaaaaa" + vhdPrefix: "aaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCaptureAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -59,14 +59,14 @@ async function virtualMachineCaptureMinimumSetGen() { const parameters: VirtualMachineCaptureParameters = { destinationContainerName: "aaaaaaa", overwriteVhds: true, - vhdPrefix: "aaaaaaaaa" + vhdPrefix: "aaaaaaaaa", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCaptureAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts index 8fba6f5bb4de..49972a1a2cdd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesConvertToManagedDisksSample.ts @@ -30,7 +30,7 @@ async function virtualMachineConvertToManagedDisksMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginConvertToManagedDisksAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineConvertToManagedDisksMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginConvertToManagedDisksAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts index 72be2de6d0d5..944af4792dcc 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesCreateOrUpdateSample.ts @@ -32,11 +32,10 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -44,30 +43,30 @@ async function createALinuxVMWithAPatchSettingAssessmentModeOfImageDefault() { computerName: "myVM", linuxConfiguration: { patchSettings: { assessmentMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -90,11 +89,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -105,34 +103,34 @@ async function createALinuxVMWithAPatchSettingPatchModeOfAutomaticByPlatformAndA assessmentMode: "AutomaticByPlatform", automaticByPlatformSettings: { bypassPlatformSafetyChecksOnUserSchedule: true, - rebootSetting: "Never" + rebootSetting: "Never", }, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -155,11 +153,10 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -167,30 +164,30 @@ async function createALinuxVMWithAPatchSettingPatchModeOfImageDefault() { computerName: "myVM", linuxConfiguration: { patchSettings: { patchMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -213,11 +210,10 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -226,32 +222,32 @@ async function createALinuxVMWithAPatchSettingsPatchModeAndAssessmentModeSetToAu linuxConfiguration: { patchSettings: { assessmentMode: "AutomaticByPlatform", - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "UbuntuServer", publisher: "Canonical", sku: "16.04-LTS", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -274,36 +270,35 @@ async function createAVMFromACommunityGalleryImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { communityGalleryImageId: - "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName" + "/CommunityGalleries/galleryPublicName/Images/communityGalleryImageName/Versions/communityGalleryImageVersionName", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -326,36 +321,35 @@ async function createAVMFromASharedGalleryImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { sharedGalleryImageId: - "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName" + "/SharedGalleries/sharedGalleryName/Images/sharedGalleryImageName/Versions/sharedGalleryImageVersionName", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -377,24 +371,23 @@ async function createAVMWithDiskControllerType() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D4_v3" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { diskControllerType: "NVMe", @@ -402,23 +395,23 @@ async function createAVMWithDiskControllerType() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "U29tZSBDdXN0b20gRGF0YQ==" + userData: "U29tZSBDdXN0b20gRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -441,46 +434,45 @@ async function createAVMWithHibernationEnabled() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D2s_v3" }, location: "eastus2euap", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "{vm-name}" + computerName: "{vm-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "vmOSdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -503,16 +495,15 @@ async function createAVMWithProxyAgentSettingsOfEnabledAndMode() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { proxyAgentSettings: { enabled: true, mode: "Enforce" } }, storageProfile: { @@ -520,22 +511,22 @@ async function createAVMWithProxyAgentSettingsOfEnabledAndMode() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -558,42 +549,41 @@ async function createAVMWithUefiSettingsOfSecureBootAndVTpm() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "TrustedLaunch", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "windowsserver-gen2preview-preview", publisher: "MicrosoftWindowsServer", sku: "windows10-tvm", - version: "18363.592.2001092016" + version: "18363.592.2001092016", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -615,47 +605,46 @@ async function createAVMWithUserData() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "{vm-name}" + computerName: "{vm-name}", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "vmOSdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "RXhhbXBsZSBVc2VyRGF0YQ==" + userData: "RXhhbXBsZSBVc2VyRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -677,50 +666,49 @@ async function createAVMWithVMSizeProperties() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D4_v3", - vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 } + vmSizeProperties: { vCPUsAvailable: 1, vCPUsPerCore: 1 }, }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, - userData: "U29tZSBDdXN0b20gRGF0YQ==" + userData: "U29tZSBDdXN0b20gRGF0YQ==", }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -742,51 +730,51 @@ async function createAVMWithEncryptionIdentity() { identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/myIdentity": {} - } + "/subscriptions/{subscriptionId}/resourceGroups/myResourceGroup/providers/MicrosoftManagedIdentity/userAssignedIdentities/myIdentity": + {}, + }, }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { encryptionIdentity: { userAssignedIdentityResourceId: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity" - } + "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myIdentity", + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "StandardSSD_LRS" } - } - } + managedDisk: { storageAccountType: "StandardSSD_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -820,40 +808,40 @@ async function createAVMWithNetworkInterfaceConfiguration() { name: "{publicIP-config-name}", deleteOption: "Detach", publicIPAllocationMethod: "Static", - sku: { name: "Basic", tier: "Global" } - } - } + sku: { name: "Basic", tier: "Global" }, + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -888,43 +876,43 @@ async function createAVMWithNetworkInterfaceConfigurationWithPublicIPAddressDnsS deleteOption: "Detach", dnsSettings: { domainNameLabel: "aaaaa", - domainNameLabelScope: "TenantReuse" + domainNameLabelScope: "TenantReuse", }, publicIPAllocationMethod: "Static", - sku: { name: "Basic", tier: "Global" } - } - } + sku: { name: "Basic", tier: "Global" }, + }, + }, ], - primary: true - } - ] + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -947,27 +935,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -976,22 +963,21 @@ async function createAVMWithSecurityTypeConfidentialVMWithCustomerManagedKeys() managedDisk: { securityProfile: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - securityEncryptionType: "DiskWithVMGuestState" + securityEncryptionType: "DiskWithVMGuestState", }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1014,27 +1000,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithNonPersistedTpmSecurit networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: false, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: false, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2022-datacenter-cvm", publisher: "UbuntuServer", sku: "linux-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -1042,17 +1027,17 @@ async function createAVMWithSecurityTypeConfidentialVMWithNonPersistedTpmSecurit createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "NonPersistedTPM" }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1075,27 +1060,26 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, securityProfile: { securityType: "ConfidentialVM", - uefiSettings: { secureBootEnabled: true, vTpmEnabled: true } + uefiSettings: { secureBootEnabled: true, vTpmEnabled: true }, }, storageProfile: { imageReference: { offer: "2019-datacenter-cvm", publisher: "MicrosoftWindowsServer", sku: "windows-cvm", - version: "17763.2183.2109130127" + version: "17763.2183.2109130127", }, osDisk: { name: "myVMosdisk", @@ -1103,17 +1087,17 @@ async function createAVMWithSecurityTypeConfidentialVMWithPlatformManagedKeys() createOption: "FromImage", managedDisk: { securityProfile: { securityEncryptionType: "DiskWithVMGuestState" }, - storageAccountType: "StandardSSD_LRS" - } - } - } + storageAccountType: "StandardSSD_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1136,11 +1120,10 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1149,30 +1132,30 @@ async function createAWindowsVMWithAPatchSettingAssessmentModeOfImageDefault() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { assessmentMode: "ImageDefault" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1195,11 +1178,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/nsgExistingNic", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1208,30 +1190,30 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByOS() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { patchMode: "AutomaticByOS" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1254,11 +1236,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1270,34 +1251,34 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn assessmentMode: "AutomaticByPlatform", automaticByPlatformSettings: { bypassPlatformSafetyChecksOnUserSchedule: false, - rebootSetting: "Never" + rebootSetting: "Never", }, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1320,11 +1301,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1334,32 +1314,32 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfAutomaticByPlatformAn enableAutomaticUpdates: true, patchSettings: { enableHotpatching: true, - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1382,11 +1362,10 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1395,30 +1374,30 @@ async function createAWindowsVMWithAPatchSettingPatchModeOfManual() { windowsConfiguration: { enableAutomaticUpdates: true, patchSettings: { patchMode: "Manual" }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1441,11 +1420,10 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", @@ -1455,32 +1433,32 @@ async function createAWindowsVMWithPatchSettingsPatchModeAndAssessmentModeSetToA enableAutomaticUpdates: true, patchSettings: { assessmentMode: "AutomaticByPlatform", - patchMode: "AutomaticByPlatform" + patchMode: "AutomaticByPlatform", }, - provisionVMAgent: true - } + provisionVMAgent: true, + }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1503,16 +1481,15 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { osDisk: { @@ -1520,23 +1497,21 @@ async function createACustomImageVMFromAnUnmanagedGeneralizedOSImage() { caching: "ReadWrite", createOption: "FromImage", image: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd" + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/{existing-generalized-os-image-blob-name}.vhd", }, osType: "Windows", vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1559,16 +1534,15 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -1577,43 +1551,40 @@ async function createAPlatformImageVMWithUnmanagedOSAndDataDisks() { diskSizeGB: 1023, lun: 0, vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd" - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk0.vhd", + }, }, { createOption: "Empty", diskSizeGB: 1023, lun: 1, vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd" - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk1.vhd", + }, + }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", vhd: { - uri: - "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd" - } - } - } + uri: "http://{existing-storage-account-name}.blob.core.windows.net/{existing-container-name}/myDisk.vhd", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1636,36 +1607,34 @@ async function createAVMFromACustomImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1688,36 +1657,34 @@ async function createAVMFromAGeneralizedSharedImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1740,31 +1707,29 @@ async function createAVMFromASpecializedSharedImage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, storageProfile: { imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/mySharedGallery/images/mySharedImage", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1787,16 +1752,15 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, platformFaultDomain: 1, storageProfile: { @@ -1804,26 +1768,25 @@ async function createAVMInAVirtualMachineScaleSetWithCustomerAssignedPlatformFau offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, }, virtualMachineScaleSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachineScaleSets/{existing-flex-vmss-name-with-platformFaultDomainCount-greater-than-1}", + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1842,46 +1805,44 @@ async function createAVMInAnAvailabilitySet() { const vmName = "myVM"; const parameters: VirtualMachine = { availabilitySet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/availabilitySets/{existing-availability-set-name}", }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1909,51 +1870,50 @@ async function createAVMWithApplicationProfile() { packageReferenceId: "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdb/resourceGroups/myresourceGroupName2/providers/Microsoft.Compute/galleries/myGallery1/applications/MyApplication1/versions/1.0", tags: "myTag1", - treatFailureAsDeploymentFailure: false + treatFailureAsDeploymentFailure: false, }, { packageReferenceId: - "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1" - } - ] + "/subscriptions/32c17a9e-aa7b-4ba5-a45b-e324116b6fdg/resourceGroups/myresourceGroupName3/providers/Microsoft.Compute/galleries/myGallery2/applications/MyApplication2/versions/1.1", + }, + ], }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "{image_offer}", publisher: "{image_publisher}", sku: "{image_sku}", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -1976,16 +1936,15 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -1996,11 +1955,10 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() lun: 0, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, }, { caching: "ReadWrite", @@ -2009,18 +1967,15 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() lun: 1, managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}", - storageAccountType: "Standard_LRS" - } - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/disks/{existing-managed-disk-name}", + storageAccountType: "Standard_LRS", + }, + }, ], imageReference: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/{existing-custom-image-name}", }, osDisk: { name: "myVMosdisk", @@ -2028,20 +1983,19 @@ async function createAVMWithDiskEncryptionSetResourceIdInTheOSDiskAndDataDisk() createOption: "FromImage", managedDisk: { diskEncryptionSet: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}" + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/diskEncryptionSets/{existing-diskEncryptionSet-name}", }, - storageAccountType: "Standard_LRS" - } - } - } + storageAccountType: "Standard_LRS", + }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2064,21 +2018,20 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, securityProfile: { encryptionAtHost: true }, storageProfile: { @@ -2086,22 +2039,22 @@ async function createAVMWithHostEncryptionUsingEncryptionAtHostProperty() { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2123,50 +2076,49 @@ async function createAVMWithScheduledEventsProfile() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, scheduledEventsProfile: { osImageNotificationProfile: { enable: true, notBeforeTimeout: "PT15M" }, - terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT10M" } + terminateNotificationProfile: { enable: true, notBeforeTimeout: "PT10M" }, }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2189,43 +2141,42 @@ async function createAVMWithAMarketplaceImagePlan() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2247,8 +2198,8 @@ async function createAVMWithAnExtensionsTimeBudget() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, extensionsTimeBudget: "PT30M", hardwareProfile: { vmSize: "Standard_D1_v2" }, @@ -2256,38 +2207,37 @@ async function createAVMWithAnExtensionsTimeBudget() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2309,46 +2259,45 @@ async function createAVMWithBootDiagnostics() { bootDiagnostics: { enabled: true, storageUri: - "http://{existing-storage-account-name}.blob.core.windows.net" - } + "http://{existing-storage-account-name}.blob.core.windows.net", + }, }, hardwareProfile: { vmSize: "Standard_D1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2371,42 +2320,41 @@ async function createAVMWithEmptyDataDisks() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0 }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1 } + { createOption: "Empty", diskSizeGB: 1023, lun: 1 }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2429,44 +2377,43 @@ async function createAVMWithEphemeralOSDiskProvisioningInCacheDiskUsingPlacement networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "CacheDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2489,44 +2436,43 @@ async function createAVMWithEphemeralOSDiskProvisioningInResourceDiskUsingPlacem networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local", placement: "ResourceDisk" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2549,44 +2495,43 @@ async function createAVMWithEphemeralOSDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", diffDiskSettings: { option: "Local" }, - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2610,38 +2555,37 @@ async function createAVMWithManagedBootDiagnostics() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2664,38 +2608,37 @@ async function createAVMWithPasswordAuthentication() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2718,38 +2661,37 @@ async function createAVMWithPremiumStorage() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Premium_LRS" } - } - } + managedDisk: { storageAccountType: "Premium_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2772,11 +2714,10 @@ async function createAVMWithSshAuthentication() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminUsername: "{your-username}", @@ -2788,33 +2729,33 @@ async function createAVMWithSshAuthentication() { { path: "/home/{your-username}/.ssh/authorized_keys", keyData: - "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1" - } - ] - } - } + "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCeClRAk2ipUs/l5voIsDC5q9RI+YSRd1Bvd/O+axgY4WiBzG+4FwJWZm/mLLe5DoOdHQwmU2FrKXZSW4w2sYE70KeWnrFViCOX5MTVvJgPE8ClugNl8RWth/tU849DvM9sT7vFgfVSHcAS2yDRyDlueii+8nF2ym8XWAPltFVCyLHRsyBp5YPqK8JFYIa1eybKsY3hEAxRCA+/7bq8et+Gj3coOsuRmrehav7rE6N12Pb80I6ofa6SM5XNYq4Xk0iYNx7R3kdz0Jj9XgZYWjAHjJmT0gTRoOnt6upOuxK7xI/ykWrllgpXrCPu3Ymz+c+ujaqcxDopnAl2lmf69/J1", + }, + ], + }, + }, }, storageProfile: { imageReference: { offer: "{image_offer}", publisher: "{image_publisher}", sku: "{image_sku}", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -2834,52 +2775,50 @@ async function createOrUpdateAVMWithCapacityReservation() { const parameters: VirtualMachine = { capacityReservation: { capacityReservationGroup: { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}" - } + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/CapacityReservationGroups/{crgName}", + }, }, hardwareProfile: { vmSize: "Standard_DS1_v2" }, location: "westus", networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, plan: { name: "windows2016", product: "windows-data-science-vm", - publisher: "microsoft-ads" + publisher: "microsoft-ads", }, storageProfile: { imageReference: { offer: "windows-data-science-vm", publisher: "microsoft-ads", sku: "windows2016", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadOnly", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginCreateOrUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts index 351b0abf6769..67df8c2cf0bb 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeallocateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesDeallocateOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachineDeallocateMaximumSetGen() { const result = await client.virtualMachines.beginDeallocateAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachineDeallocateMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginDeallocateAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts index 6fd67bd0ee3d..97641d945342 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesDeleteSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesDeleteOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function forceDeleteAVM() { const result = await client.virtualMachines.beginDeleteAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts index feb2d3e10e63..818fb3778160 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGeneralizeSample.ts @@ -30,7 +30,7 @@ async function generalizeAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.generalize( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts index 2e96af10b5e2..186af1f68827 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesGetSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesGetOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function getAVirtualMachine() { const result = await client.virtualMachines.get( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -78,7 +78,7 @@ async function getAVirtualMachineWithDiskControllerTypeProperties() { const result = await client.virtualMachines.get( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts index b1e5e8f75265..49d78acbb25f 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstallPatchesSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineInstallPatchesParameters, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,15 +34,15 @@ async function installPatchStateOfAVirtualMachine() { rebootSetting: "IfRequired", windowsParameters: { classificationsToInclude: ["Critical", "Security"], - maxPatchPublishDate: new Date("2020-11-19T02:36:43.0539904+00:00") - } + maxPatchPublishDate: new Date("2020-11-19T02:36:43.0539904+00:00"), + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginInstallPatchesAndWait( resourceGroupName, vmName, - installPatchesInput + installPatchesInput, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts index 00dfd96b2eac..6df11c00d122 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesInstanceViewSample.ts @@ -30,7 +30,7 @@ async function getVirtualMachineInstanceView() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.instanceView( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function getInstanceViewOfAVirtualMachinePlacedOnADedicatedHostGroupThroug const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.instanceView( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts index a2aceebd09cd..680c7972f3d9 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAllSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesListAllOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts index 29107a55014b..029b1a3fca05 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListAvailableSizesSample.ts @@ -31,7 +31,7 @@ async function listsAllAvailableVirtualMachineSizesToWhichTheSpecifiedVirtualMac const resArray = new Array(); for await (let item of client.virtualMachines.listAvailableSizes( resourceGroupName, - vmName + vmName, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts index 9692a239a9a8..359816f299b8 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesListSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesListOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -35,7 +35,7 @@ async function virtualMachineListMaximumSetGen() { const resArray = new Array(); for await (let item of client.virtualMachines.list( resourceGroupName, - options + options, )) { resArray.push(item); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts index 7ceb8d97164c..91dca7f28ef1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPerformMaintenanceSample.ts @@ -30,7 +30,7 @@ async function virtualMachinePerformMaintenanceMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPerformMaintenanceAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachinePerformMaintenanceMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPerformMaintenanceAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts index 15f84a6d5b82..b955a72f1ca1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesPowerOffSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesPowerOffOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -36,7 +36,7 @@ async function virtualMachinePowerOffMaximumSetGen() { const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -57,7 +57,7 @@ async function virtualMachinePowerOffMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginPowerOffAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts index a067f64f057c..857e7823d8f5 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReapplySample.ts @@ -30,7 +30,7 @@ async function reapplyTheStateOfAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginReapplyAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts index e50756b6cbc3..e9468ef49a5e 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRedeploySample.ts @@ -30,7 +30,7 @@ async function virtualMachineRedeployMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRedeployAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineRedeployMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRedeployAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts index 2c68ff088e8e..a1ec8a6d0ec1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesReimageSample.ts @@ -11,7 +11,7 @@ import { VirtualMachineReimageParameters, VirtualMachinesReimageOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,9 +34,9 @@ async function reimageANonEphemeralVirtualMachine() { exactVersion: "aaaaaa", osProfile: { adminPassword: "{your-password}", - customData: "{your-custom-data}" + customData: "{your-custom-data}", }, - tempDisk: true + tempDisk: true, }; const options: VirtualMachinesReimageOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -44,7 +44,7 @@ async function reimageANonEphemeralVirtualMachine() { const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } @@ -68,7 +68,7 @@ async function reimageAVirtualMachine() { const result = await client.virtualMachines.beginReimageAndWait( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts index cebc0d8be944..7a8e9e6dc08a 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRestartSample.ts @@ -30,7 +30,7 @@ async function virtualMachineRestartMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineRestartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginRestartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts index 873ee356ff5d..a331d5e75b1d 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRetrieveBootDiagnosticsDataSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -31,14 +31,14 @@ async function retrieveBootDiagnosticsDataOfAVirtualMachine() { const vmName = "VMName"; const sasUriExpirationTimeInMinutes = 60; const options: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams = { - sasUriExpirationTimeInMinutes + sasUriExpirationTimeInMinutes, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.retrieveBootDiagnosticsData( resourceGroupName, vmName, - options + options, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts index 0b640f230ac6..049402ca09bd 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesRunCommandSample.ts @@ -33,7 +33,7 @@ async function virtualMachineRunCommand() { const result = await client.virtualMachines.beginRunCommandAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts index cbe6578d22a0..49c46d4ab2f1 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesSimulateEvictionSample.ts @@ -30,7 +30,7 @@ async function simulateEvictionAVirtualMachine() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.simulateEviction( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts index 37d02b450959..b8b337a2cc83 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesStartSample.ts @@ -30,7 +30,7 @@ async function virtualMachineStartMaximumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } @@ -51,7 +51,7 @@ async function virtualMachineStartMinimumSetGen() { const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginStartAndWait( resourceGroupName, - vmName + vmName, ); console.log(result); } diff --git a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts index ce9191b96d39..a82f313c230c 100644 --- a/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts +++ b/sdk/compute/arm-compute/samples/v21/typescript/src/virtualMachinesUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { VirtualMachineUpdate, - ComputeManagementClient + ComputeManagementClient, } from "@azure/arm-compute"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -34,42 +34,46 @@ async function updateAVMByDetachingDataDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ { createOption: "Empty", diskSizeGB: 1023, lun: 0, toBeDetached: true }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false } + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, + }, ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } @@ -91,16 +95,15 @@ async function updateAVMByForceDetachingDataDisk() { networkProfile: { networkInterfaces: [ { - id: - "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", - primary: true - } - ] + id: "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Network/networkInterfaces/{existing-nic-name}", + primary: true, + }, + ], }, osProfile: { adminPassword: "{your-password}", adminUsername: "{your-username}", - computerName: "myVM" + computerName: "myVM", }, storageProfile: { dataDisks: [ @@ -109,30 +112,35 @@ async function updateAVMByForceDetachingDataDisk() { detachOption: "ForceDetach", diskSizeGB: 1023, lun: 0, - toBeDetached: true + toBeDetached: true, + }, + { + createOption: "Empty", + diskSizeGB: 1023, + lun: 1, + toBeDetached: false, }, - { createOption: "Empty", diskSizeGB: 1023, lun: 1, toBeDetached: false } ], imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter", - version: "latest" + version: "latest", }, osDisk: { name: "myVMosdisk", caching: "ReadWrite", createOption: "FromImage", - managedDisk: { storageAccountType: "Standard_LRS" } - } - } + managedDisk: { storageAccountType: "Standard_LRS" }, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new ComputeManagementClient(credential, subscriptionId); const result = await client.virtualMachines.beginUpdateAndWait( resourceGroupName, vmName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/compute/arm-compute/src/computeManagementClient.ts b/sdk/compute/arm-compute/src/computeManagementClient.ts index 56b075ca833e..03f8c3247ec4 100644 --- a/sdk/compute/arm-compute/src/computeManagementClient.ts +++ b/sdk/compute/arm-compute/src/computeManagementClient.ts @@ -58,7 +58,7 @@ import { CloudServiceRolesImpl, CloudServicesImpl, CloudServicesUpdateDomainImpl, - CloudServiceOperatingSystemsImpl + CloudServiceOperatingSystemsImpl, } from "./operations"; import { Operations, @@ -109,7 +109,7 @@ import { CloudServiceRoles, CloudServices, CloudServicesUpdateDomain, - CloudServiceOperatingSystems + CloudServiceOperatingSystems, } from "./operationsInterfaces"; import { ComputeManagementClientOptionalParams } from "./models"; @@ -127,7 +127,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ComputeManagementClientOptionalParams + options?: ComputeManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -142,10 +142,10 @@ export class ComputeManagementClient extends coreClient.ServiceClient { } const defaults: ComputeManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-compute/21.4.1`; + const packageDetails = `azsdk-js-arm-compute/21.5.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -155,20 +155,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -178,7 +179,7 @@ export class ComputeManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -188,9 +189,9 @@ export class ComputeManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -202,24 +203,21 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.usageOperations = new UsageOperationsImpl(this); this.virtualMachineSizes = new VirtualMachineSizesImpl(this); this.virtualMachineScaleSets = new VirtualMachineScaleSetsImpl(this); - this.virtualMachineScaleSetExtensions = new VirtualMachineScaleSetExtensionsImpl( - this - ); - this.virtualMachineScaleSetRollingUpgrades = new VirtualMachineScaleSetRollingUpgradesImpl( - this - ); - this.virtualMachineScaleSetVMExtensions = new VirtualMachineScaleSetVMExtensionsImpl( - this - ); + this.virtualMachineScaleSetExtensions = + new VirtualMachineScaleSetExtensionsImpl(this); + this.virtualMachineScaleSetRollingUpgrades = + new VirtualMachineScaleSetRollingUpgradesImpl(this); + this.virtualMachineScaleSetVMExtensions = + new VirtualMachineScaleSetVMExtensionsImpl(this); this.virtualMachineScaleSetVMs = new VirtualMachineScaleSetVMsImpl(this); this.virtualMachineExtensions = new VirtualMachineExtensionsImpl(this); this.virtualMachines = new VirtualMachinesImpl(this); this.virtualMachineImages = new VirtualMachineImagesImpl(this); this.virtualMachineImagesEdgeZone = new VirtualMachineImagesEdgeZoneImpl( - this + this, ); this.virtualMachineExtensionImages = new VirtualMachineExtensionImagesImpl( - this + this, ); this.availabilitySets = new AvailabilitySetsImpl(this); this.proximityPlacementGroups = new ProximityPlacementGroupsImpl(this); @@ -233,9 +231,8 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.capacityReservations = new CapacityReservationsImpl(this); this.logAnalytics = new LogAnalyticsImpl(this); this.virtualMachineRunCommands = new VirtualMachineRunCommandsImpl(this); - this.virtualMachineScaleSetVMRunCommands = new VirtualMachineScaleSetVMRunCommandsImpl( - this - ); + this.virtualMachineScaleSetVMRunCommands = + new VirtualMachineScaleSetVMRunCommandsImpl(this); this.disks = new DisksImpl(this); this.diskAccesses = new DiskAccessesImpl(this); this.diskEncryptionSets = new DiskEncryptionSetsImpl(this); @@ -254,14 +251,14 @@ export class ComputeManagementClient extends coreClient.ServiceClient { this.communityGalleries = new CommunityGalleriesImpl(this); this.communityGalleryImages = new CommunityGalleryImagesImpl(this); this.communityGalleryImageVersions = new CommunityGalleryImageVersionsImpl( - this + this, ); this.cloudServiceRoleInstances = new CloudServiceRoleInstancesImpl(this); this.cloudServiceRoles = new CloudServiceRolesImpl(this); this.cloudServices = new CloudServicesImpl(this); this.cloudServicesUpdateDomain = new CloudServicesUpdateDomainImpl(this); this.cloudServiceOperatingSystems = new CloudServiceOperatingSystemsImpl( - this + this, ); } diff --git a/sdk/compute/arm-compute/src/lroImpl.ts b/sdk/compute/arm-compute/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/compute/arm-compute/src/lroImpl.ts +++ b/sdk/compute/arm-compute/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/compute/arm-compute/src/models/index.ts b/sdk/compute/arm-compute/src/models/index.ts index fc8e05970052..6f73319b997f 100644 --- a/sdk/compute/arm-compute/src/models/index.ts +++ b/sdk/compute/arm-compute/src/models/index.ts @@ -3855,7 +3855,7 @@ export interface GalleryImageVersionStorageProfile { /** The gallery artifact version source. */ export interface GalleryArtifactVersionSource { - /** The id of the gallery artifact version source. Can specify a disk uri, snapshot uri, user image or storage account resource. */ + /** The id of the gallery artifact version source. */ id?: string; } @@ -6668,6 +6668,8 @@ export interface GalleryArtifactVersionFullSource extends GalleryArtifactVersionSource { /** The resource Id of the source Community Gallery Image. Only required when using Community Gallery Image as a source. */ communityGalleryImageId?: string; + /** The resource Id of the source virtual machine. Only required when capturing a virtual machine to source this Gallery Image Version. */ + virtualMachineId?: string; } /** The source for the disk image. */ @@ -6897,7 +6899,7 @@ export enum KnownRepairAction { /** Restart */ Restart = "Restart", /** Reimage */ - Reimage = "Reimage" + Reimage = "Reimage", } /** @@ -6918,7 +6920,7 @@ export enum KnownWindowsVMGuestPatchMode { /** AutomaticByOS */ AutomaticByOS = "AutomaticByOS", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6937,7 +6939,7 @@ export enum KnownWindowsPatchAssessmentMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6959,7 +6961,7 @@ export enum KnownWindowsVMGuestPatchAutomaticByPlatformRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -6979,7 +6981,7 @@ export enum KnownLinuxVMGuestPatchMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -6997,7 +6999,7 @@ export enum KnownLinuxPatchAssessmentMode { /** ImageDefault */ ImageDefault = "ImageDefault", /** AutomaticByPlatform */ - AutomaticByPlatform = "AutomaticByPlatform" + AutomaticByPlatform = "AutomaticByPlatform", } /** @@ -7019,7 +7021,7 @@ export enum KnownLinuxVMGuestPatchAutomaticByPlatformRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -7041,7 +7043,7 @@ export enum KnownDiskCreateOptionTypes { /** Empty */ Empty = "Empty", /** Attach */ - Attach = "Attach" + Attach = "Attach", } /** @@ -7058,7 +7060,7 @@ export type DiskCreateOptionTypes = string; /** Known values of {@link DiffDiskOptions} that the service accepts. */ export enum KnownDiffDiskOptions { /** Local */ - Local = "Local" + Local = "Local", } /** @@ -7075,7 +7077,7 @@ export enum KnownDiffDiskPlacement { /** CacheDisk */ CacheDisk = "CacheDisk", /** ResourceDisk */ - ResourceDisk = "ResourceDisk" + ResourceDisk = "ResourceDisk", } /** @@ -7103,7 +7105,7 @@ export enum KnownStorageAccountTypes { /** StandardSSDZRS */ StandardSSDZRS = "StandardSSD_ZRS", /** PremiumV2LRS */ - PremiumV2LRS = "PremiumV2_LRS" + PremiumV2LRS = "PremiumV2_LRS", } /** @@ -7128,7 +7130,7 @@ export enum KnownSecurityEncryptionTypes { /** DiskWithVMGuestState */ DiskWithVMGuestState = "DiskWithVMGuestState", /** NonPersistedTPM */ - NonPersistedTPM = "NonPersistedTPM" + NonPersistedTPM = "NonPersistedTPM", } /** @@ -7147,7 +7149,7 @@ export enum KnownDiskDeleteOptionTypes { /** Delete */ Delete = "Delete", /** Detach */ - Detach = "Detach" + Detach = "Detach", } /** @@ -7169,7 +7171,7 @@ export enum KnownDomainNameLabelScopeTypes { /** ResourceGroupReuse */ ResourceGroupReuse = "ResourceGroupReuse", /** NoReuse */ - NoReuse = "NoReuse" + NoReuse = "NoReuse", } /** @@ -7189,7 +7191,7 @@ export enum KnownIPVersion { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -7207,7 +7209,7 @@ export enum KnownDeleteOptions { /** Delete */ Delete = "Delete", /** Detach */ - Detach = "Detach" + Detach = "Detach", } /** @@ -7225,7 +7227,7 @@ export enum KnownPublicIPAddressSkuName { /** Basic */ Basic = "Basic", /** Standard */ - Standard = "Standard" + Standard = "Standard", } /** @@ -7243,7 +7245,7 @@ export enum KnownPublicIPAddressSkuTier { /** Regional */ Regional = "Regional", /** Global */ - Global = "Global" + Global = "Global", } /** @@ -7263,7 +7265,7 @@ export enum KnownNetworkInterfaceAuxiliaryMode { /** AcceleratedConnections */ AcceleratedConnections = "AcceleratedConnections", /** Floating */ - Floating = "Floating" + Floating = "Floating", } /** @@ -7288,7 +7290,7 @@ export enum KnownNetworkInterfaceAuxiliarySku { /** A4 */ A4 = "A4", /** A8 */ - A8 = "A8" + A8 = "A8", } /** @@ -7307,7 +7309,7 @@ export type NetworkInterfaceAuxiliarySku = string; /** Known values of {@link NetworkApiVersion} that the service accepts. */ export enum KnownNetworkApiVersion { /** TwoThousandTwenty1101 */ - TwoThousandTwenty1101 = "2020-11-01" + TwoThousandTwenty1101 = "2020-11-01", } /** @@ -7324,7 +7326,7 @@ export enum KnownSecurityTypes { /** TrustedLaunch */ TrustedLaunch = "TrustedLaunch", /** ConfidentialVM */ - ConfidentialVM = "ConfidentialVM" + ConfidentialVM = "ConfidentialVM", } /** @@ -7342,7 +7344,7 @@ export enum KnownMode { /** Audit */ Audit = "Audit", /** Enforce */ - Enforce = "Enforce" + Enforce = "Enforce", } /** @@ -7362,7 +7364,7 @@ export enum KnownVirtualMachinePriorityTypes { /** Low */ Low = "Low", /** Spot */ - Spot = "Spot" + Spot = "Spot", } /** @@ -7381,7 +7383,7 @@ export enum KnownVirtualMachineEvictionPolicyTypes { /** Deallocate */ Deallocate = "Deallocate", /** Delete */ - Delete = "Delete" + Delete = "Delete", } /** @@ -7401,7 +7403,7 @@ export enum KnownVirtualMachineScaleSetScaleInRules { /** OldestVM */ OldestVM = "OldestVM", /** NewestVM */ - NewestVM = "NewestVM" + NewestVM = "NewestVM", } /** @@ -7420,7 +7422,7 @@ export enum KnownOrchestrationMode { /** Uniform */ Uniform = "Uniform", /** Flexible */ - Flexible = "Flexible" + Flexible = "Flexible", } /** @@ -7436,7 +7438,7 @@ export type OrchestrationMode = string; /** Known values of {@link ExtendedLocationTypes} that the service accepts. */ export enum KnownExtendedLocationTypes { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -7451,7 +7453,7 @@ export type ExtendedLocationTypes = string; /** Known values of {@link ExpandTypesForGetVMScaleSets} that the service accepts. */ export enum KnownExpandTypesForGetVMScaleSets { /** UserData */ - UserData = "userData" + UserData = "userData", } /** @@ -7468,7 +7470,7 @@ export enum KnownOrchestrationServiceNames { /** AutomaticRepairs */ AutomaticRepairs = "AutomaticRepairs", /** DummyOrchestrationServiceName */ - DummyOrchestrationServiceName = "DummyOrchestrationServiceName" + DummyOrchestrationServiceName = "DummyOrchestrationServiceName", } /** @@ -7488,7 +7490,7 @@ export enum KnownOrchestrationServiceState { /** Running */ Running = "Running", /** Suspended */ - Suspended = "Suspended" + Suspended = "Suspended", } /** @@ -7507,7 +7509,7 @@ export enum KnownOrchestrationServiceStateAction { /** Resume */ Resume = "Resume", /** Suspend */ - Suspend = "Suspend" + Suspend = "Suspend", } /** @@ -7525,7 +7527,7 @@ export enum KnownHyperVGeneration { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -7871,7 +7873,7 @@ export enum KnownVirtualMachineSizeTypes { /** StandardNV12 */ StandardNV12 = "Standard_NV12", /** StandardNV24 */ - StandardNV24 = "Standard_NV24" + StandardNV24 = "Standard_NV24", } /** @@ -8051,7 +8053,7 @@ export type VirtualMachineSizeTypes = string; /** Known values of {@link DiskDetachOptionTypes} that the service accepts. */ export enum KnownDiskDetachOptionTypes { /** ForceDetach */ - ForceDetach = "ForceDetach" + ForceDetach = "ForceDetach", } /** @@ -8068,7 +8070,7 @@ export enum KnownDiskControllerTypes { /** Scsi */ Scsi = "SCSI", /** NVMe */ - NVMe = "NVMe" + NVMe = "NVMe", } /** @@ -8086,7 +8088,7 @@ export enum KnownIPVersions { /** IPv4 */ IPv4 = "IPv4", /** IPv6 */ - IPv6 = "IPv6" + IPv6 = "IPv6", } /** @@ -8104,7 +8106,7 @@ export enum KnownPublicIPAllocationMethod { /** Dynamic */ Dynamic = "Dynamic", /** Static */ - Static = "Static" + Static = "Static", } /** @@ -8122,7 +8124,7 @@ export enum KnownHyperVGenerationType { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -8146,7 +8148,7 @@ export enum KnownPatchOperationStatus { /** Succeeded */ Succeeded = "Succeeded", /** CompletedWithWarnings */ - CompletedWithWarnings = "CompletedWithWarnings" + CompletedWithWarnings = "CompletedWithWarnings", } /** @@ -8165,7 +8167,7 @@ export type PatchOperationStatus = string; /** Known values of {@link ExpandTypeForListVMs} that the service accepts. */ export enum KnownExpandTypeForListVMs { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8180,7 +8182,7 @@ export type ExpandTypeForListVMs = string; /** Known values of {@link ExpandTypesForListVMs} that the service accepts. */ export enum KnownExpandTypesForListVMs { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8201,7 +8203,7 @@ export enum KnownVMGuestPatchRebootBehavior { /** AlwaysRequiresReboot */ AlwaysRequiresReboot = "AlwaysRequiresReboot", /** CanRequestReboot */ - CanRequestReboot = "CanRequestReboot" + CanRequestReboot = "CanRequestReboot", } /** @@ -8221,7 +8223,7 @@ export enum KnownPatchAssessmentState { /** Unknown */ Unknown = "Unknown", /** Available */ - Available = "Available" + Available = "Available", } /** @@ -8241,7 +8243,7 @@ export enum KnownVMGuestPatchRebootSetting { /** Never */ Never = "Never", /** Always */ - Always = "Always" + Always = "Always", } /** @@ -8272,7 +8274,7 @@ export enum KnownVMGuestPatchClassificationWindows { /** Tools */ Tools = "Tools", /** Updates */ - Updates = "Updates" + Updates = "Updates", } /** @@ -8298,7 +8300,7 @@ export enum KnownVMGuestPatchClassificationLinux { /** Security */ Security = "Security", /** Other */ - Other = "Other" + Other = "Other", } /** @@ -8325,7 +8327,7 @@ export enum KnownVMGuestPatchRebootStatus { /** Failed */ Failed = "Failed", /** Completed */ - Completed = "Completed" + Completed = "Completed", } /** @@ -8355,7 +8357,7 @@ export enum KnownPatchInstallationState { /** NotSelected */ NotSelected = "NotSelected", /** Pending */ - Pending = "Pending" + Pending = "Pending", } /** @@ -8377,7 +8379,7 @@ export enum KnownHyperVGenerationTypes { /** V1 */ V1 = "V1", /** V2 */ - V2 = "V2" + V2 = "V2", } /** @@ -8395,7 +8397,7 @@ export enum KnownVmDiskTypes { /** None */ None = "None", /** Unmanaged */ - Unmanaged = "Unmanaged" + Unmanaged = "Unmanaged", } /** @@ -8413,7 +8415,7 @@ export enum KnownArchitectureTypes { /** X64 */ X64 = "x64", /** Arm64 */ - Arm64 = "Arm64" + Arm64 = "Arm64", } /** @@ -8433,7 +8435,7 @@ export enum KnownImageState { /** ScheduledForDeprecation */ ScheduledForDeprecation = "ScheduledForDeprecation", /** Deprecated */ - Deprecated = "Deprecated" + Deprecated = "Deprecated", } /** @@ -8454,7 +8456,7 @@ export enum KnownAlternativeType { /** Offer */ Offer = "Offer", /** Plan */ - Plan = "Plan" + Plan = "Plan", } /** @@ -8473,7 +8475,7 @@ export enum KnownProximityPlacementGroupType { /** Standard */ Standard = "Standard", /** Ultra */ - Ultra = "Ultra" + Ultra = "Ultra", } /** @@ -8491,7 +8493,7 @@ export enum KnownSshEncryptionTypes { /** RSA */ RSA = "RSA", /** Ed25519 */ - Ed25519 = "Ed25519" + Ed25519 = "Ed25519", } /** @@ -8509,7 +8511,7 @@ export enum KnownOperatingSystemType { /** Windows */ Windows = "Windows", /** Linux */ - Linux = "Linux" + Linux = "Linux", } /** @@ -8529,7 +8531,7 @@ export enum KnownRestorePointEncryptionType { /** Disk Restore Point is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */ EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", /** Disk Restore Point is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ - EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys" + EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", } /** @@ -8550,7 +8552,7 @@ export enum KnownConsistencyModeTypes { /** FileSystemConsistent */ FileSystemConsistent = "FileSystemConsistent", /** ApplicationConsistent */ - ApplicationConsistent = "ApplicationConsistent" + ApplicationConsistent = "ApplicationConsistent", } /** @@ -8567,7 +8569,7 @@ export type ConsistencyModeTypes = string; /** Known values of {@link RestorePointCollectionExpandOptions} that the service accepts. */ export enum KnownRestorePointCollectionExpandOptions { /** RestorePoints */ - RestorePoints = "restorePoints" + RestorePoints = "restorePoints", } /** @@ -8582,7 +8584,7 @@ export type RestorePointCollectionExpandOptions = string; /** Known values of {@link RestorePointExpandOptions} that the service accepts. */ export enum KnownRestorePointExpandOptions { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8597,7 +8599,7 @@ export type RestorePointExpandOptions = string; /** Known values of {@link CapacityReservationGroupInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationGroupInstanceViewTypes { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8614,7 +8616,7 @@ export enum KnownExpandTypesForGetCapacityReservationGroups { /** VirtualMachineScaleSetVMsRef */ VirtualMachineScaleSetVMsRef = "virtualMachineScaleSetVMs/$ref", /** VirtualMachinesRef */ - VirtualMachinesRef = "virtualMachines/$ref" + VirtualMachinesRef = "virtualMachines/$ref", } /** @@ -8630,7 +8632,7 @@ export type ExpandTypesForGetCapacityReservationGroups = string; /** Known values of {@link CapacityReservationInstanceViewTypes} that the service accepts. */ export enum KnownCapacityReservationInstanceViewTypes { /** InstanceView */ - InstanceView = "instanceView" + InstanceView = "instanceView", } /** @@ -8657,7 +8659,7 @@ export enum KnownExecutionState { /** TimedOut */ TimedOut = "TimedOut", /** Canceled */ - Canceled = "Canceled" + Canceled = "Canceled", } /** @@ -8690,7 +8692,7 @@ export enum KnownDiskStorageAccountTypes { /** Standard SSD zone redundant storage. Best for web servers, lightly used enterprise applications and dev\/test that need storage resiliency against zone failures. */ StandardSSDZRS = "StandardSSD_ZRS", /** Premium SSD v2 locally redundant storage. Best for production and performance-sensitive workloads that consistently require low latency and high IOPS and throughput. */ - PremiumV2LRS = "PremiumV2_LRS" + PremiumV2LRS = "PremiumV2_LRS", } /** @@ -8713,7 +8715,7 @@ export enum KnownArchitecture { /** X64 */ X64 = "x64", /** Arm64 */ - Arm64 = "Arm64" + Arm64 = "Arm64", } /** @@ -8749,7 +8751,7 @@ export enum KnownDiskCreateOption { /** Similar to Upload create option. Create a new Trusted Launch VM or Confidential VM supported disk and upload using write token in both disk and VM guest state */ UploadPreparedSecure = "UploadPreparedSecure", /** Create a new disk by exporting from elastic san volume snapshot */ - CopyFromSanSnapshot = "CopyFromSanSnapshot" + CopyFromSanSnapshot = "CopyFromSanSnapshot", } /** @@ -8776,7 +8778,7 @@ export enum KnownProvisionedBandwidthCopyOption { /** None */ None = "None", /** Enhanced */ - Enhanced = "Enhanced" + Enhanced = "Enhanced", } /** @@ -8806,7 +8808,7 @@ export enum KnownDiskState { /** A disk is ready to be created by upload by requesting a write token. */ ReadyToUpload = "ReadyToUpload", /** A disk is created for upload and a write token has been issued for uploading to it. */ - ActiveUpload = "ActiveUpload" + ActiveUpload = "ActiveUpload", } /** @@ -8832,7 +8834,7 @@ export enum KnownEncryptionType { /** Disk is encrypted at rest with Customer managed key that can be changed and revoked by a customer. */ EncryptionAtRestWithCustomerKey = "EncryptionAtRestWithCustomerKey", /** Disk is encrypted at rest with 2 layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ - EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys" + EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", } /** @@ -8853,7 +8855,7 @@ export enum KnownNetworkAccessPolicy { /** The disk can be exported or uploaded to using a DiskAccess resource's private endpoints. */ AllowPrivate = "AllowPrivate", /** The disk cannot be exported. */ - DenyAll = "DenyAll" + DenyAll = "DenyAll", } /** @@ -8878,7 +8880,7 @@ export enum KnownDiskSecurityTypes { /** Indicates Confidential VM disk with both OS disk and VM guest state encrypted with a customer managed key */ ConfidentialVMDiskEncryptedWithCustomerKey = "ConfidentialVM_DiskEncryptedWithCustomerKey", /** Indicates Confidential VM disk with a ephemeral vTPM. vTPM state is not persisted across VM reboots. */ - ConfidentialVMNonPersistedTPM = "ConfidentialVM_NonPersistedTPM" + ConfidentialVMNonPersistedTPM = "ConfidentialVM_NonPersistedTPM", } /** @@ -8899,7 +8901,7 @@ export enum KnownPublicNetworkAccess { /** You can generate a SAS URI to access the underlying data of the disk publicly on the internet when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. */ Enabled = "Enabled", /** You cannot access the underlying data of the disk publicly on the internet even when NetworkAccessPolicy is set to AllowAll. You can access the data via the SAS URI only from your trusted Azure VNET when NetworkAccessPolicy is set to AllowPrivate. */ - Disabled = "Disabled" + Disabled = "Disabled", } /** @@ -8917,7 +8919,7 @@ export enum KnownDataAccessAuthMode { /** When export\/upload URL is used, the system checks if the user has an identity in Azure Active Directory and has necessary permissions to export\/upload the data. Please refer to aka.ms\/DisksAzureADAuth. */ AzureActiveDirectory = "AzureActiveDirectory", /** No additional authentication would be performed when accessing export\/upload URL. */ - None = "None" + None = "None", } /** @@ -8937,7 +8939,7 @@ export enum KnownAccessLevel { /** Read */ Read = "Read", /** Write */ - Write = "Write" + Write = "Write", } /** @@ -8956,7 +8958,7 @@ export enum KnownFileFormat { /** A VHD file is a disk image file in the Virtual Hard Disk file format. */ VHD = "VHD", /** A VHDX file is a disk image file in the Virtual Hard Disk v2 file format. */ - Vhdx = "VHDX" + Vhdx = "VHDX", } /** @@ -8976,7 +8978,7 @@ export enum KnownPrivateEndpointServiceConnectionStatus { /** Approved */ Approved = "Approved", /** Rejected */ - Rejected = "Rejected" + Rejected = "Rejected", } /** @@ -8999,7 +9001,7 @@ export enum KnownPrivateEndpointConnectionProvisioningState { /** Deleting */ Deleting = "Deleting", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9023,7 +9025,7 @@ export enum KnownDiskEncryptionSetIdentityType { /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", /** None */ - None = "None" + None = "None", } /** @@ -9045,7 +9047,7 @@ export enum KnownDiskEncryptionSetType { /** Resource using diskEncryptionSet would be encrypted at rest with two layers of encryption. One of the keys is Customer managed and the other key is Platform managed. */ EncryptionAtRestWithPlatformAndCustomerKeys = "EncryptionAtRestWithPlatformAndCustomerKeys", /** Confidential VM supported disk and VM guest state would be encrypted with customer managed key. */ - ConfidentialVmEncryptedWithCustomerKey = "ConfidentialVmEncryptedWithCustomerKey" + ConfidentialVmEncryptedWithCustomerKey = "ConfidentialVmEncryptedWithCustomerKey", } /** @@ -9066,7 +9068,7 @@ export enum KnownSnapshotStorageAccountTypes { /** Premium SSD locally redundant storage */ PremiumLRS = "Premium_LRS", /** Standard zone redundant storage */ - StandardZRS = "Standard_ZRS" + StandardZRS = "Standard_ZRS", } /** @@ -9083,7 +9085,7 @@ export type SnapshotStorageAccountTypes = string; /** Known values of {@link CopyCompletionErrorReason} that the service accepts. */ export enum KnownCopyCompletionErrorReason { /** Indicates that the source snapshot was deleted while the background copy of the resource created via CopyStart operation was in progress. */ - CopySourceNotFound = "CopySourceNotFound" + CopySourceNotFound = "CopySourceNotFound", } /** @@ -9098,7 +9100,7 @@ export type CopyCompletionErrorReason = string; /** Known values of {@link ExtendedLocationType} that the service accepts. */ export enum KnownExtendedLocationType { /** EdgeZone */ - EdgeZone = "EdgeZone" + EdgeZone = "EdgeZone", } /** @@ -9123,7 +9125,7 @@ export enum KnownGalleryProvisioningState { /** Deleting */ Deleting = "Deleting", /** Migrating */ - Migrating = "Migrating" + Migrating = "Migrating", } /** @@ -9147,7 +9149,7 @@ export enum KnownGallerySharingPermissionTypes { /** Groups */ Groups = "Groups", /** Community */ - Community = "Community" + Community = "Community", } /** @@ -9166,7 +9168,7 @@ export enum KnownSharingProfileGroupTypes { /** Subscriptions */ Subscriptions = "Subscriptions", /** AADTenants */ - AADTenants = "AADTenants" + AADTenants = "AADTenants", } /** @@ -9188,7 +9190,7 @@ export enum KnownSharingState { /** Failed */ Failed = "Failed", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -9206,7 +9208,7 @@ export type SharingState = string; /** Known values of {@link SelectPermissions} that the service accepts. */ export enum KnownSelectPermissions { /** Permissions */ - Permissions = "Permissions" + Permissions = "Permissions", } /** @@ -9221,7 +9223,7 @@ export type SelectPermissions = string; /** Known values of {@link GalleryExpandParams} that the service accepts. */ export enum KnownGalleryExpandParams { /** SharingProfileGroups */ - SharingProfileGroups = "SharingProfile/Groups" + SharingProfileGroups = "SharingProfile/Groups", } /** @@ -9240,7 +9242,7 @@ export enum KnownStorageAccountType { /** StandardZRS */ StandardZRS = "Standard_ZRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", } /** @@ -9263,7 +9265,7 @@ export enum KnownConfidentialVMEncryptionType { /** EncryptedWithCmk */ EncryptedWithCmk = "EncryptedWithCmk", /** NonPersistedTPM */ - NonPersistedTPM = "NonPersistedTPM" + NonPersistedTPM = "NonPersistedTPM", } /** @@ -9283,7 +9285,7 @@ export enum KnownReplicationMode { /** Full */ Full = "Full", /** Shallow */ - Shallow = "Shallow" + Shallow = "Shallow", } /** @@ -9301,7 +9303,7 @@ export enum KnownGalleryExtendedLocationType { /** EdgeZone */ EdgeZone = "EdgeZone", /** Unknown */ - Unknown = "Unknown" + Unknown = "Unknown", } /** @@ -9323,7 +9325,7 @@ export enum KnownEdgeZoneStorageAccountType { /** StandardSSDLRS */ StandardSSDLRS = "StandardSSD_LRS", /** PremiumLRS */ - PremiumLRS = "Premium_LRS" + PremiumLRS = "Premium_LRS", } /** @@ -9347,7 +9349,7 @@ export enum KnownPolicyViolationCategory { /** CopyrightValidation */ CopyrightValidation = "CopyrightValidation", /** IpTheft */ - IpTheft = "IpTheft" + IpTheft = "IpTheft", } /** @@ -9371,7 +9373,7 @@ export enum KnownAggregatedReplicationState { /** Completed */ Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9395,7 +9397,7 @@ export enum KnownReplicationState { /** Completed */ Completed = "Completed", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -9417,7 +9419,7 @@ export enum KnownUefiSignatureTemplateName { /** MicrosoftUefiCertificateAuthorityTemplate */ MicrosoftUefiCertificateAuthorityTemplate = "MicrosoftUefiCertificateAuthorityTemplate", /** MicrosoftWindowsTemplate */ - MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate" + MicrosoftWindowsTemplate = "MicrosoftWindowsTemplate", } /** @@ -9436,7 +9438,7 @@ export enum KnownUefiKeyType { /** Sha256 */ Sha256 = "sha256", /** X509 */ - X509 = "x509" + X509 = "x509", } /** @@ -9454,7 +9456,7 @@ export enum KnownReplicationStatusTypes { /** ReplicationStatus */ ReplicationStatus = "ReplicationStatus", /** UefiSettings */ - UefiSettings = "UefiSettings" + UefiSettings = "UefiSettings", } /** @@ -9476,7 +9478,7 @@ export enum KnownSharingUpdateOperationTypes { /** Reset */ Reset = "Reset", /** EnableCommunity */ - EnableCommunity = "EnableCommunity" + EnableCommunity = "EnableCommunity", } /** @@ -9494,7 +9496,7 @@ export type SharingUpdateOperationTypes = string; /** Known values of {@link SharedToValues} that the service accepts. */ export enum KnownSharedToValues { /** Tenant */ - Tenant = "tenant" + Tenant = "tenant", } /** @@ -9513,7 +9515,7 @@ export enum KnownSharedGalleryHostCaching { /** ReadOnly */ ReadOnly = "ReadOnly", /** ReadWrite */ - ReadWrite = "ReadWrite" + ReadWrite = "ReadWrite", } /** @@ -9534,7 +9536,7 @@ export enum KnownCloudServiceUpgradeMode { /** Manual */ Manual = "Manual", /** Simultaneous */ - Simultaneous = "Simultaneous" + Simultaneous = "Simultaneous", } /** @@ -9553,7 +9555,7 @@ export enum KnownCloudServiceSlotType { /** Production */ Production = "Production", /** Staging */ - Staging = "Staging" + Staging = "Staging", } /** @@ -9571,7 +9573,7 @@ export enum KnownAvailabilitySetSkuTypes { /** Classic */ Classic = "Classic", /** Aligned */ - Aligned = "Aligned" + Aligned = "Aligned", } /** @@ -9688,7 +9690,8 @@ export interface VirtualMachineScaleSetsListByLocationOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocation operation. */ -export type VirtualMachineScaleSetsListByLocationResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListByLocationResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams @@ -9704,7 +9707,8 @@ export interface VirtualMachineScaleSetsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetsCreateOrUpdateResponse = VirtualMachineScaleSet; +export type VirtualMachineScaleSetsCreateOrUpdateResponse = + VirtualMachineScaleSet; /** Optional parameters. */ export interface VirtualMachineScaleSetsUpdateOptionalParams @@ -9772,35 +9776,40 @@ export interface VirtualMachineScaleSetsGetInstanceViewOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ -export type VirtualMachineScaleSetsGetInstanceViewResponse = VirtualMachineScaleSetInstanceView; +export type VirtualMachineScaleSetsGetInstanceViewResponse = + VirtualMachineScaleSetInstanceView; /** Optional parameters. */ export interface VirtualMachineScaleSetsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetsListResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type VirtualMachineScaleSetsListAllResponse = VirtualMachineScaleSetListWithLinkResult; +export type VirtualMachineScaleSetsListAllResponse = + VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListSkusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ -export type VirtualMachineScaleSetsListSkusResponse = VirtualMachineScaleSetListSkusResult; +export type VirtualMachineScaleSetsListSkusResponse = + VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistory operation. */ -export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = VirtualMachineScaleSetListOSUpgradeHistory; +export type VirtualMachineScaleSetsGetOSUpgradeHistoryResponse = + VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ export interface VirtualMachineScaleSetsPowerOffOptionalParams @@ -9911,7 +9920,8 @@ export interface VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams } /** Contains response data for the approveRollingUpgrade operation. */ -export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = VirtualMachineScaleSetsApproveRollingUpgradeHeaders; +export type VirtualMachineScaleSetsApproveRollingUpgradeResponse = + VirtualMachineScaleSetsApproveRollingUpgradeHeaders; /** Optional parameters. */ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams @@ -9923,7 +9933,8 @@ export interface VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdate } /** Contains response data for the forceRecoveryServiceFabricPlatformUpdateDomainWalk operation. */ -export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = RecoveryWalkResponse; +export type VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse = + RecoveryWalkResponse; /** Optional parameters. */ export interface VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams @@ -9943,35 +9954,40 @@ export interface VirtualMachineScaleSetsListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type VirtualMachineScaleSetsListByLocationNextResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListByLocationNextResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetsListNextResponse = VirtualMachineScaleSetListResult; +export type VirtualMachineScaleSetsListNextResponse = + VirtualMachineScaleSetListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListAllNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ -export type VirtualMachineScaleSetsListAllNextResponse = VirtualMachineScaleSetListWithLinkResult; +export type VirtualMachineScaleSetsListAllNextResponse = + VirtualMachineScaleSetListWithLinkResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsListSkusNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkusNext operation. */ -export type VirtualMachineScaleSetsListSkusNextResponse = VirtualMachineScaleSetListSkusResult; +export type VirtualMachineScaleSetsListSkusNextResponse = + VirtualMachineScaleSetListSkusResult; /** Optional parameters. */ export interface VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getOSUpgradeHistoryNext operation. */ -export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = VirtualMachineScaleSetListOSUpgradeHistory; +export type VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse = + VirtualMachineScaleSetListOSUpgradeHistory; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams @@ -9983,7 +9999,8 @@ export interface VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsCreateOrUpdateResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams @@ -9995,7 +10012,8 @@ export interface VirtualMachineScaleSetExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetExtensionsUpdateResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsUpdateResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsDeleteOptionalParams @@ -10014,21 +10032,24 @@ export interface VirtualMachineScaleSetExtensionsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetExtensionsGetResponse = VirtualMachineScaleSetExtension; +export type VirtualMachineScaleSetExtensionsGetResponse = + VirtualMachineScaleSetExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetExtensionsListResponse = VirtualMachineScaleSetExtensionListResult; +export type VirtualMachineScaleSetExtensionsListResponse = + VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetExtensionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetExtensionsListNextResponse = VirtualMachineScaleSetExtensionListResult; +export type VirtualMachineScaleSetExtensionsListNextResponse = + VirtualMachineScaleSetExtensionListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetRollingUpgradesCancelOptionalParams @@ -10062,7 +10083,8 @@ export interface VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getLatest operation. */ -export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = RollingUpgradeStatusInfo; +export type VirtualMachineScaleSetRollingUpgradesGetLatestResponse = + RollingUpgradeStatusInfo; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams @@ -10074,7 +10096,8 @@ export interface VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams @@ -10086,7 +10109,8 @@ export interface VirtualMachineScaleSetVMExtensionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMExtensionsUpdateResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsUpdateResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsDeleteOptionalParams @@ -10105,7 +10129,8 @@ export interface VirtualMachineScaleSetVMExtensionsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMExtensionsGetResponse = VirtualMachineScaleSetVMExtension; +export type VirtualMachineScaleSetVMExtensionsGetResponse = + VirtualMachineScaleSetVMExtension; /** Optional parameters. */ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams @@ -10115,7 +10140,8 @@ export interface VirtualMachineScaleSetVMExtensionsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMExtensionsListResponse = VirtualMachineScaleSetVMExtensionsListResult; +export type VirtualMachineScaleSetVMExtensionsListResponse = + VirtualMachineScaleSetVMExtensionsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsReimageOptionalParams @@ -10147,7 +10173,8 @@ export interface VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams } /** Contains response data for the approveRollingUpgrade operation. */ -export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; +export type VirtualMachineScaleSetVMsApproveRollingUpgradeResponse = + VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsDeallocateOptionalParams @@ -10200,7 +10227,8 @@ export interface VirtualMachineScaleSetVMsGetInstanceViewOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getInstanceView operation. */ -export type VirtualMachineScaleSetVMsGetInstanceViewResponse = VirtualMachineScaleSetVMInstanceView; +export type VirtualMachineScaleSetVMsGetInstanceViewResponse = + VirtualMachineScaleSetVMInstanceView; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsListOptionalParams @@ -10214,7 +10242,8 @@ export interface VirtualMachineScaleSetVMsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMsListResponse = VirtualMachineScaleSetVMListResult; +export type VirtualMachineScaleSetVMsListResponse = + VirtualMachineScaleSetVMListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsPowerOffOptionalParams @@ -10262,7 +10291,8 @@ export interface VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalPar } /** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export type VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataResponse = + RetrieveBootDiagnosticsDataResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams @@ -10287,7 +10317,8 @@ export interface VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams } /** Contains response data for the attachDetachDataDisks operation. */ -export type VirtualMachineScaleSetVMsAttachDetachDataDisksResponse = StorageProfile; +export type VirtualMachineScaleSetVMsAttachDetachDataDisksResponse = + StorageProfile; /** Optional parameters. */ export interface VirtualMachineScaleSetVMsRunCommandOptionalParams @@ -10306,7 +10337,8 @@ export interface VirtualMachineScaleSetVMsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMsListNextResponse = VirtualMachineScaleSetVMListResult; +export type VirtualMachineScaleSetVMsListNextResponse = + VirtualMachineScaleSetVMListResult; /** Optional parameters. */ export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams @@ -10318,7 +10350,8 @@ export interface VirtualMachineExtensionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineExtensionsCreateOrUpdateResponse = VirtualMachineExtension; +export type VirtualMachineExtensionsCreateOrUpdateResponse = + VirtualMachineExtension; /** Optional parameters. */ export interface VirtualMachineExtensionsUpdateOptionalParams @@ -10359,7 +10392,8 @@ export interface VirtualMachineExtensionsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineExtensionsListResponse = VirtualMachineExtensionsListResult; +export type VirtualMachineExtensionsListResponse = + VirtualMachineExtensionsListResult; /** Optional parameters. */ export interface VirtualMachinesListByLocationOptionalParams @@ -10495,7 +10529,8 @@ export interface VirtualMachinesListAvailableSizesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ -export type VirtualMachinesListAvailableSizesResponse = VirtualMachineSizeListResult; +export type VirtualMachinesListAvailableSizesResponse = + VirtualMachineSizeListResult; /** Optional parameters. */ export interface VirtualMachinesPowerOffOptionalParams @@ -10563,7 +10598,8 @@ export interface VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams } /** Contains response data for the retrieveBootDiagnosticsData operation. */ -export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = RetrieveBootDiagnosticsDataResult; +export type VirtualMachinesRetrieveBootDiagnosticsDataResponse = + RetrieveBootDiagnosticsDataResult; /** Optional parameters. */ export interface VirtualMachinesPerformMaintenanceOptionalParams @@ -10588,7 +10624,8 @@ export interface VirtualMachinesAssessPatchesOptionalParams } /** Contains response data for the assessPatches operation. */ -export type VirtualMachinesAssessPatchesResponse = VirtualMachineAssessPatchesResult; +export type VirtualMachinesAssessPatchesResponse = + VirtualMachineAssessPatchesResult; /** Optional parameters. */ export interface VirtualMachinesInstallPatchesOptionalParams @@ -10600,7 +10637,8 @@ export interface VirtualMachinesInstallPatchesOptionalParams } /** Contains response data for the installPatches operation. */ -export type VirtualMachinesInstallPatchesResponse = VirtualMachineInstallPatchesResult; +export type VirtualMachinesInstallPatchesResponse = + VirtualMachineInstallPatchesResult; /** Optional parameters. */ export interface VirtualMachinesAttachDetachDataDisksOptionalParams @@ -10631,7 +10669,8 @@ export interface VirtualMachinesListByLocationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByLocationNext operation. */ -export type VirtualMachinesListByLocationNextResponse = VirtualMachineListResult; +export type VirtualMachinesListByLocationNextResponse = + VirtualMachineListResult; /** Optional parameters. */ export interface VirtualMachinesListNextOptionalParams @@ -10671,28 +10710,32 @@ export interface VirtualMachineImagesListOffersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ -export type VirtualMachineImagesListOffersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesListOffersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListPublishersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPublishers operation. */ -export type VirtualMachineImagesListPublishersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesListPublishersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListSkusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ -export type VirtualMachineImagesListSkusResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesListSkusResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesListByEdgeZoneOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByEdgeZone operation. */ -export type VirtualMachineImagesListByEdgeZoneResponse = VmImagesInEdgeZoneListResult; +export type VirtualMachineImagesListByEdgeZoneResponse = + VmImagesInEdgeZoneListResult; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneGetOptionalParams @@ -10713,42 +10756,48 @@ export interface VirtualMachineImagesEdgeZoneListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineImagesEdgeZoneListResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListOffersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOffers operation. */ -export type VirtualMachineImagesEdgeZoneListOffersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListOffersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListPublishersOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPublishers operation. */ -export type VirtualMachineImagesEdgeZoneListPublishersResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListPublishersResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineImagesEdgeZoneListSkusOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSkus operation. */ -export type VirtualMachineImagesEdgeZoneListSkusResponse = VirtualMachineImageResource[]; +export type VirtualMachineImagesEdgeZoneListSkusResponse = + VirtualMachineImageResource[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type VirtualMachineExtensionImagesGetResponse = VirtualMachineExtensionImage; +export type VirtualMachineExtensionImagesGetResponse = + VirtualMachineExtensionImage; /** Optional parameters. */ export interface VirtualMachineExtensionImagesListTypesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listTypes operation. */ -export type VirtualMachineExtensionImagesListTypesResponse = VirtualMachineExtensionImage[]; +export type VirtualMachineExtensionImagesListTypesResponse = + VirtualMachineExtensionImage[]; /** Optional parameters. */ export interface VirtualMachineExtensionImagesListVersionsOptionalParams @@ -10760,7 +10809,8 @@ export interface VirtualMachineExtensionImagesListVersionsOptionalParams } /** Contains response data for the listVersions operation. */ -export type VirtualMachineExtensionImagesListVersionsResponse = VirtualMachineExtensionImage[]; +export type VirtualMachineExtensionImagesListVersionsResponse = + VirtualMachineExtensionImage[]; /** Optional parameters. */ export interface AvailabilitySetsCreateOrUpdateOptionalParams @@ -10795,7 +10845,8 @@ export interface AvailabilitySetsListBySubscriptionOptionalParams } /** Contains response data for the listBySubscription operation. */ -export type AvailabilitySetsListBySubscriptionResponse = AvailabilitySetListResult; +export type AvailabilitySetsListBySubscriptionResponse = + AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListOptionalParams @@ -10809,14 +10860,16 @@ export interface AvailabilitySetsListAvailableSizesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ -export type AvailabilitySetsListAvailableSizesResponse = VirtualMachineSizeListResult; +export type AvailabilitySetsListAvailableSizesResponse = + VirtualMachineSizeListResult; /** Optional parameters. */ export interface AvailabilitySetsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type AvailabilitySetsListBySubscriptionNextResponse = AvailabilitySetListResult; +export type AvailabilitySetsListBySubscriptionNextResponse = + AvailabilitySetListResult; /** Optional parameters. */ export interface AvailabilitySetsListNextOptionalParams @@ -10830,7 +10883,8 @@ export interface ProximityPlacementGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ProximityPlacementGroupsCreateOrUpdateResponse = ProximityPlacementGroup; +export type ProximityPlacementGroupsCreateOrUpdateResponse = + ProximityPlacementGroup; /** Optional parameters. */ export interface ProximityPlacementGroupsUpdateOptionalParams @@ -10858,28 +10912,32 @@ export interface ProximityPlacementGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type ProximityPlacementGroupsListBySubscriptionResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListBySubscriptionResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type ProximityPlacementGroupsListByResourceGroupResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListByResourceGroupResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type ProximityPlacementGroupsListBySubscriptionNextResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListBySubscriptionNextResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface ProximityPlacementGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type ProximityPlacementGroupsListByResourceGroupNextResponse = ProximityPlacementGroupListResult; +export type ProximityPlacementGroupsListByResourceGroupNextResponse = + ProximityPlacementGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsCreateOrUpdateOptionalParams @@ -10914,28 +10972,32 @@ export interface DedicatedHostGroupsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type DedicatedHostGroupsListByResourceGroupResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListByResourceGroupResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type DedicatedHostGroupsListBySubscriptionResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListBySubscriptionResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type DedicatedHostGroupsListByResourceGroupNextResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListByResourceGroupNextResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type DedicatedHostGroupsListBySubscriptionNextResponse = DedicatedHostGroupListResult; +export type DedicatedHostGroupsListBySubscriptionNextResponse = + DedicatedHostGroupListResult; /** Optional parameters. */ export interface DedicatedHostsCreateOrUpdateOptionalParams @@ -11013,7 +11075,8 @@ export interface DedicatedHostsListAvailableSizesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAvailableSizes operation. */ -export type DedicatedHostsListAvailableSizesResponse = DedicatedHostSizeListResult; +export type DedicatedHostsListAvailableSizesResponse = + DedicatedHostSizeListResult; /** Optional parameters. */ export interface DedicatedHostsListByHostGroupNextOptionalParams @@ -11027,14 +11090,16 @@ export interface SshPublicKeysListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type SshPublicKeysListBySubscriptionResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListBySubscriptionResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type SshPublicKeysListByResourceGroupResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListByResourceGroupResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysCreateOptionalParams @@ -11069,21 +11134,24 @@ export interface SshPublicKeysGenerateKeyPairOptionalParams } /** Contains response data for the generateKeyPair operation. */ -export type SshPublicKeysGenerateKeyPairResponse = SshPublicKeyGenerateKeyPairResult; +export type SshPublicKeysGenerateKeyPairResponse = + SshPublicKeyGenerateKeyPairResult; /** Optional parameters. */ export interface SshPublicKeysListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type SshPublicKeysListBySubscriptionNextResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListBySubscriptionNextResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface SshPublicKeysListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type SshPublicKeysListByResourceGroupNextResponse = SshPublicKeysGroupListResult; +export type SshPublicKeysListByResourceGroupNextResponse = + SshPublicKeysGroupListResult; /** Optional parameters. */ export interface ImagesCreateOrUpdateOptionalParams @@ -11159,7 +11227,8 @@ export interface RestorePointCollectionsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type RestorePointCollectionsCreateOrUpdateResponse = RestorePointCollection; +export type RestorePointCollectionsCreateOrUpdateResponse = + RestorePointCollection; /** Optional parameters. */ export interface RestorePointCollectionsUpdateOptionalParams @@ -11192,28 +11261,32 @@ export interface RestorePointCollectionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type RestorePointCollectionsListResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ -export type RestorePointCollectionsListAllResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListAllResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RestorePointCollectionsListNextResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListNextResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointCollectionsListAllNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ -export type RestorePointCollectionsListAllNextResponse = RestorePointCollectionListResult; +export type RestorePointCollectionsListAllNextResponse = + RestorePointCollectionListResult; /** Optional parameters. */ export interface RestorePointsCreateOptionalParams @@ -11251,7 +11324,8 @@ export interface CapacityReservationGroupsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type CapacityReservationGroupsCreateOrUpdateResponse = CapacityReservationGroup; +export type CapacityReservationGroupsCreateOrUpdateResponse = + CapacityReservationGroup; /** Optional parameters. */ export interface CapacityReservationGroupsUpdateOptionalParams @@ -11282,7 +11356,8 @@ export interface CapacityReservationGroupsListByResourceGroupOptionalParams } /** Contains response data for the listByResourceGroup operation. */ -export type CapacityReservationGroupsListByResourceGroupResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListByResourceGroupResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListBySubscriptionOptionalParams @@ -11292,21 +11367,24 @@ export interface CapacityReservationGroupsListBySubscriptionOptionalParams } /** Contains response data for the listBySubscription operation. */ -export type CapacityReservationGroupsListBySubscriptionResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListBySubscriptionResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type CapacityReservationGroupsListByResourceGroupNextResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListByResourceGroupNextResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationGroupsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type CapacityReservationGroupsListBySubscriptionNextResponse = CapacityReservationGroupListResult; +export type CapacityReservationGroupsListBySubscriptionNextResponse = + CapacityReservationGroupListResult; /** Optional parameters. */ export interface CapacityReservationsCreateOrUpdateOptionalParams @@ -11356,14 +11434,16 @@ export interface CapacityReservationsListByCapacityReservationGroupOptionalParam extends coreClient.OperationOptions {} /** Contains response data for the listByCapacityReservationGroup operation. */ -export type CapacityReservationsListByCapacityReservationGroupResponse = CapacityReservationListResult; +export type CapacityReservationsListByCapacityReservationGroupResponse = + CapacityReservationListResult; /** Optional parameters. */ export interface CapacityReservationsListByCapacityReservationGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByCapacityReservationGroupNext operation. */ -export type CapacityReservationsListByCapacityReservationGroupNextResponse = CapacityReservationListResult; +export type CapacityReservationsListByCapacityReservationGroupNextResponse = + CapacityReservationListResult; /** Optional parameters. */ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams @@ -11375,7 +11455,8 @@ export interface LogAnalyticsExportRequestRateByIntervalOptionalParams } /** Contains response data for the exportRequestRateByInterval operation. */ -export type LogAnalyticsExportRequestRateByIntervalResponse = LogAnalyticsOperationResult; +export type LogAnalyticsExportRequestRateByIntervalResponse = + LogAnalyticsOperationResult; /** Optional parameters. */ export interface LogAnalyticsExportThrottledRequestsOptionalParams @@ -11387,7 +11468,8 @@ export interface LogAnalyticsExportThrottledRequestsOptionalParams } /** Contains response data for the exportThrottledRequests operation. */ -export type LogAnalyticsExportThrottledRequestsResponse = LogAnalyticsOperationResult; +export type LogAnalyticsExportThrottledRequestsResponse = + LogAnalyticsOperationResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsListOptionalParams @@ -11413,7 +11495,8 @@ export interface VirtualMachineRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineRunCommandsCreateOrUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineRunCommandsUpdateOptionalParams @@ -11444,7 +11527,8 @@ export interface VirtualMachineRunCommandsGetByVirtualMachineOptionalParams } /** Contains response data for the getByVirtualMachine operation. */ -export type VirtualMachineRunCommandsGetByVirtualMachineResponse = VirtualMachineRunCommand; +export type VirtualMachineRunCommandsGetByVirtualMachineResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams @@ -11454,7 +11538,8 @@ export interface VirtualMachineRunCommandsListByVirtualMachineOptionalParams } /** Contains response data for the listByVirtualMachine operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineRunCommandsListByVirtualMachineResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineRunCommandsListNextOptionalParams @@ -11468,7 +11553,8 @@ export interface VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByVirtualMachineNext operation. */ -export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineRunCommandsListByVirtualMachineNextResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams @@ -11480,7 +11566,8 @@ export interface VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams @@ -11492,7 +11579,8 @@ export interface VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsUpdateResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams @@ -11511,7 +11599,8 @@ export interface VirtualMachineScaleSetVMRunCommandsGetOptionalParams } /** Contains response data for the get operation. */ -export type VirtualMachineScaleSetVMRunCommandsGetResponse = VirtualMachineRunCommand; +export type VirtualMachineScaleSetVMRunCommandsGetResponse = + VirtualMachineRunCommand; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams @@ -11521,14 +11610,16 @@ export interface VirtualMachineScaleSetVMRunCommandsListOptionalParams } /** Contains response data for the list operation. */ -export type VirtualMachineScaleSetVMRunCommandsListResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineScaleSetVMRunCommandsListResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface VirtualMachineScaleSetVMRunCommandsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type VirtualMachineScaleSetVMRunCommandsListNextResponse = VirtualMachineRunCommandsListResult; +export type VirtualMachineScaleSetVMRunCommandsListNextResponse = + VirtualMachineRunCommandsListResult; /** Optional parameters. */ export interface DisksCreateOrUpdateOptionalParams @@ -11674,7 +11765,8 @@ export interface DiskAccessesGetPrivateLinkResourcesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getPrivateLinkResources operation. */ -export type DiskAccessesGetPrivateLinkResourcesResponse = PrivateLinkResourceListResult; +export type DiskAccessesGetPrivateLinkResourcesResponse = + PrivateLinkResourceListResult; /** Optional parameters. */ export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams @@ -11686,14 +11778,16 @@ export interface DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams } /** Contains response data for the updateAPrivateEndpointConnection operation. */ -export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +export type DiskAccessesUpdateAPrivateEndpointConnectionResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface DiskAccessesGetAPrivateEndpointConnectionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getAPrivateEndpointConnection operation. */ -export type DiskAccessesGetAPrivateEndpointConnectionResponse = PrivateEndpointConnection; +export type DiskAccessesGetAPrivateEndpointConnectionResponse = + PrivateEndpointConnection; /** Optional parameters. */ export interface DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams @@ -11709,7 +11803,8 @@ export interface DiskAccessesListPrivateEndpointConnectionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnections operation. */ -export type DiskAccessesListPrivateEndpointConnectionsResponse = PrivateEndpointConnectionListResult; +export type DiskAccessesListPrivateEndpointConnectionsResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskAccessesListByResourceGroupNextOptionalParams @@ -11730,7 +11825,8 @@ export interface DiskAccessesListPrivateEndpointConnectionsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listPrivateEndpointConnectionsNext operation. */ -export type DiskAccessesListPrivateEndpointConnectionsNextResponse = PrivateEndpointConnectionListResult; +export type DiskAccessesListPrivateEndpointConnectionsNextResponse = + PrivateEndpointConnectionListResult; /** Optional parameters. */ export interface DiskEncryptionSetsCreateOrUpdateOptionalParams @@ -11777,7 +11873,8 @@ export interface DiskEncryptionSetsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type DiskEncryptionSetsListByResourceGroupResponse = DiskEncryptionSetList; +export type DiskEncryptionSetsListByResourceGroupResponse = + DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListOptionalParams @@ -11798,7 +11895,8 @@ export interface DiskEncryptionSetsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type DiskEncryptionSetsListByResourceGroupNextResponse = DiskEncryptionSetList; +export type DiskEncryptionSetsListByResourceGroupNextResponse = + DiskEncryptionSetList; /** Optional parameters. */ export interface DiskEncryptionSetsListNextOptionalParams @@ -11812,7 +11910,8 @@ export interface DiskEncryptionSetsListAssociatedResourcesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAssociatedResourcesNext operation. */ -export type DiskEncryptionSetsListAssociatedResourcesNextResponse = ResourceUriList; +export type DiskEncryptionSetsListAssociatedResourcesNextResponse = + ResourceUriList; /** Optional parameters. */ export interface DiskRestorePointGetOptionalParams @@ -11854,7 +11953,8 @@ export interface DiskRestorePointListByRestorePointNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByRestorePointNext operation. */ -export type DiskRestorePointListByRestorePointNextResponse = DiskRestorePointList; +export type DiskRestorePointListByRestorePointNextResponse = + DiskRestorePointList; /** Optional parameters. */ export interface SnapshotsCreateOrUpdateOptionalParams @@ -12139,14 +12239,16 @@ export interface GalleryImageVersionsListByGalleryImageOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryImage operation. */ -export type GalleryImageVersionsListByGalleryImageResponse = GalleryImageVersionList; +export type GalleryImageVersionsListByGalleryImageResponse = + GalleryImageVersionList; /** Optional parameters. */ export interface GalleryImageVersionsListByGalleryImageNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryImageNext operation. */ -export type GalleryImageVersionsListByGalleryImageNextResponse = GalleryImageVersionList; +export type GalleryImageVersionsListByGalleryImageNextResponse = + GalleryImageVersionList; /** Optional parameters. */ export interface GalleryApplicationsCreateOrUpdateOptionalParams @@ -12200,7 +12302,8 @@ export interface GalleryApplicationsListByGalleryNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryNext operation. */ -export type GalleryApplicationsListByGalleryNextResponse = GalleryApplicationList; +export type GalleryApplicationsListByGalleryNextResponse = + GalleryApplicationList; /** Optional parameters. */ export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams @@ -12212,7 +12315,8 @@ export interface GalleryApplicationVersionsCreateOrUpdateOptionalParams } /** Contains response data for the createOrUpdate operation. */ -export type GalleryApplicationVersionsCreateOrUpdateResponse = GalleryApplicationVersion; +export type GalleryApplicationVersionsCreateOrUpdateResponse = + GalleryApplicationVersion; /** Optional parameters. */ export interface GalleryApplicationVersionsUpdateOptionalParams @@ -12224,7 +12328,8 @@ export interface GalleryApplicationVersionsUpdateOptionalParams } /** Contains response data for the update operation. */ -export type GalleryApplicationVersionsUpdateResponse = GalleryApplicationVersion; +export type GalleryApplicationVersionsUpdateResponse = + GalleryApplicationVersion; /** Optional parameters. */ export interface GalleryApplicationVersionsGetOptionalParams @@ -12250,14 +12355,16 @@ export interface GalleryApplicationVersionsListByGalleryApplicationOptionalParam extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryApplication operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationResponse = GalleryApplicationVersionList; +export type GalleryApplicationVersionsListByGalleryApplicationResponse = + GalleryApplicationVersionList; /** Optional parameters. */ export interface GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByGalleryApplicationNext operation. */ -export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = GalleryApplicationVersionList; +export type GalleryApplicationVersionsListByGalleryApplicationNextResponse = + GalleryApplicationVersionList; /** Optional parameters. */ export interface GallerySharingProfileUpdateOptionalParams @@ -12327,7 +12434,8 @@ export interface SharedGalleryImageVersionsListOptionalParams } /** Contains response data for the list operation. */ -export type SharedGalleryImageVersionsListResponse = SharedGalleryImageVersionList; +export type SharedGalleryImageVersionsListResponse = + SharedGalleryImageVersionList; /** Optional parameters. */ export interface SharedGalleryImageVersionsGetOptionalParams @@ -12341,7 +12449,8 @@ export interface SharedGalleryImageVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SharedGalleryImageVersionsListNextResponse = SharedGalleryImageVersionList; +export type SharedGalleryImageVersionsListNextResponse = + SharedGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleriesGetOptionalParams @@ -12376,21 +12485,24 @@ export interface CommunityGalleryImageVersionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CommunityGalleryImageVersionsGetResponse = CommunityGalleryImageVersion; +export type CommunityGalleryImageVersionsGetResponse = + CommunityGalleryImageVersion; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type CommunityGalleryImageVersionsListResponse = CommunityGalleryImageVersionList; +export type CommunityGalleryImageVersionsListResponse = + CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CommunityGalleryImageVersionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type CommunityGalleryImageVersionsListNextResponse = CommunityGalleryImageVersionList; +export type CommunityGalleryImageVersionsListNextResponse = + CommunityGalleryImageVersionList; /** Optional parameters. */ export interface CloudServiceRoleInstancesDeleteOptionalParams @@ -12669,14 +12781,16 @@ export interface CloudServicesUpdateDomainListUpdateDomainsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listUpdateDomains operation. */ -export type CloudServicesUpdateDomainListUpdateDomainsResponse = UpdateDomainListResult; +export type CloudServicesUpdateDomainListUpdateDomainsResponse = + UpdateDomainListResult; /** Optional parameters. */ export interface CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listUpdateDomainsNext operation. */ -export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = UpdateDomainListResult; +export type CloudServicesUpdateDomainListUpdateDomainsNextResponse = + UpdateDomainListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSVersionOptionalParams @@ -12690,7 +12804,8 @@ export interface CloudServiceOperatingSystemsListOSVersionsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSVersions operation. */ -export type CloudServiceOperatingSystemsListOSVersionsResponse = OSVersionListResult; +export type CloudServiceOperatingSystemsListOSVersionsResponse = + OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsGetOSFamilyOptionalParams @@ -12704,21 +12819,24 @@ export interface CloudServiceOperatingSystemsListOSFamiliesOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSFamilies operation. */ -export type CloudServiceOperatingSystemsListOSFamiliesResponse = OSFamilyListResult; +export type CloudServiceOperatingSystemsListOSFamiliesResponse = + OSFamilyListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSVersionsNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSVersionsNext operation. */ -export type CloudServiceOperatingSystemsListOSVersionsNextResponse = OSVersionListResult; +export type CloudServiceOperatingSystemsListOSVersionsNextResponse = + OSVersionListResult; /** Optional parameters. */ export interface CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listOSFamiliesNext operation. */ -export type CloudServiceOperatingSystemsListOSFamiliesNextResponse = OSFamilyListResult; +export type CloudServiceOperatingSystemsListOSFamiliesNextResponse = + OSFamilyListResult; /** Optional parameters. */ export interface ComputeManagementClientOptionalParams diff --git a/sdk/compute/arm-compute/src/models/mappers.ts b/sdk/compute/arm-compute/src/models/mappers.ts index d27adb0c3126..2c55387101a7 100644 --- a/sdk/compute/arm-compute/src/models/mappers.ts +++ b/sdk/compute/arm-compute/src/models/mappers.ts @@ -21,13 +21,13 @@ export const ComputeOperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ComputeOperationValue" - } - } - } - } - } - } + className: "ComputeOperationValue", + }, + }, + }, + }, + }, + }, }; export const ComputeOperationValue: coreClient.CompositeMapper = { @@ -39,46 +39,46 @@ export const ComputeOperationValue: coreClient.CompositeMapper = { serializedName: "origin", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "display.operation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "display.resource", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "display.description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provider: { serializedName: "display.provider", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -90,11 +90,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const ApiError: coreClient.CompositeMapper = { @@ -109,38 +109,38 @@ export const ApiError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiErrorBase" - } - } - } + className: "ApiErrorBase", + }, + }, + }, }, innererror: { serializedName: "innererror", type: { name: "Composite", - className: "InnerError" - } + className: "InnerError", + }, }, code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ApiErrorBase: coreClient.CompositeMapper = { @@ -151,23 +151,23 @@ export const ApiErrorBase: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const InnerError: coreClient.CompositeMapper = { @@ -178,17 +178,17 @@ export const InnerError: coreClient.CompositeMapper = { exceptiontype: { serializedName: "exceptiontype", type: { - name: "String" - } + name: "String", + }, }, errordetail: { serializedName: "errordetail", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListUsagesResult: coreClient.CompositeMapper = { @@ -204,19 +204,19 @@ export const ListUsagesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Usage" - } - } - } + className: "Usage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Usage: coreClient.CompositeMapper = { @@ -229,32 +229,32 @@ export const Usage: coreClient.CompositeMapper = { isConstant: true, serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, currentValue: { serializedName: "currentValue", required: true, type: { - name: "Number" - } + name: "Number", + }, }, limit: { serializedName: "limit", required: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { name: "Composite", - className: "UsageName" - } - } - } - } + className: "UsageName", + }, + }, + }, + }, }; export const UsageName: coreClient.CompositeMapper = { @@ -265,17 +265,17 @@ export const UsageName: coreClient.CompositeMapper = { value: { serializedName: "value", type: { - name: "String" - } + name: "String", + }, }, localizedValue: { serializedName: "localizedValue", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { @@ -290,13 +290,13 @@ export const VirtualMachineSizeListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSize" - } - } - } - } - } - } + className: "VirtualMachineSize", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineSize: coreClient.CompositeMapper = { @@ -307,41 +307,41 @@ export const VirtualMachineSize: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, numberOfCores: { serializedName: "numberOfCores", type: { - name: "Number" - } + name: "Number", + }, }, osDiskSizeInMB: { serializedName: "osDiskSizeInMB", type: { - name: "Number" - } + name: "Number", + }, }, resourceDiskSizeInMB: { serializedName: "resourceDiskSizeInMB", type: { - name: "Number" - } + name: "Number", + }, }, memoryInMB: { serializedName: "memoryInMB", type: { - name: "Number" - } + name: "Number", + }, }, maxDataDiskCount: { serializedName: "maxDataDiskCount", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { @@ -357,19 +357,19 @@ export const VirtualMachineScaleSetListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSet" - } - } - } + className: "VirtualMachineScaleSet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Sku: coreClient.CompositeMapper = { @@ -380,23 +380,23 @@ export const Sku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Plan: coreClient.CompositeMapper = { @@ -407,29 +407,29 @@ export const Plan: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", type: { - name: "String" - } + name: "String", + }, }, promotionCode: { serializedName: "promotionCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpgradePolicy: coreClient.CompositeMapper = { @@ -441,25 +441,25 @@ export const UpgradePolicy: coreClient.CompositeMapper = { serializedName: "mode", type: { name: "Enum", - allowedValues: ["Automatic", "Manual", "Rolling"] - } + allowedValues: ["Automatic", "Manual", "Rolling"], + }, }, rollingUpgradePolicy: { serializedName: "rollingUpgradePolicy", type: { name: "Composite", - className: "RollingUpgradePolicy" - } + className: "RollingUpgradePolicy", + }, }, automaticOSUpgradePolicy: { serializedName: "automaticOSUpgradePolicy", type: { name: "Composite", - className: "AutomaticOSUpgradePolicy" - } - } - } - } + className: "AutomaticOSUpgradePolicy", + }, + }, + }, + }, }; export const RollingUpgradePolicy: coreClient.CompositeMapper = { @@ -470,65 +470,65 @@ export const RollingUpgradePolicy: coreClient.CompositeMapper = { maxBatchInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 5 + InclusiveMinimum: 5, }, serializedName: "maxBatchInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, maxUnhealthyInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 5 + InclusiveMinimum: 5, }, serializedName: "maxUnhealthyInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, maxUnhealthyUpgradedInstancePercent: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "maxUnhealthyUpgradedInstancePercent", type: { - name: "Number" - } + name: "Number", + }, }, pauseTimeBetweenBatches: { serializedName: "pauseTimeBetweenBatches", type: { - name: "String" - } + name: "String", + }, }, enableCrossZoneUpgrade: { serializedName: "enableCrossZoneUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, prioritizeUnhealthyInstances: { serializedName: "prioritizeUnhealthyInstances", type: { - name: "Boolean" - } + name: "Boolean", + }, }, rollbackFailedInstancesOnPolicyBreach: { serializedName: "rollbackFailedInstancesOnPolicyBreach", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maxSurge: { serializedName: "maxSurge", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { @@ -539,29 +539,29 @@ export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { enableAutomaticOSUpgrade: { serializedName: "enableAutomaticOSUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, disableAutomaticRollback: { serializedName: "disableAutomaticRollback", type: { - name: "Boolean" - } + name: "Boolean", + }, }, useRollingUpgradePolicy: { serializedName: "useRollingUpgradePolicy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, osRollingUpgradeDeferral: { serializedName: "osRollingUpgradeDeferral", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { @@ -572,23 +572,23 @@ export const AutomaticRepairsPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, gracePeriod: { serializedName: "gracePeriod", type: { - name: "String" - } + name: "String", + }, }, repairAction: { serializedName: "repairAction", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { @@ -600,126 +600,126 @@ export const VirtualMachineScaleSetVMProfile: coreClient.CompositeMapper = { serializedName: "osProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetOSProfile" - } + className: "VirtualMachineScaleSetOSProfile", + }, }, storageProfile: { serializedName: "storageProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetStorageProfile" - } + className: "VirtualMachineScaleSetStorageProfile", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile" - } + className: "VirtualMachineScaleSetNetworkProfile", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, extensionProfile: { serializedName: "extensionProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } + className: "VirtualMachineScaleSetExtensionProfile", + }, }, licenseType: { serializedName: "licenseType", type: { - name: "String" - } + name: "String", + }, }, priority: { serializedName: "priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, scheduledEventsProfile: { serializedName: "scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, hardwareProfile: { serializedName: "hardwareProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile" - } + className: "VirtualMachineScaleSetHardwareProfile", + }, }, serviceArtifactReference: { serializedName: "serviceArtifactReference", type: { name: "Composite", - className: "ServiceArtifactReference" - } + className: "ServiceArtifactReference", + }, }, securityPostureReference: { serializedName: "securityPostureReference", type: { name: "Composite", - className: "SecurityPostureReference" - } + className: "SecurityPostureReference", + }, }, timeCreated: { serializedName: "timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { @@ -730,40 +730,40 @@ export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { computerNamePrefix: { serializedName: "computerNamePrefix", type: { - name: "String" - } + name: "String", + }, }, adminUsername: { serializedName: "adminUsername", type: { - name: "String" - } + name: "String", + }, }, adminPassword: { serializedName: "adminPassword", type: { - name: "String" - } + name: "String", + }, }, customData: { serializedName: "customData", type: { - name: "String" - } + name: "String", + }, }, windowsConfiguration: { serializedName: "windowsConfiguration", type: { name: "Composite", - className: "WindowsConfiguration" - } + className: "WindowsConfiguration", + }, }, linuxConfiguration: { serializedName: "linuxConfiguration", type: { name: "Composite", - className: "LinuxConfiguration" - } + className: "LinuxConfiguration", + }, }, secrets: { serializedName: "secrets", @@ -772,25 +772,25 @@ export const VirtualMachineScaleSetOSProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VaultSecretGroup" - } - } - } + className: "VaultSecretGroup", + }, + }, + }, }, allowExtensionOperations: { serializedName: "allowExtensionOperations", type: { - name: "Boolean" - } + name: "Boolean", + }, }, requireGuestProvisionSignal: { serializedName: "requireGuestProvisionSignal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const WindowsConfiguration: coreClient.CompositeMapper = { @@ -801,20 +801,20 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { provisionVMAgent: { serializedName: "provisionVMAgent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpdates: { serializedName: "enableAutomaticUpdates", type: { - name: "Boolean" - } + name: "Boolean", + }, }, timeZone: { serializedName: "timeZone", type: { - name: "String" - } + name: "String", + }, }, additionalUnattendContent: { serializedName: "additionalUnattendContent", @@ -823,33 +823,33 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AdditionalUnattendContent" - } - } - } + className: "AdditionalUnattendContent", + }, + }, + }, }, patchSettings: { serializedName: "patchSettings", type: { name: "Composite", - className: "PatchSettings" - } + className: "PatchSettings", + }, }, winRM: { serializedName: "winRM", type: { name: "Composite", - className: "WinRMConfiguration" - } + className: "WinRMConfiguration", + }, }, enableVMAgentPlatformUpdates: { serializedName: "enableVMAgentPlatformUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AdditionalUnattendContent: coreClient.CompositeMapper = { @@ -862,32 +862,32 @@ export const AdditionalUnattendContent: coreClient.CompositeMapper = { isConstant: true, serializedName: "passName", type: { - name: "String" - } + name: "String", + }, }, componentName: { defaultValue: "Microsoft-Windows-Shell-Setup", isConstant: true, serializedName: "componentName", type: { - name: "String" - } + name: "String", + }, }, settingName: { serializedName: "settingName", type: { name: "Enum", - allowedValues: ["AutoLogon", "FirstLogonCommands"] - } + allowedValues: ["AutoLogon", "FirstLogonCommands"], + }, }, content: { serializedName: "content", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PatchSettings: coreClient.CompositeMapper = { @@ -898,52 +898,53 @@ export const PatchSettings: coreClient.CompositeMapper = { patchMode: { serializedName: "patchMode", type: { - name: "String" - } + name: "String", + }, }, enableHotpatching: { serializedName: "enableHotpatching", type: { - name: "Boolean" - } + name: "Boolean", + }, }, assessmentMode: { serializedName: "assessmentMode", type: { - name: "String" - } + name: "String", + }, }, automaticByPlatformSettings: { serializedName: "automaticByPlatformSettings", type: { name: "Composite", - className: "WindowsVMGuestPatchAutomaticByPlatformSettings" - } - } - } - } -}; - -export const WindowsVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "WindowsVMGuestPatchAutomaticByPlatformSettings", - modelProperties: { - rebootSetting: { - serializedName: "rebootSetting", - type: { - name: "String" - } + className: "WindowsVMGuestPatchAutomaticByPlatformSettings", + }, }, - bypassPlatformSafetyChecksOnUserSchedule: { - serializedName: "bypassPlatformSafetyChecksOnUserSchedule", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const WindowsVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "WindowsVMGuestPatchAutomaticByPlatformSettings", + modelProperties: { + rebootSetting: { + serializedName: "rebootSetting", + type: { + name: "String", + }, + }, + bypassPlatformSafetyChecksOnUserSchedule: { + serializedName: "bypassPlatformSafetyChecksOnUserSchedule", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const WinRMConfiguration: coreClient.CompositeMapper = { type: { @@ -957,13 +958,13 @@ export const WinRMConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "WinRMListener" - } - } - } - } - } - } + className: "WinRMListener", + }, + }, + }, + }, + }, + }, }; export const WinRMListener: coreClient.CompositeMapper = { @@ -975,17 +976,17 @@ export const WinRMListener: coreClient.CompositeMapper = { serializedName: "protocol", type: { name: "Enum", - allowedValues: ["Http", "Https"] - } + allowedValues: ["Http", "Https"], + }, }, certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinuxConfiguration: coreClient.CompositeMapper = { @@ -996,37 +997,37 @@ export const LinuxConfiguration: coreClient.CompositeMapper = { disablePasswordAuthentication: { serializedName: "disablePasswordAuthentication", type: { - name: "Boolean" - } + name: "Boolean", + }, }, ssh: { serializedName: "ssh", type: { name: "Composite", - className: "SshConfiguration" - } + className: "SshConfiguration", + }, }, provisionVMAgent: { serializedName: "provisionVMAgent", type: { - name: "Boolean" - } + name: "Boolean", + }, }, patchSettings: { serializedName: "patchSettings", type: { name: "Composite", - className: "LinuxPatchSettings" - } + className: "LinuxPatchSettings", + }, }, enableVMAgentPlatformUpdates: { serializedName: "enableVMAgentPlatformUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SshConfiguration: coreClient.CompositeMapper = { @@ -1041,13 +1042,13 @@ export const SshConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKey" - } - } - } - } - } - } + className: "SshPublicKey", + }, + }, + }, + }, + }, + }, }; export const SshPublicKey: coreClient.CompositeMapper = { @@ -1058,17 +1059,17 @@ export const SshPublicKey: coreClient.CompositeMapper = { path: { serializedName: "path", type: { - name: "String" - } + name: "String", + }, }, keyData: { serializedName: "keyData", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinuxPatchSettings: coreClient.CompositeMapper = { @@ -1079,46 +1080,47 @@ export const LinuxPatchSettings: coreClient.CompositeMapper = { patchMode: { serializedName: "patchMode", type: { - name: "String" - } + name: "String", + }, }, assessmentMode: { serializedName: "assessmentMode", type: { - name: "String" - } + name: "String", + }, }, automaticByPlatformSettings: { serializedName: "automaticByPlatformSettings", type: { name: "Composite", - className: "LinuxVMGuestPatchAutomaticByPlatformSettings" - } - } - } - } -}; - -export const LinuxVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LinuxVMGuestPatchAutomaticByPlatformSettings", - modelProperties: { - rebootSetting: { - serializedName: "rebootSetting", - type: { - name: "String" - } + className: "LinuxVMGuestPatchAutomaticByPlatformSettings", + }, }, - bypassPlatformSafetyChecksOnUserSchedule: { - serializedName: "bypassPlatformSafetyChecksOnUserSchedule", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const LinuxVMGuestPatchAutomaticByPlatformSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LinuxVMGuestPatchAutomaticByPlatformSettings", + modelProperties: { + rebootSetting: { + serializedName: "rebootSetting", + type: { + name: "String", + }, + }, + bypassPlatformSafetyChecksOnUserSchedule: { + serializedName: "bypassPlatformSafetyChecksOnUserSchedule", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const VaultSecretGroup: coreClient.CompositeMapper = { type: { @@ -1129,8 +1131,8 @@ export const VaultSecretGroup: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, vaultCertificates: { serializedName: "vaultCertificates", @@ -1139,13 +1141,13 @@ export const VaultSecretGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VaultCertificate" - } - } - } - } - } - } + className: "VaultCertificate", + }, + }, + }, + }, + }, + }, }; export const SubResource: coreClient.CompositeMapper = { @@ -1156,11 +1158,11 @@ export const SubResource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VaultCertificate: coreClient.CompositeMapper = { @@ -1171,59 +1173,60 @@ export const VaultCertificate: coreClient.CompositeMapper = { certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } + name: "String", + }, }, certificateStore: { serializedName: "certificateStore", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetStorageProfile", - modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } - }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetOSDisk" - } + name: "String", + }, }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } - } + }, + }, +}; + +export const VirtualMachineScaleSetStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetStorageProfile", + modelProperties: { + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + osDisk: { + serializedName: "osDisk", + type: { + name: "Composite", + className: "VirtualMachineScaleSetOSDisk", + }, + }, + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk", + }, + }, + }, + }, + diskControllerType: { + serializedName: "diskControllerType", + type: { + name: "String", + }, + }, }, - diskControllerType: { - serializedName: "diskControllerType", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { type: { @@ -1233,55 +1236,55 @@ export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diffDiskSettings: { serializedName: "diffDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, osType: { serializedName: "osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, vhdContainers: { serializedName: "vhdContainers", @@ -1289,26 +1292,26 @@ export const VirtualMachineScaleSetOSDisk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiffDiskSettings: coreClient.CompositeMapper = { @@ -1319,17 +1322,17 @@ export const DiffDiskSettings: coreClient.CompositeMapper = { option: { serializedName: "option", type: { - name: "String" - } + name: "String", + }, }, placement: { serializedName: "placement", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualHardDisk: coreClient.CompositeMapper = { @@ -1340,41 +1343,42 @@ export const VirtualHardDisk: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters", - modelProperties: { - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" - } + name: "String", + }, }, - diskEncryptionSet: { - serializedName: "diskEncryptionSet", - type: { - name: "Composite", - className: "DiskEncryptionSetParameters" - } + }, + }, +}; + +export const VirtualMachineScaleSetManagedDiskParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetManagedDiskParameters", + modelProperties: { + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String", + }, + }, + diskEncryptionSet: { + serializedName: "diskEncryptionSet", + type: { + name: "Composite", + className: "DiskEncryptionSetParameters", + }, + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "VMDiskSecurityProfile", + }, + }, }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "VMDiskSecurityProfile" - } - } - } - } -}; + }, + }; export const VMDiskSecurityProfile: coreClient.CompositeMapper = { type: { @@ -1384,18 +1388,18 @@ export const VMDiskSecurityProfile: coreClient.CompositeMapper = { securityEncryptionType: { serializedName: "securityEncryptionType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } - } - } - } + className: "DiskEncryptionSetParameters", + }, + }, + }, + }, }; export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { @@ -1406,104 +1410,105 @@ export const VirtualMachineScaleSetDataDisk: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, diskIopsReadWrite: { serializedName: "diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkProfile", - modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetNetworkProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + }, + }, + }, + }, + networkApiVersion: { + serializedName: "networkApiVersion", + type: { + name: "String", + }, + }, + }, + }, + }; export const ApiEntityReference: coreClient.CompositeMapper = { type: { @@ -1513,302 +1518,308 @@ export const ApiEntityReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration" - } - } - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", - type: { - name: "String" - } - }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", - modelProperties: { - dnsServers: { - serializedName: "dnsServers", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration" - } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", - type: { - name: "String" - } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPAddressSku" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } + name: "String", + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - } + }, + }, +}; + +export const VirtualMachineScaleSetNetworkConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + }, + }, + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, }, - ipTags: { - serializedName: "properties.ipTags", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetIpTag" - } - } - } + }, + }; + +export const VirtualMachineScaleSetNetworkConfigurationDnsSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } + }, + }; + +export const VirtualMachineScaleSetIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", - type: { - name: "String" - } + }, + }; + +export const VirtualMachineScaleSetPublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetPublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PublicIPAddressSku", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + }, + }, + ipTags: { + serializedName: "properties.ipTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetIpTag", + }, + }, + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", + type: { + name: "String", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", - modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, - type: { - name: "String" - } + }, + }; + +export const VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + modelProperties: { + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, + type: { + name: "String", + }, + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String", + }, + }, }, - domainNameLabelScope: { - serializedName: "domainNameLabelScope", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { type: { @@ -1818,17 +1829,17 @@ export const VirtualMachineScaleSetIpTag: coreClient.CompositeMapper = { ipTagType: { serializedName: "ipTagType", type: { - name: "String" - } + name: "String", + }, }, tag: { serializedName: "tag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PublicIPAddressSku: coreClient.CompositeMapper = { @@ -1839,17 +1850,17 @@ export const PublicIPAddressSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecurityProfile: coreClient.CompositeMapper = { @@ -1861,37 +1872,37 @@ export const SecurityProfile: coreClient.CompositeMapper = { serializedName: "uefiSettings", type: { name: "Composite", - className: "UefiSettings" - } + className: "UefiSettings", + }, }, encryptionAtHost: { serializedName: "encryptionAtHost", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityType: { serializedName: "securityType", type: { - name: "String" - } + name: "String", + }, }, encryptionIdentity: { serializedName: "encryptionIdentity", type: { name: "Composite", - className: "EncryptionIdentity" - } + className: "EncryptionIdentity", + }, }, proxyAgentSettings: { serializedName: "proxyAgentSettings", type: { name: "Composite", - className: "ProxyAgentSettings" - } - } - } - } + className: "ProxyAgentSettings", + }, + }, + }, + }, }; export const UefiSettings: coreClient.CompositeMapper = { @@ -1902,17 +1913,17 @@ export const UefiSettings: coreClient.CompositeMapper = { secureBootEnabled: { serializedName: "secureBootEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, vTpmEnabled: { serializedName: "vTpmEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EncryptionIdentity: coreClient.CompositeMapper = { @@ -1923,11 +1934,11 @@ export const EncryptionIdentity: coreClient.CompositeMapper = { userAssignedIdentityResourceId: { serializedName: "userAssignedIdentityResourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyAgentSettings: coreClient.CompositeMapper = { @@ -1938,23 +1949,23 @@ export const ProxyAgentSettings: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, mode: { serializedName: "mode", type: { - name: "String" - } + name: "String", + }, }, keyIncarnationId: { serializedName: "keyIncarnationId", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DiagnosticsProfile: coreClient.CompositeMapper = { @@ -1966,11 +1977,11 @@ export const DiagnosticsProfile: coreClient.CompositeMapper = { serializedName: "bootDiagnostics", type: { name: "Composite", - className: "BootDiagnostics" - } - } - } - } + className: "BootDiagnostics", + }, + }, + }, + }, }; export const BootDiagnostics: coreClient.CompositeMapper = { @@ -1981,45 +1992,46 @@ export const BootDiagnostics: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageUri: { serializedName: "storageUri", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile", - modelProperties: { - extensions: { - serializedName: "extensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtension" - } - } - } + name: "String", + }, }, - extensionsTimeBudget: { - serializedName: "extensionsTimeBudget", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineScaleSetExtensionProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile", + modelProperties: { + extensions: { + serializedName: "extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtension", + }, + }, + }, + }, + extensionsTimeBudget: { + serializedName: "extensionsTimeBudget", + type: { + name: "String", + }, + }, + }, + }, + }; export const KeyVaultSecretReference: coreClient.CompositeMapper = { type: { @@ -2030,18 +2042,18 @@ export const KeyVaultSecretReference: coreClient.CompositeMapper = { serializedName: "secretUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceVault: { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const SubResourceReadOnly: coreClient.CompositeMapper = { @@ -2053,11 +2065,11 @@ export const SubResourceReadOnly: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BillingProfile: coreClient.CompositeMapper = { @@ -2068,11 +2080,11 @@ export const BillingProfile: coreClient.CompositeMapper = { maxPrice: { serializedName: "maxPrice", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ScheduledEventsProfile: coreClient.CompositeMapper = { @@ -2084,18 +2096,18 @@ export const ScheduledEventsProfile: coreClient.CompositeMapper = { serializedName: "terminateNotificationProfile", type: { name: "Composite", - className: "TerminateNotificationProfile" - } + className: "TerminateNotificationProfile", + }, }, osImageNotificationProfile: { serializedName: "osImageNotificationProfile", type: { name: "Composite", - className: "OSImageNotificationProfile" - } - } - } - } + className: "OSImageNotificationProfile", + }, + }, + }, + }, }; export const TerminateNotificationProfile: coreClient.CompositeMapper = { @@ -2106,17 +2118,17 @@ export const TerminateNotificationProfile: coreClient.CompositeMapper = { notBeforeTimeout: { serializedName: "notBeforeTimeout", type: { - name: "String" - } + name: "String", + }, }, enable: { serializedName: "enable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSImageNotificationProfile: coreClient.CompositeMapper = { @@ -2127,17 +2139,17 @@ export const OSImageNotificationProfile: coreClient.CompositeMapper = { notBeforeTimeout: { serializedName: "notBeforeTimeout", type: { - name: "String" - } + name: "String", + }, }, enable: { serializedName: "enable", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const CapacityReservationProfile: coreClient.CompositeMapper = { @@ -2149,11 +2161,11 @@ export const CapacityReservationProfile: coreClient.CompositeMapper = { serializedName: "capacityReservationGroup", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const ApplicationProfile: coreClient.CompositeMapper = { @@ -2168,13 +2180,13 @@ export const ApplicationProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VMGalleryApplication" - } - } - } - } - } - } + className: "VMGalleryApplication", + }, + }, + }, + }, + }, + }, }; export const VMGalleryApplication: coreClient.CompositeMapper = { @@ -2185,59 +2197,60 @@ export const VMGalleryApplication: coreClient.CompositeMapper = { tags: { serializedName: "tags", type: { - name: "String" - } + name: "String", + }, }, order: { serializedName: "order", type: { - name: "Number" - } + name: "Number", + }, }, packageReferenceId: { serializedName: "packageReferenceId", required: true, type: { - name: "String" - } + name: "String", + }, }, configurationReference: { serializedName: "configurationReference", type: { - name: "String" - } + name: "String", + }, }, treatFailureAsDeploymentFailure: { serializedName: "treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "enableAutomaticUpgrade", type: { - name: "Boolean" - } - } - } - } -}; - -export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile", - modelProperties: { - vmSizeProperties: { - serializedName: "vmSizeProperties", - type: { - name: "Composite", - className: "VMSizeProperties" - } - } - } - } -}; + name: "Boolean", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetHardwareProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile", + modelProperties: { + vmSizeProperties: { + serializedName: "vmSizeProperties", + type: { + name: "Composite", + className: "VMSizeProperties", + }, + }, + }, + }, + }; export const VMSizeProperties: coreClient.CompositeMapper = { type: { @@ -2247,17 +2260,17 @@ export const VMSizeProperties: coreClient.CompositeMapper = { vCPUsAvailable: { serializedName: "vCPUsAvailable", type: { - name: "Number" - } + name: "Number", + }, }, vCPUsPerCore: { serializedName: "vCPUsPerCore", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServiceArtifactReference: coreClient.CompositeMapper = { @@ -2268,11 +2281,11 @@ export const ServiceArtifactReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SecurityPostureReference: coreClient.CompositeMapper = { @@ -2283,8 +2296,8 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, excludeExtensions: { serializedName: "excludeExtensions", @@ -2293,13 +2306,13 @@ export const SecurityPostureReference: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { @@ -2310,20 +2323,20 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, substatuses: { serializedName: "substatuses", @@ -2332,10 +2345,10 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -2344,13 +2357,13 @@ export const VirtualMachineExtensionInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const InstanceViewStatus: coreClient.CompositeMapper = { @@ -2361,36 +2374,36 @@ export const InstanceViewStatus: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, level: { serializedName: "level", type: { name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } + allowedValues: ["Info", "Warning", "Error"], + }, }, displayStatus: { serializedName: "displayStatus", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, time: { serializedName: "time", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { @@ -2401,39 +2414,39 @@ export const ResourceWithOptionalLocation: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const AdditionalCapabilities: coreClient.CompositeMapper = { @@ -2444,17 +2457,17 @@ export const AdditionalCapabilities: coreClient.CompositeMapper = { ultraSSDEnabled: { serializedName: "ultraSSDEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hibernationEnabled: { serializedName: "hibernationEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ScaleInPolicy: coreClient.CompositeMapper = { @@ -2468,19 +2481,19 @@ export const ScaleInPolicy: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, forceDeletion: { serializedName: "forceDeletion", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SpotRestorePolicy: coreClient.CompositeMapper = { @@ -2491,17 +2504,17 @@ export const SpotRestorePolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, restoreTimeout: { serializedName: "restoreTimeout", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PriorityMixPolicy: coreClient.CompositeMapper = { @@ -2511,25 +2524,25 @@ export const PriorityMixPolicy: coreClient.CompositeMapper = { modelProperties: { baseRegularPriorityCount: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "baseRegularPriorityCount", type: { - name: "Number" - } + name: "Number", + }, }, regularPriorityPercentageAboveBase: { constraints: { InclusiveMaximum: 100, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "regularPriorityPercentageAboveBase", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ResiliencyPolicy: coreClient.CompositeMapper = { @@ -2541,18 +2554,18 @@ export const ResiliencyPolicy: coreClient.CompositeMapper = { serializedName: "resilientVMCreationPolicy", type: { name: "Composite", - className: "ResilientVMCreationPolicy" - } + className: "ResilientVMCreationPolicy", + }, }, resilientVMDeletionPolicy: { serializedName: "resilientVMDeletionPolicy", type: { name: "Composite", - className: "ResilientVMDeletionPolicy" - } - } - } - } + className: "ResilientVMDeletionPolicy", + }, + }, + }, + }, }; export const ResilientVMCreationPolicy: coreClient.CompositeMapper = { @@ -2563,11 +2576,11 @@ export const ResilientVMCreationPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ResilientVMDeletionPolicy: coreClient.CompositeMapper = { @@ -2578,11 +2591,11 @@ export const ResilientVMDeletionPolicy: coreClient.CompositeMapper = { enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { @@ -2594,15 +2607,15 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -2612,9 +2625,9 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -2623,13 +2636,13 @@ export const VirtualMachineScaleSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { @@ -2641,18 +2654,18 @@ export const UserAssignedIdentitiesValue: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExtendedLocation: coreClient.CompositeMapper = { @@ -2663,17 +2676,17 @@ export const ExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -2685,206 +2698,209 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile", - modelProperties: { - osProfile: { - serializedName: "osProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile" - } - }, - storageProfile: { - serializedName: "storageProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile" - } - }, - networkProfile: { - serializedName: "networkProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile" - } - }, - securityProfile: { - serializedName: "securityProfile", - type: { - name: "Composite", - className: "SecurityProfile" - } - }, - diagnosticsProfile: { - serializedName: "diagnosticsProfile", - type: { - name: "Composite", - className: "DiagnosticsProfile" - } - }, - extensionProfile: { - serializedName: "extensionProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionProfile" - } - }, - licenseType: { - serializedName: "licenseType", - type: { - name: "String" - } - }, - billingProfile: { - serializedName: "billingProfile", - type: { - name: "Composite", - className: "BillingProfile" - } - }, - scheduledEventsProfile: { - serializedName: "scheduledEventsProfile", - type: { - name: "Composite", - className: "ScheduledEventsProfile" - } - }, - userData: { - serializedName: "userData", - type: { - name: "String" - } - }, - hardwareProfile: { - serializedName: "hardwareProfile", - type: { - name: "Composite", - className: "VirtualMachineScaleSetHardwareProfile" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSProfile", - modelProperties: { - customData: { - serializedName: "customData", - type: { - name: "String" - } - }, - windowsConfiguration: { - serializedName: "windowsConfiguration", - type: { - name: "Composite", - className: "WindowsConfiguration" - } - }, - linuxConfiguration: { - serializedName: "linuxConfiguration", - type: { - name: "Composite", - className: "LinuxConfiguration" - } + value: { type: { name: "String" } }, + }, }, - secrets: { - serializedName: "secrets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateStorageProfile", - modelProperties: { - imageReference: { - serializedName: "imageReference", - type: { - name: "Composite", - className: "ImageReference" - } + }, + }, +}; + +export const VirtualMachineScaleSetUpdateVMProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateVMProfile", + modelProperties: { + osProfile: { + serializedName: "osProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSProfile", + }, + }, + storageProfile: { + serializedName: "storageProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateStorageProfile", + }, + }, + networkProfile: { + serializedName: "networkProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile", + }, + }, + securityProfile: { + serializedName: "securityProfile", + type: { + name: "Composite", + className: "SecurityProfile", + }, + }, + diagnosticsProfile: { + serializedName: "diagnosticsProfile", + type: { + name: "Composite", + className: "DiagnosticsProfile", + }, + }, + extensionProfile: { + serializedName: "extensionProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionProfile", + }, + }, + licenseType: { + serializedName: "licenseType", + type: { + name: "String", + }, + }, + billingProfile: { + serializedName: "billingProfile", + type: { + name: "Composite", + className: "BillingProfile", + }, + }, + scheduledEventsProfile: { + serializedName: "scheduledEventsProfile", + type: { + name: "Composite", + className: "ScheduledEventsProfile", + }, + }, + userData: { + serializedName: "userData", + type: { + name: "String", + }, + }, + hardwareProfile: { + serializedName: "hardwareProfile", + type: { + name: "Composite", + className: "VirtualMachineScaleSetHardwareProfile", + }, + }, }, - osDisk: { - serializedName: "osDisk", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateOSDisk" - } + }, + }; + +export const VirtualMachineScaleSetUpdateOSProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSProfile", + modelProperties: { + customData: { + serializedName: "customData", + type: { + name: "String", + }, + }, + windowsConfiguration: { + serializedName: "windowsConfiguration", + type: { + name: "Composite", + className: "WindowsConfiguration", + }, + }, + linuxConfiguration: { + serializedName: "linuxConfiguration", + type: { + name: "Composite", + className: "LinuxConfiguration", + }, + }, + secrets: { + serializedName: "secrets", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VaultSecretGroup", + }, + }, + }, + }, }, - dataDisks: { - serializedName: "dataDisks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetDataDisk" - } - } - } + }, + }; + +export const VirtualMachineScaleSetUpdateStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateStorageProfile", + modelProperties: { + imageReference: { + serializedName: "imageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + osDisk: { + serializedName: "osDisk", + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateOSDisk", + }, + }, + dataDisks: { + serializedName: "dataDisks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetDataDisk", + }, + }, + }, + }, + diskControllerType: { + serializedName: "diskControllerType", + type: { + name: "String", + }, + }, }, - diskControllerType: { - serializedName: "diskControllerType", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { type: { @@ -2895,27 +2911,27 @@ export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, vhdContainers: { serializedName: "vhdContainers", @@ -2923,296 +2939,301 @@ export const VirtualMachineScaleSetUpdateOSDisk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "VirtualMachineScaleSetManagedDiskParameters" - } + className: "VirtualMachineScaleSetManagedDiskParameters", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkProfile", + modelProperties: { + healthProbe: { + serializedName: "healthProbe", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + }, + }, + }, + }, + networkApiVersion: { + serializedName: "networkApiVersion", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateNetworkConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration", + }, + }, + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdateIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "ApiEntityReference", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerInboundNatPools: { + serializedName: "properties.loadBalancerInboundNatPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: + "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings", + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + }, + }, + }; -export const VirtualMachineScaleSetUpdateNetworkProfile: coreClient.CompositeMapper = { +export const UpdateResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkProfile", + className: "UpdateResource", modelProperties: { - healthProbe: { - serializedName: "healthProbe", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", + tags: { + serializedName: "tags", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration" - } - } - } + name: "Dictionary", + value: { type: { name: "String" } }, + }, }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateNetworkConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateNetworkConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfigurationDnsSettings" - } - }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration" - } - } - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", - type: { - name: "String" - } - }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdateIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdateIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - subnet: { - serializedName: "properties.subnet", - type: { - name: "Composite", - className: "ApiEntityReference" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration" - } - }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", - type: { - name: "String" - } - }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - }, - loadBalancerInboundNatPools: { - serializedName: "properties.loadBalancerInboundNatPools", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetUpdatePublicIPAddressConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetUpdatePublicIPAddressConfiguration", - modelProperties: { - name: { - serializedName: "name", - type: { - name: "String" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - dnsSettings: { - serializedName: "properties.dnsSettings", - type: { - name: "Composite", - className: - "VirtualMachineScaleSetPublicIPAddressConfigurationDnsSettings" - } - }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const UpdateResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateResource", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + }, + }, }; export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { @@ -3226,35 +3247,36 @@ export const VirtualMachineScaleSetVMInstanceIDs: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceRequiredIDs", - modelProperties: { - instanceIds: { - serializedName: "instanceIds", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetVMInstanceRequiredIDs: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceRequiredIDs", + modelProperties: { + instanceIds: { + serializedName: "instanceIds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { type: { @@ -3265,8 +3287,8 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { serializedName: "virtualMachine", type: { name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary" - } + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + }, }, extensions: { serializedName: "extensions", @@ -3276,10 +3298,10 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary" - } - } - } + className: "VirtualMachineScaleSetVMExtensionsSummary", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -3288,10 +3310,10 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, orchestrationServices: { serializedName: "orchestrationServices", @@ -3301,36 +3323,37 @@ export const VirtualMachineScaleSetInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OrchestrationServiceSummary" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetInstanceViewStatusesSummary", - modelProperties: { - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineStatusCodeCount" - } - } - } - } - } - } -}; + className: "OrchestrationServiceSummary", + }, + }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetInstanceViewStatusesSummary: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetInstanceViewStatusesSummary", + modelProperties: { + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount", + }, + }, + }, + }, + }, + }, + }; export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { type: { @@ -3341,48 +3364,49 @@ export const VirtualMachineStatusCodeCount: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", readOnly: true, type: { - name: "Number" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsSummary", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } + name: "Number", + }, }, - statusesSummary: { - serializedName: "statusesSummary", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineStatusCodeCount" - } - } - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionsSummary: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsSummary", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + statusesSummary: { + serializedName: "statusesSummary", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineStatusCodeCount", + }, + }, + }, + }, + }, + }, + }; export const OrchestrationServiceSummary: coreClient.CompositeMapper = { type: { @@ -3393,103 +3417,106 @@ export const OrchestrationServiceSummary: coreClient.CompositeMapper = { serializedName: "serviceName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serviceState: { serializedName: "serviceState", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionListResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtension" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListWithLinkResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSet" - } - } - } + }, + }, +}; + +export const VirtualMachineScaleSetExtensionListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionListResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtension", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListSkusResult", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetSku" - } - } - } + }, + }; + +export const VirtualMachineScaleSetListWithLinkResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListWithLinkResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSet", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const VirtualMachineScaleSetListSkusResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListSkusResult", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetSku", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { type: { @@ -3500,25 +3527,25 @@ export const VirtualMachineScaleSetSku: coreClient.CompositeMapper = { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "VirtualMachineScaleSetSkuCapacity" - } - } - } - } + className: "VirtualMachineScaleSetSkuCapacity", + }, + }, + }, + }, }; export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { @@ -3530,144 +3557,147 @@ export const VirtualMachineScaleSetSkuCapacity: coreClient.CompositeMapper = { serializedName: "minimum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, defaultCapacity: { serializedName: "defaultCapacity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", readOnly: true, type: { name: "Enum", - allowedValues: ["Automatic", "None"] - } - } - } - } -}; - -export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetListOSUpgradeHistory", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo" - } - } - } - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfo", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpgradeOperationHistoricalStatusInfoProperties", - modelProperties: { - runningStatus: { - serializedName: "runningStatus", - type: { - name: "Composite", - className: "UpgradeOperationHistoryStatus" - } - }, - progress: { - serializedName: "progress", - type: { - name: "Composite", - className: "RollingUpgradeProgressInfo" - } + allowedValues: ["Automatic", "None"], + }, }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ApiError" - } + }, + }, +}; + +export const VirtualMachineScaleSetListOSUpgradeHistory: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetListOSUpgradeHistory", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfo", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - startedBy: { - serializedName: "startedBy", - readOnly: true, + }, + }; + +export const UpgradeOperationHistoricalStatusInfo: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfo", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + }, + }, type: { - name: "Enum", - allowedValues: ["Unknown", "User", "Platform"] - } + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, }, - targetImageReference: { - serializedName: "targetImageReference", - type: { - name: "Composite", - className: "ImageReference" - } + }, + }; + +export const UpgradeOperationHistoricalStatusInfoProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "UpgradeOperationHistoricalStatusInfoProperties", + modelProperties: { + runningStatus: { + serializedName: "runningStatus", + type: { + name: "Composite", + className: "UpgradeOperationHistoryStatus", + }, + }, + progress: { + serializedName: "progress", + type: { + name: "Composite", + className: "RollingUpgradeProgressInfo", + }, + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ApiError", + }, + }, + startedBy: { + serializedName: "startedBy", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Unknown", "User", "Platform"], + }, + }, + targetImageReference: { + serializedName: "targetImageReference", + type: { + name: "Composite", + className: "ImageReference", + }, + }, + rollbackInfo: { + serializedName: "rollbackInfo", + type: { + name: "Composite", + className: "RollbackStatusInfo", + }, + }, }, - rollbackInfo: { - serializedName: "rollbackInfo", - type: { - name: "Composite", - className: "RollbackStatusInfo" - } - } - } - } -}; + }, + }; export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { type: { @@ -3679,25 +3709,30 @@ export const UpgradeOperationHistoryStatus: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] - } + allowedValues: [ + "RollingForward", + "Cancelled", + "Completed", + "Faulted", + ], + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "endTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { @@ -3709,32 +3744,32 @@ export const RollingUpgradeProgressInfo: coreClient.CompositeMapper = { serializedName: "successfulInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedInstanceCount: { serializedName: "failedInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, inProgressInstanceCount: { serializedName: "inProgressInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingInstanceCount: { serializedName: "pendingInstanceCount", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RollbackStatusInfo: coreClient.CompositeMapper = { @@ -3746,25 +3781,25 @@ export const RollbackStatusInfo: coreClient.CompositeMapper = { serializedName: "successfullyRolledbackInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedRolledbackInstanceCount: { serializedName: "failedRolledbackInstanceCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, rollbackError: { serializedName: "rollbackError", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { @@ -3775,24 +3810,24 @@ export const VirtualMachineReimageParameters: coreClient.CompositeMapper = { tempDisk: { serializedName: "tempDisk", type: { - name: "Boolean" - } + name: "Boolean", + }, }, exactVersion: { serializedName: "exactVersion", type: { - name: "String" - } + name: "String", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "OSProfileProvisioningData" - } - } - } - } + className: "OSProfileProvisioningData", + }, + }, + }, + }, }; export const OSProfileProvisioningData: coreClient.CompositeMapper = { @@ -3803,17 +3838,17 @@ export const OSProfileProvisioningData: coreClient.CompositeMapper = { adminPassword: { serializedName: "adminPassword", type: { - name: "String" - } + name: "String", + }, }, customData: { serializedName: "customData", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RollingUpgradeRunningStatus: coreClient.CompositeMapper = { @@ -3826,244 +3861,252 @@ export const RollingUpgradeRunningStatus: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["RollingForward", "Cancelled", "Completed", "Faulted"] - } + allowedValues: [ + "RollingForward", + "Cancelled", + "Completed", + "Faulted", + ], + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastAction: { serializedName: "lastAction", readOnly: true, type: { name: "Enum", - allowedValues: ["Start", "Cancel"] - } + allowedValues: ["Start", "Cancel"], + }, }, lastActionTime: { serializedName: "lastActionTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const RecoveryWalkResponse: coreClient.CompositeMapper = { type: { name: "Composite", className: "RecoveryWalkResponse", - modelProperties: { - walkPerformed: { - serializedName: "walkPerformed", - readOnly: true, - type: { - name: "Boolean" - } - }, - nextPlatformUpdateDomain: { - serializedName: "nextPlatformUpdateDomain", - readOnly: true, - type: { - name: "Number" - } - } - } - } -}; - -export const VMScaleSetConvertToSinglePlacementGroupInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VMScaleSetConvertToSinglePlacementGroupInput", - modelProperties: { - activePlacementGroupId: { - serializedName: "activePlacementGroupId", - type: { - name: "String" - } - } - } - } -}; - -export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OrchestrationServiceStateInput", - modelProperties: { - serviceName: { - serializedName: "serviceName", - required: true, - type: { - name: "String" - } - }, - action: { - serializedName: "action", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionsListResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtension" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView", - modelProperties: { - platformUpdateDomain: { - serializedName: "platformUpdateDomain", - type: { - name: "Number" - } - }, - platformFaultDomain: { - serializedName: "platformFaultDomain", - type: { - name: "Number" - } - }, - rdpThumbPrint: { - serializedName: "rdpThumbPrint", - type: { - name: "String" - } - }, - vmAgent: { - serializedName: "vmAgent", - type: { - name: "Composite", - className: "VirtualMachineAgentInstanceView" - } - }, - maintenanceRedeployStatus: { - serializedName: "maintenanceRedeployStatus", - type: { - name: "Composite", - className: "MaintenanceRedeployStatus" - } - }, - disks: { - serializedName: "disks", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DiskInstanceView" - } - } - } - }, - extensions: { - serializedName: "extensions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - } - } - }, - vmHealth: { - serializedName: "vmHealth", - type: { - name: "Composite", - className: "VirtualMachineHealthStatus" - } - }, - bootDiagnostics: { - serializedName: "bootDiagnostics", - type: { - name: "Composite", - className: "BootDiagnosticsInstanceView" - } - }, - statuses: { - serializedName: "statuses", + modelProperties: { + walkPerformed: { + serializedName: "walkPerformed", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } + name: "Boolean", + }, }, - assignedHost: { - serializedName: "assignedHost", + nextPlatformUpdateDomain: { + serializedName: "nextPlatformUpdateDomain", readOnly: true, type: { - name: "String" - } + name: "Number", + }, }, - placementGroupId: { - serializedName: "placementGroupId", - type: { - name: "String" - } + }, + }, +}; + +export const VMScaleSetConvertToSinglePlacementGroupInput: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VMScaleSetConvertToSinglePlacementGroupInput", + modelProperties: { + activePlacementGroupId: { + serializedName: "activePlacementGroupId", + type: { + name: "String", + }, + }, }, - computerName: { - serializedName: "computerName", + }, + }; + +export const OrchestrationServiceStateInput: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OrchestrationServiceStateInput", + modelProperties: { + serviceName: { + serializedName: "serviceName", + required: true, type: { - name: "String" - } + name: "String", + }, }, - osName: { - serializedName: "osName", + action: { + serializedName: "action", + required: true, type: { - name: "String" - } + name: "String", + }, }, - osVersion: { - serializedName: "osVersion", - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionsListResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionsListResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtension", + }, + }, + }, + }, }, - hyperVGeneration: { - serializedName: "hyperVGeneration", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const VirtualMachineScaleSetVMInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMInstanceView", + modelProperties: { + platformUpdateDomain: { + serializedName: "platformUpdateDomain", + type: { + name: "Number", + }, + }, + platformFaultDomain: { + serializedName: "platformFaultDomain", + type: { + name: "Number", + }, + }, + rdpThumbPrint: { + serializedName: "rdpThumbPrint", + type: { + name: "String", + }, + }, + vmAgent: { + serializedName: "vmAgent", + type: { + name: "Composite", + className: "VirtualMachineAgentInstanceView", + }, + }, + maintenanceRedeployStatus: { + serializedName: "maintenanceRedeployStatus", + type: { + name: "Composite", + className: "MaintenanceRedeployStatus", + }, + }, + disks: { + serializedName: "disks", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiskInstanceView", + }, + }, + }, + }, + extensions: { + serializedName: "extensions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineExtensionInstanceView", + }, + }, + }, + }, + vmHealth: { + serializedName: "vmHealth", + type: { + name: "Composite", + className: "VirtualMachineHealthStatus", + }, + }, + bootDiagnostics: { + serializedName: "bootDiagnostics", + type: { + name: "Composite", + className: "BootDiagnosticsInstanceView", + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, + assignedHost: { + serializedName: "assignedHost", + readOnly: true, + type: { + name: "String", + }, + }, + placementGroupId: { + serializedName: "placementGroupId", + type: { + name: "String", + }, + }, + computerName: { + serializedName: "computerName", + type: { + name: "String", + }, + }, + osName: { + serializedName: "osName", + type: { + name: "String", + }, + }, + osVersion: { + serializedName: "osVersion", + type: { + name: "String", + }, + }, + hyperVGeneration: { + serializedName: "hyperVGeneration", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { type: { @@ -4073,8 +4116,8 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { vmAgentVersion: { serializedName: "vmAgentVersion", type: { - name: "String" - } + name: "String", + }, }, extensionHandlers: { serializedName: "extensionHandlers", @@ -4083,10 +4126,10 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView" - } - } - } + className: "VirtualMachineExtensionHandlerInstanceView", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -4095,42 +4138,43 @@ export const VirtualMachineAgentInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; -export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineExtensionHandlerInstanceView", - modelProperties: { - type: { - serializedName: "type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "typeHandlerVersion", +export const VirtualMachineExtensionHandlerInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineExtensionHandlerInstanceView", + modelProperties: { type: { - name: "String" - } + serializedName: "type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "typeHandlerVersion", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, }, - status: { - serializedName: "status", - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } -}; + }, + }; export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { type: { @@ -4140,32 +4184,32 @@ export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { isCustomerInitiatedMaintenanceAllowed: { serializedName: "isCustomerInitiatedMaintenanceAllowed", type: { - name: "Boolean" - } + name: "Boolean", + }, }, preMaintenanceWindowStartTime: { serializedName: "preMaintenanceWindowStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, preMaintenanceWindowEndTime: { serializedName: "preMaintenanceWindowEndTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, maintenanceWindowStartTime: { serializedName: "maintenanceWindowStartTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, maintenanceWindowEndTime: { serializedName: "maintenanceWindowEndTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastOperationResultCode: { serializedName: "lastOperationResultCode", @@ -4175,18 +4219,18 @@ export const MaintenanceRedeployStatus: coreClient.CompositeMapper = { "None", "RetryLater", "MaintenanceAborted", - "MaintenanceCompleted" - ] - } + "MaintenanceCompleted", + ], + }, }, lastOperationMessage: { serializedName: "lastOperationMessage", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskInstanceView: coreClient.CompositeMapper = { @@ -4197,8 +4241,8 @@ export const DiskInstanceView: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, encryptionSettings: { serializedName: "encryptionSettings", @@ -4207,10 +4251,10 @@ export const DiskInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSettings" - } - } - } + className: "DiskEncryptionSettings", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -4219,13 +4263,13 @@ export const DiskInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DiskEncryptionSettings: coreClient.CompositeMapper = { @@ -4237,24 +4281,24 @@ export const DiskEncryptionSettings: coreClient.CompositeMapper = { serializedName: "diskEncryptionKey", type: { name: "Composite", - className: "KeyVaultSecretReference" - } + className: "KeyVaultSecretReference", + }, }, keyEncryptionKey: { serializedName: "keyEncryptionKey", type: { name: "Composite", - className: "KeyVaultKeyReference" - } + className: "KeyVaultKeyReference", + }, }, enabled: { serializedName: "enabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const KeyVaultKeyReference: coreClient.CompositeMapper = { @@ -4266,18 +4310,18 @@ export const KeyVaultKeyReference: coreClient.CompositeMapper = { serializedName: "keyUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, sourceVault: { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { @@ -4289,11 +4333,11 @@ export const VirtualMachineHealthStatus: coreClient.CompositeMapper = { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { @@ -4305,25 +4349,25 @@ export const BootDiagnosticsInstanceView: coreClient.CompositeMapper = { serializedName: "consoleScreenshotBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serialConsoleLogBlobUri: { serializedName: "serialConsoleLogBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const HardwareProfile: coreClient.CompositeMapper = { @@ -4334,18 +4378,18 @@ export const HardwareProfile: coreClient.CompositeMapper = { vmSize: { serializedName: "vmSize", type: { - name: "String" - } + name: "String", + }, }, vmSizeProperties: { serializedName: "vmSizeProperties", type: { name: "Composite", - className: "VMSizeProperties" - } - } - } - } + className: "VMSizeProperties", + }, + }, + }, + }, }; export const StorageProfile: coreClient.CompositeMapper = { @@ -4357,15 +4401,15 @@ export const StorageProfile: coreClient.CompositeMapper = { serializedName: "imageReference", type: { name: "Composite", - className: "ImageReference" - } + className: "ImageReference", + }, }, osDisk: { serializedName: "osDisk", type: { name: "Composite", - className: "OSDisk" - } + className: "OSDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -4374,19 +4418,19 @@ export const StorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisk" - } - } - } + className: "DataDisk", + }, + }, + }, }, diskControllerType: { serializedName: "diskControllerType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSDisk: coreClient.CompositeMapper = { @@ -4398,84 +4442,84 @@ export const OSDisk: coreClient.CompositeMapper = { serializedName: "osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, encryptionSettings: { serializedName: "encryptionSettings", type: { name: "Composite", - className: "DiskEncryptionSettings" - } + className: "DiskEncryptionSettings", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, vhd: { serializedName: "vhd", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, diffDiskSettings: { serializedName: "diffDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, deleteOption: { serializedName: "deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataDisk: coreClient.CompositeMapper = { @@ -4487,497 +4531,502 @@ export const DataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, vhd: { serializedName: "vhd", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, image: { serializedName: "image", type: { name: "Composite", - className: "VirtualHardDisk" - } + className: "VirtualHardDisk", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, createOption: { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, toBeDetached: { serializedName: "toBeDetached", type: { - name: "Boolean" - } - }, - diskIopsReadWrite: { - serializedName: "diskIOPSReadWrite", - readOnly: true, - type: { - name: "Number" - } - }, - diskMBpsReadWrite: { - serializedName: "diskMBpsReadWrite", - readOnly: true, - type: { - name: "Number" - } - }, - detachOption: { - serializedName: "detachOption", - type: { - name: "String" - } - }, - deleteOption: { - serializedName: "deleteOption", - type: { - name: "String" - } - } - } - } -}; - -export const OSProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OSProfile", - modelProperties: { - computerName: { - serializedName: "computerName", - type: { - name: "String" - } - }, - adminUsername: { - serializedName: "adminUsername", - type: { - name: "String" - } - }, - adminPassword: { - serializedName: "adminPassword", - type: { - name: "String" - } - }, - customData: { - serializedName: "customData", - type: { - name: "String" - } - }, - windowsConfiguration: { - serializedName: "windowsConfiguration", - type: { - name: "Composite", - className: "WindowsConfiguration" - } - }, - linuxConfiguration: { - serializedName: "linuxConfiguration", - type: { - name: "Composite", - className: "LinuxConfiguration" - } - }, - secrets: { - serializedName: "secrets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VaultSecretGroup" - } - } - } - }, - allowExtensionOperations: { - serializedName: "allowExtensionOperations", - type: { - name: "Boolean" - } - }, - requireGuestProvisionSignal: { - serializedName: "requireGuestProvisionSignal", - type: { - name: "Boolean" - } - } - } - } -}; - -export const NetworkProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "NetworkProfile", - modelProperties: { - networkInterfaces: { - serializedName: "networkInterfaces", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NetworkInterfaceReference" - } - } - } - }, - networkApiVersion: { - serializedName: "networkApiVersion", - type: { - name: "String" - } - }, - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration" - } - } - } - } - } - } -}; - -export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - primary: { - serializedName: "properties.primary", - type: { - name: "Boolean" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", - type: { - name: "String" - } - }, - enableAcceleratedNetworking: { - serializedName: "properties.enableAcceleratedNetworking", - type: { - name: "Boolean" - } - }, - disableTcpStateTracking: { - serializedName: "properties.disableTcpStateTracking", - type: { - name: "Boolean" - } - }, - enableFpga: { - serializedName: "properties.enableFpga", - type: { - name: "Boolean" - } - }, - enableIPForwarding: { - serializedName: "properties.enableIPForwarding", - type: { - name: "Boolean" - } - }, - networkSecurityGroup: { - serializedName: "properties.networkSecurityGroup", - type: { - name: "Composite", - className: "SubResource" - } + name: "Boolean", + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", + diskIopsReadWrite: { + serializedName: "diskIOPSReadWrite", + readOnly: true, type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration" - } + name: "Number", + }, }, - ipConfigurations: { - serializedName: "properties.ipConfigurations", + diskMBpsReadWrite: { + serializedName: "diskMBpsReadWrite", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration" - } - } - } + name: "Number", + }, }, - dscpConfiguration: { - serializedName: "properties.dscpConfiguration", + detachOption: { + serializedName: "detachOption", type: { - name: "Composite", - className: "SubResource" - } + name: "String", + }, }, - auxiliaryMode: { - serializedName: "properties.auxiliaryMode", + deleteOption: { + serializedName: "deleteOption", type: { - name: "String" - } + name: "String", + }, }, - auxiliarySku: { - serializedName: "properties.auxiliarySku", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = { +export const OSProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + className: "OSProfile", modelProperties: { - dnsServers: { - serializedName: "dnsServers", + computerName: { + serializedName: "computerName", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineNetworkInterfaceIPConfiguration", - modelProperties: { - name: { - serializedName: "name", - required: true, + name: "String", + }, + }, + adminUsername: { + serializedName: "adminUsername", type: { - name: "String" - } + name: "String", + }, }, - subnet: { - serializedName: "properties.subnet", + adminPassword: { + serializedName: "adminPassword", type: { - name: "Composite", - className: "SubResource" - } + name: "String", + }, }, - primary: { - serializedName: "properties.primary", + customData: { + serializedName: "customData", type: { - name: "Boolean" - } + name: "String", + }, }, - publicIPAddressConfiguration: { - serializedName: "properties.publicIPAddressConfiguration", + windowsConfiguration: { + serializedName: "windowsConfiguration", type: { name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration" - } + className: "WindowsConfiguration", + }, }, - privateIPAddressVersion: { - serializedName: "properties.privateIPAddressVersion", + linuxConfiguration: { + serializedName: "linuxConfiguration", type: { - name: "String" - } + name: "Composite", + className: "LinuxConfiguration", + }, }, - applicationSecurityGroups: { - serializedName: "properties.applicationSecurityGroups", + secrets: { + serializedName: "secrets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SubResource" - } - } - } + className: "VaultSecretGroup", + }, + }, + }, }, - applicationGatewayBackendAddressPools: { - serializedName: "properties.applicationGatewayBackendAddressPools", + allowExtensionOperations: { + serializedName: "allowExtensionOperations", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } + name: "Boolean", + }, }, - loadBalancerBackendAddressPools: { - serializedName: "properties.loadBalancerBackendAddressPools", + requireGuestProvisionSignal: { + serializedName: "requireGuestProvisionSignal", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResource" - } - } - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = { +export const NetworkProfile: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VirtualMachinePublicIPAddressConfiguration", + className: "NetworkProfile", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "PublicIPAddressSku" - } - }, - idleTimeoutInMinutes: { - serializedName: "properties.idleTimeoutInMinutes", - type: { - name: "Number" - } - }, - deleteOption: { - serializedName: "properties.deleteOption", + networkInterfaces: { + serializedName: "networkInterfaces", type: { - name: "String" - } + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NetworkInterfaceReference", + }, + }, + }, }, - dnsSettings: { - serializedName: "properties.dnsSettings", + networkApiVersion: { + serializedName: "networkApiVersion", type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration" - } + name: "String", + }, }, - ipTags: { - serializedName: "properties.ipTags", + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VirtualMachineIpTag" - } - } - } + className: "VirtualMachineNetworkInterfaceConfiguration", + }, + }, + }, }, - publicIPPrefix: { - serializedName: "properties.publicIPPrefix", - type: { - name: "Composite", - className: "SubResource" - } + }, + }, +}; + +export const VirtualMachineNetworkInterfaceConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + enableAcceleratedNetworking: { + serializedName: "properties.enableAcceleratedNetworking", + type: { + name: "Boolean", + }, + }, + disableTcpStateTracking: { + serializedName: "properties.disableTcpStateTracking", + type: { + name: "Boolean", + }, + }, + enableFpga: { + serializedName: "properties.enableFpga", + type: { + name: "Boolean", + }, + }, + enableIPForwarding: { + serializedName: "properties.enableIPForwarding", + type: { + name: "Boolean", + }, + }, + networkSecurityGroup: { + serializedName: "properties.networkSecurityGroup", + type: { + name: "Composite", + className: "SubResource", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + }, + }, + ipConfigurations: { + serializedName: "properties.ipConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration", + }, + }, + }, + }, + dscpConfiguration: { + serializedName: "properties.dscpConfiguration", + type: { + name: "Composite", + className: "SubResource", + }, + }, + auxiliaryMode: { + serializedName: "properties.auxiliaryMode", + type: { + name: "String", + }, + }, + auxiliarySku: { + serializedName: "properties.auxiliarySku", + type: { + name: "String", + }, + }, }, - publicIPAddressVersion: { - serializedName: "properties.publicIPAddressVersion", - type: { - name: "String" - } + }, + }; + +export const VirtualMachineNetworkInterfaceDnsSettingsConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceDnsSettingsConfiguration", + modelProperties: { + dnsServers: { + serializedName: "dnsServers", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, - publicIPAllocationMethod: { - serializedName: "properties.publicIPAllocationMethod", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", - modelProperties: { - domainNameLabel: { - serializedName: "domainNameLabel", - required: true, - type: { - name: "String" - } + }, + }; + +export const VirtualMachineNetworkInterfaceIPConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineNetworkInterfaceIPConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + subnet: { + serializedName: "properties.subnet", + type: { + name: "Composite", + className: "SubResource", + }, + }, + primary: { + serializedName: "properties.primary", + type: { + name: "Boolean", + }, + }, + publicIPAddressConfiguration: { + serializedName: "properties.publicIPAddressConfiguration", + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressConfiguration", + }, + }, + privateIPAddressVersion: { + serializedName: "properties.privateIPAddressVersion", + type: { + name: "String", + }, + }, + applicationSecurityGroups: { + serializedName: "properties.applicationSecurityGroups", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + applicationGatewayBackendAddressPools: { + serializedName: "properties.applicationGatewayBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, + loadBalancerBackendAddressPools: { + serializedName: "properties.loadBalancerBackendAddressPools", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResource", + }, + }, + }, + }, }, - domainNameLabelScope: { - serializedName: "domainNameLabelScope", - type: { - name: "String" - } - } - } - } -}; + }, + }; + +export const VirtualMachinePublicIPAddressConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressConfiguration", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "PublicIPAddressSku", + }, + }, + idleTimeoutInMinutes: { + serializedName: "properties.idleTimeoutInMinutes", + type: { + name: "Number", + }, + }, + deleteOption: { + serializedName: "properties.deleteOption", + type: { + name: "String", + }, + }, + dnsSettings: { + serializedName: "properties.dnsSettings", + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", + }, + }, + ipTags: { + serializedName: "properties.ipTags", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineIpTag", + }, + }, + }, + }, + publicIPPrefix: { + serializedName: "properties.publicIPPrefix", + type: { + name: "Composite", + className: "SubResource", + }, + }, + publicIPAddressVersion: { + serializedName: "properties.publicIPAddressVersion", + type: { + name: "String", + }, + }, + publicIPAllocationMethod: { + serializedName: "properties.publicIPAllocationMethod", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachinePublicIPAddressDnsSettingsConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinePublicIPAddressDnsSettingsConfiguration", + modelProperties: { + domainNameLabel: { + serializedName: "domainNameLabel", + required: true, + type: { + name: "String", + }, + }, + domainNameLabelScope: { + serializedName: "domainNameLabelScope", + type: { + name: "String", + }, + }, + }, + }, + }; export const VirtualMachineIpTag: coreClient.CompositeMapper = { type: { @@ -4987,60 +5036,62 @@ export const VirtualMachineIpTag: coreClient.CompositeMapper = { ipTagType: { serializedName: "ipTagType", type: { - name: "String" - } + name: "String", + }, }, tag: { serializedName: "tag", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", - modelProperties: { - networkInterfaceConfigurations: { - serializedName: "networkInterfaceConfigurations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VirtualMachineScaleSetNetworkConfiguration" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy", - modelProperties: { - protectFromScaleIn: { - serializedName: "protectFromScaleIn", - type: { - name: "Boolean" - } + name: "String", + }, }, - protectFromScaleSetActions: { - serializedName: "protectFromScaleSetActions", - type: { - name: "Boolean" - } - } - } - } -}; + }, + }, +}; + +export const VirtualMachineScaleSetVMNetworkProfileConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + modelProperties: { + networkInterfaceConfigurations: { + serializedName: "networkInterfaceConfigurations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VirtualMachineScaleSetNetworkConfiguration", + }, + }, + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetVMProtectionPolicy: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMProtectionPolicy", + modelProperties: { + protectFromScaleIn: { + serializedName: "protectFromScaleIn", + type: { + name: "Boolean", + }, + }, + protectFromScaleSetActions: { + serializedName: "protectFromScaleSetActions", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const VirtualMachineIdentity: coreClient.CompositeMapper = { type: { @@ -5051,15 +5102,15 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", @@ -5069,9 +5120,9 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { "SystemAssigned", "UserAssigned", "SystemAssigned, UserAssigned", - "None" - ] - } + "None", + ], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -5080,13 +5131,13 @@ export const VirtualMachineIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { @@ -5102,19 +5153,19 @@ export const VirtualMachineScaleSetVMListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineScaleSetVM" - } - } - } + className: "VirtualMachineScaleSetVM", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { @@ -5126,18 +5177,18 @@ export const RetrieveBootDiagnosticsDataResult: coreClient.CompositeMapper = { serializedName: "consoleScreenshotBlobUri", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, serialConsoleLogBlobUri: { serializedName: "serialConsoleLogBlobUri", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { @@ -5147,7 +5198,7 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { modelProperties: { dataDisksToAttach: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "dataDisksToAttach", type: { @@ -5155,14 +5206,14 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisksToAttach" - } - } - } + className: "DataDisksToAttach", + }, + }, + }, }, dataDisksToDetach: { constraints: { - MinItems: 1 + MinItems: 1, }, serializedName: "dataDisksToDetach", type: { @@ -5170,13 +5221,13 @@ export const AttachDetachDataDisksRequest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisksToDetach" - } - } - } - } - } - } + className: "DataDisksToDetach", + }, + }, + }, + }, + }, + }, }; export const DataDisksToAttach: coreClient.CompositeMapper = { @@ -5188,17 +5239,17 @@ export const DataDisksToAttach: coreClient.CompositeMapper = { serializedName: "diskId", required: true, type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const DataDisksToDetach: coreClient.CompositeMapper = { @@ -5210,17 +5261,17 @@ export const DataDisksToDetach: coreClient.CompositeMapper = { serializedName: "diskId", required: true, type: { - name: "String" - } + name: "String", + }, }, detachOption: { serializedName: "detachOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { @@ -5235,13 +5286,13 @@ export const VirtualMachineExtensionsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineListResult: coreClient.CompositeMapper = { @@ -5257,19 +5308,19 @@ export const VirtualMachineListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachine" - } - } - } + className: "VirtualMachine", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineInstanceView: coreClient.CompositeMapper = { @@ -5280,58 +5331,58 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { platformUpdateDomain: { serializedName: "platformUpdateDomain", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomain: { serializedName: "platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, computerName: { serializedName: "computerName", type: { - name: "String" - } + name: "String", + }, }, osName: { serializedName: "osName", type: { - name: "String" - } + name: "String", + }, }, osVersion: { serializedName: "osVersion", type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, rdpThumbPrint: { serializedName: "rdpThumbPrint", type: { - name: "String" - } + name: "String", + }, }, vmAgent: { serializedName: "vmAgent", type: { name: "Composite", - className: "VirtualMachineAgentInstanceView" - } + className: "VirtualMachineAgentInstanceView", + }, }, maintenanceRedeployStatus: { serializedName: "maintenanceRedeployStatus", type: { name: "Composite", - className: "MaintenanceRedeployStatus" - } + className: "MaintenanceRedeployStatus", + }, }, disks: { serializedName: "disks", @@ -5340,10 +5391,10 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskInstanceView" - } - } - } + className: "DiskInstanceView", + }, + }, + }, }, extensions: { serializedName: "extensions", @@ -5352,31 +5403,31 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - } - } + className: "VirtualMachineExtensionInstanceView", + }, + }, + }, }, vmHealth: { serializedName: "vmHealth", type: { name: "Composite", - className: "VirtualMachineHealthStatus" - } + className: "VirtualMachineHealthStatus", + }, }, bootDiagnostics: { serializedName: "bootDiagnostics", type: { name: "Composite", - className: "BootDiagnosticsInstanceView" - } + className: "BootDiagnosticsInstanceView", + }, }, assignedHost: { serializedName: "assignedHost", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statuses: { serializedName: "statuses", @@ -5385,27 +5436,27 @@ export const VirtualMachineInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } + className: "InstanceViewStatus", + }, + }, + }, }, patchStatus: { serializedName: "patchStatus", type: { name: "Composite", - className: "VirtualMachinePatchStatus" - } + className: "VirtualMachinePatchStatus", + }, }, isVMInStandbyPool: { serializedName: "isVMInStandbyPool", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { @@ -5417,15 +5468,15 @@ export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { serializedName: "availablePatchSummary", type: { name: "Composite", - className: "AvailablePatchSummary" - } + className: "AvailablePatchSummary", + }, }, lastPatchInstallationSummary: { serializedName: "lastPatchInstallationSummary", type: { name: "Composite", - className: "LastPatchInstallationSummary" - } + className: "LastPatchInstallationSummary", + }, }, configurationStatuses: { serializedName: "configurationStatuses", @@ -5435,13 +5486,13 @@ export const VirtualMachinePatchStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const AvailablePatchSummary: coreClient.CompositeMapper = { @@ -5453,60 +5504,60 @@ export const AvailablePatchSummary: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, assessmentActivityId: { serializedName: "assessmentActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootPending: { serializedName: "rebootPending", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, criticalAndSecurityPatchCount: { serializedName: "criticalAndSecurityPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, otherPatchCount: { serializedName: "otherPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const LastPatchInstallationSummary: coreClient.CompositeMapper = { @@ -5518,81 +5569,81 @@ export const LastPatchInstallationSummary: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, installationActivityId: { serializedName: "installationActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maintenanceWindowExceeded: { serializedName: "maintenanceWindowExceeded", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, notSelectedPatchCount: { serializedName: "notSelectedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, excludedPatchCount: { serializedName: "excludedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingPatchCount: { serializedName: "pendingPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, installedPatchCount: { serializedName: "installedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedPatchCount: { serializedName: "failedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedTime: { serializedName: "lastModifiedTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { @@ -5604,25 +5655,25 @@ export const VirtualMachineCaptureParameters: coreClient.CompositeMapper = { serializedName: "vhdPrefix", required: true, type: { - name: "String" - } + name: "String", + }, }, destinationContainerName: { serializedName: "destinationContainerName", required: true, type: { - name: "String" - } + name: "String", + }, }, overwriteVhds: { serializedName: "overwriteVhds", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { @@ -5634,43 +5685,43 @@ export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, assessmentActivityId: { serializedName: "assessmentActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootPending: { serializedName: "rebootPending", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, criticalAndSecurityPatchCount: { serializedName: "criticalAndSecurityPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, otherPatchCount: { serializedName: "otherPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, startDateTime: { serializedName: "startDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, availablePatches: { serializedName: "availablePatches", @@ -5680,141 +5731,143 @@ export const VirtualMachineAssessPatchesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineSoftwarePatchProperties" - } - } - } + className: "VirtualMachineSoftwarePatchProperties", + }, + }, + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } -}; - -export const VirtualMachineSoftwarePatchProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineSoftwarePatchProperties", - modelProperties: { - patchId: { - serializedName: "patchId", - readOnly: true, - type: { - name: "String" - } - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - version: { - serializedName: "version", - readOnly: true, - type: { - name: "String" - } - }, - kbId: { - serializedName: "kbId", - readOnly: true, - type: { - name: "String" - } - }, - classifications: { - serializedName: "classifications", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - rebootBehavior: { - serializedName: "rebootBehavior", - readOnly: true, - type: { - name: "String" - } - }, - activityId: { - serializedName: "activityId", - readOnly: true, - type: { - name: "String" - } - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - lastModifiedDateTime: { - serializedName: "lastModifiedDateTime", - readOnly: true, - type: { - name: "DateTime" - } - }, - assessmentState: { - serializedName: "assessmentState", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineInstallPatchesParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineInstallPatchesParameters", - modelProperties: { - maximumDuration: { - serializedName: "maximumDuration", - type: { - name: "String" - } + className: "ApiError", + }, }, - rebootSetting: { - serializedName: "rebootSetting", - required: true, - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineSoftwarePatchProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineSoftwarePatchProperties", + modelProperties: { + patchId: { + serializedName: "patchId", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + version: { + serializedName: "version", + readOnly: true, + type: { + name: "String", + }, + }, + kbId: { + serializedName: "kbId", + readOnly: true, + type: { + name: "String", + }, + }, + classifications: { + serializedName: "classifications", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + rebootBehavior: { + serializedName: "rebootBehavior", + readOnly: true, + type: { + name: "String", + }, + }, + activityId: { + serializedName: "activityId", + readOnly: true, + type: { + name: "String", + }, + }, + publishedDate: { + serializedName: "publishedDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastModifiedDateTime: { + serializedName: "lastModifiedDateTime", + readOnly: true, + type: { + name: "DateTime", + }, + }, + assessmentState: { + serializedName: "assessmentState", + readOnly: true, + type: { + name: "String", + }, + }, }, - windowsParameters: { - serializedName: "windowsParameters", - type: { - name: "Composite", - className: "WindowsParameters" - } + }, + }; + +export const VirtualMachineInstallPatchesParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineInstallPatchesParameters", + modelProperties: { + maximumDuration: { + serializedName: "maximumDuration", + type: { + name: "String", + }, + }, + rebootSetting: { + serializedName: "rebootSetting", + required: true, + type: { + name: "String", + }, + }, + windowsParameters: { + serializedName: "windowsParameters", + type: { + name: "Composite", + className: "WindowsParameters", + }, + }, + linuxParameters: { + serializedName: "linuxParameters", + type: { + name: "Composite", + className: "LinuxParameters", + }, + }, }, - linuxParameters: { - serializedName: "linuxParameters", - type: { - name: "Composite", - className: "LinuxParameters" - } - } - } - } -}; + }, + }; export const WindowsParameters: coreClient.CompositeMapper = { type: { @@ -5827,10 +5880,10 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kbNumbersToInclude: { serializedName: "kbNumbersToInclude", @@ -5838,10 +5891,10 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, kbNumbersToExclude: { serializedName: "kbNumbersToExclude", @@ -5849,25 +5902,25 @@ export const WindowsParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, excludeKbsRequiringReboot: { serializedName: "excludeKbsRequiringReboot", type: { - name: "Boolean" - } + name: "Boolean", + }, }, maxPatchPublishDate: { serializedName: "maxPatchPublishDate", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const LinuxParameters: coreClient.CompositeMapper = { @@ -5881,10 +5934,10 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, packageNameMasksToInclude: { serializedName: "packageNameMasksToInclude", @@ -5892,10 +5945,10 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, packageNameMasksToExclude: { serializedName: "packageNameMasksToExclude", @@ -5903,19 +5956,19 @@ export const LinuxParameters: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, maintenanceRunId: { serializedName: "maintenanceRunId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { @@ -5927,64 +5980,64 @@ export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { serializedName: "status", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, installationActivityId: { serializedName: "installationActivityId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rebootStatus: { serializedName: "rebootStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, maintenanceWindowExceeded: { serializedName: "maintenanceWindowExceeded", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, excludedPatchCount: { serializedName: "excludedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, notSelectedPatchCount: { serializedName: "notSelectedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, pendingPatchCount: { serializedName: "pendingPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, installedPatchCount: { serializedName: "installedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedPatchCount: { serializedName: "failedPatchCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, patches: { serializedName: "patches", @@ -5994,27 +6047,27 @@ export const VirtualMachineInstallPatchesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PatchInstallationDetail" - } - } - } + className: "PatchInstallationDetail", + }, + }, + }, }, startDateTime: { serializedName: "startDateTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const PatchInstallationDetail: coreClient.CompositeMapper = { @@ -6026,29 +6079,29 @@ export const PatchInstallationDetail: coreClient.CompositeMapper = { serializedName: "patchId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kbId: { serializedName: "kbId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, classifications: { serializedName: "classifications", @@ -6057,20 +6110,20 @@ export const PatchInstallationDetail: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, installationState: { serializedName: "installationState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PurchasePlan: coreClient.CompositeMapper = { @@ -6082,25 +6135,25 @@ export const PurchasePlan: coreClient.CompositeMapper = { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSDiskImage: coreClient.CompositeMapper = { @@ -6113,11 +6166,11 @@ export const OSDiskImage: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } - } - } - } + allowedValues: ["Windows", "Linux"], + }, + }, + }, + }, }; export const DataDiskImage: coreClient.CompositeMapper = { @@ -6129,11 +6182,11 @@ export const DataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { @@ -6145,11 +6198,11 @@ export const AutomaticOSUpgradeProperties: coreClient.CompositeMapper = { serializedName: "automaticOSUpgradeSupported", required: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DisallowedConfiguration: coreClient.CompositeMapper = { @@ -6160,11 +6213,11 @@ export const DisallowedConfiguration: coreClient.CompositeMapper = { vmDiskType: { serializedName: "vmDiskType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineImageFeature: coreClient.CompositeMapper = { @@ -6175,17 +6228,17 @@ export const VirtualMachineImageFeature: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageDeprecationStatus: coreClient.CompositeMapper = { @@ -6196,24 +6249,24 @@ export const ImageDeprecationStatus: coreClient.CompositeMapper = { imageState: { serializedName: "imageState", type: { - name: "String" - } + name: "String", + }, }, scheduledDeprecationTime: { serializedName: "scheduledDeprecationTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, alternativeOption: { serializedName: "alternativeOption", type: { name: "Composite", - className: "AlternativeOption" - } - } - } - } + className: "AlternativeOption", + }, + }, + }, + }, }; export const AlternativeOption: coreClient.CompositeMapper = { @@ -6224,17 +6277,17 @@ export const AlternativeOption: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VmImagesInEdgeZoneListResult: coreClient.CompositeMapper = { @@ -6249,19 +6302,19 @@ export const VmImagesInEdgeZoneListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AvailabilitySetListResult: coreClient.CompositeMapper = { @@ -6277,40 +6330,41 @@ export const AvailabilitySetListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AvailabilitySet" - } - } - } + className: "AvailabilitySet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ProximityPlacementGroupPropertiesIntent: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProximityPlacementGroupPropertiesIntent", - modelProperties: { - vmSizes: { - serializedName: "vmSizes", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const ProximityPlacementGroupPropertiesIntent: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProximityPlacementGroupPropertiesIntent", + modelProperties: { + vmSizes: { + serializedName: "vmSizes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { type: { @@ -6325,19 +6379,19 @@ export const ProximityPlacementGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProximityPlacementGroup" - } - } - } + className: "ProximityPlacementGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { @@ -6352,13 +6406,13 @@ export const DedicatedHostGroupInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostInstanceViewWithName" - } - } - } - } - } - } + className: "DedicatedHostInstanceViewWithName", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostInstanceView: coreClient.CompositeMapper = { @@ -6370,15 +6424,15 @@ export const DedicatedHostInstanceView: coreClient.CompositeMapper = { serializedName: "assetId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, availableCapacity: { serializedName: "availableCapacity", type: { name: "Composite", - className: "DedicatedHostAvailableCapacity" - } + className: "DedicatedHostAvailableCapacity", + }, }, statuses: { serializedName: "statuses", @@ -6387,13 +6441,13 @@ export const DedicatedHostInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { @@ -6408,13 +6462,13 @@ export const DedicatedHostAvailableCapacity: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostAllocatableVM" - } - } - } - } - } - } + className: "DedicatedHostAllocatableVM", + }, + }, + }, + }, + }, + }, }; export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { @@ -6425,33 +6479,34 @@ export const DedicatedHostAllocatableVM: coreClient.CompositeMapper = { vmSize: { serializedName: "vmSize", type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", type: { - name: "Number" - } - } - } - } -}; - -export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities", - modelProperties: { - ultraSSDEnabled: { - serializedName: "ultraSSDEnabled", - type: { - name: "Boolean" - } - } - } - } -}; + name: "Number", + }, + }, + }, + }, +}; + +export const DedicatedHostGroupPropertiesAdditionalCapabilities: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + modelProperties: { + ultraSSDEnabled: { + serializedName: "ultraSSDEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, + }; export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { type: { @@ -6466,19 +6521,19 @@ export const DedicatedHostGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHostGroup" - } - } - } + className: "DedicatedHostGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostListResult: coreClient.CompositeMapper = { @@ -6494,19 +6549,19 @@ export const DedicatedHostListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DedicatedHost" - } - } - } + className: "DedicatedHost", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DedicatedHostSizeListResult: coreClient.CompositeMapper = { @@ -6520,13 +6575,13 @@ export const DedicatedHostSizeListResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { @@ -6542,19 +6597,19 @@ export const SshPublicKeysGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SshPublicKeyResource" - } - } - } + className: "SshPublicKeyResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SshGenerateKeyPairInputParameters: coreClient.CompositeMapper = { @@ -6565,11 +6620,11 @@ export const SshGenerateKeyPairInputParameters: coreClient.CompositeMapper = { encryptionType: { serializedName: "encryptionType", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { @@ -6581,25 +6636,25 @@ export const SshPublicKeyGenerateKeyPairResult: coreClient.CompositeMapper = { serializedName: "privateKey", required: true, type: { - name: "String" - } + name: "String", + }, }, publicKey: { serializedName: "publicKey", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageStorageProfile: coreClient.CompositeMapper = { @@ -6611,8 +6666,8 @@ export const ImageStorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "ImageOSDisk" - } + className: "ImageOSDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -6621,19 +6676,19 @@ export const ImageStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ImageDataDisk" - } - } - } + className: "ImageDataDisk", + }, + }, + }, }, zoneResilient: { serializedName: "zoneResilient", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ImageDisk: coreClient.CompositeMapper = { @@ -6645,50 +6700,50 @@ export const ImageDisk: coreClient.CompositeMapper = { serializedName: "snapshot", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, blobUri: { serializedName: "blobUri", type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } - } - } - } + className: "DiskEncryptionSetParameters", + }, + }, + }, + }, }; export const ImageListResult: coreClient.CompositeMapper = { @@ -6704,42 +6759,43 @@ export const ImageListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Image" - } - } - } + className: "Image", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RestorePointCollectionSourceProperties", - modelProperties: { - location: { - serializedName: "location", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, - id: { - serializedName: "id", - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const RestorePointCollectionSourceProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "RestorePointCollectionSourceProperties", + modelProperties: { + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + }, + }, + }; export const RestorePointSourceMetadata: coreClient.CompositeMapper = { type: { @@ -6750,74 +6806,74 @@ export const RestorePointSourceMetadata: coreClient.CompositeMapper = { serializedName: "hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "storageProfile", type: { name: "Composite", - className: "RestorePointSourceVMStorageProfile" - } + className: "RestorePointSourceVMStorageProfile", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, diagnosticsProfile: { serializedName: "diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, licenseType: { serializedName: "licenseType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userData: { serializedName: "userData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "hyperVGeneration", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { @@ -6829,8 +6885,8 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { serializedName: "osDisk", type: { name: "Composite", - className: "RestorePointSourceVmosDisk" - } + className: "RestorePointSourceVmosDisk", + }, }, dataDisks: { serializedName: "dataDisks", @@ -6839,20 +6895,20 @@ export const RestorePointSourceVMStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePointSourceVMDataDisk" - } - } - } + className: "RestorePointSourceVMDataDisk", + }, + }, + }, }, diskControllerType: { serializedName: "diskControllerType", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { @@ -6864,61 +6920,61 @@ export const RestorePointSourceVmosDisk: coreClient.CompositeMapper = { serializedName: "osType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettings: { serializedName: "encryptionSettings", type: { name: "Composite", - className: "DiskEncryptionSettings" - } + className: "DiskEncryptionSettings", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", readOnly: true, type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, diskRestorePoint: { serializedName: "diskRestorePoint", type: { name: "Composite", - className: "DiskRestorePointAttributes" - } + className: "DiskRestorePointAttributes", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RestorePointEncryption: coreClient.CompositeMapper = { @@ -6930,17 +6986,17 @@ export const RestorePointEncryption: coreClient.CompositeMapper = { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } + className: "DiskEncryptionSetParameters", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { @@ -6952,54 +7008,54 @@ export const RestorePointSourceVMDataDisk: coreClient.CompositeMapper = { serializedName: "lun", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, caching: { serializedName: "caching", readOnly: true, type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDiskParameters" - } + className: "ManagedDiskParameters", + }, }, diskRestorePoint: { serializedName: "diskRestorePoint", type: { name: "Composite", - className: "DiskRestorePointAttributes" - } + className: "DiskRestorePointAttributes", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RestorePointInstanceView: coreClient.CompositeMapper = { @@ -7014,10 +7070,10 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskRestorePointInstanceView" - } - } - } + className: "DiskRestorePointInstanceView", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -7026,13 +7082,13 @@ export const RestorePointInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { @@ -7043,18 +7099,18 @@ export const DiskRestorePointInstanceView: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "replicationStatus", type: { name: "Composite", - className: "DiskRestorePointReplicationStatus" - } - } - } - } + className: "DiskRestorePointReplicationStatus", + }, + }, + }, + }, }; export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { @@ -7066,17 +7122,17 @@ export const DiskRestorePointReplicationStatus: coreClient.CompositeMapper = { serializedName: "status", type: { name: "Composite", - className: "InstanceViewStatus" - } + className: "InstanceViewStatus", + }, }, completionPercent: { serializedName: "completionPercent", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -7088,25 +7144,25 @@ export const ProxyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollectionListResult: coreClient.CompositeMapper = { @@ -7121,55 +7177,56 @@ export const RestorePointCollectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePointCollection" - } - } - } + className: "RestorePointCollection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationGroupInstanceView", - modelProperties: { - capacityReservations: { - serializedName: "capacityReservations", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName" - } - } - } + name: "String", + }, }, - sharedSubscriptionIds: { - serializedName: "sharedSubscriptionIds", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SubResourceReadOnly" - } - } - } - } - } - } -}; + }, + }, +}; + +export const CapacityReservationGroupInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CapacityReservationGroupInstanceView", + modelProperties: { + capacityReservations: { + serializedName: "capacityReservations", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CapacityReservationInstanceViewWithName", + }, + }, + }, + }, + sharedSubscriptionIds: { + serializedName: "sharedSubscriptionIds", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SubResourceReadOnly", + }, + }, + }, + }, + }, + }, + }; export const CapacityReservationInstanceView: coreClient.CompositeMapper = { type: { @@ -7180,8 +7237,8 @@ export const CapacityReservationInstanceView: coreClient.CompositeMapper = { serializedName: "utilizationInfo", type: { name: "Composite", - className: "CapacityReservationUtilization" - } + className: "CapacityReservationUtilization", + }, }, statuses: { serializedName: "statuses", @@ -7190,13 +7247,13 @@ export const CapacityReservationInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationUtilization: coreClient.CompositeMapper = { @@ -7208,8 +7265,8 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { serializedName: "currentCapacity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAllocated: { serializedName: "virtualMachinesAllocated", @@ -7219,13 +7276,13 @@ export const CapacityReservationUtilization: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, + }, + }, + }, }; export const ResourceSharingProfile: coreClient.CompositeMapper = { @@ -7240,13 +7297,13 @@ export const ResourceSharingProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } - } - } - } + className: "SubResource", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { @@ -7262,19 +7319,19 @@ export const CapacityReservationGroupListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityReservationGroup" - } - } - } + className: "CapacityReservationGroup", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CapacityReservationListResult: coreClient.CompositeMapper = { @@ -7290,19 +7347,19 @@ export const CapacityReservationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CapacityReservation" - } - } - } + className: "CapacityReservation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LogAnalyticsInputBase: coreClient.CompositeMapper = { @@ -7314,55 +7371,55 @@ export const LogAnalyticsInputBase: coreClient.CompositeMapper = { serializedName: "blobContainerSasUri", required: true, type: { - name: "String" - } + name: "String", + }, }, fromTime: { serializedName: "fromTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, toTime: { serializedName: "toTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, groupByThrottlePolicy: { serializedName: "groupByThrottlePolicy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByOperationName: { serializedName: "groupByOperationName", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByResourceName: { serializedName: "groupByResourceName", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByClientApplicationId: { serializedName: "groupByClientApplicationId", type: { - name: "Boolean" - } + name: "Boolean", + }, }, groupByUserAgent: { serializedName: "groupByUserAgent", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LogAnalyticsOperationResult: coreClient.CompositeMapper = { @@ -7374,11 +7431,11 @@ export const LogAnalyticsOperationResult: coreClient.CompositeMapper = { serializedName: "properties", type: { name: "Composite", - className: "LogAnalyticsOutput" - } - } - } - } + className: "LogAnalyticsOutput", + }, + }, + }, + }, }; export const LogAnalyticsOutput: coreClient.CompositeMapper = { @@ -7390,11 +7447,11 @@ export const LogAnalyticsOutput: coreClient.CompositeMapper = { serializedName: "output", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandListResult: coreClient.CompositeMapper = { @@ -7410,19 +7467,19 @@ export const RunCommandListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandDocumentBase" - } - } - } + className: "RunCommandDocumentBase", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandDocumentBase: coreClient.CompositeMapper = { @@ -7434,40 +7491,40 @@ export const RunCommandDocumentBase: coreClient.CompositeMapper = { serializedName: "$schema", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "osType", required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, label: { serializedName: "label", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandParameterDefinition: coreClient.CompositeMapper = { @@ -7479,31 +7536,31 @@ export const RunCommandParameterDefinition: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultValue: { serializedName: "defaultValue", type: { - name: "String" - } + name: "String", + }, }, required: { defaultValue: false, serializedName: "required", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const RunCommandInput: coreClient.CompositeMapper = { @@ -7515,8 +7572,8 @@ export const RunCommandInput: coreClient.CompositeMapper = { serializedName: "commandId", required: true, type: { - name: "String" - } + name: "String", + }, }, script: { serializedName: "script", @@ -7524,10 +7581,10 @@ export const RunCommandInput: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -7536,13 +7593,13 @@ export const RunCommandInput: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, + }, + }, + }, }; export const RunCommandInputParameter: coreClient.CompositeMapper = { @@ -7554,18 +7611,18 @@ export const RunCommandInputParameter: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RunCommandResult: coreClient.CompositeMapper = { @@ -7580,48 +7637,49 @@ export const RunCommandResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; - -export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineRunCommandScriptSource", - modelProperties: { - script: { - serializedName: "script", - type: { - name: "String" - } - }, - scriptUri: { - serializedName: "scriptUri", - type: { - name: "String" - } + className: "InstanceViewStatus", + }, + }, + }, }, - commandId: { - serializedName: "commandId", - type: { - name: "String" - } + }, + }, +}; + +export const VirtualMachineRunCommandScriptSource: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineRunCommandScriptSource", + modelProperties: { + script: { + serializedName: "script", + type: { + name: "String", + }, + }, + scriptUri: { + serializedName: "scriptUri", + type: { + name: "String", + }, + }, + commandId: { + serializedName: "commandId", + type: { + name: "String", + }, + }, + scriptUriManagedIdentity: { + serializedName: "scriptUriManagedIdentity", + type: { + name: "Composite", + className: "RunCommandManagedIdentity", + }, + }, }, - scriptUriManagedIdentity: { - serializedName: "scriptUriManagedIdentity", - type: { - name: "Composite", - className: "RunCommandManagedIdentity" - } - } - } - } -}; + }, + }; export const RunCommandManagedIdentity: coreClient.CompositeMapper = { type: { @@ -7631,81 +7689,82 @@ export const RunCommandManagedIdentity: coreClient.CompositeMapper = { clientId: { serializedName: "clientId", type: { - name: "String" - } + name: "String", + }, }, objectId: { serializedName: "objectId", type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineRunCommandInstanceView: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineRunCommandInstanceView", - modelProperties: { - executionState: { - serializedName: "executionState", - type: { - name: "String" - } - }, - executionMessage: { - serializedName: "executionMessage", - type: { - name: "String" - } - }, - exitCode: { - serializedName: "exitCode", - type: { - name: "Number" - } - }, - output: { - serializedName: "output", - type: { - name: "String" - } - }, - error: { - serializedName: "error", - type: { - name: "String" - } - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime" - } + name: "String", + }, }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime" - } + }, + }, +}; + +export const VirtualMachineRunCommandInstanceView: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineRunCommandInstanceView", + modelProperties: { + executionState: { + serializedName: "executionState", + type: { + name: "String", + }, + }, + executionMessage: { + serializedName: "executionMessage", + type: { + name: "String", + }, + }, + exitCode: { + serializedName: "exitCode", + type: { + name: "Number", + }, + }, + output: { + serializedName: "output", + type: { + name: "String", + }, + }, + error: { + serializedName: "error", + type: { + name: "String", + }, + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime", + }, + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime", + }, + }, + statuses: { + serializedName: "statuses", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstanceViewStatus", + }, + }, + }, + }, }, - statuses: { - serializedName: "statuses", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } -}; + }, + }; export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { type: { @@ -7720,19 +7779,19 @@ export const VirtualMachineRunCommandsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineRunCommand" - } - } - } + className: "VirtualMachineRunCommand", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskSku: coreClient.CompositeMapper = { @@ -7743,18 +7802,18 @@ export const DiskSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { @@ -7766,31 +7825,31 @@ export const PurchasePlanAutoGenerated: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", required: true, type: { - name: "String" - } + name: "String", + }, }, promotionCode: { serializedName: "promotionCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedCapabilities: coreClient.CompositeMapper = { @@ -7801,23 +7860,23 @@ export const SupportedCapabilities: coreClient.CompositeMapper = { diskControllerTypes: { serializedName: "diskControllerTypes", type: { - name: "String" - } + name: "String", + }, }, acceleratedNetwork: { serializedName: "acceleratedNetwork", type: { - name: "Boolean" - } + name: "Boolean", + }, }, architecture: { serializedName: "architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CreationData: coreClient.CompositeMapper = { @@ -7829,86 +7888,86 @@ export const CreationData: coreClient.CompositeMapper = { serializedName: "createOption", required: true, type: { - name: "String" - } + name: "String", + }, }, storageAccountId: { serializedName: "storageAccountId", type: { - name: "String" - } + name: "String", + }, }, imageReference: { serializedName: "imageReference", type: { name: "Composite", - className: "ImageDiskReference" - } + className: "ImageDiskReference", + }, }, galleryImageReference: { serializedName: "galleryImageReference", type: { name: "Composite", - className: "ImageDiskReference" - } + className: "ImageDiskReference", + }, }, sourceUri: { serializedName: "sourceUri", type: { - name: "String" - } + name: "String", + }, }, sourceResourceId: { serializedName: "sourceResourceId", type: { - name: "String" - } + name: "String", + }, }, sourceUniqueId: { serializedName: "sourceUniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uploadSizeBytes: { serializedName: "uploadSizeBytes", type: { - name: "Number" - } + name: "Number", + }, }, logicalSectorSize: { serializedName: "logicalSectorSize", type: { - name: "Number" - } + name: "Number", + }, }, securityDataUri: { serializedName: "securityDataUri", type: { - name: "String" - } + name: "String", + }, }, performancePlus: { serializedName: "performancePlus", type: { - name: "Boolean" - } + name: "Boolean", + }, }, elasticSanResourceId: { serializedName: "elasticSanResourceId", type: { - name: "String" - } + name: "String", + }, }, provisionedBandwidthCopySpeed: { serializedName: "provisionedBandwidthCopySpeed", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageDiskReference: coreClient.CompositeMapper = { @@ -7919,29 +7978,29 @@ export const ImageDiskReference: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, sharedGalleryImageId: { serializedName: "sharedGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, lun: { serializedName: "lun", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const EncryptionSettingsCollection: coreClient.CompositeMapper = { @@ -7953,8 +8012,8 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { serializedName: "enabled", required: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, encryptionSettings: { serializedName: "encryptionSettings", @@ -7963,19 +8022,19 @@ export const EncryptionSettingsCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EncryptionSettingsElement" - } - } - } + className: "EncryptionSettingsElement", + }, + }, + }, }, encryptionSettingsVersion: { serializedName: "encryptionSettingsVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionSettingsElement: coreClient.CompositeMapper = { @@ -7987,18 +8046,18 @@ export const EncryptionSettingsElement: coreClient.CompositeMapper = { serializedName: "diskEncryptionKey", type: { name: "Composite", - className: "KeyVaultAndSecretReference" - } + className: "KeyVaultAndSecretReference", + }, }, keyEncryptionKey: { serializedName: "keyEncryptionKey", type: { name: "Composite", - className: "KeyVaultAndKeyReference" - } - } - } - } + className: "KeyVaultAndKeyReference", + }, + }, + }, + }, }; export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { @@ -8010,18 +8069,18 @@ export const KeyVaultAndSecretReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, secretUrl: { serializedName: "secretUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SourceVault: coreClient.CompositeMapper = { @@ -8032,11 +8091,11 @@ export const SourceVault: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { @@ -8048,18 +8107,18 @@ export const KeyVaultAndKeyReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, keyUrl: { serializedName: "keyUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Encryption: coreClient.CompositeMapper = { @@ -8070,17 +8129,17 @@ export const Encryption: coreClient.CompositeMapper = { diskEncryptionSetId: { serializedName: "diskEncryptionSetId", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ShareInfoElement: coreClient.CompositeMapper = { @@ -8092,11 +8151,11 @@ export const ShareInfoElement: coreClient.CompositeMapper = { serializedName: "vmUri", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { @@ -8107,11 +8166,11 @@ export const PropertyUpdatesInProgress: coreClient.CompositeMapper = { targetTier: { serializedName: "targetTier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskSecurityProfile: coreClient.CompositeMapper = { @@ -8122,17 +8181,17 @@ export const DiskSecurityProfile: coreClient.CompositeMapper = { securityType: { serializedName: "securityType", type: { - name: "String" - } + name: "String", + }, }, secureVMDiskEncryptionSetId: { serializedName: "secureVMDiskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskUpdate: coreClient.CompositeMapper = { @@ -8144,144 +8203,144 @@ export const DiskUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "DiskSku" - } + className: "DiskSku", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, diskIopsReadWrite: { serializedName: "properties.diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "properties.diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskIopsReadOnly: { serializedName: "properties.diskIOPSReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadOnly: { serializedName: "properties.diskMBpsReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, maxShares: { serializedName: "properties.maxShares", type: { - name: "Number" - } + name: "Number", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "properties.tier", type: { - name: "String" - } + name: "String", + }, }, burstingEnabled: { serializedName: "properties.burstingEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, propertyUpdatesInProgress: { serializedName: "properties.propertyUpdatesInProgress", type: { name: "Composite", - className: "PropertyUpdatesInProgress" - } + className: "PropertyUpdatesInProgress", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, optimizedForFrequentAttach: { serializedName: "properties.optimizedForFrequentAttach", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DiskList: coreClient.CompositeMapper = { @@ -8297,19 +8356,19 @@ export const DiskList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Disk" - } - } - } + className: "Disk", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GrantAccessData: coreClient.CompositeMapper = { @@ -8321,30 +8380,30 @@ export const GrantAccessData: coreClient.CompositeMapper = { serializedName: "access", required: true, type: { - name: "String" - } + name: "String", + }, }, durationInSeconds: { serializedName: "durationInSeconds", required: true, type: { - name: "Number" - } + name: "Number", + }, }, getSecureVMGuestStateSAS: { serializedName: "getSecureVMGuestStateSAS", type: { - name: "Boolean" - } + name: "Boolean", + }, }, fileFormat: { serializedName: "fileFormat", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessUri: coreClient.CompositeMapper = { @@ -8356,18 +8415,18 @@ export const AccessUri: coreClient.CompositeMapper = { serializedName: "accessSAS", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityDataAccessSAS: { serializedName: "securityDataAccessSAS", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -8379,46 +8438,46 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } + className: "PrivateLinkServiceConnectionState", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -8430,11 +8489,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -8445,23 +8504,23 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskAccessUpdate: coreClient.CompositeMapper = { @@ -8473,11 +8532,11 @@ export const DiskAccessUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const DiskAccessList: coreClient.CompositeMapper = { @@ -8493,19 +8552,19 @@ export const DiskAccessList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskAccess" - } - } - } + className: "DiskAccess", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { @@ -8520,13 +8579,13 @@ export const PrivateLinkResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } - } - } - } + className: "PrivateLinkResource", + }, + }, + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -8538,29 +8597,29 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, groupId: { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -8569,10 +8628,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -8580,13 +8639,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { @@ -8601,19 +8660,19 @@ export const PrivateEndpointConnectionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionSetIdentity: coreClient.CompositeMapper = { @@ -8624,22 +8683,22 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, principalId: { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", @@ -8648,13 +8707,13 @@ export const EncryptionSetIdentity: coreClient.CompositeMapper = { value: { type: { name: "Composite", - className: "UserAssignedIdentitiesValue" - } - } - } - } - } - } + className: "UserAssignedIdentitiesValue", + }, + }, + }, + }, + }, + }, }; export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { @@ -8666,18 +8725,18 @@ export const KeyForDiskEncryptionSet: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SourceVault" - } + className: "SourceVault", + }, }, keyUrl: { serializedName: "keyUrl", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { @@ -8689,43 +8748,43 @@ export const DiskEncryptionSetUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "EncryptionSetIdentity" - } + className: "EncryptionSetIdentity", + }, }, encryptionType: { serializedName: "properties.encryptionType", type: { - name: "String" - } + name: "String", + }, }, activeKey: { serializedName: "properties.activeKey", type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } + className: "KeyForDiskEncryptionSet", + }, }, rotationToLatestKeyVersionEnabled: { serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, federatedClientId: { serializedName: "properties.federatedClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetList: coreClient.CompositeMapper = { @@ -8741,19 +8800,19 @@ export const DiskEncryptionSetList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskEncryptionSet" - } - } - } + className: "DiskEncryptionSet", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceUriList: coreClient.CompositeMapper = { @@ -8768,19 +8827,19 @@ export const ResourceUriList: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyOnlyResource: coreClient.CompositeMapper = { @@ -8792,25 +8851,25 @@ export const ProxyOnlyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskRestorePointList: coreClient.CompositeMapper = { @@ -8826,19 +8885,19 @@ export const DiskRestorePointList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DiskRestorePoint" - } - } - } + className: "DiskRestorePoint", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotSku: coreClient.CompositeMapper = { @@ -8849,18 +8908,18 @@ export const SnapshotSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CopyCompletionError: coreClient.CompositeMapper = { @@ -8872,18 +8931,18 @@ export const CopyCompletionError: coreClient.CompositeMapper = { serializedName: "errorCode", required: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnapshotUpdate: coreClient.CompositeMapper = { @@ -8895,82 +8954,82 @@ export const SnapshotUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "SnapshotSku" - } + className: "SnapshotSku", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } - } - } - } + className: "SupportedCapabilities", + }, + }, + }, + }, }; export const SnapshotList: coreClient.CompositeMapper = { @@ -8986,19 +9045,19 @@ export const SnapshotList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Snapshot" - } - } - } + className: "Snapshot", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkusResult: coreClient.CompositeMapper = { @@ -9014,19 +9073,19 @@ export const ResourceSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSku" - } - } - } + className: "ResourceSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -9038,50 +9097,50 @@ export const ResourceSku: coreClient.CompositeMapper = { serializedName: "resourceType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, size: { serializedName: "size", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, family: { serializedName: "family", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { name: "Composite", - className: "ResourceSkuCapacity" - } + className: "ResourceSkuCapacity", + }, }, locations: { serializedName: "locations", @@ -9090,10 +9149,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, locationInfo: { serializedName: "locationInfo", @@ -9103,10 +9162,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuLocationInfo" - } - } - } + className: "ResourceSkuLocationInfo", + }, + }, + }, }, apiVersions: { serializedName: "apiVersions", @@ -9115,10 +9174,10 @@ export const ResourceSku: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, costs: { serializedName: "costs", @@ -9128,10 +9187,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCosts" - } - } - } + className: "ResourceSkuCosts", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9141,10 +9200,10 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, }, restrictions: { serializedName: "restrictions", @@ -9154,13 +9213,13 @@ export const ResourceSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuRestrictions" - } - } - } - } - } - } + className: "ResourceSkuRestrictions", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapacity: coreClient.CompositeMapper = { @@ -9172,33 +9231,33 @@ export const ResourceSkuCapacity: coreClient.CompositeMapper = { serializedName: "minimum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maximum: { serializedName: "maximum", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, default: { serializedName: "default", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, scaleType: { serializedName: "scaleType", readOnly: true, type: { name: "Enum", - allowedValues: ["Automatic", "Manual", "None"] - } - } - } - } + allowedValues: ["Automatic", "Manual", "None"], + }, + }, + }, + }, }; export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { @@ -9210,8 +9269,8 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, zones: { serializedName: "zones", @@ -9220,10 +9279,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zoneDetails: { serializedName: "zoneDetails", @@ -9233,10 +9292,10 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuZoneDetails" - } - } - } + className: "ResourceSkuZoneDetails", + }, + }, + }, }, extendedLocations: { serializedName: "extendedLocations", @@ -9245,20 +9304,20 @@ export const ResourceSkuLocationInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { @@ -9273,10 +9332,10 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capabilities: { serializedName: "capabilities", @@ -9286,13 +9345,13 @@ export const ResourceSkuZoneDetails: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceSkuCapabilities" - } - } - } - } - } - } + className: "ResourceSkuCapabilities", + }, + }, + }, + }, + }, + }, }; export const ResourceSkuCapabilities: coreClient.CompositeMapper = { @@ -9304,18 +9363,18 @@ export const ResourceSkuCapabilities: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuCosts: coreClient.CompositeMapper = { @@ -9327,25 +9386,25 @@ export const ResourceSkuCosts: coreClient.CompositeMapper = { serializedName: "meterID", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, quantity: { serializedName: "quantity", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, extendedUnit: { serializedName: "extendedUnit", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSkuRestrictions: coreClient.CompositeMapper = { @@ -9358,8 +9417,8 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Location", "Zone"] - } + allowedValues: ["Location", "Zone"], + }, }, values: { serializedName: "values", @@ -9368,28 +9427,28 @@ export const ResourceSkuRestrictions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, restrictionInfo: { serializedName: "restrictionInfo", type: { name: "Composite", - className: "ResourceSkuRestrictionInfo" - } + className: "ResourceSkuRestrictionInfo", + }, }, reasonCode: { serializedName: "reasonCode", readOnly: true, type: { name: "Enum", - allowedValues: ["QuotaId", "NotAvailableForSubscription"] - } - } - } - } + allowedValues: ["QuotaId", "NotAvailableForSubscription"], + }, + }, + }, + }, }; export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { @@ -9404,10 +9463,10 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, zones: { serializedName: "zones", @@ -9416,13 +9475,13 @@ export const ResourceSkuRestrictionInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GalleryIdentifier: coreClient.CompositeMapper = { @@ -9434,11 +9493,11 @@ export const GalleryIdentifier: coreClient.CompositeMapper = { serializedName: "uniqueName", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharingProfile: coreClient.CompositeMapper = { @@ -9449,8 +9508,8 @@ export const SharingProfile: coreClient.CompositeMapper = { permissions: { serializedName: "permissions", type: { - name: "String" - } + name: "String", + }, }, groups: { serializedName: "groups", @@ -9460,20 +9519,20 @@ export const SharingProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharingProfileGroup" - } - } - } + className: "SharingProfileGroup", + }, + }, + }, }, communityGalleryInfo: { serializedName: "communityGalleryInfo", type: { name: "Composite", - className: "CommunityGalleryInfo" - } - } - } - } + className: "CommunityGalleryInfo", + }, + }, + }, + }, }; export const SharingProfileGroup: coreClient.CompositeMapper = { @@ -9484,8 +9543,8 @@ export const SharingProfileGroup: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, ids: { serializedName: "ids", @@ -9493,13 +9552,13 @@ export const SharingProfileGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CommunityGalleryInfo: coreClient.CompositeMapper = { @@ -9510,33 +9569,33 @@ export const CommunityGalleryInfo: coreClient.CompositeMapper = { publisherUri: { serializedName: "publisherUri", type: { - name: "String" - } + name: "String", + }, }, publisherContact: { serializedName: "publisherContact", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "eula", type: { - name: "String" - } + name: "String", + }, }, publicNamePrefix: { serializedName: "publicNamePrefix", type: { - name: "String" - } + name: "String", + }, }, communityGalleryEnabled: { serializedName: "communityGalleryEnabled", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNames: { serializedName: "publicNames", @@ -9545,13 +9604,13 @@ export const CommunityGalleryInfo: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SoftDeletePolicy: coreClient.CompositeMapper = { @@ -9562,11 +9621,11 @@ export const SoftDeletePolicy: coreClient.CompositeMapper = { isSoftDeleteEnabled: { serializedName: "isSoftDeleteEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SharingStatus: coreClient.CompositeMapper = { @@ -9578,8 +9637,8 @@ export const SharingStatus: coreClient.CompositeMapper = { serializedName: "aggregatedState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", @@ -9588,13 +9647,13 @@ export const SharingStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionalSharingStatus" - } - } - } - } - } - } + className: "RegionalSharingStatus", + }, + }, + }, + }, + }, + }, }; export const RegionalSharingStatus: coreClient.CompositeMapper = { @@ -9605,24 +9664,24 @@ export const RegionalSharingStatus: coreClient.CompositeMapper = { region: { serializedName: "region", type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpdateResourceDefinition: coreClient.CompositeMapper = { @@ -9634,32 +9693,32 @@ export const UpdateResourceDefinition: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const GalleryImageIdentifier: coreClient.CompositeMapper = { @@ -9671,25 +9730,25 @@ export const GalleryImageIdentifier: coreClient.CompositeMapper = { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", required: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { @@ -9701,18 +9760,18 @@ export const RecommendedMachineConfiguration: coreClient.CompositeMapper = { serializedName: "vCPUs", type: { name: "Composite", - className: "ResourceRange" - } + className: "ResourceRange", + }, }, memory: { serializedName: "memory", type: { name: "Composite", - className: "ResourceRange" - } - } - } - } + className: "ResourceRange", + }, + }, + }, + }, }; export const ResourceRange: coreClient.CompositeMapper = { @@ -9723,17 +9782,17 @@ export const ResourceRange: coreClient.CompositeMapper = { min: { serializedName: "min", type: { - name: "Number" - } + name: "Number", + }, }, max: { serializedName: "max", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Disallowed: coreClient.CompositeMapper = { @@ -9747,13 +9806,13 @@ export const Disallowed: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ImagePurchasePlan: coreClient.CompositeMapper = { @@ -9764,23 +9823,23 @@ export const ImagePurchasePlan: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "product", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageFeature: coreClient.CompositeMapper = { @@ -9791,88 +9850,89 @@ export const GalleryImageFeature: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } -}; - -export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryArtifactPublishingProfileBase", - modelProperties: { - targetRegions: { - serializedName: "targetRegions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TargetRegion" - } - } - } - }, - replicaCount: { - serializedName: "replicaCount", - type: { - name: "Number" - } - }, - excludeFromLatest: { - serializedName: "excludeFromLatest", - type: { - name: "Boolean" - } - }, - publishedDate: { - serializedName: "publishedDate", - readOnly: true, - type: { - name: "DateTime" - } - }, - endOfLifeDate: { - serializedName: "endOfLifeDate", - type: { - name: "DateTime" - } - }, - storageAccountType: { - serializedName: "storageAccountType", - type: { - name: "String" - } + name: "String", + }, }, - replicationMode: { - serializedName: "replicationMode", - type: { - name: "String" - } + }, + }, +}; + +export const GalleryArtifactPublishingProfileBase: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryArtifactPublishingProfileBase", + modelProperties: { + targetRegions: { + serializedName: "targetRegions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TargetRegion", + }, + }, + }, + }, + replicaCount: { + serializedName: "replicaCount", + type: { + name: "Number", + }, + }, + excludeFromLatest: { + serializedName: "excludeFromLatest", + type: { + name: "Boolean", + }, + }, + publishedDate: { + serializedName: "publishedDate", + readOnly: true, + type: { + name: "DateTime", + }, + }, + endOfLifeDate: { + serializedName: "endOfLifeDate", + type: { + name: "DateTime", + }, + }, + storageAccountType: { + serializedName: "storageAccountType", + type: { + name: "String", + }, + }, + replicationMode: { + serializedName: "replicationMode", + type: { + name: "String", + }, + }, + targetExtendedLocations: { + serializedName: "targetExtendedLocations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryTargetExtendedLocation", + }, + }, + }, + }, }, - targetExtendedLocations: { - serializedName: "targetExtendedLocations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryTargetExtendedLocation" - } - } - } - } - } - } -}; + }, + }; export const TargetRegion: coreClient.CompositeMapper = { type: { @@ -9883,36 +9943,36 @@ export const TargetRegion: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, regionalReplicaCount: { serializedName: "regionalReplicaCount", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "encryption", type: { name: "Composite", - className: "EncryptionImages" - } + className: "EncryptionImages", + }, }, excludeFromLatest: { serializedName: "excludeFromLatest", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EncryptionImages: coreClient.CompositeMapper = { @@ -9924,8 +9984,8 @@ export const EncryptionImages: coreClient.CompositeMapper = { serializedName: "osDiskImage", type: { name: "Composite", - className: "OSDiskImageEncryption" - } + className: "OSDiskImageEncryption", + }, }, dataDiskImages: { serializedName: "dataDiskImages", @@ -9934,13 +9994,13 @@ export const EncryptionImages: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDiskImageEncryption" - } - } - } - } - } - } + className: "DataDiskImageEncryption", + }, + }, + }, + }, + }, + }, }; export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { @@ -9951,17 +10011,17 @@ export const OSDiskImageSecurityProfile: coreClient.CompositeMapper = { confidentialVMEncryptionType: { serializedName: "confidentialVMEncryptionType", type: { - name: "String" - } + name: "String", + }, }, secureVMDiskEncryptionSetId: { serializedName: "secureVMDiskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskImageEncryption: coreClient.CompositeMapper = { @@ -9972,11 +10032,11 @@ export const DiskImageEncryption: coreClient.CompositeMapper = { diskEncryptionSetId: { serializedName: "diskEncryptionSetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { @@ -9987,37 +10047,37 @@ export const GalleryTargetExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "GalleryExtendedLocation" - } + className: "GalleryExtendedLocation", + }, }, extendedLocationReplicaCount: { serializedName: "extendedLocationReplicaCount", type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "encryption", type: { name: "Composite", - className: "EncryptionImages" - } - } - } - } + className: "EncryptionImages", + }, + }, + }, + }, }; export const GalleryExtendedLocation: coreClient.CompositeMapper = { @@ -10028,17 +10088,17 @@ export const GalleryExtendedLocation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { @@ -10050,15 +10110,15 @@ export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { serializedName: "source", type: { name: "Composite", - className: "GalleryArtifactVersionFullSource" - } + className: "GalleryArtifactVersionFullSource", + }, }, osDiskImage: { serializedName: "osDiskImage", type: { name: "Composite", - className: "GalleryOSDiskImage" - } + className: "GalleryOSDiskImage", + }, }, dataDiskImages: { serializedName: "dataDiskImages", @@ -10067,13 +10127,13 @@ export const GalleryImageVersionStorageProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryDataDiskImage" - } - } - } - } - } - } + className: "GalleryDataDiskImage", + }, + }, + }, + }, + }, + }, }; export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { @@ -10084,11 +10144,11 @@ export const GalleryArtifactVersionSource: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryDiskImage: coreClient.CompositeMapper = { @@ -10100,25 +10160,25 @@ export const GalleryDiskImage: coreClient.CompositeMapper = { serializedName: "sizeInGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, hostCaching: { serializedName: "hostCaching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, source: { serializedName: "source", type: { name: "Composite", - className: "GalleryDiskImageSource" - } - } - } - } + className: "GalleryDiskImageSource", + }, + }, + }, + }, }; export const PolicyViolation: coreClient.CompositeMapper = { @@ -10129,17 +10189,17 @@ export const PolicyViolation: coreClient.CompositeMapper = { category: { serializedName: "category", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryArtifactSafetyProfileBase: coreClient.CompositeMapper = { @@ -10150,11 +10210,11 @@ export const GalleryArtifactSafetyProfileBase: coreClient.CompositeMapper = { allowDeletionOfReplicatedLocations: { serializedName: "allowDeletionOfReplicatedLocations", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ReplicationStatus: coreClient.CompositeMapper = { @@ -10166,8 +10226,8 @@ export const ReplicationStatus: coreClient.CompositeMapper = { serializedName: "aggregatedState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, summary: { serializedName: "summary", @@ -10177,13 +10237,13 @@ export const ReplicationStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RegionalReplicationStatus" - } - } - } - } - } - } + className: "RegionalReplicationStatus", + }, + }, + }, + }, + }, + }, }; export const RegionalReplicationStatus: coreClient.CompositeMapper = { @@ -10195,32 +10255,32 @@ export const RegionalReplicationStatus: coreClient.CompositeMapper = { serializedName: "region", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, progress: { serializedName: "progress", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ImageVersionSecurityProfile: coreClient.CompositeMapper = { @@ -10232,11 +10292,11 @@ export const ImageVersionSecurityProfile: coreClient.CompositeMapper = { serializedName: "uefiSettings", type: { name: "Composite", - className: "GalleryImageVersionUefiSettings" - } - } - } - } + className: "GalleryImageVersionUefiSettings", + }, + }, + }, + }, }; export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { @@ -10250,20 +10310,20 @@ export const GalleryImageVersionUefiSettings: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, additionalSignatures: { serializedName: "additionalSignatures", type: { name: "Composite", - className: "UefiKeySignatures" - } - } - } - } + className: "UefiKeySignatures", + }, + }, + }, + }, }; export const UefiKeySignatures: coreClient.CompositeMapper = { @@ -10275,8 +10335,8 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { serializedName: "pk", type: { name: "Composite", - className: "UefiKey" - } + className: "UefiKey", + }, }, kek: { serializedName: "kek", @@ -10285,10 +10345,10 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } + className: "UefiKey", + }, + }, + }, }, db: { serializedName: "db", @@ -10297,10 +10357,10 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } + className: "UefiKey", + }, + }, + }, }, dbx: { serializedName: "dbx", @@ -10309,13 +10369,13 @@ export const UefiKeySignatures: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UefiKey" - } - } - } - } - } - } + className: "UefiKey", + }, + }, + }, + }, + }, + }, }; export const UefiKey: coreClient.CompositeMapper = { @@ -10326,8 +10386,8 @@ export const UefiKey: coreClient.CompositeMapper = { type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -10335,13 +10395,13 @@ export const UefiKey: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { @@ -10353,21 +10413,21 @@ export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, script: { serializedName: "script", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", @@ -10376,55 +10436,56 @@ export const GalleryApplicationCustomAction: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomActionParameter" - } - } - } - } - } - } -}; - -export const GalleryApplicationCustomActionParameter: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationCustomActionParameter", - modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String" - } - }, - required: { - serializedName: "required", - type: { - name: "Boolean" - } - }, - type: { - serializedName: "type", - type: { - name: "Enum", - allowedValues: ["String", "ConfigurationDataBlob", "LogOutputBlob"] - } + className: "GalleryApplicationCustomActionParameter", + }, + }, + }, }, - defaultValue: { - serializedName: "defaultValue", + }, + }, +}; + +export const GalleryApplicationCustomActionParameter: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationCustomActionParameter", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + required: { + serializedName: "required", + type: { + name: "Boolean", + }, + }, type: { - name: "String" - } + serializedName: "type", + type: { + name: "Enum", + allowedValues: ["String", "ConfigurationDataBlob", "LogOutputBlob"], + }, + }, + defaultValue: { + serializedName: "defaultValue", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const UserArtifactSource: coreClient.CompositeMapper = { type: { @@ -10435,17 +10496,17 @@ export const UserArtifactSource: coreClient.CompositeMapper = { serializedName: "mediaLink", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultConfigurationLink: { serializedName: "defaultConfigurationLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserArtifactManage: coreClient.CompositeMapper = { @@ -10457,24 +10518,24 @@ export const UserArtifactManage: coreClient.CompositeMapper = { serializedName: "install", required: true, type: { - name: "String" - } + name: "String", + }, }, remove: { serializedName: "remove", required: true, type: { - name: "String" - } + name: "String", + }, }, update: { serializedName: "update", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserArtifactSettings: coreClient.CompositeMapper = { @@ -10485,17 +10546,17 @@ export const UserArtifactSettings: coreClient.CompositeMapper = { packageFileName: { serializedName: "packageFileName", type: { - name: "String" - } + name: "String", + }, }, configFileName: { serializedName: "configFileName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryList: coreClient.CompositeMapper = { @@ -10511,19 +10572,19 @@ export const GalleryList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Gallery" - } - } - } + className: "Gallery", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageList: coreClient.CompositeMapper = { @@ -10539,19 +10600,19 @@ export const GalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImage" - } - } - } + className: "GalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionList: coreClient.CompositeMapper = { @@ -10567,19 +10628,19 @@ export const GalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageVersion" - } - } - } + className: "GalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryApplicationList: coreClient.CompositeMapper = { @@ -10595,19 +10656,19 @@ export const GalleryApplicationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplication" - } - } - } + className: "GalleryApplication", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryApplicationVersionList: coreClient.CompositeMapper = { @@ -10623,19 +10684,19 @@ export const GalleryApplicationVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationVersion" - } - } - } + className: "GalleryApplicationVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharingUpdate: coreClient.CompositeMapper = { @@ -10647,8 +10708,8 @@ export const SharingUpdate: coreClient.CompositeMapper = { serializedName: "operationType", required: true, type: { - name: "String" - } + name: "String", + }, }, groups: { serializedName: "groups", @@ -10657,13 +10718,13 @@ export const SharingUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharingProfileGroup" - } - } - } - } - } - } + className: "SharingProfileGroup", + }, + }, + }, + }, + }, + }, }; export const SharedGalleryList: coreClient.CompositeMapper = { @@ -10679,19 +10740,19 @@ export const SharedGalleryList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGallery" - } - } - } + className: "SharedGallery", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PirResource: coreClient.CompositeMapper = { @@ -10703,18 +10764,18 @@ export const PirResource: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryImageList: coreClient.CompositeMapper = { @@ -10730,19 +10791,19 @@ export const SharedGalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImage" - } - } - } + className: "SharedGalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { @@ -10758,48 +10819,49 @@ export const SharedGalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SharedGalleryImageVersion" - } - } - } + className: "SharedGalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const SharedGalleryImageVersionStorageProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SharedGalleryImageVersionStorageProfile", - modelProperties: { - osDiskImage: { - serializedName: "osDiskImage", - type: { - name: "Composite", - className: "SharedGalleryOSDiskImage" - } + name: "String", + }, }, - dataDiskImages: { - serializedName: "dataDiskImages", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SharedGalleryDataDiskImage" - } - } - } - } - } - } -}; + }, + }, +}; + +export const SharedGalleryImageVersionStorageProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SharedGalleryImageVersionStorageProfile", + modelProperties: { + osDiskImage: { + serializedName: "osDiskImage", + type: { + name: "Composite", + className: "SharedGalleryOSDiskImage", + }, + }, + dataDiskImages: { + serializedName: "dataDiskImages", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SharedGalleryDataDiskImage", + }, + }, + }, + }, + }, + }, + }; export const SharedGalleryDiskImage: coreClient.CompositeMapper = { type: { @@ -10810,17 +10872,17 @@ export const SharedGalleryDiskImage: coreClient.CompositeMapper = { serializedName: "diskSizeGB", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, hostCaching: { serializedName: "hostCaching", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryMetadata: coreClient.CompositeMapper = { @@ -10831,21 +10893,21 @@ export const CommunityGalleryMetadata: coreClient.CompositeMapper = { publisherUri: { serializedName: "publisherUri", type: { - name: "String" - } + name: "String", + }, }, publisherContact: { serializedName: "publisherContact", required: true, type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "eula", type: { - name: "String" - } + name: "String", + }, }, publicNames: { serializedName: "publicNames", @@ -10854,19 +10916,19 @@ export const CommunityGalleryMetadata: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privacyStatementUri: { serializedName: "privacyStatementUri", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PirCommunityGalleryResource: coreClient.CompositeMapper = { @@ -10878,31 +10940,31 @@ export const PirCommunityGalleryResource: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "identifier.uniqueId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageIdentifier: coreClient.CompositeMapper = { @@ -10913,23 +10975,23 @@ export const CommunityGalleryImageIdentifier: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageList: coreClient.CompositeMapper = { @@ -10945,19 +11007,19 @@ export const CommunityGalleryImageList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CommunityGalleryImage" - } - } - } + className: "CommunityGalleryImage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CommunityGalleryImageVersionList: coreClient.CompositeMapper = { @@ -10973,19 +11035,19 @@ export const CommunityGalleryImageVersionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CommunityGalleryImageVersion" - } - } - } + className: "CommunityGalleryImageVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstance: coreClient.CompositeMapper = { @@ -10997,54 +11059,54 @@ export const RoleInstance: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "InstanceSku" - } + className: "InstanceSku", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "RoleInstanceProperties" - } - } - } - } + className: "RoleInstanceProperties", + }, + }, + }, + }, }; export const InstanceSku: coreClient.CompositeMapper = { @@ -11056,18 +11118,18 @@ export const InstanceSku: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstanceProperties: coreClient.CompositeMapper = { @@ -11079,18 +11141,18 @@ export const RoleInstanceProperties: coreClient.CompositeMapper = { serializedName: "networkProfile", type: { name: "Composite", - className: "RoleInstanceNetworkProfile" - } + className: "RoleInstanceNetworkProfile", + }, }, instanceView: { serializedName: "instanceView", type: { name: "Composite", - className: "RoleInstanceView" - } - } - } - } + className: "RoleInstanceView", + }, + }, + }, + }, }; export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { @@ -11106,13 +11168,13 @@ export const RoleInstanceNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } - } - } - } + className: "SubResource", + }, + }, + }, + }, + }, + }, }; export const RoleInstanceView: coreClient.CompositeMapper = { @@ -11124,22 +11186,22 @@ export const RoleInstanceView: coreClient.CompositeMapper = { serializedName: "platformUpdateDomain", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomain: { serializedName: "platformFaultDomain", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, privateId: { serializedName: "privateId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statuses: { serializedName: "statuses", @@ -11149,13 +11211,13 @@ export const RoleInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" - } - } - } - } - } - } + className: "ResourceInstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { @@ -11167,39 +11229,39 @@ export const ResourceInstanceViewStatus: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, displayStatus: { serializedName: "displayStatus", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, time: { serializedName: "time", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, level: { serializedName: "level", type: { name: "Enum", - allowedValues: ["Info", "Warning", "Error"] - } - } - } - } + allowedValues: ["Info", "Warning", "Error"], + }, + }, + }, + }, }; export const RoleInstanceListResult: coreClient.CompositeMapper = { @@ -11215,19 +11277,19 @@ export const RoleInstanceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RoleInstance" - } - } - } + className: "RoleInstance", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRole: coreClient.CompositeMapper = { @@ -11239,46 +11301,46 @@ export const CloudServiceRole: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "CloudServiceRoleSku" - } + className: "CloudServiceRoleSku", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceRoleProperties" - } - } - } - } + className: "CloudServiceRoleProperties", + }, + }, + }, + }, }; export const CloudServiceRoleSku: coreClient.CompositeMapper = { @@ -11289,23 +11351,23 @@ export const CloudServiceRoleSku: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, tier: { serializedName: "tier", type: { - name: "String" - } + name: "String", + }, }, capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CloudServiceRoleProperties: coreClient.CompositeMapper = { @@ -11317,11 +11379,11 @@ export const CloudServiceRoleProperties: coreClient.CompositeMapper = { serializedName: "uniqueId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRoleListResult: coreClient.CompositeMapper = { @@ -11337,19 +11399,19 @@ export const CloudServiceRoleListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceRole" - } - } - } + className: "CloudServiceRole", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudService: coreClient.CompositeMapper = { @@ -11361,50 +11423,50 @@ export const CloudService: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceProperties" - } + className: "CloudServiceProperties", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, zones: { serializedName: "zones", @@ -11412,13 +11474,13 @@ export const CloudService: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServiceProperties: coreClient.CompositeMapper = { @@ -11429,83 +11491,83 @@ export const CloudServiceProperties: coreClient.CompositeMapper = { packageUrl: { serializedName: "packageUrl", type: { - name: "String" - } + name: "String", + }, }, configuration: { serializedName: "configuration", type: { - name: "String" - } + name: "String", + }, }, configurationUrl: { serializedName: "configurationUrl", type: { - name: "String" - } + name: "String", + }, }, startCloudService: { serializedName: "startCloudService", type: { - name: "Boolean" - } + name: "Boolean", + }, }, allowModelOverride: { serializedName: "allowModelOverride", type: { - name: "Boolean" - } + name: "Boolean", + }, }, upgradeMode: { serializedName: "upgradeMode", type: { - name: "String" - } + name: "String", + }, }, roleProfile: { serializedName: "roleProfile", type: { name: "Composite", - className: "CloudServiceRoleProfile" - } + className: "CloudServiceRoleProfile", + }, }, osProfile: { serializedName: "osProfile", type: { name: "Composite", - className: "CloudServiceOsProfile" - } + className: "CloudServiceOsProfile", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "CloudServiceNetworkProfile" - } + className: "CloudServiceNetworkProfile", + }, }, extensionProfile: { serializedName: "extensionProfile", type: { name: "Composite", - className: "CloudServiceExtensionProfile" - } + className: "CloudServiceExtensionProfile", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "uniqueId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceRoleProfile: coreClient.CompositeMapper = { @@ -11520,13 +11582,13 @@ export const CloudServiceRoleProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceRoleProfileProperties" - } - } - } - } - } - } + className: "CloudServiceRoleProfileProperties", + }, + }, + }, + }, + }, + }, }; export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { @@ -11537,18 +11599,18 @@ export const CloudServiceRoleProfileProperties: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "CloudServiceRoleSku" - } - } - } - } + className: "CloudServiceRoleSku", + }, + }, + }, + }, }; export const CloudServiceOsProfile: coreClient.CompositeMapper = { @@ -11563,13 +11625,13 @@ export const CloudServiceOsProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceVaultSecretGroup" - } - } - } - } - } - } + className: "CloudServiceVaultSecretGroup", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { @@ -11581,8 +11643,8 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, vaultCertificates: { serializedName: "vaultCertificates", @@ -11591,13 +11653,13 @@ export const CloudServiceVaultSecretGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudServiceVaultCertificate" - } - } - } - } - } - } + className: "CloudServiceVaultCertificate", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { @@ -11608,11 +11670,11 @@ export const CloudServiceVaultCertificate: coreClient.CompositeMapper = { certificateUrl: { serializedName: "certificateUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { @@ -11627,26 +11689,26 @@ export const CloudServiceNetworkProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoadBalancerConfiguration" - } - } - } + className: "LoadBalancerConfiguration", + }, + }, + }, }, slotType: { serializedName: "slotType", type: { - name: "String" - } + name: "String", + }, }, swappableCloudService: { serializedName: "swappableCloudService", type: { name: "Composite", - className: "SubResource" - } - } - } - } + className: "SubResource", + }, + }, + }, + }, }; export const LoadBalancerConfiguration: coreClient.CompositeMapper = { @@ -11657,25 +11719,25 @@ export const LoadBalancerConfiguration: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerConfigurationProperties" - } - } - } - } + className: "LoadBalancerConfigurationProperties", + }, + }, + }, + }, }; export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { @@ -11691,13 +11753,13 @@ export const LoadBalancerConfigurationProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LoadBalancerFrontendIpConfiguration" - } - } - } - } - } - } + className: "LoadBalancerFrontendIpConfiguration", + }, + }, + }, + }, + }, + }, }; export const LoadBalancerFrontendIpConfiguration: coreClient.CompositeMapper = { @@ -11709,48 +11771,49 @@ export const LoadBalancerFrontendIpConfiguration: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "LoadBalancerFrontendIpConfigurationProperties" - } - } - } - } -}; - -export const LoadBalancerFrontendIpConfigurationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LoadBalancerFrontendIpConfigurationProperties", - modelProperties: { - publicIPAddress: { - serializedName: "publicIPAddress", - type: { - name: "Composite", - className: "SubResource" - } + className: "LoadBalancerFrontendIpConfigurationProperties", + }, }, - subnet: { - serializedName: "subnet", - type: { - name: "Composite", - className: "SubResource" - } + }, + }, +}; + +export const LoadBalancerFrontendIpConfigurationProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "LoadBalancerFrontendIpConfigurationProperties", + modelProperties: { + publicIPAddress: { + serializedName: "publicIPAddress", + type: { + name: "Composite", + className: "SubResource", + }, + }, + subnet: { + serializedName: "subnet", + type: { + name: "Composite", + className: "SubResource", + }, + }, + privateIPAddress: { + serializedName: "privateIPAddress", + type: { + name: "String", + }, + }, }, - privateIPAddress: { - serializedName: "privateIPAddress", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { type: { @@ -11764,13 +11827,13 @@ export const CloudServiceExtensionProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Extension" - } - } - } - } - } - } + className: "Extension", + }, + }, + }, + }, + }, + }, }; export const Extension: coreClient.CompositeMapper = { @@ -11781,18 +11844,18 @@ export const Extension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "CloudServiceExtensionProperties" - } - } - } - } + className: "CloudServiceExtensionProperties", + }, + }, + }, + }, }; export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { @@ -11803,58 +11866,58 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "protectedSettings", type: { - name: "any" - } + name: "any", + }, }, protectedSettingsFromKeyVault: { serializedName: "protectedSettingsFromKeyVault", type: { name: "Composite", - className: "CloudServiceVaultAndSecretReference" - } + className: "CloudServiceVaultAndSecretReference", + }, }, forceUpdateTag: { serializedName: "forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rolesAppliedTo: { serializedName: "rolesAppliedTo", @@ -11862,13 +11925,13 @@ export const CloudServiceExtensionProperties: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { @@ -11880,17 +11943,17 @@ export const CloudServiceVaultAndSecretReference: coreClient.CompositeMapper = { serializedName: "sourceVault", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, secretUrl: { serializedName: "secretUrl", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -11902,18 +11965,18 @@ export const SystemData: coreClient.CompositeMapper = { serializedName: "createdAt", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const CloudServiceUpdate: coreClient.CompositeMapper = { @@ -11925,11 +11988,11 @@ export const CloudServiceUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CloudServiceInstanceView: coreClient.CompositeMapper = { @@ -11941,15 +12004,15 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { serializedName: "roleInstance", type: { name: "Composite", - className: "InstanceViewStatusesSummary" - } + className: "InstanceViewStatusesSummary", + }, }, sdkVersion: { serializedName: "sdkVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, privateIds: { serializedName: "privateIds", @@ -11958,10 +12021,10 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, statuses: { serializedName: "statuses", @@ -11971,13 +12034,13 @@ export const CloudServiceInstanceView: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceInstanceViewStatus" - } - } - } - } - } - } + className: "ResourceInstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { @@ -11993,13 +12056,13 @@ export const InstanceViewStatusesSummary: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "StatusCodeCount" - } - } - } - } - } - } + className: "StatusCodeCount", + }, + }, + }, + }, + }, + }, }; export const StatusCodeCount: coreClient.CompositeMapper = { @@ -12011,18 +12074,18 @@ export const StatusCodeCount: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, count: { serializedName: "count", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CloudServiceListResult: coreClient.CompositeMapper = { @@ -12038,19 +12101,19 @@ export const CloudServiceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudService" - } - } - } + className: "CloudService", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RoleInstances: coreClient.CompositeMapper = { @@ -12065,13 +12128,13 @@ export const RoleInstances: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const UpdateDomain: coreClient.CompositeMapper = { @@ -12083,18 +12146,18 @@ export const UpdateDomain: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UpdateDomainListResult: coreClient.CompositeMapper = { @@ -12110,19 +12173,19 @@ export const UpdateDomainListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UpdateDomain" - } - } - } + className: "UpdateDomain", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSVersion: coreClient.CompositeMapper = { @@ -12134,39 +12197,39 @@ export const OSVersion: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OSVersionProperties" - } - } - } - } + className: "OSVersionProperties", + }, + }, + }, + }, }; export const OSVersionProperties: coreClient.CompositeMapper = { @@ -12178,46 +12241,46 @@ export const OSVersionProperties: coreClient.CompositeMapper = { serializedName: "family", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, familyLabel: { serializedName: "familyLabel", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDefault: { serializedName: "isDefault", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isActive: { serializedName: "isActive", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSVersionListResult: coreClient.CompositeMapper = { @@ -12233,19 +12296,19 @@ export const OSVersionListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSVersion" - } - } - } + className: "OSVersion", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OSFamily: coreClient.CompositeMapper = { @@ -12257,39 +12320,39 @@ export const OSFamily: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "OSFamilyProperties" - } - } - } - } + className: "OSFamilyProperties", + }, + }, + }, + }, }; export const OSFamilyProperties: coreClient.CompositeMapper = { @@ -12301,15 +12364,15 @@ export const OSFamilyProperties: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, versions: { serializedName: "versions", @@ -12319,13 +12382,13 @@ export const OSFamilyProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSVersionPropertiesBase" - } - } - } - } - } - } + className: "OSVersionPropertiesBase", + }, + }, + }, + }, + }, + }, }; export const OSVersionPropertiesBase: coreClient.CompositeMapper = { @@ -12337,32 +12400,32 @@ export const OSVersionPropertiesBase: coreClient.CompositeMapper = { serializedName: "version", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, label: { serializedName: "label", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, isDefault: { serializedName: "isDefault", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, isActive: { serializedName: "isActive", readOnly: true, type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OSFamilyListResult: coreClient.CompositeMapper = { @@ -12378,19 +12441,19 @@ export const OSFamilyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OSFamily" - } - } - } + className: "OSFamily", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryArtifactSource: coreClient.CompositeMapper = { @@ -12402,11 +12465,11 @@ export const GalleryArtifactSource: coreClient.CompositeMapper = { serializedName: "managedImage", type: { name: "Composite", - className: "ManagedArtifact" - } - } - } - } + className: "ManagedArtifact", + }, + }, + }, + }, }; export const ManagedArtifact: coreClient.CompositeMapper = { @@ -12418,11 +12481,11 @@ export const ManagedArtifact: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LatestGalleryImageVersion: coreClient.CompositeMapper = { @@ -12433,17 +12496,17 @@ export const LatestGalleryImageVersion: coreClient.CompositeMapper = { latestVersionName: { serializedName: "latestVersionName", type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageReference: coreClient.CompositeMapper = { @@ -12455,48 +12518,48 @@ export const ImageReference: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, exactVersion: { serializedName: "exactVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharedGalleryImageId: { serializedName: "sharedGalleryImageId", type: { - name: "String" - } + name: "String", + }, }, communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { @@ -12504,9 +12567,9 @@ export const DiskEncryptionSetParameters: coreClient.CompositeMapper = { name: "Composite", className: "DiskEncryptionSetParameters", modelProperties: { - ...SubResource.type.modelProperties - } - } + ...SubResource.type.modelProperties, + }, + }, }; export const ManagedDiskParameters: coreClient.CompositeMapper = { @@ -12518,25 +12581,25 @@ export const ManagedDiskParameters: coreClient.CompositeMapper = { storageAccountType: { serializedName: "storageAccountType", type: { - name: "String" - } + name: "String", + }, }, diskEncryptionSet: { serializedName: "diskEncryptionSet", type: { name: "Composite", - className: "DiskEncryptionSetParameters" - } + className: "DiskEncryptionSetParameters", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "VMDiskSecurityProfile" - } - } - } - } + className: "VMDiskSecurityProfile", + }, + }, + }, + }, }; export const NetworkInterfaceReference: coreClient.CompositeMapper = { @@ -12548,17 +12611,17 @@ export const NetworkInterfaceReference: coreClient.CompositeMapper = { primary: { serializedName: "properties.primary", type: { - name: "Boolean" - } + name: "Boolean", + }, }, deleteOption: { serializedName: "properties.deleteOption", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { @@ -12571,22 +12634,22 @@ export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { serializedName: "$schema", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, contentVersion: { serializedName: "contentVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", readOnly: true, type: { - name: "any" - } + name: "any", + }, }, resources: { serializedName: "resources", @@ -12595,13 +12658,13 @@ export const VirtualMachineCaptureResult: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "any" - } - } - } - } - } - } + name: "any", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineImageResource: coreClient.CompositeMapper = { @@ -12614,32 +12677,32 @@ export const VirtualMachineImageResource: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } - } - } - } + className: "ExtendedLocation", + }, + }, + }, + }, }; export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { @@ -12652,11 +12715,11 @@ export const SubResourceWithColocationStatus: coreClient.CompositeMapper = { serializedName: "colocationStatus", type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, }; export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { @@ -12668,70 +12731,70 @@ export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisionAfterExtensions: { serializedName: "properties.provisionAfterExtensions", @@ -12739,130 +12802,131 @@ export const VirtualMachineScaleSetExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; - -export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetExtensionUpdate", - modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", - type: { - name: "String" - } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } - }, - settings: { - serializedName: "properties.settings", - type: { - name: "any" - } - }, - protectedSettings: { - serializedName: "properties.protectedSettings", - type: { - name: "any" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } + className: "KeyVaultSecretReference", + }, }, - suppressFailures: { - serializedName: "properties.suppressFailures", + }, + }, +}; + +export const VirtualMachineScaleSetExtensionUpdate: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetExtensionUpdate", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, type: { - name: "Boolean" - } + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String", + }, + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String", + }, + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String", + }, + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean", + }, + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean", + }, + }, + settings: { + serializedName: "properties.settings", + type: { + name: "any", + }, + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "any", + }, + }, + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean", + }, + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "KeyVaultSecretReference", + }, + }, }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; + }, + }; export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { type: { @@ -12874,196 +12938,197 @@ export const VirtualMachineScaleSetVMExtension: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } - }, - instanceView: { - serializedName: "properties.instanceView", - type: { - name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } - }, - suppressFailures: { - serializedName: "properties.suppressFailures", - type: { - name: "Boolean" - } - }, - protectedSettingsFromKeyVault: { - serializedName: "properties.protectedSettingsFromKeyVault", - type: { - name: "Composite", - className: "KeyVaultSecretReference" - } - }, - provisionAfterExtensions: { - serializedName: "properties.provisionAfterExtensions", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; - -export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMExtensionUpdate", - modelProperties: { - ...SubResourceReadOnly.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - }, - forceUpdateTag: { - serializedName: "properties.forceUpdateTag", - type: { - name: "String" - } - }, - publisher: { - serializedName: "properties.publisher", - type: { - name: "String" - } - }, - typePropertiesType: { - serializedName: "properties.type", - type: { - name: "String" - } - }, - typeHandlerVersion: { - serializedName: "properties.typeHandlerVersion", - type: { - name: "String" - } - }, - autoUpgradeMinorVersion: { - serializedName: "properties.autoUpgradeMinorVersion", - type: { - name: "Boolean" - } - }, - enableAutomaticUpgrade: { - serializedName: "properties.enableAutomaticUpgrade", - type: { - name: "Boolean" - } + name: "any", + }, }, - settings: { - serializedName: "properties.settings", + provisioningState: { + serializedName: "properties.provisioningState", + readOnly: true, type: { - name: "any" - } + name: "String", + }, }, - protectedSettings: { - serializedName: "properties.protectedSettings", + instanceView: { + serializedName: "properties.instanceView", type: { - name: "any" - } + name: "Composite", + className: "VirtualMachineExtensionInstanceView", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } -}; + className: "KeyVaultSecretReference", + }, + }, + provisionAfterExtensions: { + serializedName: "properties.provisionAfterExtensions", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetVMExtensionUpdate: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMExtensionUpdate", + modelProperties: { + ...SubResourceReadOnly.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + forceUpdateTag: { + serializedName: "properties.forceUpdateTag", + type: { + name: "String", + }, + }, + publisher: { + serializedName: "properties.publisher", + type: { + name: "String", + }, + }, + typePropertiesType: { + serializedName: "properties.type", + type: { + name: "String", + }, + }, + typeHandlerVersion: { + serializedName: "properties.typeHandlerVersion", + type: { + name: "String", + }, + }, + autoUpgradeMinorVersion: { + serializedName: "properties.autoUpgradeMinorVersion", + type: { + name: "Boolean", + }, + }, + enableAutomaticUpgrade: { + serializedName: "properties.enableAutomaticUpgrade", + type: { + name: "Boolean", + }, + }, + settings: { + serializedName: "properties.settings", + type: { + name: "any", + }, + }, + protectedSettings: { + serializedName: "properties.protectedSettings", + type: { + name: "any", + }, + }, + suppressFailures: { + serializedName: "properties.suppressFailures", + type: { + name: "Boolean", + }, + }, + protectedSettingsFromKeyVault: { + serializedName: "properties.protectedSettingsFromKeyVault", + type: { + name: "Composite", + className: "KeyVaultSecretReference", + }, + }, + }, + }, + }; export const DiskRestorePointAttributes: coreClient.CompositeMapper = { type: { @@ -13075,18 +13140,18 @@ export const DiskRestorePointAttributes: coreClient.CompositeMapper = { serializedName: "encryption", type: { name: "Composite", - className: "RestorePointEncryption" - } + className: "RestorePointEncryption", + }, }, sourceDiskRestorePoint: { serializedName: "sourceDiskRestorePoint", type: { name: "Composite", - className: "ApiEntityReference" - } - } - } - } + className: "ApiEntityReference", + }, + }, + }, + }, }; export const VirtualMachineExtension: coreClient.CompositeMapper = { @@ -13098,77 +13163,77 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, typePropertiesType: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineExtensionInstanceView" - } + className: "VirtualMachineExtensionInstanceView", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } + className: "KeyVaultSecretReference", + }, }, provisionAfterExtensions: { serializedName: "properties.provisionAfterExtensions", @@ -13176,13 +13241,13 @@ export const VirtualMachineExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const VirtualMachineScaleSet: coreClient.CompositeMapper = { @@ -13195,22 +13260,22 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity" - } + className: "VirtualMachineScaleSetIdentity", + }, }, zones: { serializedName: "zones", @@ -13218,160 +13283,160 @@ export const VirtualMachineScaleSet: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, upgradePolicy: { serializedName: "properties.upgradePolicy", type: { name: "Composite", - className: "UpgradePolicy" - } + className: "UpgradePolicy", + }, }, automaticRepairsPolicy: { serializedName: "properties.automaticRepairsPolicy", type: { name: "Composite", - className: "AutomaticRepairsPolicy" - } + className: "AutomaticRepairsPolicy", + }, }, virtualMachineProfile: { serializedName: "properties.virtualMachineProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetVMProfile" - } + className: "VirtualMachineScaleSetVMProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, overprovision: { serializedName: "properties.overprovision", type: { - name: "Boolean" - } + name: "Boolean", + }, }, doNotRunExtensionsOnOverprovisionedVMs: { serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, singlePlacementGroup: { serializedName: "properties.singlePlacementGroup", type: { - name: "Boolean" - } + name: "Boolean", + }, }, zoneBalance: { serializedName: "properties.zoneBalance", type: { - name: "Boolean" - } + name: "Boolean", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, scaleInPolicy: { serializedName: "properties.scaleInPolicy", type: { name: "Composite", - className: "ScaleInPolicy" - } + className: "ScaleInPolicy", + }, }, orchestrationMode: { serializedName: "properties.orchestrationMode", type: { - name: "String" - } + name: "String", + }, }, spotRestorePolicy: { serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "SpotRestorePolicy" - } + className: "SpotRestorePolicy", + }, }, priorityMixPolicy: { serializedName: "properties.priorityMixPolicy", type: { name: "Composite", - className: "PriorityMixPolicy" - } + className: "PriorityMixPolicy", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, constrainedMaximumCapacity: { serializedName: "properties.constrainedMaximumCapacity", type: { - name: "Boolean" - } + name: "Boolean", + }, }, resiliencyPolicy: { serializedName: "properties.resiliencyPolicy", type: { name: "Composite", - className: "ResiliencyPolicy" - } - } - } - } + className: "ResiliencyPolicy", + }, + }, + }, + }, }; export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { @@ -13384,32 +13449,32 @@ export const RollingUpgradeStatusInfo: coreClient.CompositeMapper = { serializedName: "properties.policy", type: { name: "Composite", - className: "RollingUpgradePolicy" - } + className: "RollingUpgradePolicy", + }, }, runningStatus: { serializedName: "properties.runningStatus", type: { name: "Composite", - className: "RollingUpgradeRunningStatus" - } + className: "RollingUpgradeRunningStatus", + }, }, progress: { serializedName: "properties.progress", type: { name: "Composite", - className: "RollingUpgradeProgressInfo" - } + className: "RollingUpgradeProgressInfo", + }, }, error: { serializedName: "properties.error", type: { name: "Composite", - className: "ApiError" - } - } - } - } + className: "ApiError", + }, + }, + }, + }, }; export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { @@ -13422,22 +13487,22 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { serializedName: "instanceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, resources: { serializedName: "resources", @@ -13447,10 +13512,10 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, }, zones: { serializedName: "zones", @@ -13459,151 +13524,151 @@ export const VirtualMachineScaleSetVM: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, latestModelApplied: { serializedName: "properties.latestModelApplied", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineScaleSetVMInstanceView" - } + className: "VirtualMachineScaleSetVMInstanceView", + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, networkProfileConfiguration: { serializedName: "properties.networkProfileConfiguration", type: { name: "Composite", - className: "VirtualMachineScaleSetVMNetworkProfileConfiguration" - } + className: "VirtualMachineScaleSetVMNetworkProfileConfiguration", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, modelDefinitionApplied: { serializedName: "properties.modelDefinitionApplied", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, protectionPolicy: { serializedName: "properties.protectionPolicy", type: { name: "Composite", - className: "VirtualMachineScaleSetVMProtectionPolicy" - } + className: "VirtualMachineScaleSetVMProtectionPolicy", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachine: coreClient.CompositeMapper = { @@ -13616,8 +13681,8 @@ export const VirtualMachine: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, resources: { serializedName: "resources", @@ -13627,17 +13692,17 @@ export const VirtualMachine: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineExtension" - } - } - } + className: "VirtualMachineExtension", + }, + }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, }, zones: { serializedName: "zones", @@ -13645,210 +13710,210 @@ export const VirtualMachine: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, managedBy: { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, virtualMachineScaleSet: { serializedName: "properties.virtualMachineScaleSet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priority: { serializedName: "properties.priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "properties.evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "properties.billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, host: { serializedName: "properties.host", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineInstanceView" - } + className: "VirtualMachineInstanceView", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, extensionsTimeBudget: { serializedName: "properties.extensionsTimeBudget", type: { - name: "String" - } + name: "String", + }, }, platformFaultDomain: { serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, scheduledEventsProfile: { serializedName: "properties.scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "properties.capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "properties.applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { @@ -13860,35 +13925,35 @@ export const VirtualMachineExtensionImage: coreClient.CompositeMapper = { operatingSystem: { serializedName: "properties.operatingSystem", type: { - name: "String" - } + name: "String", + }, }, computeRole: { serializedName: "properties.computeRole", type: { - name: "String" - } + name: "String", + }, }, handlerSchema: { serializedName: "properties.handlerSchema", type: { - name: "String" - } + name: "String", + }, }, vmScaleSetEnabled: { serializedName: "properties.vmScaleSetEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, supportsMultipleExtensions: { serializedName: "properties.supportsMultipleExtensions", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const AvailabilitySet: coreClient.CompositeMapper = { @@ -13901,20 +13966,20 @@ export const AvailabilitySet: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformUpdateDomainCount: { serializedName: "properties.platformUpdateDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -13923,17 +13988,17 @@ export const AvailabilitySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } + className: "SubResource", + }, + }, + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, statuses: { serializedName: "properties.statuses", @@ -13943,13 +14008,13 @@ export const AvailabilitySet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ProximityPlacementGroup: coreClient.CompositeMapper = { @@ -13964,16 +14029,16 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, proximityPlacementGroupType: { serializedName: "properties.proximityPlacementGroupType", type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -13983,10 +14048,10 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, virtualMachineScaleSets: { serializedName: "properties.virtualMachineScaleSets", @@ -13996,10 +14061,10 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, availabilitySets: { serializedName: "properties.availabilitySets", @@ -14009,27 +14074,27 @@ export const ProximityPlacementGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceWithColocationStatus" - } - } - } + className: "SubResourceWithColocationStatus", + }, + }, + }, }, colocationStatus: { serializedName: "properties.colocationStatus", type: { name: "Composite", - className: "InstanceViewStatus" - } + className: "InstanceViewStatus", + }, }, intent: { serializedName: "properties.intent", type: { name: "Composite", - className: "ProximityPlacementGroupPropertiesIntent" - } - } - } - } + className: "ProximityPlacementGroupPropertiesIntent", + }, + }, + }, + }, }; export const DedicatedHostGroup: coreClient.CompositeMapper = { @@ -14044,19 +14109,19 @@ export const DedicatedHostGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, platformFaultDomainCount: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, hosts: { serializedName: "properties.hosts", @@ -14066,33 +14131,33 @@ export const DedicatedHostGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostGroupInstanceView" - } + className: "DedicatedHostGroupInstanceView", + }, }, supportAutomaticPlacement: { serializedName: "properties.supportAutomaticPlacement", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities" - } - } - } - } + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + }, + }, + }, + }, }; export const DedicatedHost: coreClient.CompositeMapper = { @@ -14105,30 +14170,30 @@ export const DedicatedHost: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformFaultDomain: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, autoReplaceOnFailure: { serializedName: "properties.autoReplaceOnFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hostId: { serializedName: "properties.hostId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -14138,10 +14203,10 @@ export const DedicatedHost: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, licenseType: { serializedName: "properties.licenseType", @@ -14150,40 +14215,40 @@ export const DedicatedHost: coreClient.CompositeMapper = { allowedValues: [ "None", "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] - } + "Windows_Server_Perpetual", + ], + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostInstanceView" - } + className: "DedicatedHostInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SshPublicKeyResource: coreClient.CompositeMapper = { @@ -14195,11 +14260,11 @@ export const SshPublicKeyResource: coreClient.CompositeMapper = { publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Image: coreClient.CompositeMapper = { @@ -14212,38 +14277,38 @@ export const Image: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, sourceVirtualMachine: { serializedName: "properties.sourceVirtualMachine", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "ImageStorageProfile" - } + className: "ImageStorageProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollection: coreClient.CompositeMapper = { @@ -14256,22 +14321,22 @@ export const RestorePointCollection: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "RestorePointCollectionSourceProperties" - } + className: "RestorePointCollectionSourceProperties", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointCollectionId: { serializedName: "properties.restorePointCollectionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePoints: { serializedName: "properties.restorePoints", @@ -14281,13 +14346,13 @@ export const RestorePointCollection: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } + className: "RestorePoint", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroup: coreClient.CompositeMapper = { @@ -14302,10 +14367,10 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, capacityReservations: { serializedName: "properties.capacityReservations", @@ -14315,10 +14380,10 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -14328,27 +14393,27 @@ export const CapacityReservationGroup: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" - } + className: "CapacityReservationGroupInstanceView", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "ResourceSharingProfile" - } - } - } - } + className: "ResourceSharingProfile", + }, + }, + }, + }, }; export const CapacityReservation: coreClient.CompositeMapper = { @@ -14361,8 +14426,8 @@ export const CapacityReservation: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, zones: { serializedName: "zones", @@ -14370,24 +14435,24 @@ export const CapacityReservation: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, reservationId: { serializedName: "properties.reservationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -14397,41 +14462,41 @@ export const CapacityReservation: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationInstanceView" - } + className: "CapacityReservationInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineRunCommand: coreClient.CompositeMapper = { @@ -14444,8 +14509,8 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } + className: "VirtualMachineRunCommandScriptSource", + }, }, parameters: { serializedName: "properties.parameters", @@ -14454,10 +14519,10 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, protectedParameters: { serializedName: "properties.protectedParameters", @@ -14466,85 +14531,85 @@ export const VirtualMachineRunCommand: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, asyncExecution: { defaultValue: false, serializedName: "properties.asyncExecution", type: { - name: "Boolean" - } + name: "Boolean", + }, }, runAsUser: { serializedName: "properties.runAsUser", type: { - name: "String" - } + name: "String", + }, }, runAsPassword: { serializedName: "properties.runAsPassword", type: { - name: "String" - } + name: "String", + }, }, timeoutInSeconds: { serializedName: "properties.timeoutInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, outputBlobUri: { serializedName: "properties.outputBlobUri", type: { - name: "String" - } + name: "String", + }, }, errorBlobUri: { serializedName: "properties.errorBlobUri", type: { - name: "String" - } + name: "String", + }, }, outputBlobManagedIdentity: { serializedName: "properties.outputBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, errorBlobManagedIdentity: { serializedName: "properties.errorBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" - } + className: "VirtualMachineRunCommandInstanceView", + }, }, treatFailureAsDeploymentFailure: { defaultValue: false, serializedName: "properties.treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const Disk: coreClient.CompositeMapper = { @@ -14557,8 +14622,8 @@ export const Disk: coreClient.CompositeMapper = { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managedByExtended: { serializedName: "managedByExtended", @@ -14567,17 +14632,17 @@ export const Disk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "DiskSku" - } + className: "DiskSku", + }, }, zones: { serializedName: "zones", @@ -14585,136 +14650,136 @@ export const Disk: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, creationData: { serializedName: "properties.creationData", type: { name: "Composite", - className: "CreationData" - } + className: "CreationData", + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, diskSizeBytes: { serializedName: "properties.diskSizeBytes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, diskIopsReadWrite: { serializedName: "properties.diskIOPSReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadWrite: { serializedName: "properties.diskMBpsReadWrite", type: { - name: "Number" - } + name: "Number", + }, }, diskIopsReadOnly: { serializedName: "properties.diskIOPSReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskMBpsReadOnly: { serializedName: "properties.diskMBpsReadOnly", type: { - name: "Number" - } + name: "Number", + }, }, diskState: { serializedName: "properties.diskState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, maxShares: { serializedName: "properties.maxShares", type: { - name: "Number" - } + name: "Number", + }, }, shareInfo: { serializedName: "properties.shareInfo", @@ -14724,95 +14789,95 @@ export const Disk: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ShareInfoElement" - } - } - } + className: "ShareInfoElement", + }, + }, + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, burstingEnabledTime: { serializedName: "properties.burstingEnabledTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, tier: { serializedName: "properties.tier", type: { - name: "String" - } + name: "String", + }, }, burstingEnabled: { serializedName: "properties.burstingEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, propertyUpdatesInProgress: { serializedName: "properties.propertyUpdatesInProgress", type: { name: "Composite", - className: "PropertyUpdatesInProgress" - } + className: "PropertyUpdatesInProgress", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } + className: "DiskSecurityProfile", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } + name: "String", + }, }, optimizedForFrequentAttach: { serializedName: "properties.optimizedForFrequentAttach", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lastOwnershipUpdateTime: { serializedName: "properties.LastOwnershipUpdateTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const DiskAccess: coreClient.CompositeMapper = { @@ -14825,8 +14890,8 @@ export const DiskAccess: coreClient.CompositeMapper = { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -14836,27 +14901,27 @@ export const DiskAccess: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const DiskEncryptionSet: coreClient.CompositeMapper = { @@ -14869,21 +14934,21 @@ export const DiskEncryptionSet: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "EncryptionSetIdentity" - } + className: "EncryptionSetIdentity", + }, }, encryptionType: { serializedName: "properties.encryptionType", type: { - name: "String" - } + name: "String", + }, }, activeKey: { serializedName: "properties.activeKey", type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } + className: "KeyForDiskEncryptionSet", + }, }, previousKeys: { serializedName: "properties.previousKeys", @@ -14893,46 +14958,46 @@ export const DiskEncryptionSet: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "KeyForDiskEncryptionSet" - } - } - } + className: "KeyForDiskEncryptionSet", + }, + }, + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, rotationToLatestKeyVersionEnabled: { serializedName: "properties.rotationToLatestKeyVersionEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lastKeyRotationTimestamp: { serializedName: "properties.lastKeyRotationTimestamp", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, autoKeyRotationError: { serializedName: "properties.autoKeyRotationError", type: { name: "Composite", - className: "ApiError" - } + className: "ApiError", + }, }, federatedClientId: { serializedName: "properties.federatedClientId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Snapshot: coreClient.CompositeMapper = { @@ -14945,177 +15010,177 @@ export const Snapshot: coreClient.CompositeMapper = { serializedName: "managedBy", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "SnapshotSku" - } + className: "SnapshotSku", + }, }, extendedLocation: { serializedName: "extendedLocation", type: { name: "Composite", - className: "ExtendedLocation" - } + className: "ExtendedLocation", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, creationData: { serializedName: "properties.creationData", type: { name: "Composite", - className: "CreationData" - } + className: "CreationData", + }, }, diskSizeGB: { serializedName: "properties.diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, diskSizeBytes: { serializedName: "properties.diskSizeBytes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, diskState: { serializedName: "properties.diskState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, uniqueId: { serializedName: "properties.uniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryptionSettingsCollection: { serializedName: "properties.encryptionSettingsCollection", type: { name: "Composite", - className: "EncryptionSettingsCollection" - } + className: "EncryptionSettingsCollection", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, incremental: { serializedName: "properties.incremental", type: { - name: "Boolean" - } + name: "Boolean", + }, }, incrementalSnapshotFamilyId: { serializedName: "properties.incrementalSnapshotFamilyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } + className: "DiskSecurityProfile", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, copyCompletionError: { serializedName: "properties.copyCompletionError", type: { name: "Composite", - className: "CopyCompletionError" - } + className: "CopyCompletionError", + }, }, dataAccessAuthMode: { serializedName: "properties.dataAccessAuthMode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Gallery: coreClient.CompositeMapper = { @@ -15127,46 +15192,46 @@ export const Gallery: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryIdentifier" - } + className: "GalleryIdentifier", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "SharingProfile" - } + className: "SharingProfile", + }, }, softDeletePolicy: { serializedName: "properties.softDeletePolicy", type: { name: "Composite", - className: "SoftDeletePolicy" - } + className: "SoftDeletePolicy", + }, }, sharingStatus: { serializedName: "properties.sharingStatus", type: { name: "Composite", - className: "SharingStatus" - } - } - } - } + className: "SharingStatus", + }, + }, + }, + }, }; export const GalleryImage: coreClient.CompositeMapper = { @@ -15178,87 +15243,87 @@ export const GalleryImage: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -15267,19 +15332,19 @@ export const GalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersion: coreClient.CompositeMapper = { @@ -15292,46 +15357,46 @@ export const GalleryImageVersion: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryImageVersionPublishingProfile" - } + className: "GalleryImageVersionPublishingProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "GalleryImageVersionStorageProfile" - } + className: "GalleryImageVersionStorageProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryImageVersionSafetyProfile" - } + className: "GalleryImageVersionSafetyProfile", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } + className: "ReplicationStatus", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "ImageVersionSecurityProfile" - } - } - } - } + className: "ImageVersionSecurityProfile", + }, + }, + }, + }, }; export const GalleryApplication: coreClient.CompositeMapper = { @@ -15343,39 +15408,39 @@ export const GalleryApplication: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, supportedOSType: { serializedName: "properties.supportedOSType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, customActions: { serializedName: "properties.customActions", @@ -15384,13 +15449,13 @@ export const GalleryApplication: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationVersion: coreClient.CompositeMapper = { @@ -15403,32 +15468,32 @@ export const GalleryApplicationVersion: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryApplicationVersionPublishingProfile" - } + className: "GalleryApplicationVersionPublishingProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryApplicationVersionSafetyProfile" - } + className: "GalleryApplicationVersionSafetyProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } - } - } - } + className: "ReplicationStatus", + }, + }, + }, + }, }; export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { @@ -15441,106 +15506,106 @@ export const VirtualMachineScaleSetUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, plan: { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineScaleSetIdentity" - } + className: "VirtualMachineScaleSetIdentity", + }, }, upgradePolicy: { serializedName: "properties.upgradePolicy", type: { name: "Composite", - className: "UpgradePolicy" - } + className: "UpgradePolicy", + }, }, automaticRepairsPolicy: { serializedName: "properties.automaticRepairsPolicy", type: { name: "Composite", - className: "AutomaticRepairsPolicy" - } + className: "AutomaticRepairsPolicy", + }, }, virtualMachineProfile: { serializedName: "properties.virtualMachineProfile", type: { name: "Composite", - className: "VirtualMachineScaleSetUpdateVMProfile" - } + className: "VirtualMachineScaleSetUpdateVMProfile", + }, }, overprovision: { serializedName: "properties.overprovision", type: { - name: "Boolean" - } + name: "Boolean", + }, }, doNotRunExtensionsOnOverprovisionedVMs: { serializedName: "properties.doNotRunExtensionsOnOverprovisionedVMs", type: { - name: "Boolean" - } + name: "Boolean", + }, }, singlePlacementGroup: { serializedName: "properties.singlePlacementGroup", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, scaleInPolicy: { serializedName: "properties.scaleInPolicy", type: { name: "Composite", - className: "ScaleInPolicy" - } + className: "ScaleInPolicy", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priorityMixPolicy: { serializedName: "properties.priorityMixPolicy", type: { name: "Composite", - className: "PriorityMixPolicy" - } + className: "PriorityMixPolicy", + }, }, spotRestorePolicy: { serializedName: "properties.spotRestorePolicy", type: { name: "Composite", - className: "SpotRestorePolicy" - } + className: "SpotRestorePolicy", + }, }, resiliencyPolicy: { serializedName: "properties.resiliencyPolicy", type: { name: "Composite", - className: "ResiliencyPolicy" - } - } - } - } + className: "ResiliencyPolicy", + }, + }, + }, + }, }; export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { @@ -15552,66 +15617,66 @@ export const VirtualMachineExtensionUpdate: coreClient.CompositeMapper = { forceUpdateTag: { serializedName: "properties.forceUpdateTag", type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "properties.type", type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "properties.typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "properties.autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "properties.enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "properties.settings", type: { - name: "any" - } + name: "any", + }, }, protectedSettings: { serializedName: "properties.protectedSettings", type: { - name: "any" - } + name: "any", + }, }, suppressFailures: { serializedName: "properties.suppressFailures", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedSettingsFromKeyVault: { serializedName: "properties.protectedSettingsFromKeyVault", type: { name: "Composite", - className: "KeyVaultSecretReference" - } - } - } - } + className: "KeyVaultSecretReference", + }, + }, + }, + }, }; export const VirtualMachineUpdate: coreClient.CompositeMapper = { @@ -15624,15 +15689,15 @@ export const VirtualMachineUpdate: coreClient.CompositeMapper = { serializedName: "plan", type: { name: "Composite", - className: "Plan" - } + className: "Plan", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "VirtualMachineIdentity" - } + className: "VirtualMachineIdentity", + }, }, zones: { serializedName: "zones", @@ -15640,189 +15705,189 @@ export const VirtualMachineUpdate: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, hardwareProfile: { serializedName: "properties.hardwareProfile", type: { name: "Composite", - className: "HardwareProfile" - } + className: "HardwareProfile", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "StorageProfile" - } + className: "StorageProfile", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "AdditionalCapabilities" - } + className: "AdditionalCapabilities", + }, }, osProfile: { serializedName: "properties.osProfile", type: { name: "Composite", - className: "OSProfile" - } + className: "OSProfile", + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, diagnosticsProfile: { serializedName: "properties.diagnosticsProfile", type: { name: "Composite", - className: "DiagnosticsProfile" - } + className: "DiagnosticsProfile", + }, }, availabilitySet: { serializedName: "properties.availabilitySet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, virtualMachineScaleSet: { serializedName: "properties.virtualMachineScaleSet", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, priority: { serializedName: "properties.priority", type: { - name: "String" - } + name: "String", + }, }, evictionPolicy: { serializedName: "properties.evictionPolicy", type: { - name: "String" - } + name: "String", + }, }, billingProfile: { serializedName: "properties.billingProfile", type: { name: "Composite", - className: "BillingProfile" - } + className: "BillingProfile", + }, }, host: { serializedName: "properties.host", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, hostGroup: { serializedName: "properties.hostGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineInstanceView" - } + className: "VirtualMachineInstanceView", + }, }, licenseType: { serializedName: "properties.licenseType", type: { - name: "String" - } + name: "String", + }, }, vmId: { serializedName: "properties.vmId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, extensionsTimeBudget: { serializedName: "properties.extensionsTimeBudget", type: { - name: "String" - } + name: "String", + }, }, platformFaultDomain: { serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, scheduledEventsProfile: { serializedName: "properties.scheduledEventsProfile", type: { name: "Composite", - className: "ScheduledEventsProfile" - } + className: "ScheduledEventsProfile", + }, }, userData: { serializedName: "properties.userData", type: { - name: "String" - } + name: "String", + }, }, capacityReservation: { serializedName: "properties.capacityReservation", type: { name: "Composite", - className: "CapacityReservationProfile" - } + className: "CapacityReservationProfile", + }, }, applicationProfile: { serializedName: "properties.applicationProfile", type: { name: "Composite", - className: "ApplicationProfile" - } + className: "ApplicationProfile", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const AvailabilitySetUpdate: coreClient.CompositeMapper = { @@ -15835,20 +15900,20 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformUpdateDomainCount: { serializedName: "properties.platformUpdateDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -15857,17 +15922,17 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResource" - } - } - } + className: "SubResource", + }, + }, + }, }, proximityPlacementGroup: { serializedName: "properties.proximityPlacementGroup", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, statuses: { serializedName: "properties.statuses", @@ -15877,13 +15942,13 @@ export const AvailabilitySetUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InstanceViewStatus" - } - } - } - } - } - } + className: "InstanceViewStatus", + }, + }, + }, + }, + }, + }, }; export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { @@ -15891,9 +15956,9 @@ export const ProximityPlacementGroupUpdate: coreClient.CompositeMapper = { name: "Composite", className: "ProximityPlacementGroupUpdate", modelProperties: { - ...UpdateResource.type.modelProperties - } - } + ...UpdateResource.type.modelProperties, + }, + }, }; export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { @@ -15908,19 +15973,19 @@ export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, platformFaultDomainCount: { constraints: { - InclusiveMinimum: 1 + InclusiveMinimum: 1, }, serializedName: "properties.platformFaultDomainCount", type: { - name: "Number" - } + name: "Number", + }, }, hosts: { serializedName: "properties.hosts", @@ -15930,33 +15995,33 @@ export const DedicatedHostGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostGroupInstanceView" - } + className: "DedicatedHostGroupInstanceView", + }, }, supportAutomaticPlacement: { serializedName: "properties.supportAutomaticPlacement", type: { - name: "Boolean" - } + name: "Boolean", + }, }, additionalCapabilities: { serializedName: "properties.additionalCapabilities", type: { name: "Composite", - className: "DedicatedHostGroupPropertiesAdditionalCapabilities" - } - } - } - } + className: "DedicatedHostGroupPropertiesAdditionalCapabilities", + }, + }, + }, + }, }; export const DedicatedHostUpdate: coreClient.CompositeMapper = { @@ -15969,30 +16034,30 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, platformFaultDomain: { constraints: { - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "properties.platformFaultDomain", type: { - name: "Number" - } + name: "Number", + }, }, autoReplaceOnFailure: { serializedName: "properties.autoReplaceOnFailure", type: { - name: "Boolean" - } + name: "Boolean", + }, }, hostId: { serializedName: "properties.hostId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, virtualMachines: { serializedName: "properties.virtualMachines", @@ -16002,10 +16067,10 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, licenseType: { serializedName: "properties.licenseType", @@ -16014,40 +16079,40 @@ export const DedicatedHostUpdate: coreClient.CompositeMapper = { allowedValues: [ "None", "Windows_Server_Hybrid", - "Windows_Server_Perpetual" - ] - } + "Windows_Server_Perpetual", + ], + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "DedicatedHostInstanceView" - } + className: "DedicatedHostInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { @@ -16059,11 +16124,11 @@ export const SshPublicKeyUpdateResource: coreClient.CompositeMapper = { publicKey: { serializedName: "properties.publicKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageUpdate: coreClient.CompositeMapper = { @@ -16076,31 +16141,31 @@ export const ImageUpdate: coreClient.CompositeMapper = { serializedName: "properties.sourceVirtualMachine", type: { name: "Composite", - className: "SubResource" - } + className: "SubResource", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "ImageStorageProfile" - } + className: "ImageStorageProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { @@ -16113,22 +16178,22 @@ export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "RestorePointCollectionSourceProperties" - } + className: "RestorePointCollectionSourceProperties", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePointCollectionId: { serializedName: "properties.restorePointCollectionId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, restorePoints: { serializedName: "properties.restorePoints", @@ -16138,13 +16203,13 @@ export const RestorePointCollectionUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RestorePoint" - } - } - } - } - } - } + className: "RestorePoint", + }, + }, + }, + }, + }, + }, }; export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { @@ -16161,10 +16226,10 @@ export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -16174,27 +16239,27 @@ export const CapacityReservationGroupUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationGroupInstanceView" - } + className: "CapacityReservationGroupInstanceView", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "ResourceSharingProfile" - } - } - } - } + className: "ResourceSharingProfile", + }, + }, + }, + }, }; export const CapacityReservationUpdate: coreClient.CompositeMapper = { @@ -16207,22 +16272,22 @@ export const CapacityReservationUpdate: coreClient.CompositeMapper = { serializedName: "sku", type: { name: "Composite", - className: "Sku" - } + className: "Sku", + }, }, reservationId: { serializedName: "properties.reservationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, platformFaultDomainCount: { serializedName: "properties.platformFaultDomainCount", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, virtualMachinesAssociated: { serializedName: "properties.virtualMachinesAssociated", @@ -16232,41 +16297,41 @@ export const CapacityReservationUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SubResourceReadOnly" - } - } - } + className: "SubResourceReadOnly", + }, + }, + }, }, provisioningTime: { serializedName: "properties.provisioningTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "CapacityReservationInstanceView" - } + className: "CapacityReservationInstanceView", + }, }, timeCreated: { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { @@ -16279,8 +16344,8 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { serializedName: "properties.source", type: { name: "Composite", - className: "VirtualMachineRunCommandScriptSource" - } + className: "VirtualMachineRunCommandScriptSource", + }, }, parameters: { serializedName: "properties.parameters", @@ -16289,10 +16354,10 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, protectedParameters: { serializedName: "properties.protectedParameters", @@ -16301,96 +16366,97 @@ export const VirtualMachineRunCommandUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandInputParameter" - } - } - } + className: "RunCommandInputParameter", + }, + }, + }, }, asyncExecution: { defaultValue: false, serializedName: "properties.asyncExecution", type: { - name: "Boolean" - } + name: "Boolean", + }, }, runAsUser: { serializedName: "properties.runAsUser", type: { - name: "String" - } + name: "String", + }, }, runAsPassword: { serializedName: "properties.runAsPassword", type: { - name: "String" - } + name: "String", + }, }, timeoutInSeconds: { serializedName: "properties.timeoutInSeconds", type: { - name: "Number" - } + name: "Number", + }, }, outputBlobUri: { serializedName: "properties.outputBlobUri", type: { - name: "String" - } + name: "String", + }, }, errorBlobUri: { serializedName: "properties.errorBlobUri", type: { - name: "String" - } + name: "String", + }, }, outputBlobManagedIdentity: { serializedName: "properties.outputBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, errorBlobManagedIdentity: { serializedName: "properties.errorBlobManagedIdentity", type: { name: "Composite", - className: "RunCommandManagedIdentity" - } + className: "RunCommandManagedIdentity", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "VirtualMachineRunCommandInstanceView" - } + className: "VirtualMachineRunCommandInstanceView", + }, }, treatFailureAsDeploymentFailure: { defaultValue: false, serializedName: "properties.treatFailureAsDeploymentFailure", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; -export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMReimageParameters", - modelProperties: { - ...VirtualMachineReimageParameters.type.modelProperties - } - } -}; +export const VirtualMachineScaleSetVMReimageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMReimageParameters", + modelProperties: { + ...VirtualMachineReimageParameters.type.modelProperties, + }, + }, + }; export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { type: { @@ -16402,11 +16468,11 @@ export const DedicatedHostInstanceViewWithName: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageOSDisk: coreClient.CompositeMapper = { @@ -16420,19 +16486,19 @@ export const ImageOSDisk: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "osState", required: true, type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } - } - } - } + allowedValues: ["Generalized", "Specialized"], + }, + }, + }, + }, }; export const ImageDataDisk: coreClient.CompositeMapper = { @@ -16445,11 +16511,11 @@ export const ImageDataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const RestorePoint: coreClient.CompositeMapper = { @@ -16465,71 +16531,72 @@ export const RestorePoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiEntityReference" - } - } - } + className: "ApiEntityReference", + }, + }, + }, }, sourceMetadata: { serializedName: "properties.sourceMetadata", type: { name: "Composite", - className: "RestorePointSourceMetadata" - } + className: "RestorePointSourceMetadata", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, consistencyMode: { serializedName: "properties.consistencyMode", type: { - name: "String" - } + name: "String", + }, }, timeCreated: { serializedName: "properties.timeCreated", type: { - name: "DateTime" - } + name: "DateTime", + }, }, sourceRestorePoint: { serializedName: "properties.sourceRestorePoint", type: { name: "Composite", - className: "ApiEntityReference" - } + className: "ApiEntityReference", + }, }, instanceView: { serializedName: "properties.instanceView", type: { name: "Composite", - className: "RestorePointInstanceView" - } - } - } - } -}; - -export const CapacityReservationInstanceViewWithName: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CapacityReservationInstanceViewWithName", - modelProperties: { - ...CapacityReservationInstanceView.type.modelProperties, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; + className: "RestorePointInstanceView", + }, + }, + }, + }, +}; + +export const CapacityReservationInstanceViewWithName: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "CapacityReservationInstanceViewWithName", + modelProperties: { + ...CapacityReservationInstanceView.type.modelProperties, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const RequestRateByIntervalInput: coreClient.CompositeMapper = { type: { @@ -16542,11 +16609,11 @@ export const RequestRateByIntervalInput: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["ThreeMins", "FiveMins", "ThirtyMins", "SixtyMins"] - } - } - } - } + allowedValues: ["ThreeMins", "FiveMins", "ThirtyMins", "SixtyMins"], + }, + }, + }, + }, }; export const ThrottledRequestsInput: coreClient.CompositeMapper = { @@ -16554,9 +16621,9 @@ export const ThrottledRequestsInput: coreClient.CompositeMapper = { name: "Composite", className: "ThrottledRequestsInput", modelProperties: { - ...LogAnalyticsInputBase.type.modelProperties - } - } + ...LogAnalyticsInputBase.type.modelProperties, + }, + }, }; export const RunCommandDocument: coreClient.CompositeMapper = { @@ -16572,10 +16639,10 @@ export const RunCommandDocument: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, parameters: { serializedName: "parameters", @@ -16584,13 +16651,13 @@ export const RunCommandDocument: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RunCommandParameterDefinition" - } - } - } - } - } - } + className: "RunCommandParameterDefinition", + }, + }, + }, + }, + }, + }, }; export const DiskRestorePoint: coreClient.CompositeMapper = { @@ -16603,118 +16670,118 @@ export const DiskRestorePoint: coreClient.CompositeMapper = { serializedName: "properties.timeCreated", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, sourceResourceId: { serializedName: "properties.sourceResourceId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", readOnly: true, type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "PurchasePlanAutoGenerated" - } + className: "PurchasePlanAutoGenerated", + }, }, supportedCapabilities: { serializedName: "properties.supportedCapabilities", type: { name: "Composite", - className: "SupportedCapabilities" - } + className: "SupportedCapabilities", + }, }, familyId: { serializedName: "properties.familyId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceUniqueId: { serializedName: "properties.sourceUniqueId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "Encryption" - } + className: "Encryption", + }, }, supportsHibernation: { serializedName: "properties.supportsHibernation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, networkAccessPolicy: { serializedName: "properties.networkAccessPolicy", type: { - name: "String" - } + name: "String", + }, }, publicNetworkAccess: { serializedName: "properties.publicNetworkAccess", type: { - name: "String" - } + name: "String", + }, }, diskAccessId: { serializedName: "properties.diskAccessId", type: { - name: "String" - } + name: "String", + }, }, completionPercent: { serializedName: "properties.completionPercent", type: { - name: "Number" - } + name: "Number", + }, }, replicationState: { serializedName: "properties.replicationState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sourceResourceLocation: { serializedName: "properties.sourceResourceLocation", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "DiskSecurityProfile" - } - } - } - } + className: "DiskSecurityProfile", + }, + }, + }, + }, }; export const GalleryUpdate: coreClient.CompositeMapper = { @@ -16726,46 +16793,46 @@ export const GalleryUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryIdentifier" - } + className: "GalleryIdentifier", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, sharingProfile: { serializedName: "properties.sharingProfile", type: { name: "Composite", - className: "SharingProfile" - } + className: "SharingProfile", + }, }, softDeletePolicy: { serializedName: "properties.softDeletePolicy", type: { name: "Composite", - className: "SoftDeletePolicy" - } + className: "SoftDeletePolicy", + }, }, sharingStatus: { serializedName: "properties.sharingStatus", type: { name: "Composite", - className: "SharingStatus" - } - } - } - } + className: "SharingStatus", + }, + }, + }, + }, }; export const GalleryImageUpdate: coreClient.CompositeMapper = { @@ -16777,87 +16844,87 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, osType: { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -16866,19 +16933,19 @@ export const GalleryImageUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { @@ -16891,46 +16958,46 @@ export const GalleryImageVersionUpdate: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryImageVersionPublishingProfile" - } + className: "GalleryImageVersionPublishingProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "GalleryImageVersionStorageProfile" - } + className: "GalleryImageVersionStorageProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryImageVersionSafetyProfile" - } + className: "GalleryImageVersionSafetyProfile", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } + className: "ReplicationStatus", + }, }, securityProfile: { serializedName: "properties.securityProfile", type: { name: "Composite", - className: "ImageVersionSecurityProfile" - } - } - } - } + className: "ImageVersionSecurityProfile", + }, + }, + }, + }, }; export const GalleryApplicationUpdate: coreClient.CompositeMapper = { @@ -16942,39 +17009,39 @@ export const GalleryApplicationUpdate: coreClient.CompositeMapper = { description: { serializedName: "properties.description", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, releaseNoteUri: { serializedName: "properties.releaseNoteUri", type: { - name: "String" - } + name: "String", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, supportedOSType: { serializedName: "properties.supportedOSType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, customActions: { serializedName: "properties.customActions", @@ -16983,13 +17050,13 @@ export const GalleryApplicationUpdate: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, + }, + }, }; export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { @@ -17002,99 +17069,101 @@ export const GalleryApplicationVersionUpdate: coreClient.CompositeMapper = { serializedName: "properties.publishingProfile", type: { name: "Composite", - className: "GalleryApplicationVersionPublishingProfile" - } + className: "GalleryApplicationVersionPublishingProfile", + }, }, safetyProfile: { serializedName: "properties.safetyProfile", type: { name: "Composite", - className: "GalleryApplicationVersionSafetyProfile" - } + className: "GalleryApplicationVersionSafetyProfile", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, replicationStatus: { serializedName: "properties.replicationStatus", type: { name: "Composite", - className: "ReplicationStatus" - } - } - } - } -}; - -export const GalleryImageVersionPublishingProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryImageVersionPublishingProfile", - modelProperties: { - ...GalleryArtifactPublishingProfileBase.type.modelProperties - } - } -}; - -export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationVersionPublishingProfile", - modelProperties: { - ...GalleryArtifactPublishingProfileBase.type.modelProperties, - source: { - serializedName: "source", - type: { - name: "Composite", - className: "UserArtifactSource" - } - }, - manageActions: { - serializedName: "manageActions", - type: { - name: "Composite", - className: "UserArtifactManage" - } - }, - settings: { - serializedName: "settings", - type: { - name: "Composite", - className: "UserArtifactSettings" - } - }, - advancedSettings: { - serializedName: "advancedSettings", - type: { - name: "Dictionary", - value: { type: { name: "String" } } - } + className: "ReplicationStatus", + }, }, - enableHealthCheck: { - serializedName: "enableHealthCheck", - type: { - name: "Boolean" - } + }, + }, +}; + +export const GalleryImageVersionPublishingProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryImageVersionPublishingProfile", + modelProperties: { + ...GalleryArtifactPublishingProfileBase.type.modelProperties, + }, + }, + }; + +export const GalleryApplicationVersionPublishingProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationVersionPublishingProfile", + modelProperties: { + ...GalleryArtifactPublishingProfileBase.type.modelProperties, + source: { + serializedName: "source", + type: { + name: "Composite", + className: "UserArtifactSource", + }, + }, + manageActions: { + serializedName: "manageActions", + type: { + name: "Composite", + className: "UserArtifactManage", + }, + }, + settings: { + serializedName: "settings", + type: { + name: "Composite", + className: "UserArtifactSettings", + }, + }, + advancedSettings: { + serializedName: "advancedSettings", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + enableHealthCheck: { + serializedName: "enableHealthCheck", + type: { + name: "Boolean", + }, + }, + customActions: { + serializedName: "customActions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GalleryApplicationCustomAction", + }, + }, + }, + }, }, - customActions: { - serializedName: "customActions", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GalleryApplicationCustomAction" - } - } - } - } - } - } -}; + }, + }; export const OSDiskImageEncryption: coreClient.CompositeMapper = { type: { @@ -17106,11 +17175,11 @@ export const OSDiskImageEncryption: coreClient.CompositeMapper = { serializedName: "securityProfile", type: { name: "Composite", - className: "OSDiskImageSecurityProfile" - } - } - } - } + className: "OSDiskImageSecurityProfile", + }, + }, + }, + }, }; export const DataDiskImageEncryption: coreClient.CompositeMapper = { @@ -17123,11 +17192,11 @@ export const DataDiskImageEncryption: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GalleryArtifactVersionFullSource: coreClient.CompositeMapper = { @@ -17139,11 +17208,17 @@ export const GalleryArtifactVersionFullSource: coreClient.CompositeMapper = { communityGalleryImageId: { serializedName: "communityGalleryImageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + virtualMachineId: { + serializedName: "virtualMachineId", + type: { + name: "String", + }, + }, + }, + }, }; export const GalleryDiskImageSource: coreClient.CompositeMapper = { @@ -17155,17 +17230,17 @@ export const GalleryDiskImageSource: coreClient.CompositeMapper = { uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, storageAccountId: { serializedName: "storageAccountId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const GalleryOSDiskImage: coreClient.CompositeMapper = { @@ -17173,9 +17248,9 @@ export const GalleryOSDiskImage: coreClient.CompositeMapper = { name: "Composite", className: "GalleryOSDiskImage", modelProperties: { - ...GalleryDiskImage.type.modelProperties - } - } + ...GalleryDiskImage.type.modelProperties, + }, + }, }; export const GalleryDataDiskImage: coreClient.CompositeMapper = { @@ -17188,11 +17263,11 @@ export const GalleryDataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { @@ -17205,8 +17280,8 @@ export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { serializedName: "reportedForPolicyViolation", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, policyViolations: { serializedName: "policyViolations", @@ -17216,24 +17291,25 @@ export const GalleryImageVersionSafetyProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PolicyViolation" - } - } - } - } - } - } + className: "PolicyViolation", + }, + }, + }, + }, + }, + }, }; -export const GalleryApplicationVersionSafetyProfile: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GalleryApplicationVersionSafetyProfile", - modelProperties: { - ...GalleryArtifactSafetyProfileBase.type.modelProperties - } - } -}; +export const GalleryApplicationVersionSafetyProfile: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "GalleryApplicationVersionSafetyProfile", + modelProperties: { + ...GalleryArtifactSafetyProfileBase.type.modelProperties, + }, + }, + }; export const PirSharedGalleryResource: coreClient.CompositeMapper = { type: { @@ -17244,11 +17320,11 @@ export const PirSharedGalleryResource: coreClient.CompositeMapper = { uniqueId: { serializedName: "identifier.uniqueId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { @@ -17256,9 +17332,9 @@ export const SharedGalleryOSDiskImage: coreClient.CompositeMapper = { name: "Composite", className: "SharedGalleryOSDiskImage", modelProperties: { - ...SharedGalleryDiskImage.type.modelProperties - } - } + ...SharedGalleryDiskImage.type.modelProperties, + }, + }, }; export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { @@ -17271,11 +17347,11 @@ export const SharedGalleryDataDiskImage: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CommunityGallery: coreClient.CompositeMapper = { @@ -17287,25 +17363,25 @@ export const CommunityGallery: coreClient.CompositeMapper = { disclaimer: { serializedName: "properties.disclaimer", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, communityMetadata: { serializedName: "properties.communityMetadata", type: { name: "Composite", - className: "CommunityGalleryMetadata" - } - } - } - } + className: "CommunityGalleryMetadata", + }, + }, + }, + }, }; export const CommunityGalleryImage: coreClient.CompositeMapper = { @@ -17318,48 +17394,48 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "CommunityGalleryImageIdentifier" - } + className: "CommunityGalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -17368,51 +17444,51 @@ export const CommunityGalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, disclaimer: { serializedName: "properties.disclaimer", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { @@ -17424,43 +17500,43 @@ export const CommunityGalleryImageVersion: coreClient.CompositeMapper = { publishedDate: { serializedName: "properties.publishedDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, excludeFromLatest: { serializedName: "properties.excludeFromLatest", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "SharedGalleryImageVersionStorageProfile" - } + className: "SharedGalleryImageVersionStorageProfile", + }, }, disclaimer: { serializedName: "properties.disclaimer", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const VirtualMachineImage: coreClient.CompositeMapper = { @@ -17473,15 +17549,15 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { serializedName: "properties.plan", type: { name: "Composite", - className: "PurchasePlan" - } + className: "PurchasePlan", + }, }, osDiskImage: { serializedName: "properties.osDiskImage", type: { name: "Composite", - className: "OSDiskImage" - } + className: "OSDiskImage", + }, }, dataDiskImages: { serializedName: "properties.dataDiskImages", @@ -17490,30 +17566,30 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDiskImage" - } - } - } + className: "DataDiskImage", + }, + }, + }, }, automaticOSUpgradeProperties: { serializedName: "properties.automaticOSUpgradeProperties", type: { name: "Composite", - className: "AutomaticOSUpgradeProperties" - } + className: "AutomaticOSUpgradeProperties", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "DisallowedConfiguration" - } + className: "DisallowedConfiguration", + }, }, features: { serializedName: "properties.features", @@ -17522,48 +17598,49 @@ export const VirtualMachineImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineImageFeature" - } - } - } + className: "VirtualMachineImageFeature", + }, + }, + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, imageDeprecationStatus: { serializedName: "properties.imageDeprecationStatus", type: { name: "Composite", - className: "ImageDeprecationStatus" - } - } - } - } -}; - -export const VirtualMachineScaleSetReimageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetReimageParameters", - modelProperties: { - ...VirtualMachineScaleSetVMReimageParameters.type.modelProperties, - instanceIds: { - serializedName: "instanceIds", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } - } - } -}; + className: "ImageDeprecationStatus", + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetReimageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetReimageParameters", + modelProperties: { + ...VirtualMachineScaleSetVMReimageParameters.type.modelProperties, + instanceIds: { + serializedName: "instanceIds", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; export const SharedGallery: coreClient.CompositeMapper = { type: { @@ -17576,11 +17653,11 @@ export const SharedGallery: coreClient.CompositeMapper = { readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SharedGalleryImage: coreClient.CompositeMapper = { @@ -17593,48 +17670,48 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { serializedName: "properties.osType", type: { name: "Enum", - allowedValues: ["Windows", "Linux"] - } + allowedValues: ["Windows", "Linux"], + }, }, osState: { serializedName: "properties.osState", type: { name: "Enum", - allowedValues: ["Generalized", "Specialized"] - } + allowedValues: ["Generalized", "Specialized"], + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, identifier: { serializedName: "properties.identifier", type: { name: "Composite", - className: "GalleryImageIdentifier" - } + className: "GalleryImageIdentifier", + }, }, recommended: { serializedName: "properties.recommended", type: { name: "Composite", - className: "RecommendedMachineConfiguration" - } + className: "RecommendedMachineConfiguration", + }, }, disallowed: { serializedName: "properties.disallowed", type: { name: "Composite", - className: "Disallowed" - } + className: "Disallowed", + }, }, hyperVGeneration: { serializedName: "properties.hyperVGeneration", type: { - name: "String" - } + name: "String", + }, }, features: { serializedName: "properties.features", @@ -17643,45 +17720,45 @@ export const SharedGalleryImage: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GalleryImageFeature" - } - } - } + className: "GalleryImageFeature", + }, + }, + }, }, purchasePlan: { serializedName: "properties.purchasePlan", type: { name: "Composite", - className: "ImagePurchasePlan" - } + className: "ImagePurchasePlan", + }, }, architecture: { serializedName: "properties.architecture", type: { - name: "String" - } + name: "String", + }, }, privacyStatementUri: { serializedName: "properties.privacyStatementUri", type: { - name: "String" - } + name: "String", + }, }, eula: { serializedName: "properties.eula", type: { - name: "String" - } + name: "String", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const SharedGalleryImageVersion: coreClient.CompositeMapper = { @@ -17693,113 +17770,118 @@ export const SharedGalleryImageVersion: coreClient.CompositeMapper = { publishedDate: { serializedName: "properties.publishedDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, endOfLifeDate: { serializedName: "properties.endOfLifeDate", type: { - name: "DateTime" - } + name: "DateTime", + }, }, excludeFromLatest: { serializedName: "properties.excludeFromLatest", type: { - name: "Boolean" - } + name: "Boolean", + }, }, storageProfile: { serializedName: "properties.storageProfile", type: { name: "Composite", - className: "SharedGalleryImageVersionStorageProfile" - } + className: "SharedGalleryImageVersionStorageProfile", + }, }, artifactTags: { serializedName: "properties.artifactTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } -}; - -export const VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetsReapplyHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetsApproveRollingUpgradeHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; - -export const VirtualMachinesAttachDetachDataDisksHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VirtualMachinesAttachDetachDataDisksHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - } - } - } -}; + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const VirtualMachineScaleSetsReapplyHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetsReapplyHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetsApproveRollingUpgradeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachineScaleSetVMsAttachDetachDataDisksHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const VirtualMachinesAttachDetachDataDisksHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "VirtualMachinesAttachDetachDataDisksHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + }, + }, + }; export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { type: { @@ -17809,9 +17891,9 @@ export const DedicatedHostsRedeployHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/compute/arm-compute/src/models/parameters.ts b/sdk/compute/arm-compute/src/models/parameters.ts index 4ed3984bb0d1..d37d6833c0d0 100644 --- a/sdk/compute/arm-compute/src/models/parameters.ts +++ b/sdk/compute/arm-compute/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { VirtualMachineScaleSet as VirtualMachineScaleSetMapper, @@ -82,7 +82,7 @@ import { CloudService as CloudServiceMapper, CloudServiceUpdate as CloudServiceUpdateMapper, RoleInstances as RoleInstancesMapper, - UpdateDomain as UpdateDomainMapper + UpdateDomain as UpdateDomainMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -92,9 +92,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -103,10 +103,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { @@ -116,23 +116,23 @@ export const apiVersion: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const location: OperationURLParameter = { parameterPath: "location", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -141,9 +141,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -152,10 +152,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const contentType: OperationParameter = { @@ -165,14 +165,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetMapper + mapper: VirtualMachineScaleSetMapper, }; export const resourceGroupName: OperationURLParameter = { @@ -181,9 +181,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmScaleSetName: OperationURLParameter = { @@ -192,9 +192,9 @@ export const vmScaleSetName: OperationURLParameter = { serializedName: "vmScaleSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifMatch: OperationParameter = { @@ -202,9 +202,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -212,14 +212,14 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetUpdateMapper + mapper: VirtualMachineScaleSetUpdateMapper, }; export const forceDeletion: OperationQueryParameter = { @@ -227,9 +227,9 @@ export const forceDeletion: OperationQueryParameter = { mapper: { serializedName: "forceDeletion", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const expand: OperationQueryParameter = { @@ -237,14 +237,14 @@ export const expand: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmInstanceIDs: OperationParameter = { parameterPath: ["options", "vmInstanceIDs"], - mapper: VirtualMachineScaleSetVMInstanceIDsMapper + mapper: VirtualMachineScaleSetVMInstanceIDsMapper, }; export const hibernate: OperationQueryParameter = { @@ -252,14 +252,14 @@ export const hibernate: OperationQueryParameter = { mapper: { serializedName: "hibernate", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const vmInstanceIDs1: OperationParameter = { parameterPath: "vmInstanceIDs", - mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper + mapper: VirtualMachineScaleSetVMInstanceRequiredIDsMapper, }; export const skipShutdown: OperationQueryParameter = { @@ -268,14 +268,14 @@ export const skipShutdown: OperationQueryParameter = { defaultValue: false, serializedName: "skipShutdown", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const vmScaleSetReimageInput: OperationParameter = { parameterPath: ["options", "vmScaleSetReimageInput"], - mapper: VirtualMachineScaleSetReimageParametersMapper + mapper: VirtualMachineScaleSetReimageParametersMapper, }; export const platformUpdateDomain: OperationQueryParameter = { @@ -284,9 +284,9 @@ export const platformUpdateDomain: OperationQueryParameter = { serializedName: "platformUpdateDomain", required: true, type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const zone: OperationQueryParameter = { @@ -294,9 +294,9 @@ export const zone: OperationQueryParameter = { mapper: { serializedName: "zone", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const placementGroupId: OperationQueryParameter = { @@ -304,24 +304,24 @@ export const placementGroupId: OperationQueryParameter = { mapper: { serializedName: "placementGroupId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: VMScaleSetConvertToSinglePlacementGroupInputMapper + mapper: VMScaleSetConvertToSinglePlacementGroupInputMapper, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: OrchestrationServiceStateInputMapper + mapper: OrchestrationServiceStateInputMapper, }; export const extensionParameters: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetExtensionMapper + mapper: VirtualMachineScaleSetExtensionMapper, }; export const vmssExtensionName: OperationURLParameter = { @@ -330,14 +330,14 @@ export const vmssExtensionName: OperationURLParameter = { serializedName: "vmssExtensionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters1: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetExtensionUpdateMapper + mapper: VirtualMachineScaleSetExtensionUpdateMapper, }; export const expand1: OperationQueryParameter = { @@ -345,14 +345,14 @@ export const expand1: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters2: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetVMExtensionMapper + mapper: VirtualMachineScaleSetVMExtensionMapper, }; export const instanceId: OperationURLParameter = { @@ -361,9 +361,9 @@ export const instanceId: OperationURLParameter = { serializedName: "instanceId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const vmExtensionName: OperationURLParameter = { @@ -372,24 +372,24 @@ export const vmExtensionName: OperationURLParameter = { serializedName: "vmExtensionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters3: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineScaleSetVMExtensionUpdateMapper + mapper: VirtualMachineScaleSetVMExtensionUpdateMapper, }; export const vmScaleSetVMReimageInput: OperationParameter = { parameterPath: ["options", "vmScaleSetVMReimageInput"], - mapper: VirtualMachineScaleSetVMReimageParametersMapper + mapper: VirtualMachineScaleSetVMReimageParametersMapper, }; export const parameters4: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineScaleSetVMMapper + mapper: VirtualMachineScaleSetVMMapper, }; export const expand2: OperationQueryParameter = { @@ -398,9 +398,9 @@ export const expand2: OperationQueryParameter = { serializedName: "$expand", type: { name: "Enum", - allowedValues: ["instanceView", "userData"] - } - } + allowedValues: ["instanceView", "userData"], + }, + }, }; export const virtualMachineScaleSetName: OperationURLParameter = { @@ -409,9 +409,9 @@ export const virtualMachineScaleSetName: OperationURLParameter = { serializedName: "virtualMachineScaleSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -419,9 +419,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const select: OperationQueryParameter = { @@ -429,9 +429,9 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { @@ -439,19 +439,19 @@ export const sasUriExpirationTimeInMinutes: OperationQueryParameter = { mapper: { serializedName: "sasUriExpirationTimeInMinutes", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: "parameters", - mapper: AttachDetachDataDisksRequestMapper + mapper: AttachDetachDataDisksRequestMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: RunCommandInputMapper + mapper: RunCommandInputMapper, }; export const accept1: OperationParameter = { @@ -461,14 +461,14 @@ export const accept1: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters4: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineExtensionMapper + mapper: VirtualMachineExtensionMapper, }; export const vmName: OperationURLParameter = { @@ -477,29 +477,29 @@ export const vmName: OperationURLParameter = { serializedName: "vmName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const extensionParameters5: OperationParameter = { parameterPath: "extensionParameters", - mapper: VirtualMachineExtensionUpdateMapper + mapper: VirtualMachineExtensionUpdateMapper, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineCaptureParametersMapper + mapper: VirtualMachineCaptureParametersMapper, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineMapper + mapper: VirtualMachineMapper, }; export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: VirtualMachineUpdateMapper + mapper: VirtualMachineUpdateMapper, }; export const expand3: OperationQueryParameter = { @@ -507,9 +507,9 @@ export const expand3: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const statusOnly: OperationQueryParameter = { @@ -517,9 +517,9 @@ export const statusOnly: OperationQueryParameter = { mapper: { serializedName: "statusOnly", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand4: OperationQueryParameter = { @@ -527,19 +527,19 @@ export const expand4: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters10: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: VirtualMachineReimageParametersMapper + mapper: VirtualMachineReimageParametersMapper, }; export const installPatchesInput: OperationParameter = { parameterPath: "installPatchesInput", - mapper: VirtualMachineInstallPatchesParametersMapper + mapper: VirtualMachineInstallPatchesParametersMapper, }; export const location1: OperationURLParameter = { @@ -548,9 +548,9 @@ export const location1: OperationURLParameter = { serializedName: "location", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const publisherName: OperationURLParameter = { @@ -559,9 +559,9 @@ export const publisherName: OperationURLParameter = { serializedName: "publisherName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const offer: OperationURLParameter = { @@ -570,9 +570,9 @@ export const offer: OperationURLParameter = { serializedName: "offer", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skus: OperationURLParameter = { @@ -581,9 +581,9 @@ export const skus: OperationURLParameter = { serializedName: "skus", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const version: OperationURLParameter = { @@ -592,9 +592,9 @@ export const version: OperationURLParameter = { serializedName: "version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const top: OperationQueryParameter = { @@ -602,9 +602,9 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const orderby: OperationQueryParameter = { @@ -612,9 +612,9 @@ export const orderby: OperationQueryParameter = { mapper: { serializedName: "$orderby", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const edgeZone: OperationURLParameter = { @@ -623,9 +623,9 @@ export const edgeZone: OperationURLParameter = { serializedName: "edgeZone", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const typeParam: OperationURLParameter = { @@ -634,14 +634,14 @@ export const typeParam: OperationURLParameter = { serializedName: "type", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters11: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetMapper + mapper: AvailabilitySetMapper, }; export const availabilitySetName: OperationURLParameter = { @@ -650,19 +650,19 @@ export const availabilitySetName: OperationURLParameter = { serializedName: "availabilitySetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters12: OperationParameter = { parameterPath: "parameters", - mapper: AvailabilitySetUpdateMapper + mapper: AvailabilitySetUpdateMapper, }; export const parameters13: OperationParameter = { parameterPath: "parameters", - mapper: ProximityPlacementGroupMapper + mapper: ProximityPlacementGroupMapper, }; export const proximityPlacementGroupName: OperationURLParameter = { @@ -671,14 +671,14 @@ export const proximityPlacementGroupName: OperationURLParameter = { serializedName: "proximityPlacementGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters14: OperationParameter = { parameterPath: "parameters", - mapper: ProximityPlacementGroupUpdateMapper + mapper: ProximityPlacementGroupUpdateMapper, }; export const includeColocationStatus: OperationQueryParameter = { @@ -686,14 +686,14 @@ export const includeColocationStatus: OperationQueryParameter = { mapper: { serializedName: "includeColocationStatus", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters15: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupMapper + mapper: DedicatedHostGroupMapper, }; export const hostGroupName: OperationURLParameter = { @@ -702,19 +702,19 @@ export const hostGroupName: OperationURLParameter = { serializedName: "hostGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters16: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostGroupUpdateMapper + mapper: DedicatedHostGroupUpdateMapper, }; export const parameters17: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostMapper + mapper: DedicatedHostMapper, }; export const hostName: OperationURLParameter = { @@ -723,47 +723,47 @@ export const hostName: OperationURLParameter = { serializedName: "hostName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters18: OperationParameter = { parameterPath: "parameters", - mapper: DedicatedHostUpdateMapper + mapper: DedicatedHostUpdateMapper, }; export const hostGroupName1: OperationURLParameter = { parameterPath: "hostGroupName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "hostGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const hostName1: OperationURLParameter = { parameterPath: "hostName", mapper: { constraints: { - Pattern: new RegExp("^[-\\w\\._]+$") + Pattern: new RegExp("^[-\\w\\._]+$"), }, serializedName: "hostName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters19: OperationParameter = { parameterPath: "parameters", - mapper: SshPublicKeyResourceMapper + mapper: SshPublicKeyResourceMapper, }; export const sshPublicKeyName: OperationURLParameter = { @@ -772,24 +772,24 @@ export const sshPublicKeyName: OperationURLParameter = { serializedName: "sshPublicKeyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters20: OperationParameter = { parameterPath: "parameters", - mapper: SshPublicKeyUpdateResourceMapper + mapper: SshPublicKeyUpdateResourceMapper, }; export const parameters21: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: SshGenerateKeyPairInputParametersMapper + mapper: SshGenerateKeyPairInputParametersMapper, }; export const parameters22: OperationParameter = { parameterPath: "parameters", - mapper: ImageMapper + mapper: ImageMapper, }; export const imageName: OperationURLParameter = { @@ -798,19 +798,19 @@ export const imageName: OperationURLParameter = { serializedName: "imageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters23: OperationParameter = { parameterPath: "parameters", - mapper: ImageUpdateMapper + mapper: ImageUpdateMapper, }; export const parameters24: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointCollectionMapper + mapper: RestorePointCollectionMapper, }; export const restorePointCollectionName: OperationURLParameter = { @@ -819,14 +819,14 @@ export const restorePointCollectionName: OperationURLParameter = { serializedName: "restorePointCollectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters25: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointCollectionUpdateMapper + mapper: RestorePointCollectionUpdateMapper, }; export const expand5: OperationQueryParameter = { @@ -834,14 +834,14 @@ export const expand5: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters26: OperationParameter = { parameterPath: "parameters", - mapper: RestorePointMapper + mapper: RestorePointMapper, }; export const restorePointName: OperationURLParameter = { @@ -850,9 +850,9 @@ export const restorePointName: OperationURLParameter = { serializedName: "restorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand6: OperationQueryParameter = { @@ -860,14 +860,14 @@ export const expand6: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters27: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationGroupMapper + mapper: CapacityReservationGroupMapper, }; export const capacityReservationGroupName: OperationURLParameter = { @@ -876,14 +876,14 @@ export const capacityReservationGroupName: OperationURLParameter = { serializedName: "capacityReservationGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters28: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationGroupUpdateMapper + mapper: CapacityReservationGroupUpdateMapper, }; export const expand7: OperationQueryParameter = { @@ -891,9 +891,9 @@ export const expand7: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand8: OperationQueryParameter = { @@ -901,14 +901,14 @@ export const expand8: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters29: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationMapper + mapper: CapacityReservationMapper, }; export const capacityReservationName: OperationURLParameter = { @@ -917,14 +917,14 @@ export const capacityReservationName: OperationURLParameter = { serializedName: "capacityReservationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters30: OperationParameter = { parameterPath: "parameters", - mapper: CapacityReservationUpdateMapper + mapper: CapacityReservationUpdateMapper, }; export const expand9: OperationQueryParameter = { @@ -932,19 +932,19 @@ export const expand9: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters31: OperationParameter = { parameterPath: "parameters", - mapper: RequestRateByIntervalInputMapper + mapper: RequestRateByIntervalInputMapper, }; export const parameters32: OperationParameter = { parameterPath: "parameters", - mapper: ThrottledRequestsInputMapper + mapper: ThrottledRequestsInputMapper, }; export const commandId: OperationURLParameter = { @@ -953,14 +953,14 @@ export const commandId: OperationURLParameter = { serializedName: "commandId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const runCommand: OperationParameter = { parameterPath: "runCommand", - mapper: VirtualMachineRunCommandMapper + mapper: VirtualMachineRunCommandMapper, }; export const runCommandName: OperationURLParameter = { @@ -969,19 +969,19 @@ export const runCommandName: OperationURLParameter = { serializedName: "runCommandName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const runCommand1: OperationParameter = { parameterPath: "runCommand", - mapper: VirtualMachineRunCommandUpdateMapper + mapper: VirtualMachineRunCommandUpdateMapper, }; export const disk: OperationParameter = { parameterPath: "disk", - mapper: DiskMapper + mapper: DiskMapper, }; export const diskName: OperationURLParameter = { @@ -990,9 +990,9 @@ export const diskName: OperationURLParameter = { serializedName: "diskName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion1: OperationQueryParameter = { @@ -1002,24 +1002,24 @@ export const apiVersion1: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const disk1: OperationParameter = { parameterPath: "disk", - mapper: DiskUpdateMapper + mapper: DiskUpdateMapper, }; export const grantAccessData: OperationParameter = { parameterPath: "grantAccessData", - mapper: GrantAccessDataMapper + mapper: GrantAccessDataMapper, }; export const diskAccess: OperationParameter = { parameterPath: "diskAccess", - mapper: DiskAccessMapper + mapper: DiskAccessMapper, }; export const diskAccessName: OperationURLParameter = { @@ -1028,19 +1028,19 @@ export const diskAccessName: OperationURLParameter = { serializedName: "diskAccessName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskAccess1: OperationParameter = { parameterPath: "diskAccess", - mapper: DiskAccessUpdateMapper + mapper: DiskAccessUpdateMapper, }; export const privateEndpointConnection: OperationParameter = { parameterPath: "privateEndpointConnection", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -1049,14 +1049,14 @@ export const privateEndpointConnectionName: OperationURLParameter = { serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskEncryptionSet: OperationParameter = { parameterPath: "diskEncryptionSet", - mapper: DiskEncryptionSetMapper + mapper: DiskEncryptionSetMapper, }; export const diskEncryptionSetName: OperationURLParameter = { @@ -1065,14 +1065,14 @@ export const diskEncryptionSetName: OperationURLParameter = { serializedName: "diskEncryptionSetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskEncryptionSet1: OperationParameter = { parameterPath: "diskEncryptionSet", - mapper: DiskEncryptionSetUpdateMapper + mapper: DiskEncryptionSetUpdateMapper, }; export const vmRestorePointName: OperationURLParameter = { @@ -1081,9 +1081,9 @@ export const vmRestorePointName: OperationURLParameter = { serializedName: "vmRestorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const diskRestorePointName: OperationURLParameter = { @@ -1092,14 +1092,14 @@ export const diskRestorePointName: OperationURLParameter = { serializedName: "diskRestorePointName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const snapshot: OperationParameter = { parameterPath: "snapshot", - mapper: SnapshotMapper + mapper: SnapshotMapper, }; export const snapshotName: OperationURLParameter = { @@ -1108,14 +1108,14 @@ export const snapshotName: OperationURLParameter = { serializedName: "snapshotName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const snapshot1: OperationParameter = { parameterPath: "snapshot", - mapper: SnapshotUpdateMapper + mapper: SnapshotUpdateMapper, }; export const apiVersion2: OperationQueryParameter = { @@ -1125,9 +1125,9 @@ export const apiVersion2: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const includeExtendedLocations: OperationQueryParameter = { @@ -1135,14 +1135,14 @@ export const includeExtendedLocations: OperationQueryParameter = { mapper: { serializedName: "includeExtendedLocations", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const gallery: OperationParameter = { parameterPath: "gallery", - mapper: GalleryMapper + mapper: GalleryMapper, }; export const galleryName: OperationURLParameter = { @@ -1151,26 +1151,26 @@ export const galleryName: OperationURLParameter = { serializedName: "galleryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-08-03", + defaultValue: "2023-07-03", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const gallery1: OperationParameter = { parameterPath: "gallery", - mapper: GalleryUpdateMapper + mapper: GalleryUpdateMapper, }; export const select1: OperationQueryParameter = { @@ -1178,9 +1178,9 @@ export const select1: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const expand10: OperationQueryParameter = { @@ -1188,14 +1188,14 @@ export const expand10: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImage: OperationParameter = { parameterPath: "galleryImage", - mapper: GalleryImageMapper + mapper: GalleryImageMapper, }; export const galleryImageName: OperationURLParameter = { @@ -1204,19 +1204,19 @@ export const galleryImageName: OperationURLParameter = { serializedName: "galleryImageName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImage1: OperationParameter = { parameterPath: "galleryImage", - mapper: GalleryImageUpdateMapper + mapper: GalleryImageUpdateMapper, }; export const galleryImageVersion: OperationParameter = { parameterPath: "galleryImageVersion", - mapper: GalleryImageVersionMapper + mapper: GalleryImageVersionMapper, }; export const galleryImageVersionName: OperationURLParameter = { @@ -1225,14 +1225,14 @@ export const galleryImageVersionName: OperationURLParameter = { serializedName: "galleryImageVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryImageVersion1: OperationParameter = { parameterPath: "galleryImageVersion", - mapper: GalleryImageVersionUpdateMapper + mapper: GalleryImageVersionUpdateMapper, }; export const expand11: OperationQueryParameter = { @@ -1240,14 +1240,14 @@ export const expand11: OperationQueryParameter = { mapper: { serializedName: "$expand", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplication: OperationParameter = { parameterPath: "galleryApplication", - mapper: GalleryApplicationMapper + mapper: GalleryApplicationMapper, }; export const galleryApplicationName: OperationURLParameter = { @@ -1256,19 +1256,19 @@ export const galleryApplicationName: OperationURLParameter = { serializedName: "galleryApplicationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplication1: OperationParameter = { parameterPath: "galleryApplication", - mapper: GalleryApplicationUpdateMapper + mapper: GalleryApplicationUpdateMapper, }; export const galleryApplicationVersion: OperationParameter = { parameterPath: "galleryApplicationVersion", - mapper: GalleryApplicationVersionMapper + mapper: GalleryApplicationVersionMapper, }; export const galleryApplicationVersionName: OperationURLParameter = { @@ -1277,19 +1277,19 @@ export const galleryApplicationVersionName: OperationURLParameter = { serializedName: "galleryApplicationVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryApplicationVersion1: OperationParameter = { parameterPath: "galleryApplicationVersion", - mapper: GalleryApplicationVersionUpdateMapper + mapper: GalleryApplicationVersionUpdateMapper, }; export const sharingUpdate: OperationParameter = { parameterPath: "sharingUpdate", - mapper: SharingUpdateMapper + mapper: SharingUpdateMapper, }; export const sharedTo: OperationQueryParameter = { @@ -1297,9 +1297,9 @@ export const sharedTo: OperationQueryParameter = { mapper: { serializedName: "sharedTo", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const galleryUniqueName: OperationURLParameter = { @@ -1308,9 +1308,9 @@ export const galleryUniqueName: OperationURLParameter = { serializedName: "galleryUniqueName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const publicGalleryName: OperationURLParameter = { @@ -1319,9 +1319,9 @@ export const publicGalleryName: OperationURLParameter = { serializedName: "publicGalleryName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleInstanceName: OperationURLParameter = { @@ -1330,9 +1330,9 @@ export const roleInstanceName: OperationURLParameter = { serializedName: "roleInstanceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const cloudServiceName: OperationURLParameter = { @@ -1341,9 +1341,9 @@ export const cloudServiceName: OperationURLParameter = { serializedName: "cloudServiceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion4: OperationQueryParameter = { @@ -1353,9 +1353,9 @@ export const apiVersion4: OperationQueryParameter = { isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accept2: OperationParameter = { @@ -1365,9 +1365,9 @@ export const accept2: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const roleName: OperationURLParameter = { @@ -1376,29 +1376,29 @@ export const roleName: OperationURLParameter = { serializedName: "roleName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters33: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: CloudServiceMapper + mapper: CloudServiceMapper, }; export const parameters34: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: CloudServiceUpdateMapper + mapper: CloudServiceUpdateMapper, }; export const parameters35: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: RoleInstancesMapper + mapper: RoleInstancesMapper, }; export const parameters36: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: UpdateDomainMapper + mapper: UpdateDomainMapper, }; export const updateDomain: OperationURLParameter = { @@ -1407,9 +1407,9 @@ export const updateDomain: OperationURLParameter = { serializedName: "updateDomain", required: true, type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const osVersionName: OperationURLParameter = { @@ -1418,9 +1418,9 @@ export const osVersionName: OperationURLParameter = { serializedName: "osVersionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const osFamilyName: OperationURLParameter = { @@ -1429,7 +1429,7 @@ export const osFamilyName: OperationURLParameter = { serializedName: "osFamilyName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/compute/arm-compute/src/operations/availabilitySets.ts b/sdk/compute/arm-compute/src/operations/availabilitySets.ts index 7560d319dff3..ab0fadd50185 100644 --- a/sdk/compute/arm-compute/src/operations/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operations/availabilitySets.ts @@ -33,7 +33,7 @@ import { AvailabilitySetsGetOptionalParams, AvailabilitySetsGetResponse, AvailabilitySetsListBySubscriptionNextResponse, - AvailabilitySetsListNextResponse + AvailabilitySetsListNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { * @param options The options parameters. */ public listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -69,13 +69,13 @@ export class AvailabilitySetsImpl implements AvailabilitySets { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: AvailabilitySetsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { } private async *listBySubscriptionPagingAll( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -110,7 +110,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ public list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -125,14 +125,14 @@ export class AvailabilitySetsImpl implements AvailabilitySets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: AvailabilitySetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListResponse; let continuationToken = settings?.continuationToken; @@ -147,7 +147,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -158,7 +158,7 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private async *listPagingAll( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -175,12 +175,12 @@ export class AvailabilitySetsImpl implements AvailabilitySets { public listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, availabilitySetName, - options + options, ); return { next() { @@ -197,9 +197,9 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName, availabilitySetName, options, - settings + settings, ); - } + }, }; } @@ -207,13 +207,13 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, options?: AvailabilitySetsListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: AvailabilitySetsListAvailableSizesResponse; result = await this._listAvailableSizes( resourceGroupName, availabilitySetName, - options + options, ); yield result.value || []; } @@ -221,12 +221,12 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private async *listAvailableSizesPagingAll( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, availabilitySetName, - options + options, )) { yield* page; } @@ -243,11 +243,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySet, - options?: AvailabilitySetsCreateOrUpdateOptionalParams + options?: AvailabilitySetsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -262,11 +262,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySetUpdate, - options?: AvailabilitySetsUpdateOptionalParams + options?: AvailabilitySetsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -279,11 +279,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { delete( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsDeleteOptionalParams + options?: AvailabilitySetsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -296,11 +296,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { get( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsGetOptionalParams + options?: AvailabilitySetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -309,11 +309,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { * @param options The options parameters. */ private _listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -324,11 +324,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ private _list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -342,11 +342,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private _listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, availabilitySetName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -357,11 +357,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { */ private _listBySubscriptionNext( nextLink: string, - options?: AvailabilitySetsListBySubscriptionNextOptionalParams + options?: AvailabilitySetsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -374,11 +374,11 @@ export class AvailabilitySetsImpl implements AvailabilitySets { private _listNext( resourceGroupName: string, nextLink: string, - options?: AvailabilitySetsListNextOptionalParams + options?: AvailabilitySetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -386,16 +386,15 @@ export class AvailabilitySetsImpl implements AvailabilitySets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters11, queryParameters: [Parameters.apiVersion], @@ -403,23 +402,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters12, queryParameters: [Parameters.apiVersion], @@ -427,151 +425,146 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySet + bodyMapper: Mappers.AvailabilitySet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/availabilitySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.availabilitySetName + Parameters.availabilitySetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AvailabilitySetListResult + bodyMapper: Mappers.AvailabilitySetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts index acfd90ebf1eb..27f005366b42 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservationGroups.ts @@ -30,13 +30,14 @@ import { CapacityReservationGroupsGetOptionalParams, CapacityReservationGroupsGetResponse, CapacityReservationGroupsListByResourceGroupNextResponse, - CapacityReservationGroupsListBySubscriptionNextResponse + CapacityReservationGroupsListBySubscriptionNextResponse, } from "../models"; /// /** Class containing CapacityReservationGroups operations. */ export class CapacityReservationGroupsImpl - implements CapacityReservationGroups { + implements CapacityReservationGroups +{ private readonly client: ComputeManagementClient; /** @@ -55,7 +56,7 @@ export class CapacityReservationGroupsImpl */ public listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -72,16 +73,16 @@ export class CapacityReservationGroupsImpl return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: CapacityReservationGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class CapacityReservationGroupsImpl result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,11 +108,11 @@ export class CapacityReservationGroupsImpl private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -123,7 +124,7 @@ export class CapacityReservationGroupsImpl * @param options The options parameters. */ public listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -138,13 +139,13 @@ export class CapacityReservationGroupsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: CapacityReservationGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -165,7 +166,7 @@ export class CapacityReservationGroupsImpl } private async *listBySubscriptionPagingAll( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -185,11 +186,11 @@ export class CapacityReservationGroupsImpl resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroup, - options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -205,11 +206,11 @@ export class CapacityReservationGroupsImpl resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroupUpdate, - options?: CapacityReservationGroupsUpdateOptionalParams + options?: CapacityReservationGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -225,11 +226,11 @@ export class CapacityReservationGroupsImpl delete( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsDeleteOptionalParams + options?: CapacityReservationGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -242,11 +243,11 @@ export class CapacityReservationGroupsImpl get( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsGetOptionalParams + options?: CapacityReservationGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -258,11 +259,11 @@ export class CapacityReservationGroupsImpl */ private _listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -272,11 +273,11 @@ export class CapacityReservationGroupsImpl * @param options The options parameters. */ private _listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -289,11 +290,11 @@ export class CapacityReservationGroupsImpl private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: CapacityReservationGroupsListByResourceGroupNextOptionalParams + options?: CapacityReservationGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -304,11 +305,11 @@ export class CapacityReservationGroupsImpl */ private _listBySubscriptionNext( nextLink: string, - options?: CapacityReservationGroupsListBySubscriptionNextOptionalParams + options?: CapacityReservationGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -316,19 +317,18 @@ export class CapacityReservationGroupsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, 201: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters27, queryParameters: [Parameters.apiVersion], @@ -336,23 +336,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters28, queryParameters: [Parameters.apiVersion], @@ -360,129 +359,125 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroup + bodyMapper: Mappers.CapacityReservationGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand7], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/capacityReservationGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand8], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationGroupListResult + bodyMapper: Mappers.CapacityReservationGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/capacityReservations.ts b/sdk/compute/arm-compute/src/operations/capacityReservations.ts index 559fd7c0e687..32305a6c06b5 100644 --- a/sdk/compute/arm-compute/src/operations/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operations/capacityReservations.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { CapacityReservationsDeleteOptionalParams, CapacityReservationsGetOptionalParams, CapacityReservationsGetResponse, - CapacityReservationsListByCapacityReservationGroupNextResponse + CapacityReservationsListByCapacityReservationGroupNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class CapacityReservationsImpl implements CapacityReservations { public listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByCapacityReservationGroupPagingAll( resourceGroupName, capacityReservationGroupName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CapacityReservationsListByCapacityReservationGroupResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class CapacityReservationsImpl implements CapacityReservations { result = await this._listByCapacityReservationGroup( resourceGroupName, capacityReservationGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class CapacityReservationsImpl implements CapacityReservations { private async *listByCapacityReservationGroupPagingAll( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByCapacityReservationGroupPagingPage( resourceGroupName, capacityReservationGroupName, - options + options, )) { yield* page; } @@ -148,7 +148,7 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -157,21 +157,20 @@ export class CapacityReservationsImpl implements CapacityReservations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -180,8 +179,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -189,8 +188,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -201,16 +200,16 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName, capacityReservationName, parameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CapacityReservationsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -231,14 +230,14 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -256,7 +255,7 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -265,21 +264,20 @@ export class CapacityReservationsImpl implements CapacityReservations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -288,8 +286,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -297,8 +295,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -309,16 +307,16 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName, capacityReservationName, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CapacityReservationsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -337,14 +335,14 @@ export class CapacityReservationsImpl implements CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, capacityReservationGroupName, capacityReservationName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -362,25 +360,24 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -389,8 +386,8 @@ export class CapacityReservationsImpl implements CapacityReservations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -398,8 +395,8 @@ export class CapacityReservationsImpl implements CapacityReservations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -409,13 +406,13 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -434,13 +431,13 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, ); return poller.pollUntilDone(); } @@ -456,16 +453,16 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsGetOptionalParams + options?: CapacityReservationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, capacityReservationName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -479,11 +476,11 @@ export class CapacityReservationsImpl implements CapacityReservations { private _listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, options }, - listByCapacityReservationGroupOperationSpec + listByCapacityReservationGroupOperationSpec, ); } @@ -499,11 +496,11 @@ export class CapacityReservationsImpl implements CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, nextLink: string, - options?: CapacityReservationsListByCapacityReservationGroupNextOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, capacityReservationGroupName, nextLink, options }, - listByCapacityReservationGroupNextOperationSpec + listByCapacityReservationGroupNextOperationSpec, ); } } @@ -511,25 +508,24 @@ export class CapacityReservationsImpl implements CapacityReservations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 201: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 202: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 204: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters29, queryParameters: [Parameters.apiVersion], @@ -538,32 +534,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 201: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 202: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, 204: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters30, queryParameters: [Parameters.apiVersion], @@ -572,15 +567,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -588,8 +582,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -597,22 +591,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations/{capacityReservationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservation + bodyMapper: Mappers.CapacityReservation, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand9], urlParameters: [ @@ -620,51 +613,51 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.capacityReservationGroupName, - Parameters.capacityReservationName + Parameters.capacityReservationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByCapacityReservationGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/capacityReservationGroups/{capacityReservationGroupName}/capacityReservations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CapacityReservationListResult + bodyMapper: Mappers.CapacityReservationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.capacityReservationGroupName + Parameters.capacityReservationGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listByCapacityReservationGroupNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.CapacityReservationListResult +const listByCapacityReservationGroupNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CapacityReservationListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.capacityReservationGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.capacityReservationGroupName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts index 503d7225c653..88ea11f32119 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceOperatingSystems.ts @@ -27,13 +27,14 @@ import { CloudServiceOperatingSystemsGetOSFamilyOptionalParams, CloudServiceOperatingSystemsGetOSFamilyResponse, CloudServiceOperatingSystemsListOSVersionsNextResponse, - CloudServiceOperatingSystemsListOSFamiliesNextResponse + CloudServiceOperatingSystemsListOSFamiliesNextResponse, } from "../models"; /// /** Class containing CloudServiceOperatingSystems operations. */ export class CloudServiceOperatingSystemsImpl - implements CloudServiceOperatingSystems { + implements CloudServiceOperatingSystems +{ private readonly client: ComputeManagementClient; /** @@ -53,7 +54,7 @@ export class CloudServiceOperatingSystemsImpl */ public listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOSVersionsPagingAll(location, options); return { @@ -68,14 +69,14 @@ export class CloudServiceOperatingSystemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listOSVersionsPagingPage(location, options, settings); - } + }, }; } private async *listOSVersionsPagingPage( location: string, options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceOperatingSystemsListOSVersionsResponse; let continuationToken = settings?.continuationToken; @@ -90,7 +91,7 @@ export class CloudServiceOperatingSystemsImpl result = await this._listOSVersionsNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,7 +102,7 @@ export class CloudServiceOperatingSystemsImpl private async *listOSVersionsPagingAll( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOSVersionsPagingPage(location, options)) { yield* page; @@ -117,7 +118,7 @@ export class CloudServiceOperatingSystemsImpl */ public listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOSFamiliesPagingAll(location, options); return { @@ -132,14 +133,14 @@ export class CloudServiceOperatingSystemsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listOSFamiliesPagingPage(location, options, settings); - } + }, }; } private async *listOSFamiliesPagingPage( location: string, options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceOperatingSystemsListOSFamiliesResponse; let continuationToken = settings?.continuationToken; @@ -154,7 +155,7 @@ export class CloudServiceOperatingSystemsImpl result = await this._listOSFamiliesNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -165,7 +166,7 @@ export class CloudServiceOperatingSystemsImpl private async *listOSFamiliesPagingAll( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOSFamiliesPagingPage(location, options)) { yield* page; @@ -182,11 +183,11 @@ export class CloudServiceOperatingSystemsImpl getOSVersion( location: string, osVersionName: string, - options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams + options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, osVersionName, options }, - getOSVersionOperationSpec + getOSVersionOperationSpec, ); } @@ -199,11 +200,11 @@ export class CloudServiceOperatingSystemsImpl */ private _listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOSVersionsOperationSpec + listOSVersionsOperationSpec, ); } @@ -217,11 +218,11 @@ export class CloudServiceOperatingSystemsImpl getOSFamily( location: string, osFamilyName: string, - options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams + options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, osFamilyName, options }, - getOSFamilyOperationSpec + getOSFamilyOperationSpec, ); } @@ -234,11 +235,11 @@ export class CloudServiceOperatingSystemsImpl */ private _listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOSFamiliesOperationSpec + listOSFamiliesOperationSpec, ); } @@ -251,11 +252,11 @@ export class CloudServiceOperatingSystemsImpl private _listOSVersionsNext( location: string, nextLink: string, - options?: CloudServiceOperatingSystemsListOSVersionsNextOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listOSVersionsNextOperationSpec + listOSVersionsNextOperationSpec, ); } @@ -268,11 +269,11 @@ export class CloudServiceOperatingSystemsImpl private _listOSFamiliesNext( location: string, nextLink: string, - options?: CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listOSFamiliesNextOperationSpec + listOSFamiliesNextOperationSpec, ); } } @@ -280,128 +281,124 @@ export class CloudServiceOperatingSystemsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOSVersionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersion + bodyMapper: Mappers.OSVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.osVersionName + Parameters.osVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersionListResult + bodyMapper: Mappers.OSVersionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSFamilyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamily + bodyMapper: Mappers.OSFamily, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.osFamilyName + Parameters.osFamilyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSFamiliesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamilyListResult + bodyMapper: Mappers.OSFamilyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSVersionsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSVersionListResult + bodyMapper: Mappers.OSVersionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOSFamiliesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OSFamilyListResult + bodyMapper: Mappers.OSFamilyListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts index 1077b7c26008..97380dea092c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoleInstances.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,13 +34,14 @@ import { CloudServiceRoleInstancesRebuildOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileResponse, - CloudServiceRoleInstancesListNextResponse + CloudServiceRoleInstancesListNextResponse, } from "../models"; /// /** Class containing CloudServiceRoleInstances operations. */ export class CloudServiceRoleInstancesImpl - implements CloudServiceRoleInstances { + implements CloudServiceRoleInstances +{ private readonly client: ComputeManagementClient; /** @@ -61,12 +62,12 @@ export class CloudServiceRoleInstancesImpl public list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -83,9 +84,9 @@ export class CloudServiceRoleInstancesImpl resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +94,7 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRoleInstancesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceRoleInstancesListResponse; let continuationToken = settings?.continuationToken; @@ -109,7 +110,7 @@ export class CloudServiceRoleInstancesImpl resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -121,12 +122,12 @@ export class CloudServiceRoleInstancesImpl private async *listPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -143,25 +144,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -170,8 +170,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -179,19 +179,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -208,13 +208,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -230,11 +230,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetOptionalParams + options?: CloudServiceRoleInstancesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -249,11 +249,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams + options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -267,11 +267,11 @@ export class CloudServiceRoleInstancesImpl private _list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -287,25 +287,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -314,8 +313,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -323,19 +322,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,13 +352,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -376,25 +375,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -403,8 +401,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -412,19 +410,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -442,13 +440,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -466,25 +464,24 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -493,8 +490,8 @@ export class CloudServiceRoleInstancesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -502,19 +499,19 @@ export class CloudServiceRoleInstancesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { roleInstanceName, resourceGroupName, cloudServiceName, options }, - spec: rebuildOperationSpec + spec: rebuildOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -533,13 +530,13 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise { const poller = await this.beginRebuild( roleInstanceName, resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -555,11 +552,11 @@ export class CloudServiceRoleInstancesImpl roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams + options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleInstanceName, resourceGroupName, cloudServiceName, options }, - getRemoteDesktopFileOperationSpec + getRemoteDesktopFileOperationSpec, ); } @@ -574,11 +571,11 @@ export class CloudServiceRoleInstancesImpl resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServiceRoleInstancesListNextOptionalParams + options?: CloudServiceRoleInstancesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -586,8 +583,7 @@ export class CloudServiceRoleInstancesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -595,8 +591,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -604,22 +600,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstance + bodyMapper: Mappers.RoleInstance, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ @@ -627,22 +622,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceView + bodyMapper: Mappers.RoleInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -650,36 +644,34 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceListResult + bodyMapper: Mappers.RoleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.expand2, Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -687,8 +679,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -696,14 +688,13 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -711,8 +702,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -720,14 +711,13 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const rebuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/rebuild", httpMethod: "POST", responses: { 200: {}, @@ -735,8 +725,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -744,20 +734,22 @@ const rebuildOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getRemoteDesktopFileOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}/remoteDesktopFile", httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "Stream" }, serializedName: "parsedResponse" } + bodyMapper: { + type: { name: "Stream" }, + serializedName: "parsedResponse", + }, }, - default: {} + default: {}, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -765,29 +757,29 @@ const getRemoteDesktopFileOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.roleInstanceName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept2], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RoleInstanceListResult + bodyMapper: Mappers.RoleInstanceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts index b72e85ce8ca7..2e427f06f6f8 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServiceRoles.ts @@ -20,7 +20,7 @@ import { CloudServiceRolesListResponse, CloudServiceRolesGetOptionalParams, CloudServiceRolesGetResponse, - CloudServiceRolesListNextResponse + CloudServiceRolesListNextResponse, } from "../models"; /// @@ -46,12 +46,12 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { public list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -68,9 +68,9 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName: string, cloudServiceName: string, options?: CloudServiceRolesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServiceRolesListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +106,12 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { private async *listPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -128,11 +128,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { roleName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesGetOptionalParams + options?: CloudServiceRolesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { roleName, resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -146,11 +146,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { private _list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listOperationSpec + listOperationSpec, ); } @@ -165,11 +165,11 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServiceRolesListNextOptionalParams + options?: CloudServiceRolesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -177,16 +177,15 @@ export class CloudServiceRolesImpl implements CloudServiceRoles { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRole + bodyMapper: Mappers.CloudServiceRole, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -194,51 +193,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.roleName + Parameters.roleName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRoleListResult + bodyMapper: Mappers.CloudServiceRoleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceRoleListResult + bodyMapper: Mappers.CloudServiceRoleListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServices.ts b/sdk/compute/arm-compute/src/operations/cloudServices.ts index 75f18c5b18a4..91b17cb59e1c 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServices.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -43,7 +43,7 @@ import { CloudServicesRebuildOptionalParams, CloudServicesDeleteInstancesOptionalParams, CloudServicesListAllNextResponse, - CloudServicesListNextResponse + CloudServicesListNextResponse, } from "../models"; /// @@ -66,7 +66,7 @@ export class CloudServicesImpl implements CloudServices { * @param options The options parameters. */ public listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -81,13 +81,13 @@ export class CloudServicesImpl implements CloudServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: CloudServicesListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesListAllResponse; let continuationToken = settings?.continuationToken; @@ -108,7 +108,7 @@ export class CloudServicesImpl implements CloudServices { } private async *listAllPagingAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -123,7 +123,7 @@ export class CloudServicesImpl implements CloudServices { */ public list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -138,14 +138,14 @@ export class CloudServicesImpl implements CloudServices { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: CloudServicesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesListResponse; let continuationToken = settings?.continuationToken; @@ -160,7 +160,7 @@ export class CloudServicesImpl implements CloudServices { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -171,7 +171,7 @@ export class CloudServicesImpl implements CloudServices { private async *listPagingAll( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -188,7 +188,7 @@ export class CloudServicesImpl implements CloudServices { async beginCreateOrUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +197,20 @@ export class CloudServicesImpl implements CloudServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +219,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,22 +228,22 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CloudServicesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -260,12 +259,12 @@ export class CloudServicesImpl implements CloudServices { async beginCreateOrUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -279,7 +278,7 @@ export class CloudServicesImpl implements CloudServices { async beginUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -288,21 +287,20 @@ export class CloudServicesImpl implements CloudServices { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -311,8 +309,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -320,22 +318,22 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< CloudServicesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -350,12 +348,12 @@ export class CloudServicesImpl implements CloudServices { async beginUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -369,25 +367,24 @@ export class CloudServicesImpl implements CloudServices { async beginDelete( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -396,8 +393,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -405,19 +402,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -432,12 +429,12 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -451,11 +448,11 @@ export class CloudServicesImpl implements CloudServices { get( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetOptionalParams + options?: CloudServicesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -468,11 +465,11 @@ export class CloudServicesImpl implements CloudServices { getInstanceView( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetInstanceViewOptionalParams + options?: CloudServicesGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -483,7 +480,7 @@ export class CloudServicesImpl implements CloudServices { * @param options The options parameters. */ private _listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -496,11 +493,11 @@ export class CloudServicesImpl implements CloudServices { */ private _list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -513,25 +510,24 @@ export class CloudServicesImpl implements CloudServices { async beginStart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -540,8 +536,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -549,19 +545,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -576,12 +572,12 @@ export class CloudServicesImpl implements CloudServices { async beginStartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -596,25 +592,24 @@ export class CloudServicesImpl implements CloudServices { async beginPowerOff( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -623,8 +618,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -632,19 +627,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -660,12 +655,12 @@ export class CloudServicesImpl implements CloudServices { async beginPowerOffAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -679,25 +674,24 @@ export class CloudServicesImpl implements CloudServices { async beginRestart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -706,8 +700,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -715,19 +709,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -742,12 +736,12 @@ export class CloudServicesImpl implements CloudServices { async beginRestartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -762,25 +756,24 @@ export class CloudServicesImpl implements CloudServices { async beginReimage( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -789,8 +782,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -798,19 +791,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -826,12 +819,12 @@ export class CloudServicesImpl implements CloudServices { async beginReimageAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -847,25 +840,24 @@ export class CloudServicesImpl implements CloudServices { async beginRebuild( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -874,8 +866,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -883,19 +875,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: rebuildOperationSpec + spec: rebuildOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -912,12 +904,12 @@ export class CloudServicesImpl implements CloudServices { async beginRebuildAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise { const poller = await this.beginRebuild( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -931,25 +923,24 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteInstances( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -958,8 +949,8 @@ export class CloudServicesImpl implements CloudServices { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -967,19 +958,19 @@ export class CloudServicesImpl implements CloudServices { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, options }, - spec: deleteInstancesOperationSpec + spec: deleteInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -994,12 +985,12 @@ export class CloudServicesImpl implements CloudServices { async beginDeleteInstancesAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise { const poller = await this.beginDeleteInstances( resourceGroupName, cloudServiceName, - options + options, ); return poller.pollUntilDone(); } @@ -1011,11 +1002,11 @@ export class CloudServicesImpl implements CloudServices { */ private _listAllNext( nextLink: string, - options?: CloudServicesListAllNextOptionalParams + options?: CloudServicesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } @@ -1028,11 +1019,11 @@ export class CloudServicesImpl implements CloudServices { private _listNext( resourceGroupName: string, nextLink: string, - options?: CloudServicesListNextOptionalParams + options?: CloudServicesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -1040,25 +1031,24 @@ export class CloudServicesImpl implements CloudServices { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 201: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 202: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 204: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters33, queryParameters: [Parameters.apiVersion4], @@ -1066,32 +1056,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 201: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 202: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, 204: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters34, queryParameters: [Parameters.apiVersion4], @@ -1099,15 +1088,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1115,104 +1103,99 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudService + bodyMapper: Mappers.CloudService, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceInstanceView + bodyMapper: Mappers.CloudServiceInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/cloudServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/start", httpMethod: "POST", responses: { 200: {}, @@ -1220,22 +1203,21 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -1243,22 +1225,21 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -1266,8 +1247,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1275,15 +1256,14 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -1291,8 +1271,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1300,15 +1280,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const rebuildOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/rebuild", httpMethod: "POST", responses: { 200: {}, @@ -1316,8 +1295,8 @@ const rebuildOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1325,15 +1304,14 @@ const rebuildOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/delete", httpMethod: "POST", responses: { 200: {}, @@ -1341,8 +1319,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters35, queryParameters: [Parameters.apiVersion4], @@ -1350,48 +1328,48 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CloudServiceListResult + bodyMapper: Mappers.CloudServiceListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts index 7b8cb805bb4a..adf65cf09355 100644 --- a/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operations/cloudServicesUpdateDomain.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,13 +27,14 @@ import { CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainResponse, - CloudServicesUpdateDomainListUpdateDomainsNextResponse + CloudServicesUpdateDomainListUpdateDomainsNextResponse, } from "../models"; /// /** Class containing CloudServicesUpdateDomain operations. */ export class CloudServicesUpdateDomainImpl - implements CloudServicesUpdateDomain { + implements CloudServicesUpdateDomain +{ private readonly client: ComputeManagementClient; /** @@ -53,12 +54,12 @@ export class CloudServicesUpdateDomainImpl public listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listUpdateDomainsPagingAll( resourceGroupName, cloudServiceName, - options + options, ); return { next() { @@ -75,9 +76,9 @@ export class CloudServicesUpdateDomainImpl resourceGroupName, cloudServiceName, options, - settings + settings, ); - } + }, }; } @@ -85,7 +86,7 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CloudServicesUpdateDomainListUpdateDomainsResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class CloudServicesUpdateDomainImpl result = await this._listUpdateDomains( resourceGroupName, cloudServiceName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +106,7 @@ export class CloudServicesUpdateDomainImpl resourceGroupName, cloudServiceName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -117,12 +118,12 @@ export class CloudServicesUpdateDomainImpl private async *listUpdateDomainsPagingAll( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listUpdateDomainsPagingPage( resourceGroupName, cloudServiceName, - options + options, )) { yield* page; } @@ -141,25 +142,24 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -168,8 +168,8 @@ export class CloudServicesUpdateDomainImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -177,19 +177,19 @@ export class CloudServicesUpdateDomainImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, cloudServiceName, updateDomain, options }, - spec: walkUpdateDomainOperationSpec + spec: walkUpdateDomainOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -208,13 +208,13 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise { const poller = await this.beginWalkUpdateDomain( resourceGroupName, cloudServiceName, updateDomain, - options + options, ); return poller.pollUntilDone(); } @@ -233,11 +233,11 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, updateDomain, options }, - getUpdateDomainOperationSpec + getUpdateDomainOperationSpec, ); } @@ -250,11 +250,11 @@ export class CloudServicesUpdateDomainImpl private _listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, options }, - listUpdateDomainsOperationSpec + listUpdateDomainsOperationSpec, ); } @@ -269,11 +269,11 @@ export class CloudServicesUpdateDomainImpl resourceGroupName: string, cloudServiceName: string, nextLink: string, - options?: CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, cloudServiceName, nextLink, options }, - listUpdateDomainsNextOperationSpec + listUpdateDomainsNextOperationSpec, ); } } @@ -281,8 +281,7 @@ export class CloudServicesUpdateDomainImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", httpMethod: "PUT", responses: { 200: {}, @@ -290,8 +289,8 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters36, queryParameters: [Parameters.apiVersion4], @@ -300,23 +299,22 @@ const walkUpdateDomainOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.updateDomain + Parameters.updateDomain, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getUpdateDomainOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains/{updateDomain}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomain + bodyMapper: Mappers.UpdateDomain, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -324,51 +322,50 @@ const getUpdateDomainOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.cloudServiceName, - Parameters.updateDomain + Parameters.updateDomain, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listUpdateDomainsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/updateDomains", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomainListResult + bodyMapper: Mappers.UpdateDomainListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listUpdateDomainsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.UpdateDomainListResult + bodyMapper: Mappers.UpdateDomainListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.cloudServiceName + Parameters.cloudServiceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleries.ts b/sdk/compute/arm-compute/src/operations/communityGalleries.ts index 47d5288fa9d4..ae06f506fec0 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleries.ts @@ -13,7 +13,7 @@ import * as Parameters from "../models/parameters"; import { ComputeManagementClient } from "../computeManagementClient"; import { CommunityGalleriesGetOptionalParams, - CommunityGalleriesGetResponse + CommunityGalleriesGetResponse, } from "../models"; /** Class containing CommunityGalleries operations. */ @@ -37,11 +37,11 @@ export class CommunityGalleriesImpl implements CommunityGalleries { get( location: string, publicGalleryName: string, - options?: CommunityGalleriesGetOptionalParams + options?: CommunityGalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -49,24 +49,23 @@ export class CommunityGalleriesImpl implements CommunityGalleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGallery + bodyMapper: Mappers.CommunityGallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts index cdc9af0968b1..576ed624d94d 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImageVersions.ts @@ -20,13 +20,14 @@ import { CommunityGalleryImageVersionsListResponse, CommunityGalleryImageVersionsGetOptionalParams, CommunityGalleryImageVersionsGetResponse, - CommunityGalleryImageVersionsListNextResponse + CommunityGalleryImageVersionsListNextResponse, } from "../models"; /// /** Class containing CommunityGalleryImageVersions operations. */ export class CommunityGalleryImageVersionsImpl - implements CommunityGalleryImageVersions { + implements CommunityGalleryImageVersions +{ private readonly client: ComputeManagementClient; /** @@ -48,13 +49,13 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( location, publicGalleryName, galleryImageName, - options + options, ); return { next() { @@ -72,9 +73,9 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -83,7 +84,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, options?: CommunityGalleryImageVersionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CommunityGalleryImageVersionsListResponse; let continuationToken = settings?.continuationToken; @@ -92,7 +93,7 @@ export class CommunityGalleryImageVersionsImpl location, publicGalleryName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -105,7 +106,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -118,13 +119,13 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, publicGalleryName, galleryImageName, - options + options, )) { yield* page; } @@ -145,7 +146,7 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: CommunityGalleryImageVersionsGetOptionalParams + options?: CommunityGalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -153,9 +154,9 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -170,11 +171,11 @@ export class CommunityGalleryImageVersionsImpl location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, options }, - listOperationSpec + listOperationSpec, ); } @@ -191,11 +192,11 @@ export class CommunityGalleryImageVersionsImpl publicGalleryName: string, galleryImageName: string, nextLink: string, - options?: CommunityGalleryImageVersionsListNextOptionalParams + options?: CommunityGalleryImageVersionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -203,16 +204,15 @@ export class CommunityGalleryImageVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersion + bodyMapper: Mappers.CommunityGalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -221,22 +221,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.galleryImageName, Parameters.galleryImageVersionName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersionList + bodyMapper: Mappers.CommunityGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -244,21 +243,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageVersionList + bodyMapper: Mappers.CommunityGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -266,8 +265,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts index 71e60e4eea4e..63ec97c63097 100644 --- a/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/communityGalleryImages.ts @@ -20,7 +20,7 @@ import { CommunityGalleryImagesListResponse, CommunityGalleryImagesGetOptionalParams, CommunityGalleryImagesGetResponse, - CommunityGalleryImagesListNextResponse + CommunityGalleryImagesListNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { public list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, publicGalleryName, options); return { @@ -63,9 +63,9 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location, publicGalleryName, options, - settings + settings, ); - } + }, }; } @@ -73,7 +73,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, options?: CommunityGalleryImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CommunityGalleryImagesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location, publicGalleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,12 +101,12 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { private async *listPagingAll( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, publicGalleryName, - options + options, )) { yield* page; } @@ -123,11 +123,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImagesGetOptionalParams + options?: CommunityGalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -140,11 +140,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { private _list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, options }, - listOperationSpec + listOperationSpec, ); } @@ -159,11 +159,11 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { location: string, publicGalleryName: string, nextLink: string, - options?: CommunityGalleryImagesListNextOptionalParams + options?: CommunityGalleryImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publicGalleryName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -171,16 +171,15 @@ export class CommunityGalleryImagesImpl implements CommunityGalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImage + bodyMapper: Mappers.CommunityGalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -188,51 +187,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/communityGalleries/{publicGalleryName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageList + bodyMapper: Mappers.CommunityGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.CommunityGalleryImageList + bodyMapper: Mappers.CommunityGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.location1, - Parameters.publicGalleryName + Parameters.publicGalleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts index c19ce7be2462..ef503dde24e7 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHostGroups.ts @@ -30,7 +30,7 @@ import { DedicatedHostGroupsGetOptionalParams, DedicatedHostGroupsGetResponse, DedicatedHostGroupsListByResourceGroupNextResponse, - DedicatedHostGroupsListBySubscriptionNextResponse + DedicatedHostGroupsListBySubscriptionNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ public listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -71,16 +71,16 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DedicatedHostGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -95,7 +95,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,11 +106,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -122,7 +122,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { * @param options The options parameters. */ public listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -137,13 +137,13 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: DedicatedHostGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -164,7 +164,7 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { } private async *listBySubscriptionPagingAll( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -183,11 +183,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroup, - options?: DedicatedHostGroupsCreateOrUpdateOptionalParams + options?: DedicatedHostGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -202,11 +202,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroupUpdate, - options?: DedicatedHostGroupsUpdateOptionalParams + options?: DedicatedHostGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -219,11 +219,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { delete( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsDeleteOptionalParams + options?: DedicatedHostGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -236,11 +236,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { get( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsGetOptionalParams + options?: DedicatedHostGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -252,11 +252,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ private _listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -266,11 +266,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { * @param options The options parameters. */ private _listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -283,11 +283,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DedicatedHostGroupsListByResourceGroupNextOptionalParams + options?: DedicatedHostGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -298,11 +298,11 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { */ private _listBySubscriptionNext( nextLink: string, - options?: DedicatedHostGroupsListBySubscriptionNextOptionalParams + options?: DedicatedHostGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } } @@ -310,19 +310,18 @@ export class DedicatedHostGroupsImpl implements DedicatedHostGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, 201: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters15, queryParameters: [Parameters.apiVersion], @@ -330,23 +329,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters16, queryParameters: [Parameters.apiVersion], @@ -354,129 +352,125 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroup + bodyMapper: Mappers.DedicatedHostGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/hostGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostGroupListResult + bodyMapper: Mappers.DedicatedHostGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts index e2a6377b9fdd..ae17d7aaf55b 100644 --- a/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operations/dedicatedHosts.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -37,7 +37,7 @@ import { DedicatedHostsRestartOptionalParams, DedicatedHostsRedeployOptionalParams, DedicatedHostsRedeployResponse, - DedicatedHostsListByHostGroupNextResponse + DedicatedHostsListByHostGroupNextResponse, } from "../models"; /// @@ -63,12 +63,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { public listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByHostGroupPagingAll( resourceGroupName, hostGroupName, - options + options, ); return { next() { @@ -85,9 +85,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName, hostGroupName, options, - settings + settings, ); - } + }, }; } @@ -95,7 +95,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, options?: DedicatedHostsListByHostGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostsListByHostGroupResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +103,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { result = await this._listByHostGroup( resourceGroupName, hostGroupName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -115,7 +115,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName, hostGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -127,12 +127,12 @@ export class DedicatedHostsImpl implements DedicatedHosts { private async *listByHostGroupPagingAll( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByHostGroupPagingPage( resourceGroupName, hostGroupName, - options + options, )) { yield* page; } @@ -150,13 +150,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, hostGroupName, hostName, - options + options, ); return { next() { @@ -174,9 +174,9 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName, hostName, options, - settings + settings, ); - } + }, }; } @@ -185,14 +185,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, options?: DedicatedHostsListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: DedicatedHostsListAvailableSizesResponse; result = await this._listAvailableSizes( resourceGroupName, hostGroupName, hostName, - options + options, ); yield result.value || []; } @@ -201,13 +201,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, hostGroupName, hostName, - options + options, )) { yield* page; } @@ -226,7 +226,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -235,21 +235,20 @@ export class DedicatedHostsImpl implements DedicatedHosts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -258,8 +257,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -267,22 +266,22 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -301,14 +300,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, hostGroupName, hostName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -326,7 +325,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -335,21 +334,20 @@ export class DedicatedHostsImpl implements DedicatedHosts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -358,8 +356,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -367,22 +365,22 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -401,14 +399,14 @@ export class DedicatedHostsImpl implements DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, hostGroupName, hostName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -424,25 +422,24 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -451,8 +448,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -460,19 +457,19 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -489,13 +486,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, hostGroupName, hostName, - options + options, ); return poller.pollUntilDone(); } @@ -511,11 +508,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsGetOptionalParams + options?: DedicatedHostsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, hostName, options }, - getOperationSpec + getOperationSpec, ); } @@ -529,11 +526,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { private _listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, options }, - listByHostGroupOperationSpec + listByHostGroupOperationSpec, ); } @@ -551,25 +548,24 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -578,8 +574,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -587,19 +583,19 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -619,13 +615,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, hostGroupName, hostName, - options + options, ); return poller.pollUntilDone(); } @@ -644,7 +640,7 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -653,21 +649,20 @@ export class DedicatedHostsImpl implements DedicatedHosts { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -676,8 +671,8 @@ export class DedicatedHostsImpl implements DedicatedHosts { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -685,22 +680,22 @@ export class DedicatedHostsImpl implements DedicatedHosts { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, hostGroupName, hostName, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller< DedicatedHostsRedeployResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -720,13 +715,13 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, hostGroupName, hostName, - options + options, ); return poller.pollUntilDone(); } @@ -743,11 +738,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, hostName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -762,11 +757,11 @@ export class DedicatedHostsImpl implements DedicatedHosts { resourceGroupName: string, hostGroupName: string, nextLink: string, - options?: DedicatedHostsListByHostGroupNextOptionalParams + options?: DedicatedHostsListByHostGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, hostGroupName, nextLink, options }, - listByHostGroupNextOperationSpec + listByHostGroupNextOperationSpec, ); } } @@ -774,25 +769,24 @@ export class DedicatedHostsImpl implements DedicatedHosts { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 201: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 202: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 204: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters17, queryParameters: [Parameters.apiVersion], @@ -801,32 +795,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 201: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 202: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, 204: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters18, queryParameters: [Parameters.apiVersion], @@ -835,15 +828,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "DELETE", responses: { 200: {}, @@ -851,8 +843,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -860,22 +852,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHost + bodyMapper: Mappers.DedicatedHost, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ @@ -883,36 +874,34 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByHostGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostListResult + bodyMapper: Mappers.DedicatedHostListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -920,8 +909,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -929,31 +918,30 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName, - Parameters.hostName + Parameters.hostName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/redeploy", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 201: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 202: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, 204: { - headersMapper: Mappers.DedicatedHostsRedeployHeaders + headersMapper: Mappers.DedicatedHostsRedeployHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -961,22 +949,21 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName1, - Parameters.hostName1 + Parameters.hostName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}/hostSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostSizeListResult + bodyMapper: Mappers.DedicatedHostSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -984,29 +971,29 @@ const listAvailableSizesOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.hostGroupName1, - Parameters.hostName1 + Parameters.hostName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByHostGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DedicatedHostListResult + bodyMapper: Mappers.DedicatedHostListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.hostGroupName + Parameters.hostGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/diskAccesses.ts b/sdk/compute/arm-compute/src/operations/diskAccesses.ts index 4054a2fff630..827fe030764f 100644 --- a/sdk/compute/arm-compute/src/operations/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operations/diskAccesses.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -48,7 +48,7 @@ import { DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, DiskAccessesListByResourceGroupNextResponse, DiskAccessesListNextResponse, - DiskAccessesListPrivateEndpointConnectionsNextResponse + DiskAccessesListPrivateEndpointConnectionsNextResponse, } from "../models"; /// @@ -71,7 +71,7 @@ export class DiskAccessesImpl implements DiskAccesses { */ public listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -88,16 +88,16 @@ export class DiskAccessesImpl implements DiskAccesses { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DiskAccessesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -112,7 +112,7 @@ export class DiskAccessesImpl implements DiskAccesses { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -123,11 +123,11 @@ export class DiskAccessesImpl implements DiskAccesses { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -138,7 +138,7 @@ export class DiskAccessesImpl implements DiskAccesses { * @param options The options parameters. */ public list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -153,13 +153,13 @@ export class DiskAccessesImpl implements DiskAccesses { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DiskAccessesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListResponse; let continuationToken = settings?.continuationToken; @@ -180,7 +180,7 @@ export class DiskAccessesImpl implements DiskAccesses { } private async *listPagingAll( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -198,12 +198,12 @@ export class DiskAccessesImpl implements DiskAccesses { public listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPrivateEndpointConnectionsPagingAll( resourceGroupName, diskAccessName, - options + options, ); return { next() { @@ -220,9 +220,9 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, options, - settings + settings, ); - } + }, }; } @@ -230,7 +230,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskAccessesListPrivateEndpointConnectionsResponse; let continuationToken = settings?.continuationToken; @@ -238,7 +238,7 @@ export class DiskAccessesImpl implements DiskAccesses { result = await this._listPrivateEndpointConnections( resourceGroupName, diskAccessName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -250,7 +250,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -262,12 +262,12 @@ export class DiskAccessesImpl implements DiskAccesses { private async *listPrivateEndpointConnectionsPagingAll( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPrivateEndpointConnectionsPagingPage( resourceGroupName, diskAccessName, - options + options, )) { yield* page; } @@ -286,7 +286,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -295,21 +295,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +317,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,22 +326,22 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, diskAccess, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DiskAccessesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -361,13 +360,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskAccessName, diskAccess, - options + options, ); return poller.pollUntilDone(); } @@ -385,7 +384,7 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -394,21 +393,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -417,8 +415,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -426,22 +424,22 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, diskAccess, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DiskAccessesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -460,13 +458,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskAccessName, diskAccess, - options + options, ); return poller.pollUntilDone(); } @@ -482,11 +480,11 @@ export class DiskAccessesImpl implements DiskAccesses { get( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetOptionalParams + options?: DiskAccessesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - getOperationSpec + getOperationSpec, ); } @@ -501,25 +499,24 @@ export class DiskAccessesImpl implements DiskAccesses { async beginDelete( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -528,8 +525,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -537,19 +534,19 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskAccessName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -566,12 +563,12 @@ export class DiskAccessesImpl implements DiskAccesses { async beginDeleteAndWait( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, diskAccessName, - options + options, ); return poller.pollUntilDone(); } @@ -583,11 +580,11 @@ export class DiskAccessesImpl implements DiskAccesses { */ private _listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -596,7 +593,7 @@ export class DiskAccessesImpl implements DiskAccesses { * @param options The options parameters. */ private _list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -612,11 +609,11 @@ export class DiskAccessesImpl implements DiskAccesses { getPrivateLinkResources( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetPrivateLinkResourcesOptionalParams + options?: DiskAccessesGetPrivateLinkResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - getPrivateLinkResourcesOperationSpec + getPrivateLinkResourcesOperationSpec, ); } @@ -637,7 +634,7 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -646,21 +643,20 @@ export class DiskAccessesImpl implements DiskAccesses { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -669,8 +665,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -678,8 +674,8 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -690,16 +686,16 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName, privateEndpointConnectionName, privateEndpointConnection, - options + options, }, - spec: updateAPrivateEndpointConnectionOperationSpec + spec: updateAPrivateEndpointConnectionOperationSpec, }); const poller = await createHttpPoller< DiskAccessesUpdateAPrivateEndpointConnectionResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -722,14 +718,14 @@ export class DiskAccessesImpl implements DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise { const poller = await this.beginUpdateAPrivateEndpointConnection( resourceGroupName, diskAccessName, privateEndpointConnectionName, privateEndpointConnection, - options + options, ); return poller.pollUntilDone(); } @@ -747,16 +743,16 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, }, - getAPrivateEndpointConnectionOperationSpec + getAPrivateEndpointConnectionOperationSpec, ); } @@ -773,25 +769,24 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -800,8 +795,8 @@ export class DiskAccessesImpl implements DiskAccesses { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -809,8 +804,8 @@ export class DiskAccessesImpl implements DiskAccesses { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -820,13 +815,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, }, - spec: deleteAPrivateEndpointConnectionOperationSpec + spec: deleteAPrivateEndpointConnectionOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -845,13 +840,13 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise { const poller = await this.beginDeleteAPrivateEndpointConnection( resourceGroupName, diskAccessName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -867,11 +862,11 @@ export class DiskAccessesImpl implements DiskAccesses { private _listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, options }, - listPrivateEndpointConnectionsOperationSpec + listPrivateEndpointConnectionsOperationSpec, ); } @@ -884,11 +879,11 @@ export class DiskAccessesImpl implements DiskAccesses { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DiskAccessesListByResourceGroupNextOptionalParams + options?: DiskAccessesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -899,11 +894,11 @@ export class DiskAccessesImpl implements DiskAccesses { */ private _listNext( nextLink: string, - options?: DiskAccessesListNextOptionalParams + options?: DiskAccessesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -921,11 +916,11 @@ export class DiskAccessesImpl implements DiskAccesses { resourceGroupName: string, diskAccessName: string, nextLink: string, - options?: DiskAccessesListPrivateEndpointConnectionsNextOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskAccessName, nextLink, options }, - listPrivateEndpointConnectionsNextOperationSpec + listPrivateEndpointConnectionsNextOperationSpec, ); } } @@ -933,25 +928,24 @@ export class DiskAccessesImpl implements DiskAccesses { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 201: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 202: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 204: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskAccess, queryParameters: [Parameters.apiVersion1], @@ -959,32 +953,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 201: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 202: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, 204: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskAccess1, queryParameters: [Parameters.apiVersion1], @@ -992,37 +985,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccess + bodyMapper: Mappers.DiskAccess, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}", httpMethod: "DELETE", responses: { 200: {}, @@ -1030,145 +1021,117 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskAccesses", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const getPrivateLinkResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResourceListResult - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.diskAccessName - ], - headerParameters: [Parameters.accept], - serializer -}; -const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 201: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 202: { - bodyMapper: Mappers.PrivateEndpointConnection - }, - 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateLinkResourceListResult, }, - default: { - bodyMapper: Mappers.CloudError - } }, - requestBody: Parameters.privateEndpointConnection, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, - Parameters.privateEndpointConnectionName ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer + headerParameters: [Parameters.accept], + serializer, }; +const updateAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 201: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 202: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + 204: { + bodyMapper: Mappers.PrivateEndpointConnection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.privateEndpointConnection, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, + }; const getAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.diskAccessName, - Parameters.privateEndpointConnectionName - ], - headerParameters: [Parameters.accept], - serializer -}; -const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -1176,90 +1139,114 @@ const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.diskAccessName, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const deleteAPrivateEndpointConnectionOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion1], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.diskAccessName, + Parameters.privateEndpointConnectionName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listPrivateEndpointConnectionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.PrivateEndpointConnectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskAccessName + Parameters.diskAccessName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskAccessList + bodyMapper: Mappers.DiskAccessList, }, default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.PrivateEndpointConnectionListResult + bodyMapper: Mappers.CloudError, }, - default: { - bodyMapper: Mappers.CloudError - } }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.diskAccessName ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listPrivateEndpointConnectionsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.PrivateEndpointConnectionListResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + Parameters.diskAccessName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts index 2997217ee8aa..5db7156d2f9b 100644 --- a/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operations/diskEncryptionSets.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { DiskEncryptionSetsDeleteOptionalParams, DiskEncryptionSetsListByResourceGroupNextResponse, DiskEncryptionSetsListNextResponse, - DiskEncryptionSetsListAssociatedResourcesNextResponse + DiskEncryptionSetsListAssociatedResourcesNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ public listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DiskEncryptionSetsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { * @param options The options parameters. */ public list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DiskEncryptionSetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { } private async *listPagingAll( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -190,12 +190,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { public listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAssociatedResourcesPagingAll( resourceGroupName, diskEncryptionSetName, - options + options, ); return { next() { @@ -212,9 +212,9 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, options, - settings + settings, ); - } + }, }; } @@ -222,7 +222,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskEncryptionSetsListAssociatedResourcesResponse; let continuationToken = settings?.continuationToken; @@ -230,7 +230,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { result = await this._listAssociatedResources( resourceGroupName, diskEncryptionSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -242,7 +242,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -254,12 +254,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private async *listAssociatedResourcesPagingAll( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAssociatedResourcesPagingPage( resourceGroupName, diskEncryptionSetName, - options + options, )) { yield* page; } @@ -279,7 +279,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -288,21 +288,20 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -311,8 +310,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -320,8 +319,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -331,16 +330,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DiskEncryptionSetsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -360,13 +359,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, ); return poller.pollUntilDone(); } @@ -385,7 +384,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -394,21 +393,20 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -417,8 +415,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -426,8 +424,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -437,16 +435,16 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DiskEncryptionSetsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -466,13 +464,13 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskEncryptionSetName, diskEncryptionSet, - options + options, ); return poller.pollUntilDone(); } @@ -488,11 +486,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { get( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsGetOptionalParams + options?: DiskEncryptionSetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -507,25 +505,24 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { async beginDelete( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -534,8 +531,8 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -543,19 +540,19 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskEncryptionSetName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -572,12 +569,12 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { async beginDeleteAndWait( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, diskEncryptionSetName, - options + options, ); return poller.pollUntilDone(); } @@ -589,11 +586,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ private _listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -602,7 +599,7 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { * @param options The options parameters. */ private _list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -618,11 +615,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private _listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, options }, - listAssociatedResourcesOperationSpec + listAssociatedResourcesOperationSpec, ); } @@ -635,11 +632,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DiskEncryptionSetsListByResourceGroupNextOptionalParams + options?: DiskEncryptionSetsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -650,11 +647,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { */ private _listNext( nextLink: string, - options?: DiskEncryptionSetsListNextOptionalParams + options?: DiskEncryptionSetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -672,11 +669,11 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, nextLink: string, - options?: DiskEncryptionSetsListAssociatedResourcesNextOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskEncryptionSetName, nextLink, options }, - listAssociatedResourcesNextOperationSpec + listAssociatedResourcesNextOperationSpec, ); } } @@ -684,25 +681,24 @@ export class DiskEncryptionSetsImpl implements DiskEncryptionSets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 201: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 202: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 204: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskEncryptionSet, queryParameters: [Parameters.apiVersion1], @@ -710,32 +706,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 201: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 202: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, 204: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.diskEncryptionSet1, queryParameters: [Parameters.apiVersion1], @@ -743,37 +738,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSet + bodyMapper: Mappers.DiskEncryptionSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}", httpMethod: "DELETE", responses: { 200: {}, @@ -781,136 +774,133 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/diskEncryptionSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAssociatedResourcesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}/associatedResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceUriList + bodyMapper: Mappers.ResourceUriList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskEncryptionSetList + bodyMapper: Mappers.DiskEncryptionSetList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAssociatedResourcesNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceUriList + bodyMapper: Mappers.ResourceUriList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.diskEncryptionSetName + Parameters.diskEncryptionSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts index c95df45e6735..0efb7f9cc094 100644 --- a/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operations/diskRestorePointOperations.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { DiskRestorePointGrantAccessOptionalParams, DiskRestorePointGrantAccessResponse, DiskRestorePointRevokeAccessOptionalParams, - DiskRestorePointListByRestorePointNextResponse + DiskRestorePointListByRestorePointNextResponse, } from "../models"; /// /** Class containing DiskRestorePointOperations operations. */ export class DiskRestorePointOperationsImpl - implements DiskRestorePointOperations { + implements DiskRestorePointOperations +{ private readonly client: ComputeManagementClient; /** @@ -59,13 +60,13 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByRestorePointPagingAll( resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, ); return { next() { @@ -83,9 +84,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, options, - settings + settings, ); - } + }, }; } @@ -94,7 +95,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, options?: DiskRestorePointListByRestorePointOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DiskRestorePointListByRestorePointResponse; let continuationToken = settings?.continuationToken; @@ -103,7 +104,7 @@ export class DiskRestorePointOperationsImpl resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -116,7 +117,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -129,13 +130,13 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByRestorePointPagingPage( resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, )) { yield* page; } @@ -155,7 +156,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointGetOptionalParams + options?: DiskRestorePointGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -163,9 +164,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -181,16 +182,16 @@ export class DiskRestorePointOperationsImpl resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, vmRestorePointName, - options + options, }, - listByRestorePointOperationSpec + listByRestorePointOperationSpec, ); } @@ -210,7 +211,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -219,21 +220,20 @@ export class DiskRestorePointOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -242,8 +242,8 @@ export class DiskRestorePointOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -251,8 +251,8 @@ export class DiskRestorePointOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -264,9 +264,9 @@ export class DiskRestorePointOperationsImpl vmRestorePointName, diskRestorePointName, grantAccessData, - options + options, }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< DiskRestorePointGrantAccessResponse, @@ -274,7 +274,7 @@ export class DiskRestorePointOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -296,7 +296,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, @@ -304,7 +304,7 @@ export class DiskRestorePointOperationsImpl vmRestorePointName, diskRestorePointName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -323,25 +323,24 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -350,8 +349,8 @@ export class DiskRestorePointOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -359,8 +358,8 @@ export class DiskRestorePointOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -371,14 +370,14 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -398,14 +397,14 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, restorePointCollectionName, vmRestorePointName, diskRestorePointName, - options + options, ); return poller.pollUntilDone(); } @@ -424,7 +423,7 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName: string, vmRestorePointName: string, nextLink: string, - options?: DiskRestorePointListByRestorePointNextOptionalParams + options?: DiskRestorePointListByRestorePointNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -432,9 +431,9 @@ export class DiskRestorePointOperationsImpl restorePointCollectionName, vmRestorePointName, nextLink, - options + options, }, - listByRestorePointNextOperationSpec + listByRestorePointNextOperationSpec, ); } } @@ -442,16 +441,15 @@ export class DiskRestorePointOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePoint + bodyMapper: Mappers.DiskRestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -460,22 +458,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRestorePointOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePointList + bodyMapper: Mappers.DiskRestorePointList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -483,31 +480,30 @@ const listByRestorePointOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.vmRestorePointName + Parameters.vmRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -517,15 +513,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, @@ -533,8 +528,8 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ @@ -543,21 +538,21 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.restorePointCollectionName, Parameters.vmRestorePointName, - Parameters.diskRestorePointName + Parameters.diskRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskRestorePointList + bodyMapper: Mappers.DiskRestorePointList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -565,8 +560,8 @@ const listByRestorePointNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.vmRestorePointName + Parameters.vmRestorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/disks.ts b/sdk/compute/arm-compute/src/operations/disks.ts index 0ae26f9967c1..a1011e3c103a 100644 --- a/sdk/compute/arm-compute/src/operations/disks.ts +++ b/sdk/compute/arm-compute/src/operations/disks.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { DisksGrantAccessResponse, DisksRevokeAccessOptionalParams, DisksListByResourceGroupNextResponse, - DisksListNextResponse + DisksListNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class DisksImpl implements Disks { */ public listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class DisksImpl implements Disks { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DisksListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DisksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class DisksImpl implements Disks { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class DisksImpl implements Disks { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class DisksImpl implements Disks { * @param options The options parameters. */ public list( - options?: DisksListOptionalParams + options?: DisksListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class DisksImpl implements Disks { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DisksListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DisksListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class DisksImpl implements Disks { } private async *listPagingAll( - options?: DisksListOptionalParams + options?: DisksListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -192,7 +192,7 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,21 +201,20 @@ export class DisksImpl implements Disks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -224,8 +223,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -233,22 +232,22 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, disk, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DisksCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -267,13 +266,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, diskName, disk, - options + options, ); return poller.pollUntilDone(); } @@ -291,27 +290,26 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise< SimplePollerLike, DisksUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -320,8 +318,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -329,22 +327,22 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, disk, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DisksUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -363,13 +361,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, diskName, disk, - options + options, ); return poller.pollUntilDone(); } @@ -385,11 +383,11 @@ export class DisksImpl implements Disks { get( resourceGroupName: string, diskName: string, - options?: DisksGetOptionalParams + options?: DisksGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, diskName, options }, - getOperationSpec + getOperationSpec, ); } @@ -404,25 +402,24 @@ export class DisksImpl implements Disks { async beginDelete( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -431,8 +428,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -440,19 +437,19 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -469,7 +466,7 @@ export class DisksImpl implements Disks { async beginDeleteAndWait( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise { const poller = await this.beginDelete(resourceGroupName, diskName, options); return poller.pollUntilDone(); @@ -482,11 +479,11 @@ export class DisksImpl implements Disks { */ private _listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -511,7 +508,7 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -520,21 +517,20 @@ export class DisksImpl implements Disks { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -543,8 +539,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -552,15 +548,15 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, grantAccessData, options }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< DisksGrantAccessResponse, @@ -568,7 +564,7 @@ export class DisksImpl implements Disks { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -587,13 +583,13 @@ export class DisksImpl implements Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, diskName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -609,25 +605,24 @@ export class DisksImpl implements Disks { async beginRevokeAccess( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -636,8 +631,8 @@ export class DisksImpl implements Disks { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -645,20 +640,20 @@ export class DisksImpl implements Disks { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, diskName, options }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -675,12 +670,12 @@ export class DisksImpl implements Disks { async beginRevokeAccessAndWait( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, diskName, - options + options, ); return poller.pollUntilDone(); } @@ -694,11 +689,11 @@ export class DisksImpl implements Disks { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DisksListByResourceGroupNextOptionalParams + options?: DisksListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -709,11 +704,11 @@ export class DisksImpl implements Disks { */ private _listNext( nextLink: string, - options?: DisksListNextOptionalParams + options?: DisksListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -721,22 +716,21 @@ export class DisksImpl implements Disks { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 201: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 202: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 204: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, requestBody: Parameters.disk, queryParameters: [Parameters.apiVersion1], @@ -744,29 +738,28 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 201: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 202: { - bodyMapper: Mappers.Disk + bodyMapper: Mappers.Disk, }, 204: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, requestBody: Parameters.disk1, queryParameters: [Parameters.apiVersion1], @@ -774,34 +767,32 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Disk - } + bodyMapper: Mappers.Disk, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -809,58 +800,56 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/disks", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri - } + bodyMapper: Mappers.AccessUri, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -868,15 +857,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -884,40 +872,40 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.diskName + Parameters.diskName, ], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DiskList - } + bodyMapper: Mappers.DiskList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleries.ts b/sdk/compute/arm-compute/src/operations/galleries.ts index 7271bc6a0d0f..4789b75ff38e 100644 --- a/sdk/compute/arm-compute/src/operations/galleries.ts +++ b/sdk/compute/arm-compute/src/operations/galleries.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { GalleriesGetResponse, GalleriesDeleteOptionalParams, GalleriesListByResourceGroupNextResponse, - GalleriesListNextResponse + GalleriesListNextResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export class GalleriesImpl implements Galleries { */ public listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -76,16 +76,16 @@ export class GalleriesImpl implements Galleries { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: GalleriesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleriesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class GalleriesImpl implements Galleries { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -111,11 +111,11 @@ export class GalleriesImpl implements Galleries { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -126,7 +126,7 @@ export class GalleriesImpl implements Galleries { * @param options The options parameters. */ public list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -141,13 +141,13 @@ export class GalleriesImpl implements Galleries { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: GalleriesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleriesListResponse; let continuationToken = settings?.continuationToken; @@ -168,7 +168,7 @@ export class GalleriesImpl implements Galleries { } private async *listPagingAll( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -187,7 +187,7 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -196,21 +196,20 @@ export class GalleriesImpl implements Galleries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -219,8 +218,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -228,22 +227,22 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, gallery, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleriesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -261,13 +260,13 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, gallery, - options + options, ); return poller.pollUntilDone(); } @@ -284,7 +283,7 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -293,21 +292,20 @@ export class GalleriesImpl implements Galleries { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -316,8 +314,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -325,22 +323,22 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, gallery, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleriesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -358,13 +356,13 @@ export class GalleriesImpl implements Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, gallery, - options + options, ); return poller.pollUntilDone(); } @@ -378,11 +376,11 @@ export class GalleriesImpl implements Galleries { get( resourceGroupName: string, galleryName: string, - options?: GalleriesGetOptionalParams + options?: GalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - getOperationSpec + getOperationSpec, ); } @@ -395,25 +393,24 @@ export class GalleriesImpl implements Galleries { async beginDelete( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -422,8 +419,8 @@ export class GalleriesImpl implements Galleries { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -431,19 +428,19 @@ export class GalleriesImpl implements Galleries { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -458,12 +455,12 @@ export class GalleriesImpl implements Galleries { async beginDeleteAndWait( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, - options + options, ); return poller.pollUntilDone(); } @@ -475,11 +472,11 @@ export class GalleriesImpl implements Galleries { */ private _listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -488,7 +485,7 @@ export class GalleriesImpl implements Galleries { * @param options The options parameters. */ private _list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -502,11 +499,11 @@ export class GalleriesImpl implements Galleries { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: GalleriesListByResourceGroupNextOptionalParams + options?: GalleriesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -517,11 +514,11 @@ export class GalleriesImpl implements Galleries { */ private _listNext( nextLink: string, - options?: GalleriesListNextOptionalParams + options?: GalleriesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -529,25 +526,24 @@ export class GalleriesImpl implements Galleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 201: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 202: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 204: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gallery, queryParameters: [Parameters.apiVersion3], @@ -555,32 +551,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 201: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 202: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, 204: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.gallery1, queryParameters: [Parameters.apiVersion3], @@ -588,41 +583,39 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Gallery + bodyMapper: Mappers.Gallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion3, Parameters.select1, - Parameters.expand10 + Parameters.expand10, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}", httpMethod: "DELETE", responses: { 200: {}, @@ -630,92 +623,91 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/galleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryList + bodyMapper: Mappers.GalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts index db2c30c71f9a..6b2204ef640c 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplicationVersions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { GalleryApplicationVersionsGetOptionalParams, GalleryApplicationVersionsGetResponse, GalleryApplicationVersionsDeleteOptionalParams, - GalleryApplicationVersionsListByGalleryApplicationNextResponse + GalleryApplicationVersionsListByGalleryApplicationNextResponse, } from "../models"; /// /** Class containing GalleryApplicationVersions operations. */ export class GalleryApplicationVersionsImpl - implements GalleryApplicationVersions { + implements GalleryApplicationVersions +{ private readonly client: ComputeManagementClient; /** @@ -62,13 +63,13 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryApplicationPagingAll( resourceGroupName, galleryName, galleryApplicationName, - options + options, ); return { next() { @@ -86,9 +87,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, options, - settings + settings, ); - } + }, }; } @@ -97,7 +98,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryApplicationVersionsListByGalleryApplicationResponse; let continuationToken = settings?.continuationToken; @@ -106,7 +107,7 @@ export class GalleryApplicationVersionsImpl resourceGroupName, galleryName, galleryApplicationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -119,7 +120,7 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -132,13 +133,13 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryApplicationPagingPage( resourceGroupName, galleryName, galleryApplicationName, - options + options, )) { yield* page; } @@ -164,7 +165,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -173,21 +174,20 @@ export class GalleryApplicationVersionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -196,8 +196,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -205,8 +205,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -218,16 +218,16 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationVersionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -253,7 +253,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -261,7 +261,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, ); return poller.pollUntilDone(); } @@ -286,7 +286,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -295,21 +295,20 @@ export class GalleryApplicationVersionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -318,8 +317,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -327,8 +326,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -340,16 +339,16 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationVersionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -375,7 +374,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -383,7 +382,7 @@ export class GalleryApplicationVersionsImpl galleryApplicationName, galleryApplicationVersionName, galleryApplicationVersion, - options + options, ); return poller.pollUntilDone(); } @@ -403,7 +402,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsGetOptionalParams + options?: GalleryApplicationVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -411,9 +410,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -432,25 +431,24 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -459,8 +457,8 @@ export class GalleryApplicationVersionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -468,8 +466,8 @@ export class GalleryApplicationVersionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -480,13 +478,13 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -507,14 +505,14 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryApplicationName, galleryApplicationVersionName, - options + options, ); return poller.pollUntilDone(); } @@ -532,11 +530,11 @@ export class GalleryApplicationVersionsImpl resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryApplicationName, options }, - listByGalleryApplicationOperationSpec + listByGalleryApplicationOperationSpec, ); } @@ -556,7 +554,7 @@ export class GalleryApplicationVersionsImpl galleryName: string, galleryApplicationName: string, nextLink: string, - options?: GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -564,9 +562,9 @@ export class GalleryApplicationVersionsImpl galleryName, galleryApplicationName, nextLink, - options + options, }, - listByGalleryApplicationNextOperationSpec + listByGalleryApplicationNextOperationSpec, ); } } @@ -574,25 +572,24 @@ export class GalleryApplicationVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 201: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 202: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 204: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplicationVersion, queryParameters: [Parameters.apiVersion3], @@ -602,32 +599,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 201: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 202: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, 204: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplicationVersion1, queryParameters: [Parameters.apiVersion3], @@ -637,23 +633,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersion + bodyMapper: Mappers.GalleryApplicationVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.expand11], urlParameters: [ @@ -662,14 +657,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -677,8 +671,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -687,22 +681,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryApplicationName, - Parameters.galleryApplicationVersionName + Parameters.galleryApplicationVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryApplicationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersionList + bodyMapper: Mappers.GalleryApplicationVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -710,21 +703,21 @@ const listByGalleryApplicationOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryApplicationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationVersionList + bodyMapper: Mappers.GalleryApplicationVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -732,8 +725,8 @@ const listByGalleryApplicationNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryApplications.ts b/sdk/compute/arm-compute/src/operations/galleryApplications.ts index 03fee87c042e..7a1acfa42e73 100644 --- a/sdk/compute/arm-compute/src/operations/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operations/galleryApplications.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryApplicationsGetOptionalParams, GalleryApplicationsGetResponse, GalleryApplicationsDeleteOptionalParams, - GalleryApplicationsListByGalleryNextResponse + GalleryApplicationsListByGalleryNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class GalleryApplicationsImpl implements GalleryApplications { public listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryPagingAll( resourceGroupName, galleryName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName, galleryName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, options?: GalleryApplicationsListByGalleryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryApplicationsListByGalleryResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { result = await this._listByGallery( resourceGroupName, galleryName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName, galleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class GalleryApplicationsImpl implements GalleryApplications { private async *listByGalleryPagingAll( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, galleryName, - options + options, )) { yield* page; } @@ -149,7 +149,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -158,21 +158,20 @@ export class GalleryApplicationsImpl implements GalleryApplications { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -181,8 +180,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -190,8 +189,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -202,16 +201,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName, galleryApplicationName, galleryApplication, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, galleryApplicationName, galleryApplication, - options + options, ); return poller.pollUntilDone(); } @@ -261,7 +260,7 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,21 +269,20 @@ export class GalleryApplicationsImpl implements GalleryApplications { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +291,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,8 +300,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -314,16 +312,16 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName, galleryApplicationName, galleryApplication, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryApplicationsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -345,14 +343,14 @@ export class GalleryApplicationsImpl implements GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, galleryApplicationName, galleryApplication, - options + options, ); return poller.pollUntilDone(); } @@ -369,11 +367,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsGetOptionalParams + options?: GalleryApplicationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryApplicationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -389,25 +387,24 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -416,8 +413,8 @@ export class GalleryApplicationsImpl implements GalleryApplications { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -425,19 +422,19 @@ export class GalleryApplicationsImpl implements GalleryApplications { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, galleryApplicationName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -455,13 +452,13 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryApplicationName, - options + options, ); return poller.pollUntilDone(); } @@ -476,11 +473,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { private _listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - listByGalleryOperationSpec + listByGalleryOperationSpec, ); } @@ -496,11 +493,11 @@ export class GalleryApplicationsImpl implements GalleryApplications { resourceGroupName: string, galleryName: string, nextLink: string, - options?: GalleryApplicationsListByGalleryNextOptionalParams + options?: GalleryApplicationsListByGalleryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, nextLink, options }, - listByGalleryNextOperationSpec + listByGalleryNextOperationSpec, ); } } @@ -508,25 +505,24 @@ export class GalleryApplicationsImpl implements GalleryApplications { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 201: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 202: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 204: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplication, queryParameters: [Parameters.apiVersion3], @@ -535,32 +531,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 201: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 202: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, 204: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryApplication1, queryParameters: [Parameters.apiVersion3], @@ -569,23 +564,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplication + bodyMapper: Mappers.GalleryApplication, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -593,14 +587,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -608,8 +601,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -617,51 +610,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryApplicationName + Parameters.galleryApplicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationList + bodyMapper: Mappers.GalleryApplicationList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryApplicationList + bodyMapper: Mappers.GalleryApplicationList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts index c271b859db0b..60853007870d 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImageVersions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryImageVersionsGetOptionalParams, GalleryImageVersionsGetResponse, GalleryImageVersionsDeleteOptionalParams, - GalleryImageVersionsListByGalleryImageNextResponse + GalleryImageVersionsListByGalleryImageNextResponse, } from "../models"; /// @@ -60,13 +60,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryImagePagingAll( resourceGroupName, galleryName, galleryImageName, - options + options, ); return { next() { @@ -84,9 +84,9 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -95,7 +95,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, options?: GalleryImageVersionsListByGalleryImageOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryImageVersionsListByGalleryImageResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName, galleryName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +117,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,13 +130,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryImagePagingPage( resourceGroupName, galleryName, galleryImageName, - options + options, )) { yield* page; } @@ -161,7 +161,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -170,21 +170,20 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -193,8 +192,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -202,8 +201,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -215,16 +214,16 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryImageVersionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -249,7 +248,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -257,7 +256,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, ); return poller.pollUntilDone(); } @@ -280,7 +279,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -289,21 +288,20 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +310,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,8 +319,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -334,16 +332,16 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryImageVersionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -367,7 +365,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -375,7 +373,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryImageName, galleryImageVersionName, galleryImageVersion, - options + options, ); return poller.pollUntilDone(); } @@ -393,7 +391,7 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsGetOptionalParams + options?: GalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -401,9 +399,9 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -420,25 +418,24 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -447,8 +444,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -456,8 +453,8 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -468,13 +465,13 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName, galleryImageName, galleryImageVersionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -493,14 +490,14 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryImageName, galleryImageVersionName, - options + options, ); return poller.pollUntilDone(); } @@ -517,11 +514,11 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, options }, - listByGalleryImageOperationSpec + listByGalleryImageOperationSpec, ); } @@ -539,11 +536,11 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { galleryName: string, galleryImageName: string, nextLink: string, - options?: GalleryImageVersionsListByGalleryImageNextOptionalParams + options?: GalleryImageVersionsListByGalleryImageNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, nextLink, options }, - listByGalleryImageNextOperationSpec + listByGalleryImageNextOperationSpec, ); } } @@ -551,25 +548,24 @@ export class GalleryImageVersionsImpl implements GalleryImageVersions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 201: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 202: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 204: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImageVersion, queryParameters: [Parameters.apiVersion3], @@ -579,32 +575,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 201: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 202: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, 204: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImageVersion1, queryParameters: [Parameters.apiVersion3], @@ -614,23 +609,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersion + bodyMapper: Mappers.GalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.expand11], urlParameters: [ @@ -639,14 +633,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -654,8 +647,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -664,22 +657,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.galleryName, Parameters.galleryImageName, - Parameters.galleryImageVersionName + Parameters.galleryImageVersionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryImageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersionList + bodyMapper: Mappers.GalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -687,21 +679,21 @@ const listByGalleryImageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryImageNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageVersionList + bodyMapper: Mappers.GalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -709,8 +701,8 @@ const listByGalleryImageNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/galleryImages.ts b/sdk/compute/arm-compute/src/operations/galleryImages.ts index e46aa4ef9a1d..ceaec3309e10 100644 --- a/sdk/compute/arm-compute/src/operations/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/galleryImages.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,7 +32,7 @@ import { GalleryImagesGetOptionalParams, GalleryImagesGetResponse, GalleryImagesDeleteOptionalParams, - GalleryImagesListByGalleryNextResponse + GalleryImagesListByGalleryNextResponse, } from "../models"; /// @@ -58,12 +58,12 @@ export class GalleryImagesImpl implements GalleryImages { public listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByGalleryPagingAll( resourceGroupName, galleryName, - options + options, ); return { next() { @@ -80,9 +80,9 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName, galleryName, options, - settings + settings, ); - } + }, }; } @@ -90,7 +90,7 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, options?: GalleryImagesListByGalleryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: GalleryImagesListByGalleryResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class GalleryImagesImpl implements GalleryImages { result = await this._listByGallery( resourceGroupName, galleryName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -110,7 +110,7 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName, galleryName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -122,12 +122,12 @@ export class GalleryImagesImpl implements GalleryImages { private async *listByGalleryPagingAll( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByGalleryPagingPage( resourceGroupName, galleryName, - options + options, )) { yield* page; } @@ -149,7 +149,7 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -158,21 +158,20 @@ export class GalleryImagesImpl implements GalleryImages { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -181,8 +180,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -190,8 +189,8 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -202,16 +201,16 @@ export class GalleryImagesImpl implements GalleryImages { galleryName, galleryImageName, galleryImage, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< GalleryImagesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -233,14 +232,14 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, galleryName, galleryImageName, galleryImage, - options + options, ); return poller.pollUntilDone(); } @@ -261,7 +260,7 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -270,21 +269,20 @@ export class GalleryImagesImpl implements GalleryImages { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +291,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,8 +300,8 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -314,16 +312,16 @@ export class GalleryImagesImpl implements GalleryImages { galleryName, galleryImageName, galleryImage, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GalleryImagesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -345,14 +343,14 @@ export class GalleryImagesImpl implements GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, galleryImageName, galleryImage, - options + options, ); return poller.pollUntilDone(); } @@ -369,11 +367,11 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesGetOptionalParams + options?: GalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -389,25 +387,24 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -416,8 +413,8 @@ export class GalleryImagesImpl implements GalleryImages { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -425,19 +422,19 @@ export class GalleryImagesImpl implements GalleryImages { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, galleryImageName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -455,13 +452,13 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, galleryName, galleryImageName, - options + options, ); return poller.pollUntilDone(); } @@ -476,11 +473,11 @@ export class GalleryImagesImpl implements GalleryImages { private _listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, options }, - listByGalleryOperationSpec + listByGalleryOperationSpec, ); } @@ -496,11 +493,11 @@ export class GalleryImagesImpl implements GalleryImages { resourceGroupName: string, galleryName: string, nextLink: string, - options?: GalleryImagesListByGalleryNextOptionalParams + options?: GalleryImagesListByGalleryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, galleryName, nextLink, options }, - listByGalleryNextOperationSpec + listByGalleryNextOperationSpec, ); } } @@ -508,25 +505,24 @@ export class GalleryImagesImpl implements GalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 201: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 202: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 204: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImage, queryParameters: [Parameters.apiVersion3], @@ -535,32 +531,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 201: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 202: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, 204: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.galleryImage1, queryParameters: [Parameters.apiVersion3], @@ -569,23 +564,22 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImage + bodyMapper: Mappers.GalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -593,14 +587,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}", httpMethod: "DELETE", responses: { 200: {}, @@ -608,8 +601,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -617,51 +610,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.galleryName, - Parameters.galleryImageName + Parameters.galleryImageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageList + bodyMapper: Mappers.GalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByGalleryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GalleryImageList + bodyMapper: Mappers.GalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts index 717a581ef043..dafbd027979c 100644 --- a/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operations/gallerySharingProfile.ts @@ -14,13 +14,13 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { SharingUpdate, GallerySharingProfileUpdateOptionalParams, - GallerySharingProfileUpdateResponse + GallerySharingProfileUpdateResponse, } from "../models"; /** Class containing GallerySharingProfile operations. */ @@ -46,7 +46,7 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -55,21 +55,20 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -78,8 +77,8 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -87,22 +86,22 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, galleryName, sharingUpdate, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< GallerySharingProfileUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -119,13 +118,13 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, galleryName, sharingUpdate, - options + options, ); return poller.pollUntilDone(); } @@ -134,25 +133,24 @@ export class GallerySharingProfileImpl implements GallerySharingProfile { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/share", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 201: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 202: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, 204: { - bodyMapper: Mappers.SharingUpdate + bodyMapper: Mappers.SharingUpdate, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.sharingUpdate, queryParameters: [Parameters.apiVersion3], @@ -160,9 +158,9 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.galleryName + Parameters.galleryName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/images.ts b/sdk/compute/arm-compute/src/operations/images.ts index b2fb10422e3f..ff652c103cae 100644 --- a/sdk/compute/arm-compute/src/operations/images.ts +++ b/sdk/compute/arm-compute/src/operations/images.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { ImagesGetOptionalParams, ImagesGetResponse, ImagesListByResourceGroupNextResponse, - ImagesListNextResponse + ImagesListNextResponse, } from "../models"; /// @@ -60,7 +60,7 @@ export class ImagesImpl implements Images { */ public listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -77,16 +77,16 @@ export class ImagesImpl implements Images { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ImagesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ImagesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class ImagesImpl implements Images { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -112,11 +112,11 @@ export class ImagesImpl implements Images { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -128,7 +128,7 @@ export class ImagesImpl implements Images { * @param options The options parameters. */ public list( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -143,13 +143,13 @@ export class ImagesImpl implements Images { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ImagesListResponse; let continuationToken = settings?.continuationToken; @@ -170,7 +170,7 @@ export class ImagesImpl implements Images { } private async *listPagingAll( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -188,7 +188,7 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +197,20 @@ export class ImagesImpl implements Images { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +219,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,22 +228,22 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ImagesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -261,13 +260,13 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, imageName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -283,27 +282,26 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise< SimplePollerLike, ImagesUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -312,8 +310,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -321,22 +319,22 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< ImagesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,13 +351,13 @@ export class ImagesImpl implements Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, imageName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -373,25 +371,24 @@ export class ImagesImpl implements Images { async beginDelete( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -400,8 +397,8 @@ export class ImagesImpl implements Images { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -409,19 +406,19 @@ export class ImagesImpl implements Images { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, imageName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -436,12 +433,12 @@ export class ImagesImpl implements Images { async beginDeleteAndWait( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, imageName, - options + options, ); return poller.pollUntilDone(); } @@ -455,11 +452,11 @@ export class ImagesImpl implements Images { get( resourceGroupName: string, imageName: string, - options?: ImagesGetOptionalParams + options?: ImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, imageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -471,11 +468,11 @@ export class ImagesImpl implements Images { */ private _listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -485,7 +482,7 @@ export class ImagesImpl implements Images { * @param options The options parameters. */ private _list( - options?: ImagesListOptionalParams + options?: ImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -499,11 +496,11 @@ export class ImagesImpl implements Images { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ImagesListByResourceGroupNextOptionalParams + options?: ImagesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -514,11 +511,11 @@ export class ImagesImpl implements Images { */ private _listNext( nextLink: string, - options?: ImagesListNextOptionalParams + options?: ImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -526,25 +523,24 @@ export class ImagesImpl implements Images { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 201: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 202: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 204: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters22, queryParameters: [Parameters.apiVersion], @@ -552,32 +548,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 201: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 202: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, 204: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters23, queryParameters: [Parameters.apiVersion], @@ -585,15 +580,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "DELETE", responses: { 200: {}, @@ -601,114 +595,112 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Image + bodyMapper: Mappers.Image, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.imageName + Parameters.imageName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ImageListResult + bodyMapper: Mappers.ImageListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/logAnalytics.ts b/sdk/compute/arm-compute/src/operations/logAnalytics.ts index d5466c6b1c66..ae76d32997d3 100644 --- a/sdk/compute/arm-compute/src/operations/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operations/logAnalytics.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -23,7 +23,7 @@ import { LogAnalyticsExportRequestRateByIntervalResponse, ThrottledRequestsInput, LogAnalyticsExportThrottledRequestsOptionalParams, - LogAnalyticsExportThrottledRequestsResponse + LogAnalyticsExportThrottledRequestsResponse, } from "../models"; /** Class containing LogAnalytics operations. */ @@ -48,7 +48,7 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportRequestRateByInterval( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -57,21 +57,20 @@ export class LogAnalyticsImpl implements LogAnalytics { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -80,8 +79,8 @@ export class LogAnalyticsImpl implements LogAnalytics { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -89,15 +88,15 @@ export class LogAnalyticsImpl implements LogAnalytics { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { location, parameters, options }, - spec: exportRequestRateByIntervalOperationSpec + spec: exportRequestRateByIntervalOperationSpec, }); const poller = await createHttpPoller< LogAnalyticsExportRequestRateByIntervalResponse, @@ -105,7 +104,7 @@ export class LogAnalyticsImpl implements LogAnalytics { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -121,12 +120,12 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportRequestRateByIntervalAndWait( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise { const poller = await this.beginExportRequestRateByInterval( location, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -140,7 +139,7 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportThrottledRequests( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -149,21 +148,20 @@ export class LogAnalyticsImpl implements LogAnalytics { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -172,8 +170,8 @@ export class LogAnalyticsImpl implements LogAnalytics { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -181,15 +179,15 @@ export class LogAnalyticsImpl implements LogAnalytics { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { location, parameters, options }, - spec: exportThrottledRequestsOperationSpec + spec: exportThrottledRequestsOperationSpec, }); const poller = await createHttpPoller< LogAnalyticsExportThrottledRequestsResponse, @@ -197,7 +195,7 @@ export class LogAnalyticsImpl implements LogAnalytics { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -212,12 +210,12 @@ export class LogAnalyticsImpl implements LogAnalytics { async beginExportThrottledRequestsAndWait( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise { const poller = await this.beginExportThrottledRequests( location, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -226,66 +224,64 @@ export class LogAnalyticsImpl implements LogAnalytics { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const exportRequestRateByIntervalOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getRequestRateByInterval", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 201: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 202: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 204: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters31, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const exportThrottledRequestsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/logAnalytics/apiAccess/getThrottledRequests", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 201: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 202: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, 204: { - bodyMapper: Mappers.LogAnalyticsOperationResult + bodyMapper: Mappers.LogAnalyticsOperationResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters32, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/operations.ts b/sdk/compute/arm-compute/src/operations/operations.ts index 179dc78a0e09..6d5f1ab4d7eb 100644 --- a/sdk/compute/arm-compute/src/operations/operations.ts +++ b/sdk/compute/arm-compute/src/operations/operations.ts @@ -15,7 +15,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { ComputeOperationValue, OperationsListOptionalParams, - OperationsListResponse + OperationsListResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -51,13 +51,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; result = await this._list(options); @@ -65,7 +65,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -77,7 +77,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -90,14 +90,14 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ComputeOperationListResult + bodyMapper: Mappers.ComputeOperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts index 1427c04ff5d3..e158d9f4a25a 100644 --- a/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operations/proximityPlacementGroups.ts @@ -30,7 +30,7 @@ import { ProximityPlacementGroupsGetOptionalParams, ProximityPlacementGroupsGetResponse, ProximityPlacementGroupsListBySubscriptionNextResponse, - ProximityPlacementGroupsListByResourceGroupNextResponse + ProximityPlacementGroupsListByResourceGroupNextResponse, } from "../models"; /// @@ -51,7 +51,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { * @param options The options parameters. */ public listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -66,13 +66,13 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProximityPlacementGroupsListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +93,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { } private async *listBySubscriptionPagingAll( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -107,7 +107,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ public listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -124,16 +124,16 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ProximityPlacementGroupsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -148,7 +148,7 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -159,11 +159,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -180,11 +180,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroup, - options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams + options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -199,11 +199,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroupUpdate, - options?: ProximityPlacementGroupsUpdateOptionalParams + options?: ProximityPlacementGroupsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -216,11 +216,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { delete( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsDeleteOptionalParams + options?: ProximityPlacementGroupsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -233,11 +233,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { get( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsGetOptionalParams + options?: ProximityPlacementGroupsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, proximityPlacementGroupName, options }, - getOperationSpec + getOperationSpec, ); } @@ -246,11 +246,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { * @param options The options parameters. */ private _listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -261,11 +261,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ private _listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -276,11 +276,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { */ private _listBySubscriptionNext( nextLink: string, - options?: ProximityPlacementGroupsListBySubscriptionNextOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -293,11 +293,11 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: ProximityPlacementGroupsListByResourceGroupNextOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -305,19 +305,18 @@ export class ProximityPlacementGroupsImpl implements ProximityPlacementGroups { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, 201: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters13, queryParameters: [Parameters.apiVersion], @@ -325,23 +324,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters14, queryParameters: [Parameters.apiVersion], @@ -349,128 +347,124 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "DELETE", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroup + bodyMapper: Mappers.ProximityPlacementGroup, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.includeColocationStatus], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.proximityPlacementGroupName + Parameters.proximityPlacementGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/proximityPlacementGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ProximityPlacementGroupListResult + bodyMapper: Mappers.ProximityPlacementGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/resourceSkus.ts b/sdk/compute/arm-compute/src/operations/resourceSkus.ts index f500d42fc553..37e0a9de5a5f 100644 --- a/sdk/compute/arm-compute/src/operations/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operations/resourceSkus.ts @@ -18,7 +18,7 @@ import { ResourceSkusListNextOptionalParams, ResourceSkusListOptionalParams, ResourceSkusListResponse, - ResourceSkusListNextResponse + ResourceSkusListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class ResourceSkusImpl implements ResourceSkus { * @param options The options parameters. */ public list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class ResourceSkusImpl implements ResourceSkus { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: ResourceSkusListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ResourceSkusListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class ResourceSkusImpl implements ResourceSkus { } private async *listPagingAll( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class ResourceSkusImpl implements ResourceSkus { * @param options The options parameters. */ private _list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class ResourceSkusImpl implements ResourceSkus { */ private _listNext( nextLink: string, - options?: ResourceSkusListNextOptionalParams + options?: ResourceSkusListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,31 +121,31 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkusResult - } + bodyMapper: Mappers.ResourceSkusResult, + }, }, queryParameters: [ Parameters.filter, Parameters.apiVersion2, - Parameters.includeExtendedLocations + Parameters.includeExtendedLocations, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ResourceSkusResult - } + bodyMapper: Mappers.ResourceSkusResult, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts index eba6ad238f07..2b89eb2c14cf 100644 --- a/sdk/compute/arm-compute/src/operations/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operations/restorePointCollections.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { RestorePointCollectionsGetOptionalParams, RestorePointCollectionsGetResponse, RestorePointCollectionsListNextResponse, - RestorePointCollectionsListAllNextResponse + RestorePointCollectionsListAllNextResponse, } from "../models"; /// @@ -59,7 +59,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ public list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -74,14 +74,14 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: RestorePointCollectionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RestorePointCollectionsListResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -107,7 +107,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { private async *listPagingAll( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -121,7 +121,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { * @param options The options parameters. */ public listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -136,13 +136,13 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: RestorePointCollectionsListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: RestorePointCollectionsListAllResponse; let continuationToken = settings?.continuationToken; @@ -163,7 +163,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { } private async *listAllPagingAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -183,11 +183,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollection, - options?: RestorePointCollectionsCreateOrUpdateOptionalParams + options?: RestorePointCollectionsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, parameters, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -202,11 +202,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollectionUpdate, - options?: RestorePointCollectionsUpdateOptionalParams + options?: RestorePointCollectionsUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -220,25 +220,24 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { async beginDelete( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -247,8 +246,8 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -256,19 +255,19 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, restorePointCollectionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -284,12 +283,12 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { async beginDeleteAndWait( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, restorePointCollectionName, - options + options, ); return poller.pollUntilDone(); } @@ -303,11 +302,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { get( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsGetOptionalParams + options?: RestorePointCollectionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -318,11 +317,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ private _list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -333,7 +332,7 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { * @param options The options parameters. */ private _listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -347,11 +346,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { private _listNext( resourceGroupName: string, nextLink: string, - options?: RestorePointCollectionsListNextOptionalParams + options?: RestorePointCollectionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -362,11 +361,11 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { */ private _listAllNext( nextLink: string, - options?: RestorePointCollectionsListAllNextOptionalParams + options?: RestorePointCollectionsListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } } @@ -374,19 +373,18 @@ export class RestorePointCollectionsImpl implements RestorePointCollections { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, 201: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters24, queryParameters: [Parameters.apiVersion], @@ -394,23 +392,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters25, queryParameters: [Parameters.apiVersion], @@ -418,15 +415,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -434,115 +430,112 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollection + bodyMapper: Mappers.RestorePointCollection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.restorePointCollectionName + Parameters.restorePointCollectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/restorePointCollections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePointCollectionListResult + bodyMapper: Mappers.RestorePointCollectionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/restorePoints.ts b/sdk/compute/arm-compute/src/operations/restorePoints.ts index e327f4898ff8..7d2d9a0376d3 100644 --- a/sdk/compute/arm-compute/src/operations/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operations/restorePoints.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -23,7 +23,7 @@ import { RestorePointsCreateResponse, RestorePointsDeleteOptionalParams, RestorePointsGetOptionalParams, - RestorePointsGetResponse + RestorePointsGetResponse, } from "../models"; /** Class containing RestorePoints operations. */ @@ -52,7 +52,7 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -61,21 +61,20 @@ export class RestorePointsImpl implements RestorePoints { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -84,8 +83,8 @@ export class RestorePointsImpl implements RestorePoints { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -93,8 +92,8 @@ export class RestorePointsImpl implements RestorePoints { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -105,16 +104,16 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName, restorePointName, parameters, - options + options, }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< RestorePointsCreateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -134,14 +133,14 @@ export class RestorePointsImpl implements RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, restorePointCollectionName, restorePointName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -157,25 +156,24 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -184,8 +182,8 @@ export class RestorePointsImpl implements RestorePoints { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -193,8 +191,8 @@ export class RestorePointsImpl implements RestorePoints { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -204,13 +202,13 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName, restorePointCollectionName, restorePointName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -227,13 +225,13 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, restorePointCollectionName, restorePointName, - options + options, ); return poller.pollUntilDone(); } @@ -249,16 +247,16 @@ export class RestorePointsImpl implements RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsGetOptionalParams + options?: RestorePointsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, restorePointCollectionName, restorePointName, - options + options, }, - getOperationSpec + getOperationSpec, ); } } @@ -266,25 +264,24 @@ export class RestorePointsImpl implements RestorePoints { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 201: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 202: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, 204: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters26, queryParameters: [Parameters.apiVersion], @@ -293,15 +290,14 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "DELETE", responses: { 200: {}, @@ -309,8 +305,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -318,22 +314,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RestorePoint + bodyMapper: Mappers.RestorePoint, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand6], urlParameters: [ @@ -341,8 +336,8 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.restorePointCollectionName, - Parameters.restorePointName + Parameters.restorePointName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts index fbfc216914cd..8ba3cab788eb 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleries.ts @@ -20,7 +20,7 @@ import { SharedGalleriesListResponse, SharedGalleriesGetOptionalParams, SharedGalleriesGetResponse, - SharedGalleriesListNextResponse + SharedGalleriesListNextResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export class SharedGalleriesImpl implements SharedGalleries { */ public list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -58,14 +58,14 @@ export class SharedGalleriesImpl implements SharedGalleries { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: SharedGalleriesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleriesListResponse; let continuationToken = settings?.continuationToken; @@ -87,7 +87,7 @@ export class SharedGalleriesImpl implements SharedGalleries { private async *listPagingAll( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -101,11 +101,11 @@ export class SharedGalleriesImpl implements SharedGalleries { */ private _list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -118,11 +118,11 @@ export class SharedGalleriesImpl implements SharedGalleries { get( location: string, galleryUniqueName: string, - options?: SharedGalleriesGetOptionalParams + options?: SharedGalleriesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, options }, - getOperationSpec + getOperationSpec, ); } @@ -135,11 +135,11 @@ export class SharedGalleriesImpl implements SharedGalleries { private _listNext( location: string, nextLink: string, - options?: SharedGalleriesListNextOptionalParams + options?: SharedGalleriesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -147,65 +147,63 @@ export class SharedGalleriesImpl implements SharedGalleries { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryList + bodyMapper: Mappers.SharedGalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGallery + bodyMapper: Mappers.SharedGallery, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryList + bodyMapper: Mappers.SharedGalleryList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts index d079ce61a9b9..9df6b2749c89 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImageVersions.ts @@ -20,13 +20,14 @@ import { SharedGalleryImageVersionsListResponse, SharedGalleryImageVersionsGetOptionalParams, SharedGalleryImageVersionsGetResponse, - SharedGalleryImageVersionsListNextResponse + SharedGalleryImageVersionsListNextResponse, } from "../models"; /// /** Class containing SharedGalleryImageVersions operations. */ export class SharedGalleryImageVersionsImpl - implements SharedGalleryImageVersions { + implements SharedGalleryImageVersions +{ private readonly client: ComputeManagementClient; /** @@ -49,13 +50,13 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( location, galleryUniqueName, galleryImageName, - options + options, ); return { next() { @@ -73,9 +74,9 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, options, - settings + settings, ); - } + }, }; } @@ -84,7 +85,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, options?: SharedGalleryImageVersionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleryImageVersionsListResponse; let continuationToken = settings?.continuationToken; @@ -93,7 +94,7 @@ export class SharedGalleryImageVersionsImpl location, galleryUniqueName, galleryImageName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -106,7 +107,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -119,13 +120,13 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, galleryUniqueName, galleryImageName, - options + options, )) { yield* page; } @@ -143,11 +144,11 @@ export class SharedGalleryImageVersionsImpl location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, options }, - listOperationSpec + listOperationSpec, ); } @@ -167,7 +168,7 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, - options?: SharedGalleryImageVersionsGetOptionalParams + options?: SharedGalleryImageVersionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -175,9 +176,9 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName, galleryImageName, galleryImageVersionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -195,11 +196,11 @@ export class SharedGalleryImageVersionsImpl galleryUniqueName: string, galleryImageName: string, nextLink: string, - options?: SharedGalleryImageVersionsListNextOptionalParams + options?: SharedGalleryImageVersionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -207,16 +208,15 @@ export class SharedGalleryImageVersionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersionList + bodyMapper: Mappers.SharedGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ @@ -224,22 +224,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}/versions/{galleryImageVersionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersion + bodyMapper: Mappers.SharedGalleryImageVersion, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -248,21 +247,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.galleryImageName, Parameters.galleryImageVersionName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageVersionList + bodyMapper: Mappers.SharedGalleryImageVersionList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -270,8 +269,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts index 4f5bc150e926..13688248039c 100644 --- a/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operations/sharedGalleryImages.ts @@ -20,7 +20,7 @@ import { SharedGalleryImagesListResponse, SharedGalleryImagesGetOptionalParams, SharedGalleryImagesGetResponse, - SharedGalleryImagesListNextResponse + SharedGalleryImagesListNextResponse, } from "../models"; /// @@ -45,7 +45,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { public list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, galleryUniqueName, options); return { @@ -63,9 +63,9 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location, galleryUniqueName, options, - settings + settings, ); - } + }, }; } @@ -73,7 +73,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, options?: SharedGalleryImagesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SharedGalleryImagesListResponse; let continuationToken = settings?.continuationToken; @@ -89,7 +89,7 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location, galleryUniqueName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -101,12 +101,12 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { private async *listPagingAll( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( location, galleryUniqueName, - options + options, )) { yield* page; } @@ -121,11 +121,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { private _list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, options }, - listOperationSpec + listOperationSpec, ); } @@ -141,11 +141,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImagesGetOptionalParams + options?: SharedGalleryImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, galleryImageName, options }, - getOperationSpec + getOperationSpec, ); } @@ -160,11 +160,11 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { location: string, galleryUniqueName: string, nextLink: string, - options?: SharedGalleryImagesListNextOptionalParams + options?: SharedGalleryImagesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, galleryUniqueName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -172,38 +172,36 @@ export class SharedGalleryImagesImpl implements SharedGalleryImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageList + bodyMapper: Mappers.SharedGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3, Parameters.sharedTo], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/sharedGalleries/{galleryUniqueName}/images/{galleryImageName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImage + bodyMapper: Mappers.SharedGalleryImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion3], urlParameters: [ @@ -211,29 +209,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.galleryImageName, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SharedGalleryImageList + bodyMapper: Mappers.SharedGalleryImageList, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.location1, - Parameters.galleryUniqueName + Parameters.galleryUniqueName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/snapshots.ts b/sdk/compute/arm-compute/src/operations/snapshots.ts index 6257f2de0768..1ea69312bda1 100644 --- a/sdk/compute/arm-compute/src/operations/snapshots.ts +++ b/sdk/compute/arm-compute/src/operations/snapshots.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -40,7 +40,7 @@ import { SnapshotsGrantAccessResponse, SnapshotsRevokeAccessOptionalParams, SnapshotsListByResourceGroupNextResponse, - SnapshotsListNextResponse + SnapshotsListNextResponse, } from "../models"; /// @@ -63,7 +63,7 @@ export class SnapshotsImpl implements Snapshots { */ public listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -80,16 +80,16 @@ export class SnapshotsImpl implements Snapshots { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: SnapshotsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +104,7 @@ export class SnapshotsImpl implements Snapshots { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -115,11 +115,11 @@ export class SnapshotsImpl implements Snapshots { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -130,7 +130,7 @@ export class SnapshotsImpl implements Snapshots { * @param options The options parameters. */ public list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -145,13 +145,13 @@ export class SnapshotsImpl implements Snapshots { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: SnapshotsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SnapshotsListResponse; let continuationToken = settings?.continuationToken; @@ -172,7 +172,7 @@ export class SnapshotsImpl implements Snapshots { } private async *listPagingAll( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -192,7 +192,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,21 +201,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -224,8 +223,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -233,22 +232,22 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, snapshot, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< SnapshotsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -267,13 +266,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, snapshotName, snapshot, - options + options, ); return poller.pollUntilDone(); } @@ -291,7 +290,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -300,21 +299,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -323,8 +321,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,22 +330,22 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, snapshot, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< SnapshotsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -366,13 +364,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, snapshotName, snapshot, - options + options, ); return poller.pollUntilDone(); } @@ -388,11 +386,11 @@ export class SnapshotsImpl implements Snapshots { get( resourceGroupName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, snapshotName, options }, - getOperationSpec + getOperationSpec, ); } @@ -407,25 +405,24 @@ export class SnapshotsImpl implements Snapshots { async beginDelete( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -434,8 +431,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -443,19 +440,19 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -472,12 +469,12 @@ export class SnapshotsImpl implements Snapshots { async beginDeleteAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -489,11 +486,11 @@ export class SnapshotsImpl implements Snapshots { */ private _listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -502,7 +499,7 @@ export class SnapshotsImpl implements Snapshots { * @param options The options parameters. */ private _list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -520,7 +517,7 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -529,21 +526,20 @@ export class SnapshotsImpl implements Snapshots { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -552,8 +548,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -561,15 +557,15 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, grantAccessData, options }, - spec: grantAccessOperationSpec + spec: grantAccessOperationSpec, }); const poller = await createHttpPoller< SnapshotsGrantAccessResponse, @@ -577,7 +573,7 @@ export class SnapshotsImpl implements Snapshots { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -596,13 +592,13 @@ export class SnapshotsImpl implements Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise { const poller = await this.beginGrantAccess( resourceGroupName, snapshotName, grantAccessData, - options + options, ); return poller.pollUntilDone(); } @@ -618,25 +614,24 @@ export class SnapshotsImpl implements Snapshots { async beginRevokeAccess( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -645,8 +640,8 @@ export class SnapshotsImpl implements Snapshots { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -654,20 +649,20 @@ export class SnapshotsImpl implements Snapshots { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, snapshotName, options }, - spec: revokeAccessOperationSpec + spec: revokeAccessOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -684,12 +679,12 @@ export class SnapshotsImpl implements Snapshots { async beginRevokeAccessAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise { const poller = await this.beginRevokeAccess( resourceGroupName, snapshotName, - options + options, ); return poller.pollUntilDone(); } @@ -703,11 +698,11 @@ export class SnapshotsImpl implements Snapshots { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: SnapshotsListByResourceGroupNextOptionalParams + options?: SnapshotsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -718,11 +713,11 @@ export class SnapshotsImpl implements Snapshots { */ private _listNext( nextLink: string, - options?: SnapshotsListNextOptionalParams + options?: SnapshotsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -730,22 +725,21 @@ export class SnapshotsImpl implements Snapshots { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, requestBody: Parameters.snapshot, queryParameters: [Parameters.apiVersion1], @@ -753,29 +747,28 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 201: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 202: { - bodyMapper: Mappers.Snapshot + bodyMapper: Mappers.Snapshot, }, 204: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, requestBody: Parameters.snapshot1, queryParameters: [Parameters.apiVersion1], @@ -783,34 +776,32 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Snapshot - } + bodyMapper: Mappers.Snapshot, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -818,58 +809,56 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/snapshots", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const grantAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/beginGetAccess", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 201: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 202: { - bodyMapper: Mappers.AccessUri + bodyMapper: Mappers.AccessUri, }, 204: { - bodyMapper: Mappers.AccessUri - } + bodyMapper: Mappers.AccessUri, + }, }, requestBody: Parameters.grantAccessData, queryParameters: [Parameters.apiVersion1], @@ -877,15 +866,14 @@ const grantAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const revokeAccessOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}/endGetAccess", httpMethod: "POST", responses: { 200: {}, 201: {}, 202: {}, 204: {} }, queryParameters: [Parameters.apiVersion1], @@ -893,40 +881,40 @@ const revokeAccessOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.snapshotName + Parameters.snapshotName, ], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SnapshotList - } + bodyMapper: Mappers.SnapshotList, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts index bb3617823018..3af7d3524614 100644 --- a/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operations/sshPublicKeys.ts @@ -32,7 +32,7 @@ import { SshPublicKeysGenerateKeyPairOptionalParams, SshPublicKeysGenerateKeyPairResponse, SshPublicKeysListBySubscriptionNextResponse, - SshPublicKeysListByResourceGroupNextResponse + SshPublicKeysListByResourceGroupNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { * @param options The options parameters. */ public listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -69,13 +69,13 @@ export class SshPublicKeysImpl implements SshPublicKeys { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: SshPublicKeysListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SshPublicKeysListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +96,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { } private async *listBySubscriptionPagingAll( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -111,7 +111,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ public listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -128,16 +128,16 @@ export class SshPublicKeysImpl implements SshPublicKeys { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: SshPublicKeysListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: SshPublicKeysListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -152,7 +152,7 @@ export class SshPublicKeysImpl implements SshPublicKeys { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -163,11 +163,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -179,11 +179,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { * @param options The options parameters. */ private _listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } @@ -195,11 +195,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ private _listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -214,11 +214,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyResource, - options?: SshPublicKeysCreateOptionalParams + options?: SshPublicKeysCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -233,11 +233,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyUpdateResource, - options?: SshPublicKeysUpdateOptionalParams + options?: SshPublicKeysUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -250,11 +250,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { delete( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysDeleteOptionalParams + options?: SshPublicKeysDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -267,11 +267,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { get( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGetOptionalParams + options?: SshPublicKeysGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - getOperationSpec + getOperationSpec, ); } @@ -286,11 +286,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { generateKeyPair( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGenerateKeyPairOptionalParams + options?: SshPublicKeysGenerateKeyPairOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, sshPublicKeyName, options }, - generateKeyPairOperationSpec + generateKeyPairOperationSpec, ); } @@ -301,11 +301,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { */ private _listBySubscriptionNext( nextLink: string, - options?: SshPublicKeysListBySubscriptionNextOptionalParams + options?: SshPublicKeysListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } @@ -318,11 +318,11 @@ export class SshPublicKeysImpl implements SshPublicKeys { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: SshPublicKeysListByResourceGroupNextOptionalParams + options?: SshPublicKeysListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -330,57 +330,54 @@ export class SshPublicKeysImpl implements SshPublicKeys { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/sshPublicKeys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, 201: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters19, queryParameters: [Parameters.apiVersion], @@ -388,23 +385,22 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters20, queryParameters: [Parameters.apiVersion], @@ -412,66 +408,63 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyResource + bodyMapper: Mappers.SshPublicKeyResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const generateKeyPairOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}/generateKeyPair", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SshPublicKeyGenerateKeyPairResult + bodyMapper: Mappers.SshPublicKeyGenerateKeyPairResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters21, queryParameters: [Parameters.apiVersion], @@ -479,48 +472,48 @@ const generateKeyPairOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.sshPublicKeyName + Parameters.sshPublicKeyName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SshPublicKeysGroupListResult + bodyMapper: Mappers.SshPublicKeysGroupListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/usageOperations.ts b/sdk/compute/arm-compute/src/operations/usageOperations.ts index c554e62731ef..b10c18f706ab 100644 --- a/sdk/compute/arm-compute/src/operations/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operations/usageOperations.ts @@ -18,7 +18,7 @@ import { UsageListNextOptionalParams, UsageListOptionalParams, UsageListResponse, - UsageListNextResponse + UsageListNextResponse, } from "../models"; /// @@ -42,7 +42,7 @@ export class UsageOperationsImpl implements UsageOperations { */ public list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -57,14 +57,14 @@ export class UsageOperationsImpl implements UsageOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: UsageListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: UsageListResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +86,7 @@ export class UsageOperationsImpl implements UsageOperations { private async *listPagingAll( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -101,11 +101,11 @@ export class UsageOperationsImpl implements UsageOperations { */ private _list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -118,11 +118,11 @@ export class UsageOperationsImpl implements UsageOperations { private _listNext( location: string, nextLink: string, - options?: UsageListNextOptionalParams + options?: UsageListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -130,43 +130,42 @@ export class UsageOperationsImpl implements UsageOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/usages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListUsagesResult + bodyMapper: Mappers.ListUsagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListUsagesResult + bodyMapper: Mappers.ListUsagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts index 8d337c4325b7..64fc1610910d 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensionImages.ts @@ -17,12 +17,13 @@ import { VirtualMachineExtensionImagesListTypesOptionalParams, VirtualMachineExtensionImagesListTypesResponse, VirtualMachineExtensionImagesListVersionsOptionalParams, - VirtualMachineExtensionImagesListVersionsResponse + VirtualMachineExtensionImagesListVersionsResponse, } from "../models"; /** Class containing VirtualMachineExtensionImages operations. */ export class VirtualMachineExtensionImagesImpl - implements VirtualMachineExtensionImages { + implements VirtualMachineExtensionImages +{ private readonly client: ComputeManagementClient; /** @@ -46,11 +47,11 @@ export class VirtualMachineExtensionImagesImpl publisherName: string, typeParam: string, version: string, - options?: VirtualMachineExtensionImagesGetOptionalParams + options?: VirtualMachineExtensionImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, typeParam, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -63,11 +64,11 @@ export class VirtualMachineExtensionImagesImpl listTypes( location: string, publisherName: string, - options?: VirtualMachineExtensionImagesListTypesOptionalParams + options?: VirtualMachineExtensionImagesListTypesOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, options }, - listTypesOperationSpec + listTypesOperationSpec, ); } @@ -82,11 +83,11 @@ export class VirtualMachineExtensionImagesImpl location: string, publisherName: string, typeParam: string, - options?: VirtualMachineExtensionImagesListVersionsOptionalParams + options?: VirtualMachineExtensionImagesListVersionsOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, typeParam, options }, - listVersionsOperationSpec + listVersionsOperationSpec, ); } } @@ -94,16 +95,15 @@ export class VirtualMachineExtensionImagesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtensionImage + bodyMapper: Mappers.VirtualMachineExtensionImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -112,14 +112,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.version, - Parameters.typeParam + Parameters.typeParam, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listTypesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types", httpMethod: "GET", responses: { 200: { @@ -129,29 +128,28 @@ const listTypesOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionImage" - } - } - } - } + className: "VirtualMachineExtensionImage", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publisherName + Parameters.publisherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listVersionsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions", httpMethod: "GET", responses: { 200: { @@ -161,29 +159,29 @@ const listVersionsOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineExtensionImage" - } - } - } - } + className: "VirtualMachineExtensionImage", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.typeParam + Parameters.typeParam, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts index 860d8eca27ab..bdd634d670df 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineExtensions.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,7 +28,7 @@ import { VirtualMachineExtensionsGetOptionalParams, VirtualMachineExtensionsGetResponse, VirtualMachineExtensionsListOptionalParams, - VirtualMachineExtensionsListResponse + VirtualMachineExtensionsListResponse, } from "../models"; /** Class containing VirtualMachineExtensions operations. */ @@ -56,7 +56,7 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -65,21 +65,20 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -88,8 +87,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -97,8 +96,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -109,16 +108,16 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName, vmExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -137,14 +136,14 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -162,7 +161,7 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -171,21 +170,20 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -194,8 +192,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -203,8 +201,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -215,16 +213,16 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName, vmExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -243,14 +241,14 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -266,25 +264,24 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -293,8 +290,8 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -302,19 +299,19 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, vmExtensionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -331,13 +328,13 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmName, vmExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -353,11 +350,11 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsGetOptionalParams + options?: VirtualMachineExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, vmExtensionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -370,11 +367,11 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { list( resourceGroupName: string, vmName: string, - options?: VirtualMachineExtensionsListOptionalParams + options?: VirtualMachineExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listOperationSpec + listOperationSpec, ); } } @@ -382,25 +379,24 @@ export class VirtualMachineExtensionsImpl implements VirtualMachineExtensions { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters4, queryParameters: [Parameters.apiVersion], @@ -409,32 +405,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters5, queryParameters: [Parameters.apiVersion], @@ -443,15 +438,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -459,8 +453,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -468,22 +462,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtension + bodyMapper: Mappers.VirtualMachineExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -491,30 +484,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmExtensionName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineExtensionsListResult + bodyMapper: Mappers.VirtualMachineExtensionsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts index b45de23a25ba..ca8cbb85a692 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImages.ts @@ -23,7 +23,7 @@ import { VirtualMachineImagesListSkusOptionalParams, VirtualMachineImagesListSkusResponse, VirtualMachineImagesListByEdgeZoneOptionalParams, - VirtualMachineImagesListByEdgeZoneResponse + VirtualMachineImagesListByEdgeZoneResponse, } from "../models"; /** Class containing VirtualMachineImages operations. */ @@ -53,11 +53,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { offer: string, skus: string, version: string, - options?: VirtualMachineImagesGetOptionalParams + options?: VirtualMachineImagesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, skus, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -75,11 +75,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesListOptionalParams + options?: VirtualMachineImagesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, skus, options }, - listOperationSpec + listOperationSpec, ); } @@ -92,11 +92,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { listOffers( location: string, publisherName: string, - options?: VirtualMachineImagesListOffersOptionalParams + options?: VirtualMachineImagesListOffersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, options }, - listOffersOperationSpec + listOffersOperationSpec, ); } @@ -107,11 +107,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { */ listPublishers( location: string, - options?: VirtualMachineImagesListPublishersOptionalParams + options?: VirtualMachineImagesListPublishersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listPublishersOperationSpec + listPublishersOperationSpec, ); } @@ -126,11 +126,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { location: string, publisherName: string, offer: string, - options?: VirtualMachineImagesListSkusOptionalParams + options?: VirtualMachineImagesListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, publisherName, offer, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } @@ -143,11 +143,11 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { listByEdgeZone( location: string, edgeZone: string, - options?: VirtualMachineImagesListByEdgeZoneOptionalParams + options?: VirtualMachineImagesListByEdgeZoneOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, options }, - listByEdgeZoneOperationSpec + listByEdgeZoneOperationSpec, ); } } @@ -155,16 +155,15 @@ export class VirtualMachineImagesImpl implements VirtualMachineImages { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineImage + bodyMapper: Mappers.VirtualMachineImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -174,14 +173,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.publisherName, Parameters.offer, Parameters.skus, - Parameters.version + Parameters.version, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", httpMethod: "GET", responses: { 200: { @@ -191,21 +189,21 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, @@ -213,14 +211,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.offer, - Parameters.skus + Parameters.skus, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOffersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers", httpMethod: "GET", responses: { 200: { @@ -230,29 +227,28 @@ const listOffersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.publisherName + Parameters.publisherName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPublishersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers", httpMethod: "GET", responses: { 200: { @@ -262,28 +258,27 @@ const listPublishersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.location1 + Parameters.location1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", httpMethod: "GET", responses: { 200: { @@ -293,15 +288,15 @@ const listSkusOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -309,30 +304,29 @@ const listSkusOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.offer + Parameters.offer, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByEdgeZoneOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/vmimages", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VmImagesInEdgeZoneListResult + bodyMapper: Mappers.VmImagesInEdgeZoneListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts index b0e5e0614c4b..173bf75ce5e2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineImagesEdgeZone.ts @@ -21,12 +21,13 @@ import { VirtualMachineImagesEdgeZoneListPublishersOptionalParams, VirtualMachineImagesEdgeZoneListPublishersResponse, VirtualMachineImagesEdgeZoneListSkusOptionalParams, - VirtualMachineImagesEdgeZoneListSkusResponse + VirtualMachineImagesEdgeZoneListSkusResponse, } from "../models"; /** Class containing VirtualMachineImagesEdgeZone operations. */ export class VirtualMachineImagesEdgeZoneImpl - implements VirtualMachineImagesEdgeZone { + implements VirtualMachineImagesEdgeZone +{ private readonly client: ComputeManagementClient; /** @@ -54,11 +55,11 @@ export class VirtualMachineImagesEdgeZoneImpl offer: string, skus: string, version: string, - options?: VirtualMachineImagesEdgeZoneGetOptionalParams + options?: VirtualMachineImagesEdgeZoneGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, skus, version, options }, - getOperationSpec + getOperationSpec, ); } @@ -78,11 +79,11 @@ export class VirtualMachineImagesEdgeZoneImpl publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesEdgeZoneListOptionalParams + options?: VirtualMachineImagesEdgeZoneListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, skus, options }, - listOperationSpec + listOperationSpec, ); } @@ -97,11 +98,11 @@ export class VirtualMachineImagesEdgeZoneImpl location: string, edgeZone: string, publisherName: string, - options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams + options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, options }, - listOffersOperationSpec + listOffersOperationSpec, ); } @@ -114,11 +115,11 @@ export class VirtualMachineImagesEdgeZoneImpl listPublishers( location: string, edgeZone: string, - options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams + options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, options }, - listPublishersOperationSpec + listPublishersOperationSpec, ); } @@ -136,11 +137,11 @@ export class VirtualMachineImagesEdgeZoneImpl edgeZone: string, publisherName: string, offer: string, - options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams + options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, edgeZone, publisherName, offer, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } } @@ -148,16 +149,15 @@ export class VirtualMachineImagesEdgeZoneImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions/{version}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineImage + bodyMapper: Mappers.VirtualMachineImage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -168,14 +168,13 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.offer, Parameters.skus, Parameters.version, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus/{skus}/versions", httpMethod: "GET", responses: { 200: { @@ -185,21 +184,21 @@ const listOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.top, - Parameters.orderby + Parameters.orderby, ], urlParameters: [ Parameters.$host, @@ -208,14 +207,13 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.publisherName, Parameters.offer, Parameters.skus, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOffersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers", httpMethod: "GET", responses: { 200: { @@ -225,15 +223,15 @@ const listOffersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -241,14 +239,13 @@ const listOffersOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.location1, Parameters.publisherName, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listPublishersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers", httpMethod: "GET", responses: { 200: { @@ -258,29 +255,28 @@ const listPublishersOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.location1, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/edgeZones/{edgeZone}/publishers/{publisherName}/artifacttypes/vmimage/offers/{offer}/skus", httpMethod: "GET", responses: { 200: { @@ -290,15 +286,15 @@ const listSkusOperationSpec: coreClient.OperationSpec = { element: { type: { name: "Composite", - className: "VirtualMachineImageResource" - } - } - } - } + className: "VirtualMachineImageResource", + }, + }, + }, + }, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -307,8 +303,8 @@ const listSkusOperationSpec: coreClient.OperationSpec = { Parameters.location1, Parameters.publisherName, Parameters.offer, - Parameters.edgeZone + Parameters.edgeZone, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts index 53fc4f8f474e..31951e6780f9 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineRunCommands.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -39,13 +39,14 @@ import { VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, VirtualMachineRunCommandsGetByVirtualMachineResponse, VirtualMachineRunCommandsListNextResponse, - VirtualMachineRunCommandsListByVirtualMachineNextResponse + VirtualMachineRunCommandsListByVirtualMachineNextResponse, } from "../models"; /// /** Class containing VirtualMachineRunCommands operations. */ export class VirtualMachineRunCommandsImpl - implements VirtualMachineRunCommands { + implements VirtualMachineRunCommands +{ private readonly client: ComputeManagementClient; /** @@ -63,7 +64,7 @@ export class VirtualMachineRunCommandsImpl */ public list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -78,14 +79,14 @@ export class VirtualMachineRunCommandsImpl throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: VirtualMachineRunCommandsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineRunCommandsListResponse; let continuationToken = settings?.continuationToken; @@ -107,7 +108,7 @@ export class VirtualMachineRunCommandsImpl private async *listPagingAll( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -123,12 +124,12 @@ export class VirtualMachineRunCommandsImpl public listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByVirtualMachinePagingAll( resourceGroupName, vmName, - options + options, ); return { next() { @@ -145,9 +146,9 @@ export class VirtualMachineRunCommandsImpl resourceGroupName, vmName, options, - settings + settings, ); - } + }, }; } @@ -155,7 +156,7 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineRunCommandsListByVirtualMachineResponse; let continuationToken = settings?.continuationToken; @@ -163,7 +164,7 @@ export class VirtualMachineRunCommandsImpl result = await this._listByVirtualMachine( resourceGroupName, vmName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -175,7 +176,7 @@ export class VirtualMachineRunCommandsImpl resourceGroupName, vmName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -187,12 +188,12 @@ export class VirtualMachineRunCommandsImpl private async *listByVirtualMachinePagingAll( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByVirtualMachinePagingPage( resourceGroupName, vmName, - options + options, )) { yield* page; } @@ -205,11 +206,11 @@ export class VirtualMachineRunCommandsImpl */ private _list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } @@ -222,11 +223,11 @@ export class VirtualMachineRunCommandsImpl get( location: string, commandId: string, - options?: VirtualMachineRunCommandsGetOptionalParams + options?: VirtualMachineRunCommandsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, commandId, options }, - getOperationSpec + getOperationSpec, ); } @@ -243,7 +244,7 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -252,21 +253,20 @@ export class VirtualMachineRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -275,8 +275,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -284,22 +284,22 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, runCommand, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineRunCommandsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -318,14 +318,14 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -343,7 +343,7 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -352,21 +352,20 @@ export class VirtualMachineRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -375,8 +374,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -384,22 +383,22 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, runCommand, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineRunCommandsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -418,14 +417,14 @@ export class VirtualMachineRunCommandsImpl vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -441,25 +440,24 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -468,8 +466,8 @@ export class VirtualMachineRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -477,19 +475,19 @@ export class VirtualMachineRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, runCommandName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -506,13 +504,13 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmName, runCommandName, - options + options, ); return poller.pollUntilDone(); } @@ -528,11 +526,11 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, runCommandName, options }, - getByVirtualMachineOperationSpec + getByVirtualMachineOperationSpec, ); } @@ -545,11 +543,11 @@ export class VirtualMachineRunCommandsImpl private _listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listByVirtualMachineOperationSpec + listByVirtualMachineOperationSpec, ); } @@ -562,11 +560,11 @@ export class VirtualMachineRunCommandsImpl private _listNext( location: string, nextLink: string, - options?: VirtualMachineRunCommandsListNextOptionalParams + options?: VirtualMachineRunCommandsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -581,11 +579,11 @@ export class VirtualMachineRunCommandsImpl resourceGroupName: string, vmName: string, nextLink: string, - options?: VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, nextLink, options }, - listByVirtualMachineNextOperationSpec + listByVirtualMachineNextOperationSpec, ); } } @@ -593,62 +591,59 @@ export class VirtualMachineRunCommandsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandListResult - } + bodyMapper: Mappers.RunCommandListResult, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/runCommands/{commandId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandDocument - } + bodyMapper: Mappers.RunCommandDocument, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.commandId + Parameters.commandId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand, queryParameters: [Parameters.apiVersion], @@ -657,32 +652,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand1, queryParameters: [Parameters.apiVersion], @@ -691,15 +685,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "DELETE", responses: { 200: {}, @@ -707,8 +700,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -716,22 +709,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getByVirtualMachineOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -739,68 +731,67 @@ const getByVirtualMachineOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmName, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listByVirtualMachineOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RunCommandListResult - } + bodyMapper: Mappers.RunCommandListResult, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listByVirtualMachineNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts index 7611976b9b7f..0f8c8b2e6604 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetExtensions.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { VirtualMachineScaleSetExtensionsDeleteOptionalParams, VirtualMachineScaleSetExtensionsGetOptionalParams, VirtualMachineScaleSetExtensionsGetResponse, - VirtualMachineScaleSetExtensionsListNextResponse + VirtualMachineScaleSetExtensionsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetExtensions operations. */ export class VirtualMachineScaleSetExtensionsImpl - implements VirtualMachineScaleSetExtensions { + implements VirtualMachineScaleSetExtensions +{ private readonly client: ComputeManagementClient; /** @@ -58,7 +59,7 @@ export class VirtualMachineScaleSetExtensionsImpl public list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, vmScaleSetName, options); return { @@ -76,9 +77,9 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -86,7 +87,7 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetExtensionsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetExtensionsListResponse; let continuationToken = settings?.continuationToken; @@ -102,7 +103,7 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -114,12 +115,12 @@ export class VirtualMachineScaleSetExtensionsImpl private async *listPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -138,7 +139,7 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -147,21 +148,20 @@ export class VirtualMachineScaleSetExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -170,8 +170,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -179,8 +179,8 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -191,16 +191,16 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -219,14 +219,14 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -244,7 +244,7 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -253,21 +253,20 @@ export class VirtualMachineScaleSetExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -276,8 +275,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -285,8 +284,8 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -297,16 +296,16 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -325,14 +324,14 @@ export class VirtualMachineScaleSetExtensionsImpl vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, vmssExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -348,25 +347,24 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -375,8 +373,8 @@ export class VirtualMachineScaleSetExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -384,19 +382,19 @@ export class VirtualMachineScaleSetExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -413,13 +411,13 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, vmssExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -435,11 +433,11 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsGetOptionalParams + options?: VirtualMachineScaleSetExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, vmssExtensionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -452,11 +450,11 @@ export class VirtualMachineScaleSetExtensionsImpl private _list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - listOperationSpec + listOperationSpec, ); } @@ -471,11 +469,11 @@ export class VirtualMachineScaleSetExtensionsImpl resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetExtensionsListNextOptionalParams + options?: VirtualMachineScaleSetExtensionsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -483,25 +481,24 @@ export class VirtualMachineScaleSetExtensionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters, queryParameters: [Parameters.apiVersion], @@ -510,32 +507,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters1, queryParameters: [Parameters.apiVersion], @@ -544,15 +540,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -560,8 +555,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -569,22 +564,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtension + bodyMapper: Mappers.VirtualMachineScaleSetExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -592,51 +586,50 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.vmssExtensionName + Parameters.vmssExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult + bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult + bodyMapper: Mappers.VirtualMachineScaleSetExtensionListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts index 58b6cc1bf29f..48140f02b3f5 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetRollingUpgrades.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -22,12 +22,13 @@ import { VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, - VirtualMachineScaleSetRollingUpgradesGetLatestResponse + VirtualMachineScaleSetRollingUpgradesGetLatestResponse, } from "../models"; /** Class containing VirtualMachineScaleSetRollingUpgrades operations. */ export class VirtualMachineScaleSetRollingUpgradesImpl - implements VirtualMachineScaleSetRollingUpgrades { + implements VirtualMachineScaleSetRollingUpgrades +{ private readonly client: ComputeManagementClient; /** @@ -47,25 +48,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginCancel( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -74,8 +74,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -83,19 +83,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: cancelOperationSpec + spec: cancelOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -110,12 +110,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginCancelAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise { const poller = await this.beginCancel( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -131,25 +131,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartOSUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -158,8 +157,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -167,19 +166,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startOSUpgradeOperationSpec + spec: startOSUpgradeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -196,12 +195,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartOSUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise { const poller = await this.beginStartOSUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -217,25 +216,24 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartExtensionUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -244,8 +242,8 @@ export class VirtualMachineScaleSetRollingUpgradesImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -253,19 +251,19 @@ export class VirtualMachineScaleSetRollingUpgradesImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startExtensionUpgradeOperationSpec + spec: startExtensionUpgradeOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -282,12 +280,12 @@ export class VirtualMachineScaleSetRollingUpgradesImpl async beginStartExtensionUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise { const poller = await this.beginStartExtensionUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -301,11 +299,11 @@ export class VirtualMachineScaleSetRollingUpgradesImpl getLatest( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getLatestOperationSpec + getLatestOperationSpec, ); } } @@ -313,8 +311,7 @@ export class VirtualMachineScaleSetRollingUpgradesImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const cancelOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/cancel", httpMethod: "POST", responses: { 200: {}, @@ -322,22 +319,21 @@ const cancelOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOSUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osRollingUpgrade", httpMethod: "POST", responses: { 200: {}, @@ -345,22 +341,21 @@ const startOSUpgradeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startExtensionUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensionRollingUpgrade", httpMethod: "POST", responses: { 200: {}, @@ -368,38 +363,37 @@ const startExtensionUpgradeOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getLatestOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.RollingUpgradeStatusInfo + bodyMapper: Mappers.RollingUpgradeStatusInfo, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts index c58d77d235f9..1881eb65e082 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMExtensions.ts @@ -14,7 +14,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -28,12 +28,13 @@ import { VirtualMachineScaleSetVMExtensionsGetOptionalParams, VirtualMachineScaleSetVMExtensionsGetResponse, VirtualMachineScaleSetVMExtensionsListOptionalParams, - VirtualMachineScaleSetVMExtensionsListResponse + VirtualMachineScaleSetVMExtensionsListResponse, } from "../models"; /** Class containing VirtualMachineScaleSetVMExtensions operations. */ export class VirtualMachineScaleSetVMExtensionsImpl - implements VirtualMachineScaleSetVMExtensions { + implements VirtualMachineScaleSetVMExtensions +{ private readonly client: ComputeManagementClient; /** @@ -59,7 +60,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -68,21 +69,20 @@ export class VirtualMachineScaleSetVMExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -91,8 +91,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -100,8 +100,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -113,16 +113,16 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMExtensionsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -143,7 +143,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -151,7 +151,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -171,7 +171,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -180,21 +180,20 @@ export class VirtualMachineScaleSetVMExtensionsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -203,8 +202,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -212,8 +211,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -225,16 +224,16 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMExtensionsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -255,7 +254,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -263,7 +262,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl instanceId, vmExtensionName, extensionParameters, - options + options, ); return poller.pollUntilDone(); } @@ -281,25 +280,24 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -308,8 +306,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -317,8 +315,8 @@ export class VirtualMachineScaleSetVMExtensionsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -329,13 +327,13 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName, instanceId, vmExtensionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -354,14 +352,14 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, vmExtensionName, - options + options, ); return poller.pollUntilDone(); } @@ -379,7 +377,7 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams + options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -387,9 +385,9 @@ export class VirtualMachineScaleSetVMExtensionsImpl vmScaleSetName, instanceId, vmExtensionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -404,11 +402,11 @@ export class VirtualMachineScaleSetVMExtensionsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMExtensionsListOptionalParams + options?: VirtualMachineScaleSetVMExtensionsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - listOperationSpec + listOperationSpec, ); } } @@ -416,25 +414,24 @@ export class VirtualMachineScaleSetVMExtensionsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters2, queryParameters: [Parameters.apiVersion], @@ -444,32 +441,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.extensionParameters3, queryParameters: [Parameters.apiVersion], @@ -479,15 +475,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "DELETE", responses: { 200: {}, @@ -495,8 +490,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -505,22 +500,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtension + bodyMapper: Mappers.VirtualMachineScaleSetVMExtension, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -529,22 +523,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.vmExtensionName + Parameters.vmExtensionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMExtensionsListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMExtensionsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -552,8 +545,8 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts index 763b5aba3561..b251b64a5e62 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMRunCommands.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -32,13 +32,14 @@ import { VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, VirtualMachineScaleSetVMRunCommandsGetOptionalParams, VirtualMachineScaleSetVMRunCommandsGetResponse, - VirtualMachineScaleSetVMRunCommandsListNextResponse + VirtualMachineScaleSetVMRunCommandsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetVMRunCommands operations. */ export class VirtualMachineScaleSetVMRunCommandsImpl - implements VirtualMachineScaleSetVMRunCommands { + implements VirtualMachineScaleSetVMRunCommands +{ private readonly client: ComputeManagementClient; /** @@ -60,13 +61,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return { next() { @@ -84,9 +85,9 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, options, - settings + settings, ); - } + }, }; } @@ -95,7 +96,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetVMRunCommandsListResponse; let continuationToken = settings?.continuationToken; @@ -104,7 +105,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName, vmScaleSetName, instanceId, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -117,7 +118,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -130,13 +131,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, vmScaleSetName, instanceId, - options + options, )) { yield* page; } @@ -157,7 +158,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -166,21 +167,20 @@ export class VirtualMachineScaleSetVMRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -189,8 +189,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -198,8 +198,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -211,16 +211,16 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMRunCommandsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -241,7 +241,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, @@ -249,7 +249,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -269,7 +269,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -278,21 +278,20 @@ export class VirtualMachineScaleSetVMRunCommandsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -301,8 +300,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -310,8 +309,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -323,16 +322,16 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMRunCommandsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -353,7 +352,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, @@ -361,7 +360,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl instanceId, runCommandName, runCommand, - options + options, ); return poller.pollUntilDone(); } @@ -379,25 +378,24 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -406,8 +404,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -415,8 +413,8 @@ export class VirtualMachineScaleSetVMRunCommandsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -427,13 +425,13 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, runCommandName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -452,14 +450,14 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, runCommandName, - options + options, ); return poller.pollUntilDone(); } @@ -477,7 +475,7 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -485,9 +483,9 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName, instanceId, runCommandName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -502,11 +500,11 @@ export class VirtualMachineScaleSetVMRunCommandsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - listOperationSpec + listOperationSpec, ); } @@ -523,11 +521,11 @@ export class VirtualMachineScaleSetVMRunCommandsImpl vmScaleSetName: string, instanceId: string, nextLink: string, - options?: VirtualMachineScaleSetVMRunCommandsListNextOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -535,25 +533,24 @@ export class VirtualMachineScaleSetVMRunCommandsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand, queryParameters: [Parameters.apiVersion], @@ -563,32 +560,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 201: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 202: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, 204: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.runCommand1, queryParameters: [Parameters.apiVersion], @@ -598,15 +594,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "DELETE", responses: { 200: {}, @@ -614,8 +609,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -624,22 +619,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommand + bodyMapper: Mappers.VirtualMachineRunCommand, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -648,22 +642,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.vmScaleSetName, Parameters.instanceId, - Parameters.runCommandName + Parameters.runCommandName, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand1], urlParameters: [ @@ -671,21 +664,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineRunCommandsListResult + bodyMapper: Mappers.VirtualMachineRunCommandsListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -693,8 +686,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.nextLink, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept1], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts index eb09a451ec96..8a18e8a731cc 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSetVMs.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -50,13 +50,14 @@ import { RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, VirtualMachineScaleSetVMsRunCommandResponse, - VirtualMachineScaleSetVMsListNextResponse + VirtualMachineScaleSetVMsListNextResponse, } from "../models"; /// /** Class containing VirtualMachineScaleSetVMs operations. */ export class VirtualMachineScaleSetVMsImpl - implements VirtualMachineScaleSetVMs { + implements VirtualMachineScaleSetVMs +{ private readonly client: ComputeManagementClient; /** @@ -76,12 +77,12 @@ export class VirtualMachineScaleSetVMsImpl public list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, virtualMachineScaleSetName, - options + options, ); return { next() { @@ -98,9 +99,9 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName, virtualMachineScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -108,7 +109,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, virtualMachineScaleSetName: string, options?: VirtualMachineScaleSetVMsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetVMsListResponse; let continuationToken = settings?.continuationToken; @@ -116,7 +117,7 @@ export class VirtualMachineScaleSetVMsImpl result = await this._list( resourceGroupName, virtualMachineScaleSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -128,7 +129,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName, virtualMachineScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -140,12 +141,12 @@ export class VirtualMachineScaleSetVMsImpl private async *listPagingAll( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, virtualMachineScaleSetName, - options + options, )) { yield* page; } @@ -162,25 +163,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -189,8 +189,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -198,19 +198,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -227,13 +227,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -250,25 +250,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -277,8 +276,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -286,19 +285,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: reimageAllOperationSpec + spec: reimageAllOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -316,13 +315,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise { const poller = await this.beginReimageAll( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -338,7 +337,7 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -347,21 +346,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -370,8 +368,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -379,22 +377,22 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: approveRollingUpgradeOperationSpec + spec: approveRollingUpgradeOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsApproveRollingUpgradeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -411,13 +409,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise { const poller = await this.beginApproveRollingUpgrade( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -435,25 +433,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -462,8 +459,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -471,19 +468,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -502,13 +499,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -526,7 +523,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -535,21 +532,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -558,8 +554,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -567,8 +563,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -579,16 +575,16 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -607,14 +603,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -630,25 +626,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -657,8 +652,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -666,19 +661,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -695,13 +690,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -717,11 +712,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetOptionalParams + options?: VirtualMachineScaleSetVMsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - getOperationSpec + getOperationSpec, ); } @@ -736,11 +731,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -753,11 +748,11 @@ export class VirtualMachineScaleSetVMsImpl private _list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineScaleSetName, options }, - listOperationSpec + listOperationSpec, ); } @@ -774,25 +769,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -801,8 +795,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -810,19 +804,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -841,13 +835,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -863,25 +857,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -890,8 +883,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -899,19 +892,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -928,13 +921,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -950,25 +943,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -977,8 +969,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -986,19 +978,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1015,13 +1007,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -1038,25 +1030,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1065,8 +1056,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1074,19 +1065,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1104,13 +1095,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -1126,11 +1117,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - retrieveBootDiagnosticsDataOperationSpec + retrieveBootDiagnosticsDataOperationSpec, ); } @@ -1145,25 +1136,24 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1172,8 +1162,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1181,19 +1171,19 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, instanceId, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1210,13 +1200,13 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmScaleSetName, instanceId, - options + options, ); return poller.pollUntilDone(); } @@ -1232,11 +1222,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams + options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, instanceId, options }, - simulateEvictionOperationSpec + simulateEvictionOperationSpec, ); } @@ -1254,7 +1244,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1263,21 +1253,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1286,8 +1275,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1295,8 +1284,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1307,9 +1296,9 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: attachDetachDataDisksOperationSpec + spec: attachDetachDataDisksOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, @@ -1317,7 +1306,7 @@ export class VirtualMachineScaleSetVMsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1337,14 +1326,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise { const poller = await this.beginAttachDetachDataDisks( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1362,7 +1351,7 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1371,21 +1360,20 @@ export class VirtualMachineScaleSetVMsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1394,8 +1382,8 @@ export class VirtualMachineScaleSetVMsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1403,8 +1391,8 @@ export class VirtualMachineScaleSetVMsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -1415,9 +1403,9 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName, instanceId, parameters, - options + options, }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetVMsRunCommandResponse, @@ -1425,7 +1413,7 @@ export class VirtualMachineScaleSetVMsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1444,14 +1432,14 @@ export class VirtualMachineScaleSetVMsImpl vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, vmScaleSetName, instanceId, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1467,11 +1455,11 @@ export class VirtualMachineScaleSetVMsImpl resourceGroupName: string, virtualMachineScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetVMsListNextOptionalParams + options?: VirtualMachineScaleSetVMsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, virtualMachineScaleSetName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -1479,8 +1467,7 @@ export class VirtualMachineScaleSetVMsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -1488,8 +1475,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmScaleSetVMReimageInput, queryParameters: [Parameters.apiVersion], @@ -1498,15 +1485,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/reimageall", httpMethod: "POST", responses: { 200: {}, @@ -1514,8 +1500,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1523,35 +1509,34 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/approveRollingUpgrade", httpMethod: "POST", responses: { 200: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 201: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 202: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, 204: { headersMapper: - Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders + Mappers.VirtualMachineScaleSetVMsApproveRollingUpgradeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1559,14 +1544,13 @@ const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -1574,8 +1558,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1583,31 +1567,30 @@ const deallocateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -1616,20 +1599,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "DELETE", responses: { 200: {}, @@ -1637,8 +1619,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ @@ -1646,22 +1628,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVM + bodyMapper: Mappers.VirtualMachineScaleSetVM, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ @@ -1669,22 +1650,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMInstanceView + bodyMapper: Mappers.VirtualMachineScaleSetVMInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1692,41 +1672,39 @@ const getInstanceViewOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{virtualMachineScaleSetName}/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.expand1, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.virtualMachineScaleSetName + Parameters.virtualMachineScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -1734,8 +1712,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ @@ -1743,14 +1721,13 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/restart", httpMethod: "POST", responses: { 200: {}, @@ -1758,8 +1735,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1767,14 +1744,13 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/start", httpMethod: "POST", responses: { 200: {}, @@ -1782,8 +1758,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1791,14 +1767,13 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -1806,8 +1781,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1815,40 +1790,38 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/retrieveBootDiagnosticsData", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult + bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.sasUriExpirationTimeInMinutes + Parameters.sasUriExpirationTimeInMinutes, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -1856,8 +1829,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1865,20 +1838,19 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const simulateEvictionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/simulateEviction", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1886,31 +1858,30 @@ const simulateEvictionOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/attachDetachDataDisks", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 201: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 202: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 204: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -1919,29 +1890,28 @@ const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 204: { - bodyMapper: Mappers.RunCommandResult - } + bodyMapper: Mappers.RunCommandResult, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -1950,30 +1920,30 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.vmScaleSetName, - Parameters.instanceId + Parameters.instanceId, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetVMListResult + bodyMapper: Mappers.VirtualMachineScaleSetVMListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.virtualMachineScaleSetName + Parameters.virtualMachineScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts index c305e0a6841e..7e46bf7821f2 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineScaleSets.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -72,7 +72,7 @@ import { VirtualMachineScaleSetsListNextResponse, VirtualMachineScaleSetsListAllNextResponse, VirtualMachineScaleSetsListSkusNextResponse, - VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse + VirtualMachineScaleSetsGetOSUpgradeHistoryNextResponse, } from "../models"; /// @@ -95,7 +95,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ public listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByLocationPagingAll(location, options); return { @@ -110,14 +110,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listByLocationPagingPage(location, options, settings); - } + }, }; } private async *listByLocationPagingPage( location: string, options?: VirtualMachineScaleSetsListByLocationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListByLocationResponse; let continuationToken = settings?.continuationToken; @@ -132,7 +132,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._listByLocationNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -143,7 +143,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listByLocationPagingAll( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByLocationPagingPage(location, options)) { yield* page; @@ -157,7 +157,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ public list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -172,14 +172,14 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: VirtualMachineScaleSetsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListResponse; let continuationToken = settings?.continuationToken; @@ -194,7 +194,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -205,7 +205,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listPagingAll( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -219,7 +219,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { * @param options The options parameters. */ public listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -234,13 +234,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: VirtualMachineScaleSetsListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListAllResponse; let continuationToken = settings?.continuationToken; @@ -261,7 +261,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { } private async *listAllPagingAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -278,12 +278,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { public listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSkusPagingAll( resourceGroupName, vmScaleSetName, - options + options, ); return { next() { @@ -300,9 +300,9 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -310,7 +310,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsListSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsListSkusResponse; let continuationToken = settings?.continuationToken; @@ -326,7 +326,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -338,12 +338,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *listSkusPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSkusPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -358,12 +358,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { public listOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): PagedAsyncIterableIterator { const iter = this.getOSUpgradeHistoryPagingAll( resourceGroupName, vmScaleSetName, - options + options, ); return { next() { @@ -380,9 +380,9 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, options, - settings + settings, ); - } + }, }; } @@ -390,7 +390,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineScaleSetsGetOSUpgradeHistoryResponse; let continuationToken = settings?.continuationToken; @@ -398,7 +398,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { result = await this._getOSUpgradeHistory( resourceGroupName, vmScaleSetName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -410,7 +410,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName, vmScaleSetName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -422,12 +422,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private async *getOSUpgradeHistoryPagingAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): AsyncIterableIterator { for await (const page of this.getOSUpgradeHistoryPagingPage( resourceGroupName, vmScaleSetName, - options + options, )) { yield* page; } @@ -440,11 +440,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } @@ -459,7 +459,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -468,21 +468,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -491,8 +490,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -500,22 +499,22 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -532,13 +531,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -554,7 +553,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -563,21 +562,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -586,8 +584,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -595,22 +593,22 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -627,13 +625,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -647,25 +645,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDelete( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -674,8 +671,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -683,19 +680,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -710,12 +707,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeleteAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -729,11 +726,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { get( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOptionalParams + options?: VirtualMachineScaleSetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -748,25 +745,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeallocate( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -775,8 +771,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -784,19 +780,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -813,12 +809,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginDeallocateAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -834,25 +830,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -861,8 +856,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -870,19 +865,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, - spec: deleteInstancesOperationSpec + spec: deleteInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -899,13 +894,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise { const poller = await this.beginDeleteInstances( resourceGroupName, vmScaleSetName, vmInstanceIDs, - options + options, ); return poller.pollUntilDone(); } @@ -919,11 +914,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { getInstanceView( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getInstanceViewOperationSpec + getInstanceViewOperationSpec, ); } @@ -934,11 +929,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -949,7 +944,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { * @param options The options parameters. */ private _listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -964,11 +959,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - listSkusOperationSpec + listSkusOperationSpec, ); } @@ -981,11 +976,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _getOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, options }, - getOSUpgradeHistoryOperationSpec + getOSUpgradeHistoryOperationSpec, ); } @@ -1000,25 +995,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPowerOff( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1027,8 +1021,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1036,19 +1030,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1065,12 +1059,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPowerOffAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1084,25 +1078,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRestart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1111,8 +1104,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1120,19 +1113,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1147,12 +1140,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRestartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise { const poller = await this.beginRestart( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1166,25 +1159,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginStart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1193,8 +1185,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1202,19 +1194,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1229,12 +1221,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginStartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise { const poller = await this.beginStart( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1248,25 +1240,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReapply( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1275,8 +1266,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1284,20 +1275,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reapplyOperationSpec + spec: reapplyOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1312,12 +1303,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReapplyAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise { const poller = await this.beginReapply( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1332,25 +1323,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRedeploy( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1359,8 +1349,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1368,19 +1358,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1396,12 +1386,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginRedeployAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1418,25 +1408,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPerformMaintenance( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1445,8 +1434,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1454,19 +1443,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1484,12 +1473,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginPerformMaintenanceAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1505,25 +1494,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1532,8 +1520,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1541,19 +1529,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, vmInstanceIDs, options }, - spec: updateInstancesOperationSpec + spec: updateInstancesOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1570,13 +1558,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise { const poller = await this.beginUpdateInstances( resourceGroupName, vmScaleSetName, vmInstanceIDs, - options + options, ); return poller.pollUntilDone(); } @@ -1592,25 +1580,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimage( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1619,8 +1606,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1628,19 +1615,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1657,12 +1644,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise { const poller = await this.beginReimage( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1677,25 +1664,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1704,8 +1690,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1713,19 +1699,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: reimageAllOperationSpec + spec: reimageAllOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1741,12 +1727,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginReimageAllAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise { const poller = await this.beginReimageAll( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1760,7 +1746,7 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginApproveRollingUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1769,21 +1755,20 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1792,8 +1777,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1801,22 +1786,22 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, options }, - spec: approveRollingUpgradeOperationSpec + spec: approveRollingUpgradeOperationSpec, }); const poller = await createHttpPoller< VirtualMachineScaleSetsApproveRollingUpgradeResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1831,12 +1816,12 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { async beginApproveRollingUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise { const poller = await this.beginApproveRollingUpgrade( resourceGroupName, vmScaleSetName, - options + options, ); return poller.pollUntilDone(); } @@ -1853,13 +1838,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, - options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams - ): Promise< - VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - > { + options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, + ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, platformUpdateDomain, options }, - forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec + forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec, ); } @@ -1874,11 +1857,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VMScaleSetConvertToSinglePlacementGroupInput, - options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams + options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, parameters, options }, - convertToSinglePlacementGroupOperationSpec + convertToSinglePlacementGroupOperationSpec, ); } @@ -1893,25 +1876,24 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1920,8 +1902,8 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1929,19 +1911,19 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmScaleSetName, parameters, options }, - spec: setOrchestrationServiceStateOperationSpec + spec: setOrchestrationServiceStateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1958,13 +1940,13 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise { const poller = await this.beginSetOrchestrationServiceState( resourceGroupName, vmScaleSetName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1978,11 +1960,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listByLocationNext( location: string, nextLink: string, - options?: VirtualMachineScaleSetsListByLocationNextOptionalParams + options?: VirtualMachineScaleSetsListByLocationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listByLocationNextOperationSpec + listByLocationNextOperationSpec, ); } @@ -1995,11 +1977,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { private _listNext( resourceGroupName: string, nextLink: string, - options?: VirtualMachineScaleSetsListNextOptionalParams + options?: VirtualMachineScaleSetsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -2010,11 +1992,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { */ private _listAllNext( nextLink: string, - options?: VirtualMachineScaleSetsListAllNextOptionalParams + options?: VirtualMachineScaleSetsListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } @@ -2029,11 +2011,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetsListSkusNextOptionalParams + options?: VirtualMachineScaleSetsListSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - listSkusNextOperationSpec + listSkusNextOperationSpec, ); } @@ -2048,11 +2030,11 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, nextLink: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmScaleSetName, nextLink, options }, - getOSUpgradeHistoryNextOperationSpec + getOSUpgradeHistoryNextOperationSpec, ); } } @@ -2060,46 +2042,44 @@ export class VirtualMachineScaleSetsImpl implements VirtualMachineScaleSets { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -2107,37 +2087,36 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 201: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 202: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, 204: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -2145,20 +2124,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "DELETE", responses: { 200: {}, @@ -2166,44 +2144,42 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSet + bodyMapper: Mappers.VirtualMachineScaleSet, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -2211,8 +2187,8 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion, Parameters.hibernate], @@ -2220,15 +2196,14 @@ const deallocateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/delete", httpMethod: "POST", responses: { 200: {}, @@ -2236,8 +2211,8 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs1, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], @@ -2245,119 +2220,113 @@ const deleteInstancesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getInstanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetInstanceView + bodyMapper: Mappers.VirtualMachineScaleSetInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachineScaleSets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult + bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/skus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult + bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSUpgradeHistoryOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/osUpgradeHistory", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory + bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/poweroff", httpMethod: "POST", responses: { 200: {}, @@ -2365,8 +2334,8 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], @@ -2374,15 +2343,14 @@ const powerOffOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -2390,8 +2358,8 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2399,15 +2367,14 @@ const restartOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/start", httpMethod: "POST", responses: { 200: {}, @@ -2415,8 +2382,8 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2424,15 +2391,14 @@ const startOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reapplyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reapply", httpMethod: "POST", responses: { 200: {}, @@ -2440,22 +2406,21 @@ const reapplyOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -2463,8 +2428,8 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2472,15 +2437,14 @@ const redeployOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -2488,8 +2452,8 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2497,15 +2461,14 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateInstancesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/manualupgrade", httpMethod: "POST", responses: { 200: {}, @@ -2513,8 +2476,8 @@ const updateInstancesOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs1, queryParameters: [Parameters.apiVersion], @@ -2522,15 +2485,14 @@ const updateInstancesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -2538,8 +2500,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmScaleSetReimageInput, queryParameters: [Parameters.apiVersion], @@ -2547,15 +2509,14 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const reimageAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/reimageall", httpMethod: "POST", responses: { 200: {}, @@ -2563,8 +2524,8 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2572,32 +2533,35 @@ const reimageAllOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/approveRollingUpgrade", httpMethod: "POST", responses: { 200: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 201: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 202: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, 204: { - headersMapper: Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders + headersMapper: + Mappers.VirtualMachineScaleSetsApproveRollingUpgradeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.vmInstanceIDs, queryParameters: [Parameters.apiVersion], @@ -2605,48 +2569,47 @@ const approveRollingUpgradeOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; -const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", - httpMethod: "POST", - responses: { - 200: { - bodyMapper: Mappers.RecoveryWalkResponse +const forceRecoveryServiceFabricPlatformUpdateDomainWalkOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/forceRecoveryServiceFabricPlatformUpdateDomainWalk", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RecoveryWalkResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [ - Parameters.apiVersion, - Parameters.platformUpdateDomain, - Parameters.zone, - Parameters.placementGroupId - ], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.vmScaleSetName - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [ + Parameters.apiVersion, + Parameters.platformUpdateDomain, + Parameters.zone, + Parameters.placementGroupId, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.vmScaleSetName, + ], + headerParameters: [Parameters.accept], + serializer, + }; const convertToSinglePlacementGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/convertToSinglePlacementGroup", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -2654,15 +2617,14 @@ const convertToSinglePlacementGroupOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/setOrchestrationServiceState", httpMethod: "POST", responses: { 200: {}, @@ -2670,8 +2632,8 @@ const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -2679,110 +2641,110 @@ const setOrchestrationServiceStateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListResult + bodyMapper: Mappers.VirtualMachineScaleSetListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult + bodyMapper: Mappers.VirtualMachineScaleSetListWithLinkResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSkusNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult + bodyMapper: Mappers.VirtualMachineScaleSetListSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOSUpgradeHistoryNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory + bodyMapper: Mappers.VirtualMachineScaleSetListOSUpgradeHistory, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName, - Parameters.vmScaleSetName + Parameters.vmScaleSetName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts index ad6b8563010b..84db03ae75f5 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachineSizes.ts @@ -15,7 +15,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { VirtualMachineSize, VirtualMachineSizesListOptionalParams, - VirtualMachineSizesListResponse + VirtualMachineSizesListResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { */ public list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(location, options); return { @@ -54,14 +54,14 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(location, options, settings); - } + }, }; } private async *listPagingPage( location: string, options?: VirtualMachineSizesListOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachineSizesListResponse; result = await this._list(location, options); @@ -70,7 +70,7 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { private async *listPagingAll( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(location, options)) { yield* page; @@ -85,11 +85,11 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { */ private _list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listOperationSpec + listOperationSpec, ); } } @@ -97,23 +97,22 @@ export class VirtualMachineSizesImpl implements VirtualMachineSizes { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operations/virtualMachines.ts b/sdk/compute/arm-compute/src/operations/virtualMachines.ts index aae8dde2f61b..030ffa8c6a39 100644 --- a/sdk/compute/arm-compute/src/operations/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operations/virtualMachines.ts @@ -16,7 +16,7 @@ import { ComputeManagementClient } from "../computeManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -72,7 +72,7 @@ import { VirtualMachinesRunCommandResponse, VirtualMachinesListByLocationNextResponse, VirtualMachinesListNextResponse, - VirtualMachinesListAllNextResponse + VirtualMachinesListAllNextResponse, } from "../models"; /// @@ -95,7 +95,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByLocationPagingAll(location, options); return { @@ -110,14 +110,14 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listByLocationPagingPage(location, options, settings); - } + }, }; } private async *listByLocationPagingPage( location: string, options?: VirtualMachinesListByLocationOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListByLocationResponse; let continuationToken = settings?.continuationToken; @@ -132,7 +132,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listByLocationNext( location, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -143,7 +143,7 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listByLocationPagingAll( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByLocationPagingPage(location, options)) { yield* page; @@ -158,7 +158,7 @@ export class VirtualMachinesImpl implements VirtualMachines { */ public list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, options); return { @@ -173,14 +173,14 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(resourceGroupName, options, settings); - } + }, }; } private async *listPagingPage( resourceGroupName: string, options?: VirtualMachinesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListResponse; let continuationToken = settings?.continuationToken; @@ -195,7 +195,7 @@ export class VirtualMachinesImpl implements VirtualMachines { result = await this._listNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -206,7 +206,7 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listPagingAll( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(resourceGroupName, options)) { yield* page; @@ -219,7 +219,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ public listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAllPagingAll(options); return { @@ -234,13 +234,13 @@ export class VirtualMachinesImpl implements VirtualMachines { throw new Error("maxPageSize is not supported by this operation."); } return this.listAllPagingPage(options, settings); - } + }, }; } private async *listAllPagingPage( options?: VirtualMachinesListAllOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListAllResponse; let continuationToken = settings?.continuationToken; @@ -261,7 +261,7 @@ export class VirtualMachinesImpl implements VirtualMachines { } private async *listAllPagingAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAllPagingPage(options)) { yield* page; @@ -277,12 +277,12 @@ export class VirtualMachinesImpl implements VirtualMachines { public listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listAvailableSizesPagingAll( resourceGroupName, vmName, - options + options, ); return { next() { @@ -299,9 +299,9 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName, vmName, options, - settings + settings, ); - } + }, }; } @@ -309,7 +309,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, options?: VirtualMachinesListAvailableSizesOptionalParams, - _settings?: PageSettings + _settings?: PageSettings, ): AsyncIterableIterator { let result: VirtualMachinesListAvailableSizesResponse; result = await this._listAvailableSizes(resourceGroupName, vmName, options); @@ -319,12 +319,12 @@ export class VirtualMachinesImpl implements VirtualMachines { private async *listAvailableSizesPagingAll( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): AsyncIterableIterator { for await (const page of this.listAvailableSizesPagingPage( resourceGroupName, vmName, - options + options, )) { yield* page; } @@ -337,11 +337,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, options }, - listByLocationOperationSpec + listByLocationOperationSpec, ); } @@ -357,7 +357,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -366,21 +366,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -389,8 +388,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -398,15 +397,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: captureOperationSpec + spec: captureOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesCaptureResponse, @@ -414,7 +413,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -432,13 +431,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise { const poller = await this.beginCapture( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -455,7 +454,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -464,21 +463,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -487,8 +485,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -496,22 +494,22 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesCreateOrUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -529,13 +527,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -551,7 +549,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -560,21 +558,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -583,8 +580,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -592,22 +589,22 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -624,13 +621,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -644,25 +641,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDelete( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -671,8 +667,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -680,19 +676,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -707,7 +703,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeleteAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -722,11 +718,11 @@ export class VirtualMachinesImpl implements VirtualMachines { get( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - getOperationSpec + getOperationSpec, ); } @@ -739,11 +735,11 @@ export class VirtualMachinesImpl implements VirtualMachines { instanceView( resourceGroupName: string, vmName: string, - options?: VirtualMachinesInstanceViewOptionalParams + options?: VirtualMachinesInstanceViewOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - instanceViewOperationSpec + instanceViewOperationSpec, ); } @@ -757,25 +753,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginConvertToManagedDisks( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -784,8 +779,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -793,19 +788,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: convertToManagedDisksOperationSpec + spec: convertToManagedDisksOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -821,12 +816,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginConvertToManagedDisksAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise { const poller = await this.beginConvertToManagedDisks( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -841,25 +836,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeallocate( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -868,8 +862,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -877,19 +871,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: deallocateOperationSpec + spec: deallocateOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -905,12 +899,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginDeallocateAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise { const poller = await this.beginDeallocate( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -929,11 +923,11 @@ export class VirtualMachinesImpl implements VirtualMachines { generalize( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGeneralizeOptionalParams + options?: VirtualMachinesGeneralizeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - generalizeOperationSpec + generalizeOperationSpec, ); } @@ -945,11 +939,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listOperationSpec + listOperationSpec, ); } @@ -959,7 +953,7 @@ export class VirtualMachinesImpl implements VirtualMachines { * @param options The options parameters. */ private _listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listAllOperationSpec); } @@ -973,11 +967,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - listAvailableSizesOperationSpec + listAvailableSizesOperationSpec, ); } @@ -991,25 +985,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOff( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1018,8 +1011,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1027,19 +1020,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: powerOffOperationSpec + spec: powerOffOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1055,7 +1048,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPowerOffAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise { const poller = await this.beginPowerOff(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1070,25 +1063,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReapply( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1097,8 +1089,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1106,19 +1098,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: reapplyOperationSpec + spec: reapplyOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1133,7 +1125,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReapplyAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise { const poller = await this.beginReapply(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1148,25 +1140,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1175,8 +1166,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1184,19 +1175,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: restartOperationSpec + spec: restartOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1211,7 +1202,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRestartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise { const poller = await this.beginRestart(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1226,25 +1217,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1253,8 +1243,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1262,19 +1252,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: startOperationSpec + spec: startOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1289,7 +1279,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginStartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise { const poller = await this.beginStart(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1304,25 +1294,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRedeploy( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1331,8 +1320,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1340,19 +1329,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: redeployOperationSpec + spec: redeployOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1367,7 +1356,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginRedeployAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise { const poller = await this.beginRedeploy(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1387,25 +1376,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimage( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1414,8 +1402,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1423,19 +1411,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: reimageOperationSpec + spec: reimageOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1455,7 +1443,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginReimageAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise { const poller = await this.beginReimage(resourceGroupName, vmName, options); return poller.pollUntilDone(); @@ -1470,11 +1458,11 @@ export class VirtualMachinesImpl implements VirtualMachines { retrieveBootDiagnosticsData( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - retrieveBootDiagnosticsDataOperationSpec + retrieveBootDiagnosticsDataOperationSpec, ); } @@ -1487,25 +1475,24 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPerformMaintenance( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1514,8 +1501,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1523,19 +1510,19 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: performMaintenanceOperationSpec + spec: performMaintenanceOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -1550,12 +1537,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginPerformMaintenanceAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise { const poller = await this.beginPerformMaintenance( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -1569,11 +1556,11 @@ export class VirtualMachinesImpl implements VirtualMachines { simulateEviction( resourceGroupName: string, vmName: string, - options?: VirtualMachinesSimulateEvictionOptionalParams + options?: VirtualMachinesSimulateEvictionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, vmName, options }, - simulateEvictionOperationSpec + simulateEvictionOperationSpec, ); } @@ -1586,7 +1573,7 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginAssessPatches( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1595,21 +1582,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1618,8 +1604,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1627,15 +1613,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, options }, - spec: assessPatchesOperationSpec + spec: assessPatchesOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesAssessPatchesResponse, @@ -1643,7 +1629,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1658,12 +1644,12 @@ export class VirtualMachinesImpl implements VirtualMachines { async beginAssessPatchesAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise { const poller = await this.beginAssessPatches( resourceGroupName, vmName, - options + options, ); return poller.pollUntilDone(); } @@ -1679,7 +1665,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1688,21 +1674,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1711,8 +1696,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1720,15 +1705,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, installPatchesInput, options }, - spec: installPatchesOperationSpec + spec: installPatchesOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesInstallPatchesResponse, @@ -1736,7 +1721,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1753,13 +1738,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise { const poller = await this.beginInstallPatches( resourceGroupName, vmName, installPatchesInput, - options + options, ); return poller.pollUntilDone(); } @@ -1776,7 +1761,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1785,21 +1770,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1808,8 +1792,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1817,15 +1801,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: attachDetachDataDisksOperationSpec + spec: attachDetachDataDisksOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesAttachDetachDataDisksResponse, @@ -1833,7 +1817,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1851,13 +1835,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise { const poller = await this.beginAttachDetachDataDisks( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1873,7 +1857,7 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -1882,21 +1866,20 @@ export class VirtualMachinesImpl implements VirtualMachines { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -1905,8 +1888,8 @@ export class VirtualMachinesImpl implements VirtualMachines { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -1914,15 +1897,15 @@ export class VirtualMachinesImpl implements VirtualMachines { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, vmName, parameters, options }, - spec: runCommandOperationSpec + spec: runCommandOperationSpec, }); const poller = await createHttpPoller< VirtualMachinesRunCommandResponse, @@ -1930,7 +1913,7 @@ export class VirtualMachinesImpl implements VirtualMachines { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -1947,13 +1930,13 @@ export class VirtualMachinesImpl implements VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise { const poller = await this.beginRunCommand( resourceGroupName, vmName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -1967,11 +1950,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listByLocationNext( location: string, nextLink: string, - options?: VirtualMachinesListByLocationNextOptionalParams + options?: VirtualMachinesListByLocationNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { location, nextLink, options }, - listByLocationNextOperationSpec + listByLocationNextOperationSpec, ); } @@ -1984,11 +1967,11 @@ export class VirtualMachinesImpl implements VirtualMachines { private _listNext( resourceGroupName: string, nextLink: string, - options?: VirtualMachinesListNextOptionalParams + options?: VirtualMachinesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -1999,11 +1982,11 @@ export class VirtualMachinesImpl implements VirtualMachines { */ private _listAllNext( nextLink: string, - options?: VirtualMachinesListAllNextOptionalParams + options?: VirtualMachinesListAllNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listAllNextOperationSpec + listAllNextOperationSpec, ); } } @@ -2011,46 +1994,44 @@ export class VirtualMachinesImpl implements VirtualMachines { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByLocationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.location, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const captureOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/capture", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 201: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 202: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, 204: { - bodyMapper: Mappers.VirtualMachineCaptureResult + bodyMapper: Mappers.VirtualMachineCaptureResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], @@ -2058,32 +2039,31 @@ const captureOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -2091,37 +2071,36 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 201: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 202: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, 204: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], @@ -2129,20 +2108,19 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [ Parameters.accept, Parameters.contentType, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "DELETE", responses: { 200: {}, @@ -2150,66 +2128,63 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.forceDeletion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachine + bodyMapper: Mappers.VirtualMachine, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.expand2], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const instanceViewOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/instanceView", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineInstanceView + bodyMapper: Mappers.VirtualMachineInstanceView, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const convertToManagedDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/convertToManagedDisks", httpMethod: "POST", responses: { 200: {}, @@ -2217,22 +2192,21 @@ const convertToManagedDisksOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const deallocateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/deallocate", httpMethod: "POST", responses: { 200: {}, @@ -2240,111 +2214,106 @@ const deallocateOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.hibernate], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const generalizeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/generalize", httpMethod: "POST", responses: { 200: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, - Parameters.expand3 + Parameters.expand3, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.filter, Parameters.statusOnly, - Parameters.expand4 + Parameters.expand4, ], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAvailableSizesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/vmSizes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineSizeListResult + bodyMapper: Mappers.VirtualMachineSizeListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const powerOffOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/powerOff", httpMethod: "POST", responses: { 200: {}, @@ -2352,22 +2321,21 @@ const powerOffOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.skipShutdown], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reapplyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reapply", httpMethod: "POST", responses: { 200: {}, @@ -2375,22 +2343,21 @@ const reapplyOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const restartOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/restart", httpMethod: "POST", responses: { 200: {}, @@ -2398,22 +2365,21 @@ const restartOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const startOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/start", httpMethod: "POST", responses: { 200: {}, @@ -2421,22 +2387,21 @@ const startOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const redeployOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/redeploy", httpMethod: "POST", responses: { 200: {}, @@ -2444,22 +2409,21 @@ const redeployOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const reimageOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/reimage", httpMethod: "POST", responses: { 200: {}, @@ -2467,8 +2431,8 @@ const reimageOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -2476,40 +2440,38 @@ const reimageOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const retrieveBootDiagnosticsDataOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/retrieveBootDiagnosticsData", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult + bodyMapper: Mappers.RetrieveBootDiagnosticsDataResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, - Parameters.sasUriExpirationTimeInMinutes + Parameters.sasUriExpirationTimeInMinutes, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const performMaintenanceOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/performMaintenance", httpMethod: "POST", responses: { 200: {}, @@ -2517,90 +2479,87 @@ const performMaintenanceOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const simulateEvictionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/simulateEviction", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const assessPatchesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/assessPatches", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 201: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 202: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, 204: { - bodyMapper: Mappers.VirtualMachineAssessPatchesResult + bodyMapper: Mappers.VirtualMachineAssessPatchesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const installPatchesOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/installPatches", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 201: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 202: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, 204: { - bodyMapper: Mappers.VirtualMachineInstallPatchesResult + bodyMapper: Mappers.VirtualMachineInstallPatchesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.installPatchesInput, queryParameters: [Parameters.apiVersion], @@ -2608,32 +2567,31 @@ const installPatchesOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/attachDetachDataDisks", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 201: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 202: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, 204: { - bodyMapper: Mappers.StorageProfile + bodyMapper: Mappers.StorageProfile, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -2641,29 +2599,28 @@ const attachDetachDataDisksOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const runCommandOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommand", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 201: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 202: { - bodyMapper: Mappers.RunCommandResult + bodyMapper: Mappers.RunCommandResult, }, 204: { - bodyMapper: Mappers.RunCommandResult - } + bodyMapper: Mappers.RunCommandResult, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -2671,68 +2628,68 @@ const runCommandOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.vmName + Parameters.vmName, ], headerParameters: [Parameters.contentType, Parameters.accept1], mediaType: "json", - serializer + serializer, }; const listByLocationNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.location, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listAllNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.VirtualMachineListResult + bodyMapper: Mappers.VirtualMachineListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts index 02e18b92c1dc..1a70a4da012f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/availabilitySets.ts @@ -20,7 +20,7 @@ import { AvailabilitySetsUpdateResponse, AvailabilitySetsDeleteOptionalParams, AvailabilitySetsGetOptionalParams, - AvailabilitySetsGetResponse + AvailabilitySetsGetResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface AvailabilitySets { * @param options The options parameters. */ listBySubscription( - options?: AvailabilitySetsListBySubscriptionOptionalParams + options?: AvailabilitySetsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all availability sets in a resource group. @@ -40,7 +40,7 @@ export interface AvailabilitySets { */ list( resourceGroupName: string, - options?: AvailabilitySetsListOptionalParams + options?: AvailabilitySetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available virtual machine sizes that can be used to create a new virtual machine in an @@ -52,7 +52,7 @@ export interface AvailabilitySets { listAvailableSizes( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsListAvailableSizesOptionalParams + options?: AvailabilitySetsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update an availability set. @@ -65,7 +65,7 @@ export interface AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySet, - options?: AvailabilitySetsCreateOrUpdateOptionalParams + options?: AvailabilitySetsCreateOrUpdateOptionalParams, ): Promise; /** * Update an availability set. @@ -78,7 +78,7 @@ export interface AvailabilitySets { resourceGroupName: string, availabilitySetName: string, parameters: AvailabilitySetUpdate, - options?: AvailabilitySetsUpdateOptionalParams + options?: AvailabilitySetsUpdateOptionalParams, ): Promise; /** * Delete an availability set. @@ -89,7 +89,7 @@ export interface AvailabilitySets { delete( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsDeleteOptionalParams + options?: AvailabilitySetsDeleteOptionalParams, ): Promise; /** * Retrieves information about an availability set. @@ -100,6 +100,6 @@ export interface AvailabilitySets { get( resourceGroupName: string, availabilitySetName: string, - options?: AvailabilitySetsGetOptionalParams + options?: AvailabilitySetsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts index 1dd3210dd776..ecf7b2bfd9c7 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservationGroups.ts @@ -18,7 +18,7 @@ import { CapacityReservationGroupsUpdateResponse, CapacityReservationGroupsDeleteOptionalParams, CapacityReservationGroupsGetOptionalParams, - CapacityReservationGroupsGetResponse + CapacityReservationGroupsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface CapacityReservationGroups { */ listByResourceGroup( resourceGroupName: string, - options?: CapacityReservationGroupsListByResourceGroupOptionalParams + options?: CapacityReservationGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the capacity reservation groups in the subscription. Use the nextLink property in the @@ -40,7 +40,7 @@ export interface CapacityReservationGroups { * @param options The options parameters. */ listBySubscription( - options?: CapacityReservationGroupsListBySubscriptionOptionalParams + options?: CapacityReservationGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update a capacity reservation group. When updating a capacity reservation @@ -55,7 +55,7 @@ export interface CapacityReservationGroups { resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroup, - options?: CapacityReservationGroupsCreateOrUpdateOptionalParams + options?: CapacityReservationGroupsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a capacity reservation group. When updating a capacity reservation group, @@ -69,7 +69,7 @@ export interface CapacityReservationGroups { resourceGroupName: string, capacityReservationGroupName: string, parameters: CapacityReservationGroupUpdate, - options?: CapacityReservationGroupsUpdateOptionalParams + options?: CapacityReservationGroupsUpdateOptionalParams, ): Promise; /** * The operation to delete a capacity reservation group. This operation is allowed only if all the @@ -83,7 +83,7 @@ export interface CapacityReservationGroups { delete( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsDeleteOptionalParams + options?: CapacityReservationGroupsDeleteOptionalParams, ): Promise; /** * The operation that retrieves information about a capacity reservation group. @@ -94,6 +94,6 @@ export interface CapacityReservationGroups { get( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationGroupsGetOptionalParams + options?: CapacityReservationGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts index 0e7e2b65566f..137659ef17d1 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/capacityReservations.ts @@ -18,7 +18,7 @@ import { CapacityReservationsUpdateResponse, CapacityReservationsDeleteOptionalParams, CapacityReservationsGetOptionalParams, - CapacityReservationsGetResponse + CapacityReservationsGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface CapacityReservations { listByCapacityReservationGroup( resourceGroupName: string, capacityReservationGroupName: string, - options?: CapacityReservationsListByCapacityReservationGroupOptionalParams + options?: CapacityReservationsListByCapacityReservationGroupOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update a capacity reservation. Please note some properties can be set @@ -51,7 +51,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -73,7 +73,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservation, - options?: CapacityReservationsCreateOrUpdateOptionalParams + options?: CapacityReservationsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a capacity reservation. @@ -88,7 +88,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -108,7 +108,7 @@ export interface CapacityReservations { capacityReservationGroupName: string, capacityReservationName: string, parameters: CapacityReservationUpdate, - options?: CapacityReservationsUpdateOptionalParams + options?: CapacityReservationsUpdateOptionalParams, ): Promise; /** * The operation to delete a capacity reservation. This operation is allowed only when all the @@ -123,7 +123,7 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete a capacity reservation. This operation is allowed only when all the @@ -138,7 +138,7 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsDeleteOptionalParams + options?: CapacityReservationsDeleteOptionalParams, ): Promise; /** * The operation that retrieves information about the capacity reservation. @@ -151,6 +151,6 @@ export interface CapacityReservations { resourceGroupName: string, capacityReservationGroupName: string, capacityReservationName: string, - options?: CapacityReservationsGetOptionalParams + options?: CapacityReservationsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts index 43a831b17f7b..ecf78653ab6b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceOperatingSystems.ts @@ -15,7 +15,7 @@ import { CloudServiceOperatingSystemsGetOSVersionOptionalParams, CloudServiceOperatingSystemsGetOSVersionResponse, CloudServiceOperatingSystemsGetOSFamilyOptionalParams, - CloudServiceOperatingSystemsGetOSFamilyResponse + CloudServiceOperatingSystemsGetOSFamilyResponse, } from "../models"; /// @@ -30,7 +30,7 @@ export interface CloudServiceOperatingSystems { */ listOSVersions( location: string, - options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams + options?: CloudServiceOperatingSystemsListOSVersionsOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all guest operating system families available to be specified in the XML service @@ -41,7 +41,7 @@ export interface CloudServiceOperatingSystems { */ listOSFamilies( location: string, - options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams + options?: CloudServiceOperatingSystemsListOSFamiliesOptionalParams, ): PagedAsyncIterableIterator; /** * Gets properties of a guest operating system version that can be specified in the XML service @@ -53,7 +53,7 @@ export interface CloudServiceOperatingSystems { getOSVersion( location: string, osVersionName: string, - options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams + options?: CloudServiceOperatingSystemsGetOSVersionOptionalParams, ): Promise; /** * Gets properties of a guest operating system family that can be specified in the XML service @@ -65,6 +65,6 @@ export interface CloudServiceOperatingSystems { getOSFamily( location: string, osFamilyName: string, - options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams + options?: CloudServiceOperatingSystemsGetOSFamilyOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts index b34256942c98..201c29097073 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoleInstances.ts @@ -20,7 +20,7 @@ import { CloudServiceRoleInstancesReimageOptionalParams, CloudServiceRoleInstancesRebuildOptionalParams, CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, - CloudServiceRoleInstancesGetRemoteDesktopFileResponse + CloudServiceRoleInstancesGetRemoteDesktopFileResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface CloudServiceRoleInstances { list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesListOptionalParams + options?: CloudServiceRoleInstancesListOptionalParams, ): PagedAsyncIterableIterator; /** * Deletes a role instance from a cloud service. @@ -49,7 +49,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a role instance from a cloud service. @@ -62,7 +62,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesDeleteOptionalParams + options?: CloudServiceRoleInstancesDeleteOptionalParams, ): Promise; /** * Gets a role instance from a cloud service. @@ -75,7 +75,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetOptionalParams + options?: CloudServiceRoleInstancesGetOptionalParams, ): Promise; /** * Retrieves information about the run-time state of a role instance in a cloud service. @@ -88,7 +88,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams + options?: CloudServiceRoleInstancesGetInstanceViewOptionalParams, ): Promise; /** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud @@ -102,7 +102,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise, void>>; /** * The Reboot Role Instance asynchronous operation requests a reboot of a role instance in the cloud @@ -116,7 +116,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRestartOptionalParams + options?: CloudServiceRoleInstancesRestartOptionalParams, ): Promise; /** * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -130,7 +130,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise, void>>; /** * The Reimage Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -144,7 +144,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesReimageOptionalParams + options?: CloudServiceRoleInstancesReimageOptionalParams, ): Promise; /** * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -159,7 +159,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise, void>>; /** * The Rebuild Role Instance asynchronous operation reinstalls the operating system on instances of web @@ -174,7 +174,7 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesRebuildOptionalParams + options?: CloudServiceRoleInstancesRebuildOptionalParams, ): Promise; /** * Gets a remote desktop file for a role instance in a cloud service. @@ -187,6 +187,6 @@ export interface CloudServiceRoleInstances { roleInstanceName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams + options?: CloudServiceRoleInstancesGetRemoteDesktopFileOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts index f35bf8b2f3ba..21b27b7bc465 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServiceRoles.ts @@ -11,7 +11,7 @@ import { CloudServiceRole, CloudServiceRolesListOptionalParams, CloudServiceRolesGetOptionalParams, - CloudServiceRolesGetResponse + CloudServiceRolesGetResponse, } from "../models"; /// @@ -27,7 +27,7 @@ export interface CloudServiceRoles { list( resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesListOptionalParams + options?: CloudServiceRolesListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a role from a cloud service. @@ -40,6 +40,6 @@ export interface CloudServiceRoles { roleName: string, resourceGroupName: string, cloudServiceName: string, - options?: CloudServiceRolesGetOptionalParams + options?: CloudServiceRolesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts index 3e7f88d72e7a..4c84e470b47e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServices.ts @@ -26,7 +26,7 @@ import { CloudServicesRestartOptionalParams, CloudServicesReimageOptionalParams, CloudServicesRebuildOptionalParams, - CloudServicesDeleteInstancesOptionalParams + CloudServicesDeleteInstancesOptionalParams, } from "../models"; /// @@ -39,7 +39,7 @@ export interface CloudServices { * @param options The options parameters. */ listAll( - options?: CloudServicesListAllOptionalParams + options?: CloudServicesListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all cloud services under a resource group. Use nextLink property in the response to @@ -49,7 +49,7 @@ export interface CloudServices { */ list( resourceGroupName: string, - options?: CloudServicesListOptionalParams + options?: CloudServicesListOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a cloud service. Please note some properties can be set only during cloud service @@ -61,7 +61,7 @@ export interface CloudServices { beginCreateOrUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface CloudServices { beginCreateOrUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesCreateOrUpdateOptionalParams + options?: CloudServicesCreateOrUpdateOptionalParams, ): Promise; /** * Update a cloud service. @@ -89,7 +89,7 @@ export interface CloudServices { beginUpdate( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -105,7 +105,7 @@ export interface CloudServices { beginUpdateAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateOptionalParams + options?: CloudServicesUpdateOptionalParams, ): Promise; /** * Deletes a cloud service. @@ -116,7 +116,7 @@ export interface CloudServices { beginDelete( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a cloud service. @@ -127,7 +127,7 @@ export interface CloudServices { beginDeleteAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteOptionalParams + options?: CloudServicesDeleteOptionalParams, ): Promise; /** * Display information about a cloud service. @@ -138,7 +138,7 @@ export interface CloudServices { get( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetOptionalParams + options?: CloudServicesGetOptionalParams, ): Promise; /** * Gets the status of a cloud service. @@ -149,7 +149,7 @@ export interface CloudServices { getInstanceView( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesGetInstanceViewOptionalParams + options?: CloudServicesGetInstanceViewOptionalParams, ): Promise; /** * Starts the cloud service. @@ -160,7 +160,7 @@ export interface CloudServices { beginStart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise, void>>; /** * Starts the cloud service. @@ -171,7 +171,7 @@ export interface CloudServices { beginStartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesStartOptionalParams + options?: CloudServicesStartOptionalParams, ): Promise; /** * Power off the cloud service. Note that resources are still attached and you are getting charged for @@ -183,7 +183,7 @@ export interface CloudServices { beginPowerOff( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise, void>>; /** * Power off the cloud service. Note that resources are still attached and you are getting charged for @@ -195,7 +195,7 @@ export interface CloudServices { beginPowerOffAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesPowerOffOptionalParams + options?: CloudServicesPowerOffOptionalParams, ): Promise; /** * Restarts one or more role instances in a cloud service. @@ -206,7 +206,7 @@ export interface CloudServices { beginRestart( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise, void>>; /** * Restarts one or more role instances in a cloud service. @@ -217,7 +217,7 @@ export interface CloudServices { beginRestartAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRestartOptionalParams + options?: CloudServicesRestartOptionalParams, ): Promise; /** * Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker @@ -229,7 +229,7 @@ export interface CloudServices { beginReimage( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise, void>>; /** * Reimage asynchronous operation reinstalls the operating system on instances of web roles or worker @@ -241,7 +241,7 @@ export interface CloudServices { beginReimageAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesReimageOptionalParams + options?: CloudServicesReimageOptionalParams, ): Promise; /** * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and @@ -254,7 +254,7 @@ export interface CloudServices { beginRebuild( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise, void>>; /** * Rebuild Role Instances reinstalls the operating system on instances of web roles or worker roles and @@ -267,7 +267,7 @@ export interface CloudServices { beginRebuildAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesRebuildOptionalParams + options?: CloudServicesRebuildOptionalParams, ): Promise; /** * Deletes role instances in a cloud service. @@ -278,7 +278,7 @@ export interface CloudServices { beginDeleteInstances( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise, void>>; /** * Deletes role instances in a cloud service. @@ -289,6 +289,6 @@ export interface CloudServices { beginDeleteInstancesAndWait( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesDeleteInstancesOptionalParams + options?: CloudServicesDeleteInstancesOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts index 88848d085687..c51e440b011b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/cloudServicesUpdateDomain.ts @@ -13,7 +13,7 @@ import { CloudServicesUpdateDomainListUpdateDomainsOptionalParams, CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, CloudServicesUpdateDomainGetUpdateDomainOptionalParams, - CloudServicesUpdateDomainGetUpdateDomainResponse + CloudServicesUpdateDomainGetUpdateDomainResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface CloudServicesUpdateDomain { listUpdateDomains( resourceGroupName: string, cloudServiceName: string, - options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams + options?: CloudServicesUpdateDomainListUpdateDomainsOptionalParams, ): PagedAsyncIterableIterator; /** * Updates the role instances in the specified update domain. @@ -43,7 +43,7 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise, void>>; /** * Updates the role instances in the specified update domain. @@ -58,7 +58,7 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainWalkUpdateDomainOptionalParams, ): Promise; /** * Gets the specified update domain of a cloud service. Use nextLink property in the response to get @@ -74,6 +74,6 @@ export interface CloudServicesUpdateDomain { resourceGroupName: string, cloudServiceName: string, updateDomain: number, - options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams + options?: CloudServicesUpdateDomainGetUpdateDomainOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts index b39f7dd72a77..b028f5fa3667 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleries.ts @@ -8,7 +8,7 @@ import { CommunityGalleriesGetOptionalParams, - CommunityGalleriesGetResponse + CommunityGalleriesGetResponse, } from "../models"; /** Interface representing a CommunityGalleries. */ @@ -22,6 +22,6 @@ export interface CommunityGalleries { get( location: string, publicGalleryName: string, - options?: CommunityGalleriesGetOptionalParams + options?: CommunityGalleriesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts index 53851504708c..47e34114dec7 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImageVersions.ts @@ -11,7 +11,7 @@ import { CommunityGalleryImageVersion, CommunityGalleryImageVersionsListOptionalParams, CommunityGalleryImageVersionsGetOptionalParams, - CommunityGalleryImageVersionsGetResponse + CommunityGalleryImageVersionsGetResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface CommunityGalleryImageVersions { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImageVersionsListOptionalParams + options?: CommunityGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a community gallery image version. @@ -45,6 +45,6 @@ export interface CommunityGalleryImageVersions { publicGalleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: CommunityGalleryImageVersionsGetOptionalParams + options?: CommunityGalleryImageVersionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts index 7d3f7811531e..ccfade2f5258 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/communityGalleryImages.ts @@ -11,7 +11,7 @@ import { CommunityGalleryImage, CommunityGalleryImagesListOptionalParams, CommunityGalleryImagesGetOptionalParams, - CommunityGalleryImagesGetResponse + CommunityGalleryImagesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface CommunityGalleryImages { list( location: string, publicGalleryName: string, - options?: CommunityGalleryImagesListOptionalParams + options?: CommunityGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a community gallery image. @@ -39,6 +39,6 @@ export interface CommunityGalleryImages { location: string, publicGalleryName: string, galleryImageName: string, - options?: CommunityGalleryImagesGetOptionalParams + options?: CommunityGalleryImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts index 8b50c847095a..d55fa7f4ab5b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHostGroups.ts @@ -18,7 +18,7 @@ import { DedicatedHostGroupsUpdateResponse, DedicatedHostGroupsDeleteOptionalParams, DedicatedHostGroupsGetOptionalParams, - DedicatedHostGroupsGetResponse + DedicatedHostGroupsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface DedicatedHostGroups { */ listByResourceGroup( resourceGroupName: string, - options?: DedicatedHostGroupsListByResourceGroupOptionalParams + options?: DedicatedHostGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the dedicated host groups in the subscription. Use the nextLink property in the @@ -40,7 +40,7 @@ export interface DedicatedHostGroups { * @param options The options parameters. */ listBySubscription( - options?: DedicatedHostGroupsListBySubscriptionOptionalParams + options?: DedicatedHostGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a dedicated host group. For details of Dedicated Host and Dedicated Host Groups @@ -54,7 +54,7 @@ export interface DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroup, - options?: DedicatedHostGroupsCreateOrUpdateOptionalParams + options?: DedicatedHostGroupsCreateOrUpdateOptionalParams, ): Promise; /** * Update an dedicated host group. @@ -67,7 +67,7 @@ export interface DedicatedHostGroups { resourceGroupName: string, hostGroupName: string, parameters: DedicatedHostGroupUpdate, - options?: DedicatedHostGroupsUpdateOptionalParams + options?: DedicatedHostGroupsUpdateOptionalParams, ): Promise; /** * Delete a dedicated host group. @@ -78,7 +78,7 @@ export interface DedicatedHostGroups { delete( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsDeleteOptionalParams + options?: DedicatedHostGroupsDeleteOptionalParams, ): Promise; /** * Retrieves information about a dedicated host group. @@ -89,6 +89,6 @@ export interface DedicatedHostGroups { get( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostGroupsGetOptionalParams + options?: DedicatedHostGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts index 35cc345ee081..5d21aed8dcee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/dedicatedHosts.ts @@ -22,7 +22,7 @@ import { DedicatedHostsGetResponse, DedicatedHostsRestartOptionalParams, DedicatedHostsRedeployOptionalParams, - DedicatedHostsRedeployResponse + DedicatedHostsRedeployResponse, } from "../models"; /// @@ -38,7 +38,7 @@ export interface DedicatedHosts { listByHostGroup( resourceGroupName: string, hostGroupName: string, - options?: DedicatedHostsListByHostGroupOptionalParams + options?: DedicatedHostsListByHostGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available dedicated host sizes to which the specified dedicated host can be resized. NOTE: @@ -52,7 +52,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsListAvailableSizesOptionalParams + options?: DedicatedHostsListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a dedicated host . @@ -67,7 +67,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -87,7 +87,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHost, - options?: DedicatedHostsCreateOrUpdateOptionalParams + options?: DedicatedHostsCreateOrUpdateOptionalParams, ): Promise; /** * Update a dedicated host . @@ -102,7 +102,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -122,7 +122,7 @@ export interface DedicatedHosts { hostGroupName: string, hostName: string, parameters: DedicatedHostUpdate, - options?: DedicatedHostsUpdateOptionalParams + options?: DedicatedHostsUpdateOptionalParams, ): Promise; /** * Delete a dedicated host. @@ -135,7 +135,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise, void>>; /** * Delete a dedicated host. @@ -148,7 +148,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsDeleteOptionalParams + options?: DedicatedHostsDeleteOptionalParams, ): Promise; /** * Retrieves information about a dedicated host. @@ -161,7 +161,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsGetOptionalParams + options?: DedicatedHostsGetOptionalParams, ): Promise; /** * Restart the dedicated host. The operation will complete successfully once the dedicated host has @@ -177,7 +177,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise, void>>; /** * Restart the dedicated host. The operation will complete successfully once the dedicated host has @@ -193,7 +193,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRestartOptionalParams + options?: DedicatedHostsRestartOptionalParams, ): Promise; /** * Redeploy the dedicated host. The operation will complete successfully once the dedicated host has @@ -209,7 +209,7 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -230,6 +230,6 @@ export interface DedicatedHosts { resourceGroupName: string, hostGroupName: string, hostName: string, - options?: DedicatedHostsRedeployOptionalParams + options?: DedicatedHostsRedeployOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts index b3f40067e821..2cc048115255 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskAccesses.ts @@ -28,7 +28,7 @@ import { DiskAccessesUpdateAPrivateEndpointConnectionResponse, DiskAccessesGetAPrivateEndpointConnectionOptionalParams, DiskAccessesGetAPrivateEndpointConnectionResponse, - DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, } from "../models"; /// @@ -41,14 +41,14 @@ export interface DiskAccesses { */ listByResourceGroup( resourceGroupName: string, - options?: DiskAccessesListByResourceGroupOptionalParams + options?: DiskAccessesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disk access resources under a subscription. * @param options The options parameters. */ list( - options?: DiskAccessesListOptionalParams + options?: DiskAccessesListOptionalParams, ): PagedAsyncIterableIterator; /** * List information about private endpoint connections under a disk access resource @@ -61,7 +61,7 @@ export interface DiskAccesses { listPrivateEndpointConnections( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams + options?: DiskAccessesListPrivateEndpointConnectionsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a disk access resource @@ -76,7 +76,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -96,7 +96,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccess, - options?: DiskAccessesCreateOrUpdateOptionalParams + options?: DiskAccessesCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk access resource. @@ -111,7 +111,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,7 +131,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, diskAccess: DiskAccessUpdate, - options?: DiskAccessesUpdateOptionalParams + options?: DiskAccessesUpdateOptionalParams, ): Promise; /** * Gets information about a disk access resource. @@ -144,7 +144,7 @@ export interface DiskAccesses { get( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetOptionalParams + options?: DiskAccessesGetOptionalParams, ): Promise; /** * Deletes a disk access resource. @@ -157,7 +157,7 @@ export interface DiskAccesses { beginDelete( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk access resource. @@ -170,7 +170,7 @@ export interface DiskAccesses { beginDeleteAndWait( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesDeleteOptionalParams + options?: DiskAccessesDeleteOptionalParams, ): Promise; /** * Gets the private link resources possible under disk access resource @@ -183,7 +183,7 @@ export interface DiskAccesses { getPrivateLinkResources( resourceGroupName: string, diskAccessName: string, - options?: DiskAccessesGetPrivateLinkResourcesOptionalParams + options?: DiskAccessesGetPrivateLinkResourcesOptionalParams, ): Promise; /** * Approve or reject a private endpoint connection under disk access resource, this can't be used to @@ -202,7 +202,7 @@ export interface DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -226,7 +226,7 @@ export interface DiskAccesses { diskAccessName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, - options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesUpdateAPrivateEndpointConnectionOptionalParams, ): Promise; /** * Gets information about a private endpoint connection under a disk access resource. @@ -241,7 +241,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesGetAPrivateEndpointConnectionOptionalParams, ): Promise; /** * Deletes a private endpoint connection under a disk access resource. @@ -256,7 +256,7 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise, void>>; /** * Deletes a private endpoint connection under a disk access resource. @@ -271,6 +271,6 @@ export interface DiskAccesses { resourceGroupName: string, diskAccessName: string, privateEndpointConnectionName: string, - options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams + options?: DiskAccessesDeleteAPrivateEndpointConnectionOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts index 081a6b26d905..c5989a93d0a4 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskEncryptionSets.ts @@ -20,7 +20,7 @@ import { DiskEncryptionSetsUpdateResponse, DiskEncryptionSetsGetOptionalParams, DiskEncryptionSetsGetResponse, - DiskEncryptionSetsDeleteOptionalParams + DiskEncryptionSetsDeleteOptionalParams, } from "../models"; /// @@ -33,14 +33,14 @@ export interface DiskEncryptionSets { */ listByResourceGroup( resourceGroupName: string, - options?: DiskEncryptionSetsListByResourceGroupOptionalParams + options?: DiskEncryptionSetsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disk encryption sets under a subscription. * @param options The options parameters. */ list( - options?: DiskEncryptionSetsListOptionalParams + options?: DiskEncryptionSetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all resources that are encrypted with this disk encryption set. @@ -53,7 +53,7 @@ export interface DiskEncryptionSets { listAssociatedResources( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams + options?: DiskEncryptionSetsListAssociatedResourcesOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a disk encryption set @@ -69,7 +69,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -90,7 +90,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSet, - options?: DiskEncryptionSetsCreateOrUpdateOptionalParams + options?: DiskEncryptionSetsCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk encryption set. @@ -106,7 +106,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -127,7 +127,7 @@ export interface DiskEncryptionSets { resourceGroupName: string, diskEncryptionSetName: string, diskEncryptionSet: DiskEncryptionSetUpdate, - options?: DiskEncryptionSetsUpdateOptionalParams + options?: DiskEncryptionSetsUpdateOptionalParams, ): Promise; /** * Gets information about a disk encryption set. @@ -140,7 +140,7 @@ export interface DiskEncryptionSets { get( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsGetOptionalParams + options?: DiskEncryptionSetsGetOptionalParams, ): Promise; /** * Deletes a disk encryption set. @@ -153,7 +153,7 @@ export interface DiskEncryptionSets { beginDelete( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk encryption set. @@ -166,6 +166,6 @@ export interface DiskEncryptionSets { beginDeleteAndWait( resourceGroupName: string, diskEncryptionSetName: string, - options?: DiskEncryptionSetsDeleteOptionalParams + options?: DiskEncryptionSetsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts index 2701737e062b..b83fbfa25bf3 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/diskRestorePointOperations.ts @@ -16,7 +16,7 @@ import { GrantAccessData, DiskRestorePointGrantAccessOptionalParams, DiskRestorePointGrantAccessResponse, - DiskRestorePointRevokeAccessOptionalParams + DiskRestorePointRevokeAccessOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface DiskRestorePointOperations { resourceGroupName: string, restorePointCollectionName: string, vmRestorePointName: string, - options?: DiskRestorePointListByRestorePointOptionalParams + options?: DiskRestorePointListByRestorePointOptionalParams, ): PagedAsyncIterableIterator; /** * Get disk restorePoint resource @@ -50,7 +50,7 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointGetOptionalParams + options?: DiskRestorePointGetOptionalParams, ): Promise; /** * Grants access to a diskRestorePoint. @@ -68,7 +68,7 @@ export interface DiskRestorePointOperations { vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -91,7 +91,7 @@ export interface DiskRestorePointOperations { vmRestorePointName: string, diskRestorePointName: string, grantAccessData: GrantAccessData, - options?: DiskRestorePointGrantAccessOptionalParams + options?: DiskRestorePointGrantAccessOptionalParams, ): Promise; /** * Revokes access to a diskRestorePoint. @@ -107,7 +107,7 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a diskRestorePoint. @@ -123,6 +123,6 @@ export interface DiskRestorePointOperations { restorePointCollectionName: string, vmRestorePointName: string, diskRestorePointName: string, - options?: DiskRestorePointRevokeAccessOptionalParams + options?: DiskRestorePointRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts b/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts index 0dc932c7eb90..1f3a7cede6cd 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/disks.ts @@ -23,7 +23,7 @@ import { GrantAccessData, DisksGrantAccessOptionalParams, DisksGrantAccessResponse, - DisksRevokeAccessOptionalParams + DisksRevokeAccessOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface Disks { */ listByResourceGroup( resourceGroupName: string, - options?: DisksListByResourceGroupOptionalParams + options?: DisksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all the disks under a subscription. @@ -56,7 +56,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -76,7 +76,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: Disk, - options?: DisksCreateOrUpdateOptionalParams + options?: DisksCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a disk. @@ -91,7 +91,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise< SimplePollerLike, DisksUpdateResponse> >; @@ -108,7 +108,7 @@ export interface Disks { resourceGroupName: string, diskName: string, disk: DiskUpdate, - options?: DisksUpdateOptionalParams + options?: DisksUpdateOptionalParams, ): Promise; /** * Gets information about a disk. @@ -121,7 +121,7 @@ export interface Disks { get( resourceGroupName: string, diskName: string, - options?: DisksGetOptionalParams + options?: DisksGetOptionalParams, ): Promise; /** * Deletes a disk. @@ -134,7 +134,7 @@ export interface Disks { beginDelete( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise, void>>; /** * Deletes a disk. @@ -147,7 +147,7 @@ export interface Disks { beginDeleteAndWait( resourceGroupName: string, diskName: string, - options?: DisksDeleteOptionalParams + options?: DisksDeleteOptionalParams, ): Promise; /** * Grants access to a disk. @@ -162,7 +162,7 @@ export interface Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -182,7 +182,7 @@ export interface Disks { resourceGroupName: string, diskName: string, grantAccessData: GrantAccessData, - options?: DisksGrantAccessOptionalParams + options?: DisksGrantAccessOptionalParams, ): Promise; /** * Revokes access to a disk. @@ -195,7 +195,7 @@ export interface Disks { beginRevokeAccess( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a disk. @@ -208,6 +208,6 @@ export interface Disks { beginRevokeAccessAndWait( resourceGroupName: string, diskName: string, - options?: DisksRevokeAccessOptionalParams + options?: DisksRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts index b650db80e3d4..79aaabfd818b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleries.ts @@ -19,7 +19,7 @@ import { GalleriesUpdateResponse, GalleriesGetOptionalParams, GalleriesGetResponse, - GalleriesDeleteOptionalParams + GalleriesDeleteOptionalParams, } from "../models"; /// @@ -32,14 +32,14 @@ export interface Galleries { */ listByResourceGroup( resourceGroupName: string, - options?: GalleriesListByResourceGroupOptionalParams + options?: GalleriesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * List galleries under a subscription. * @param options The options parameters. */ list( - options?: GalleriesListOptionalParams + options?: GalleriesListOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a Shared Image Gallery. @@ -53,7 +53,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -72,7 +72,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: Gallery, - options?: GalleriesCreateOrUpdateOptionalParams + options?: GalleriesCreateOrUpdateOptionalParams, ): Promise; /** * Update a Shared Image Gallery. @@ -86,7 +86,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -105,7 +105,7 @@ export interface Galleries { resourceGroupName: string, galleryName: string, gallery: GalleryUpdate, - options?: GalleriesUpdateOptionalParams + options?: GalleriesUpdateOptionalParams, ): Promise; /** * Retrieves information about a Shared Image Gallery. @@ -116,7 +116,7 @@ export interface Galleries { get( resourceGroupName: string, galleryName: string, - options?: GalleriesGetOptionalParams + options?: GalleriesGetOptionalParams, ): Promise; /** * Delete a Shared Image Gallery. @@ -127,7 +127,7 @@ export interface Galleries { beginDelete( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise, void>>; /** * Delete a Shared Image Gallery. @@ -138,6 +138,6 @@ export interface Galleries { beginDeleteAndWait( resourceGroupName: string, galleryName: string, - options?: GalleriesDeleteOptionalParams + options?: GalleriesDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts index bf5b50c76d33..36bbca514f39 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplicationVersions.ts @@ -18,7 +18,7 @@ import { GalleryApplicationVersionsUpdateResponse, GalleryApplicationVersionsGetOptionalParams, GalleryApplicationVersionsGetResponse, - GalleryApplicationVersionsDeleteOptionalParams + GalleryApplicationVersionsDeleteOptionalParams, } from "../models"; /// @@ -37,7 +37,7 @@ export interface GalleryApplicationVersions { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams + options?: GalleryApplicationVersionsListByGalleryApplicationOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery Application Version. @@ -59,7 +59,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -86,7 +86,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersion, - options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams + options?: GalleryApplicationVersionsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery Application Version. @@ -108,7 +108,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -135,7 +135,7 @@ export interface GalleryApplicationVersions { galleryApplicationName: string, galleryApplicationVersionName: string, galleryApplicationVersion: GalleryApplicationVersionUpdate, - options?: GalleryApplicationVersionsUpdateOptionalParams + options?: GalleryApplicationVersionsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery Application Version. @@ -152,7 +152,7 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsGetOptionalParams + options?: GalleryApplicationVersionsGetOptionalParams, ): Promise; /** * Delete a gallery Application Version. @@ -169,7 +169,7 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery Application Version. @@ -186,6 +186,6 @@ export interface GalleryApplicationVersions { galleryName: string, galleryApplicationName: string, galleryApplicationVersionName: string, - options?: GalleryApplicationVersionsDeleteOptionalParams + options?: GalleryApplicationVersionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts index 14c4d53d8e90..8b8194c091b5 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryApplications.ts @@ -18,7 +18,7 @@ import { GalleryApplicationsUpdateResponse, GalleryApplicationsGetOptionalParams, GalleryApplicationsGetResponse, - GalleryApplicationsDeleteOptionalParams + GalleryApplicationsDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GalleryApplications { listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryApplicationsListByGalleryOptionalParams + options?: GalleryApplicationsListByGalleryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery Application Definition. @@ -52,7 +52,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -75,7 +75,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplication, - options?: GalleryApplicationsCreateOrUpdateOptionalParams + options?: GalleryApplicationsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery Application Definition. @@ -93,7 +93,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface GalleryApplications { galleryName: string, galleryApplicationName: string, galleryApplication: GalleryApplicationUpdate, - options?: GalleryApplicationsUpdateOptionalParams + options?: GalleryApplicationsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery Application Definition. @@ -130,7 +130,7 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsGetOptionalParams + options?: GalleryApplicationsGetOptionalParams, ): Promise; /** * Delete a gallery Application. @@ -144,7 +144,7 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery Application. @@ -158,6 +158,6 @@ export interface GalleryApplications { resourceGroupName: string, galleryName: string, galleryApplicationName: string, - options?: GalleryApplicationsDeleteOptionalParams + options?: GalleryApplicationsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts index 4b0460bc2156..725506b7f428 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImageVersions.ts @@ -18,7 +18,7 @@ import { GalleryImageVersionsUpdateResponse, GalleryImageVersionsGetOptionalParams, GalleryImageVersionsGetResponse, - GalleryImageVersionsDeleteOptionalParams + GalleryImageVersionsDeleteOptionalParams, } from "../models"; /// @@ -36,7 +36,7 @@ export interface GalleryImageVersions { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImageVersionsListByGalleryImageOptionalParams + options?: GalleryImageVersionsListByGalleryImageOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery image version. @@ -57,7 +57,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -83,7 +83,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersion, - options?: GalleryImageVersionsCreateOrUpdateOptionalParams + options?: GalleryImageVersionsCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery image version. @@ -103,7 +103,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -128,7 +128,7 @@ export interface GalleryImageVersions { galleryImageName: string, galleryImageVersionName: string, galleryImageVersion: GalleryImageVersionUpdate, - options?: GalleryImageVersionsUpdateOptionalParams + options?: GalleryImageVersionsUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery image version. @@ -143,7 +143,7 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsGetOptionalParams + options?: GalleryImageVersionsGetOptionalParams, ): Promise; /** * Delete a gallery image version. @@ -158,7 +158,7 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery image version. @@ -173,6 +173,6 @@ export interface GalleryImageVersions { galleryName: string, galleryImageName: string, galleryImageVersionName: string, - options?: GalleryImageVersionsDeleteOptionalParams + options?: GalleryImageVersionsDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts index 1e602f987fee..17c5e4094458 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/galleryImages.ts @@ -18,7 +18,7 @@ import { GalleryImagesUpdateResponse, GalleryImagesGetOptionalParams, GalleryImagesGetResponse, - GalleryImagesDeleteOptionalParams + GalleryImagesDeleteOptionalParams, } from "../models"; /// @@ -34,7 +34,7 @@ export interface GalleryImages { listByGallery( resourceGroupName: string, galleryName: string, - options?: GalleryImagesListByGalleryOptionalParams + options?: GalleryImagesListByGalleryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a gallery image definition. @@ -52,7 +52,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -75,7 +75,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImage, - options?: GalleryImagesCreateOrUpdateOptionalParams + options?: GalleryImagesCreateOrUpdateOptionalParams, ): Promise; /** * Update a gallery image definition. @@ -93,7 +93,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -116,7 +116,7 @@ export interface GalleryImages { galleryName: string, galleryImageName: string, galleryImage: GalleryImageUpdate, - options?: GalleryImagesUpdateOptionalParams + options?: GalleryImagesUpdateOptionalParams, ): Promise; /** * Retrieves information about a gallery image definition. @@ -130,7 +130,7 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesGetOptionalParams + options?: GalleryImagesGetOptionalParams, ): Promise; /** * Delete a gallery image. @@ -144,7 +144,7 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise, void>>; /** * Delete a gallery image. @@ -158,6 +158,6 @@ export interface GalleryImages { resourceGroupName: string, galleryName: string, galleryImageName: string, - options?: GalleryImagesDeleteOptionalParams + options?: GalleryImagesDeleteOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts index d3de32b681fc..892c31fc918c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/gallerySharingProfile.ts @@ -10,7 +10,7 @@ import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { SharingUpdate, GallerySharingProfileUpdateOptionalParams, - GallerySharingProfileUpdateResponse + GallerySharingProfileUpdateResponse, } from "../models"; /** Interface representing a GallerySharingProfile. */ @@ -26,7 +26,7 @@ export interface GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -44,6 +44,6 @@ export interface GallerySharingProfile { resourceGroupName: string, galleryName: string, sharingUpdate: SharingUpdate, - options?: GallerySharingProfileUpdateOptionalParams + options?: GallerySharingProfileUpdateOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts index 97bb85acd4ee..31a3e84783db 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/images.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/images.ts @@ -19,7 +19,7 @@ import { ImagesUpdateResponse, ImagesDeleteOptionalParams, ImagesGetOptionalParams, - ImagesGetResponse + ImagesGetResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface Images { */ listByResourceGroup( resourceGroupName: string, - options?: ImagesListByResourceGroupOptionalParams + options?: ImagesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of Images in the subscription. Use nextLink property in the response to get the next @@ -52,7 +52,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -70,7 +70,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: Image, - options?: ImagesCreateOrUpdateOptionalParams + options?: ImagesCreateOrUpdateOptionalParams, ): Promise; /** * Update an image. @@ -83,7 +83,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise< SimplePollerLike, ImagesUpdateResponse> >; @@ -98,7 +98,7 @@ export interface Images { resourceGroupName: string, imageName: string, parameters: ImageUpdate, - options?: ImagesUpdateOptionalParams + options?: ImagesUpdateOptionalParams, ): Promise; /** * Deletes an Image. @@ -109,7 +109,7 @@ export interface Images { beginDelete( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise, void>>; /** * Deletes an Image. @@ -120,7 +120,7 @@ export interface Images { beginDeleteAndWait( resourceGroupName: string, imageName: string, - options?: ImagesDeleteOptionalParams + options?: ImagesDeleteOptionalParams, ): Promise; /** * Gets an image. @@ -131,6 +131,6 @@ export interface Images { get( resourceGroupName: string, imageName: string, - options?: ImagesGetOptionalParams + options?: ImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts b/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts index d6ffc9ae5ba0..12cb2b27c95d 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/logAnalytics.ts @@ -13,7 +13,7 @@ import { LogAnalyticsExportRequestRateByIntervalResponse, ThrottledRequestsInput, LogAnalyticsExportThrottledRequestsOptionalParams, - LogAnalyticsExportThrottledRequestsResponse + LogAnalyticsExportThrottledRequestsResponse, } from "../models"; /** Interface representing a LogAnalytics. */ @@ -28,7 +28,7 @@ export interface LogAnalytics { beginExportRequestRateByInterval( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -45,7 +45,7 @@ export interface LogAnalytics { beginExportRequestRateByIntervalAndWait( location: string, parameters: RequestRateByIntervalInput, - options?: LogAnalyticsExportRequestRateByIntervalOptionalParams + options?: LogAnalyticsExportRequestRateByIntervalOptionalParams, ): Promise; /** * Export logs that show total throttled Api requests for this subscription in the given time window. @@ -56,7 +56,7 @@ export interface LogAnalytics { beginExportThrottledRequests( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -72,6 +72,6 @@ export interface LogAnalytics { beginExportThrottledRequestsAndWait( location: string, parameters: ThrottledRequestsInput, - options?: LogAnalyticsExportThrottledRequestsOptionalParams + options?: LogAnalyticsExportThrottledRequestsOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts index 5addfa05a750..37e75c5f9c39 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts b/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts index dfdc7ed4bcda..1dde51a70235 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/proximityPlacementGroups.ts @@ -18,7 +18,7 @@ import { ProximityPlacementGroupsUpdateResponse, ProximityPlacementGroupsDeleteOptionalParams, ProximityPlacementGroupsGetOptionalParams, - ProximityPlacementGroupsGetResponse + ProximityPlacementGroupsGetResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface ProximityPlacementGroups { * @param options The options parameters. */ listBySubscription( - options?: ProximityPlacementGroupsListBySubscriptionOptionalParams + options?: ProximityPlacementGroupsListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all proximity placement groups in a resource group. @@ -38,7 +38,7 @@ export interface ProximityPlacementGroups { */ listByResourceGroup( resourceGroupName: string, - options?: ProximityPlacementGroupsListByResourceGroupOptionalParams + options?: ProximityPlacementGroupsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a proximity placement group. @@ -51,7 +51,7 @@ export interface ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroup, - options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams + options?: ProximityPlacementGroupsCreateOrUpdateOptionalParams, ): Promise; /** * Update a proximity placement group. @@ -64,7 +64,7 @@ export interface ProximityPlacementGroups { resourceGroupName: string, proximityPlacementGroupName: string, parameters: ProximityPlacementGroupUpdate, - options?: ProximityPlacementGroupsUpdateOptionalParams + options?: ProximityPlacementGroupsUpdateOptionalParams, ): Promise; /** * Delete a proximity placement group. @@ -75,7 +75,7 @@ export interface ProximityPlacementGroups { delete( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsDeleteOptionalParams + options?: ProximityPlacementGroupsDeleteOptionalParams, ): Promise; /** * Retrieves information about a proximity placement group . @@ -86,6 +86,6 @@ export interface ProximityPlacementGroups { get( resourceGroupName: string, proximityPlacementGroupName: string, - options?: ProximityPlacementGroupsGetOptionalParams + options?: ProximityPlacementGroupsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts b/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts index 3fa959f26775..2dbeae45dede 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/resourceSkus.ts @@ -17,6 +17,6 @@ export interface ResourceSkus { * @param options The options parameters. */ list( - options?: ResourceSkusListOptionalParams + options?: ResourceSkusListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts b/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts index 86bc3d4aa55a..d51d8e973300 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/restorePointCollections.ts @@ -19,7 +19,7 @@ import { RestorePointCollectionsUpdateResponse, RestorePointCollectionsDeleteOptionalParams, RestorePointCollectionsGetOptionalParams, - RestorePointCollectionsGetResponse + RestorePointCollectionsGetResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface RestorePointCollections { */ list( resourceGroupName: string, - options?: RestorePointCollectionsListOptionalParams + options?: RestorePointCollectionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of restore point collections in the subscription. Use nextLink property in the @@ -41,7 +41,7 @@ export interface RestorePointCollections { * @param options The options parameters. */ listAll( - options?: RestorePointCollectionsListAllOptionalParams + options?: RestorePointCollectionsListAllOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update the restore point collection. Please refer to @@ -56,7 +56,7 @@ export interface RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollection, - options?: RestorePointCollectionsCreateOrUpdateOptionalParams + options?: RestorePointCollectionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the restore point collection. @@ -69,7 +69,7 @@ export interface RestorePointCollections { resourceGroupName: string, restorePointCollectionName: string, parameters: RestorePointCollectionUpdate, - options?: RestorePointCollectionsUpdateOptionalParams + options?: RestorePointCollectionsUpdateOptionalParams, ): Promise; /** * The operation to delete the restore point collection. This operation will also delete all the @@ -81,7 +81,7 @@ export interface RestorePointCollections { beginDelete( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the restore point collection. This operation will also delete all the @@ -93,7 +93,7 @@ export interface RestorePointCollections { beginDeleteAndWait( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsDeleteOptionalParams + options?: RestorePointCollectionsDeleteOptionalParams, ): Promise; /** * The operation to get the restore point collection. @@ -104,6 +104,6 @@ export interface RestorePointCollections { get( resourceGroupName: string, restorePointCollectionName: string, - options?: RestorePointCollectionsGetOptionalParams + options?: RestorePointCollectionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts b/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts index 4c46e1a8a161..dfe5a207b245 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/restorePoints.ts @@ -13,7 +13,7 @@ import { RestorePointsCreateResponse, RestorePointsDeleteOptionalParams, RestorePointsGetOptionalParams, - RestorePointsGetResponse + RestorePointsGetResponse, } from "../models"; /** Interface representing a RestorePoints. */ @@ -32,7 +32,7 @@ export interface RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -53,7 +53,7 @@ export interface RestorePoints { restorePointCollectionName: string, restorePointName: string, parameters: RestorePoint, - options?: RestorePointsCreateOptionalParams + options?: RestorePointsCreateOptionalParams, ): Promise; /** * The operation to delete the restore point. @@ -66,7 +66,7 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the restore point. @@ -79,7 +79,7 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsDeleteOptionalParams + options?: RestorePointsDeleteOptionalParams, ): Promise; /** * The operation to get the restore point. @@ -92,6 +92,6 @@ export interface RestorePoints { resourceGroupName: string, restorePointCollectionName: string, restorePointName: string, - options?: RestorePointsGetOptionalParams + options?: RestorePointsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts index 1499cf9dab8b..f8030198e3bf 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleries.ts @@ -11,7 +11,7 @@ import { SharedGallery, SharedGalleriesListOptionalParams, SharedGalleriesGetOptionalParams, - SharedGalleriesGetResponse + SharedGalleriesGetResponse, } from "../models"; /// @@ -24,7 +24,7 @@ export interface SharedGalleries { */ list( location: string, - options?: SharedGalleriesListOptionalParams + options?: SharedGalleriesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery by subscription id or tenant id. @@ -35,6 +35,6 @@ export interface SharedGalleries { get( location: string, galleryUniqueName: string, - options?: SharedGalleriesGetOptionalParams + options?: SharedGalleriesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts index 3b6cde331c6f..89b4730605ae 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImageVersions.ts @@ -11,7 +11,7 @@ import { SharedGalleryImageVersion, SharedGalleryImageVersionsListOptionalParams, SharedGalleryImageVersionsGetOptionalParams, - SharedGalleryImageVersionsGetResponse + SharedGalleryImageVersionsGetResponse, } from "../models"; /// @@ -29,7 +29,7 @@ export interface SharedGalleryImageVersions { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImageVersionsListOptionalParams + options?: SharedGalleryImageVersionsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery image version by subscription id or tenant id. @@ -47,6 +47,6 @@ export interface SharedGalleryImageVersions { galleryUniqueName: string, galleryImageName: string, galleryImageVersionName: string, - options?: SharedGalleryImageVersionsGetOptionalParams + options?: SharedGalleryImageVersionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts index db7ccb652d1b..6d9069498a71 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sharedGalleryImages.ts @@ -11,7 +11,7 @@ import { SharedGalleryImage, SharedGalleryImagesListOptionalParams, SharedGalleryImagesGetOptionalParams, - SharedGalleryImagesGetResponse + SharedGalleryImagesGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface SharedGalleryImages { list( location: string, galleryUniqueName: string, - options?: SharedGalleryImagesListOptionalParams + options?: SharedGalleryImagesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a shared gallery image by subscription id or tenant id. @@ -40,6 +40,6 @@ export interface SharedGalleryImages { location: string, galleryUniqueName: string, galleryImageName: string, - options?: SharedGalleryImagesGetOptionalParams + options?: SharedGalleryImagesGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts index bcc82b28779e..62dfae4221d3 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/snapshots.ts @@ -23,7 +23,7 @@ import { GrantAccessData, SnapshotsGrantAccessOptionalParams, SnapshotsGrantAccessResponse, - SnapshotsRevokeAccessOptionalParams + SnapshotsRevokeAccessOptionalParams, } from "../models"; /// @@ -36,14 +36,14 @@ export interface Snapshots { */ listByResourceGroup( resourceGroupName: string, - options?: SnapshotsListByResourceGroupOptionalParams + options?: SnapshotsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Lists snapshots under a subscription. * @param options The options parameters. */ list( - options?: SnapshotsListOptionalParams + options?: SnapshotsListOptionalParams, ): PagedAsyncIterableIterator; /** * Creates or updates a snapshot. @@ -58,7 +58,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -78,7 +78,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: Snapshot, - options?: SnapshotsCreateOrUpdateOptionalParams + options?: SnapshotsCreateOrUpdateOptionalParams, ): Promise; /** * Updates (patches) a snapshot. @@ -93,7 +93,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -113,7 +113,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, snapshot: SnapshotUpdate, - options?: SnapshotsUpdateOptionalParams + options?: SnapshotsUpdateOptionalParams, ): Promise; /** * Gets information about a snapshot. @@ -126,7 +126,7 @@ export interface Snapshots { get( resourceGroupName: string, snapshotName: string, - options?: SnapshotsGetOptionalParams + options?: SnapshotsGetOptionalParams, ): Promise; /** * Deletes a snapshot. @@ -139,7 +139,7 @@ export interface Snapshots { beginDelete( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a snapshot. @@ -152,7 +152,7 @@ export interface Snapshots { beginDeleteAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsDeleteOptionalParams + options?: SnapshotsDeleteOptionalParams, ): Promise; /** * Grants access to a snapshot. @@ -167,7 +167,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -187,7 +187,7 @@ export interface Snapshots { resourceGroupName: string, snapshotName: string, grantAccessData: GrantAccessData, - options?: SnapshotsGrantAccessOptionalParams + options?: SnapshotsGrantAccessOptionalParams, ): Promise; /** * Revokes access to a snapshot. @@ -200,7 +200,7 @@ export interface Snapshots { beginRevokeAccess( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise, void>>; /** * Revokes access to a snapshot. @@ -213,6 +213,6 @@ export interface Snapshots { beginRevokeAccessAndWait( resourceGroupName: string, snapshotName: string, - options?: SnapshotsRevokeAccessOptionalParams + options?: SnapshotsRevokeAccessOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts b/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts index 323d9b4277f2..f874a4c95435 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/sshPublicKeys.ts @@ -20,7 +20,7 @@ import { SshPublicKeysGetOptionalParams, SshPublicKeysGetResponse, SshPublicKeysGenerateKeyPairOptionalParams, - SshPublicKeysGenerateKeyPairResponse + SshPublicKeysGenerateKeyPairResponse, } from "../models"; /// @@ -32,7 +32,7 @@ export interface SshPublicKeys { * @param options The options parameters. */ listBySubscription( - options?: SshPublicKeysListBySubscriptionOptionalParams + options?: SshPublicKeysListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the SSH public keys in the specified resource group. Use the nextLink property in the @@ -42,7 +42,7 @@ export interface SshPublicKeys { */ listByResourceGroup( resourceGroupName: string, - options?: SshPublicKeysListByResourceGroupOptionalParams + options?: SshPublicKeysListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new SSH public key resource. @@ -55,7 +55,7 @@ export interface SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyResource, - options?: SshPublicKeysCreateOptionalParams + options?: SshPublicKeysCreateOptionalParams, ): Promise; /** * Updates a new SSH public key resource. @@ -68,7 +68,7 @@ export interface SshPublicKeys { resourceGroupName: string, sshPublicKeyName: string, parameters: SshPublicKeyUpdateResource, - options?: SshPublicKeysUpdateOptionalParams + options?: SshPublicKeysUpdateOptionalParams, ): Promise; /** * Delete an SSH public key. @@ -79,7 +79,7 @@ export interface SshPublicKeys { delete( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysDeleteOptionalParams + options?: SshPublicKeysDeleteOptionalParams, ): Promise; /** * Retrieves information about an SSH public key. @@ -90,7 +90,7 @@ export interface SshPublicKeys { get( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGetOptionalParams + options?: SshPublicKeysGetOptionalParams, ): Promise; /** * Generates and returns a public/private key pair and populates the SSH public key resource with the @@ -103,6 +103,6 @@ export interface SshPublicKeys { generateKeyPair( resourceGroupName: string, sshPublicKeyName: string, - options?: SshPublicKeysGenerateKeyPairOptionalParams + options?: SshPublicKeysGenerateKeyPairOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts b/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts index f6a753fdfba7..67a176bfae37 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/usageOperations.ts @@ -20,6 +20,6 @@ export interface UsageOperations { */ list( location: string, - options?: UsageListOptionalParams + options?: UsageListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts index 34eeb14c3eeb..2e293a3bf08f 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensionImages.ts @@ -12,7 +12,7 @@ import { VirtualMachineExtensionImagesListTypesOptionalParams, VirtualMachineExtensionImagesListTypesResponse, VirtualMachineExtensionImagesListVersionsOptionalParams, - VirtualMachineExtensionImagesListVersionsResponse + VirtualMachineExtensionImagesListVersionsResponse, } from "../models"; /** Interface representing a VirtualMachineExtensionImages. */ @@ -30,7 +30,7 @@ export interface VirtualMachineExtensionImages { publisherName: string, typeParam: string, version: string, - options?: VirtualMachineExtensionImagesGetOptionalParams + options?: VirtualMachineExtensionImagesGetOptionalParams, ): Promise; /** * Gets a list of virtual machine extension image types. @@ -41,7 +41,7 @@ export interface VirtualMachineExtensionImages { listTypes( location: string, publisherName: string, - options?: VirtualMachineExtensionImagesListTypesOptionalParams + options?: VirtualMachineExtensionImagesListTypesOptionalParams, ): Promise; /** * Gets a list of virtual machine extension image versions. @@ -54,6 +54,6 @@ export interface VirtualMachineExtensionImages { location: string, publisherName: string, typeParam: string, - options?: VirtualMachineExtensionImagesListVersionsOptionalParams + options?: VirtualMachineExtensionImagesListVersionsOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts index 95731c5b27da..f646e6f09861 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineExtensionsGetOptionalParams, VirtualMachineExtensionsGetResponse, VirtualMachineExtensionsListOptionalParams, - VirtualMachineExtensionsListResponse + VirtualMachineExtensionsListResponse, } from "../models"; /** Interface representing a VirtualMachineExtensions. */ @@ -36,7 +36,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -56,7 +56,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtension, - options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the extension. @@ -71,7 +71,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -91,7 +91,7 @@ export interface VirtualMachineExtensions { vmName: string, vmExtensionName: string, extensionParameters: VirtualMachineExtensionUpdate, - options?: VirtualMachineExtensionsUpdateOptionalParams + options?: VirtualMachineExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the extension. @@ -104,7 +104,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the extension. @@ -117,7 +117,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsDeleteOptionalParams + options?: VirtualMachineExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the extension. @@ -130,7 +130,7 @@ export interface VirtualMachineExtensions { resourceGroupName: string, vmName: string, vmExtensionName: string, - options?: VirtualMachineExtensionsGetOptionalParams + options?: VirtualMachineExtensionsGetOptionalParams, ): Promise; /** * The operation to get all extensions of a Virtual Machine. @@ -141,6 +141,6 @@ export interface VirtualMachineExtensions { list( resourceGroupName: string, vmName: string, - options?: VirtualMachineExtensionsListOptionalParams + options?: VirtualMachineExtensionsListOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts index 698ca4c0b9a5..7a2de728e770 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImages.ts @@ -18,7 +18,7 @@ import { VirtualMachineImagesListSkusOptionalParams, VirtualMachineImagesListSkusResponse, VirtualMachineImagesListByEdgeZoneOptionalParams, - VirtualMachineImagesListByEdgeZoneResponse + VirtualMachineImagesListByEdgeZoneResponse, } from "../models"; /** Interface representing a VirtualMachineImages. */ @@ -38,7 +38,7 @@ export interface VirtualMachineImages { offer: string, skus: string, version: string, - options?: VirtualMachineImagesGetOptionalParams + options?: VirtualMachineImagesGetOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified location, publisher, offer, and @@ -54,7 +54,7 @@ export interface VirtualMachineImages { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesListOptionalParams + options?: VirtualMachineImagesListOptionalParams, ): Promise; /** * Gets a list of virtual machine image offers for the specified location and publisher. @@ -65,7 +65,7 @@ export interface VirtualMachineImages { listOffers( location: string, publisherName: string, - options?: VirtualMachineImagesListOffersOptionalParams + options?: VirtualMachineImagesListOffersOptionalParams, ): Promise; /** * Gets a list of virtual machine image publishers for the specified Azure location. @@ -74,7 +74,7 @@ export interface VirtualMachineImages { */ listPublishers( location: string, - options?: VirtualMachineImagesListPublishersOptionalParams + options?: VirtualMachineImagesListPublishersOptionalParams, ): Promise; /** * Gets a list of virtual machine image SKUs for the specified location, publisher, and offer. @@ -87,7 +87,7 @@ export interface VirtualMachineImages { location: string, publisherName: string, offer: string, - options?: VirtualMachineImagesListSkusOptionalParams + options?: VirtualMachineImagesListSkusOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified edge zone @@ -98,6 +98,6 @@ export interface VirtualMachineImages { listByEdgeZone( location: string, edgeZone: string, - options?: VirtualMachineImagesListByEdgeZoneOptionalParams + options?: VirtualMachineImagesListByEdgeZoneOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts index a2b851308443..0c0e5cf1d20c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineImagesEdgeZone.ts @@ -16,7 +16,7 @@ import { VirtualMachineImagesEdgeZoneListPublishersOptionalParams, VirtualMachineImagesEdgeZoneListPublishersResponse, VirtualMachineImagesEdgeZoneListSkusOptionalParams, - VirtualMachineImagesEdgeZoneListSkusResponse + VirtualMachineImagesEdgeZoneListSkusResponse, } from "../models"; /** Interface representing a VirtualMachineImagesEdgeZone. */ @@ -38,7 +38,7 @@ export interface VirtualMachineImagesEdgeZone { offer: string, skus: string, version: string, - options?: VirtualMachineImagesEdgeZoneGetOptionalParams + options?: VirtualMachineImagesEdgeZoneGetOptionalParams, ): Promise; /** * Gets a list of all virtual machine image versions for the specified location, edge zone, publisher, @@ -56,7 +56,7 @@ export interface VirtualMachineImagesEdgeZone { publisherName: string, offer: string, skus: string, - options?: VirtualMachineImagesEdgeZoneListOptionalParams + options?: VirtualMachineImagesEdgeZoneListOptionalParams, ): Promise; /** * Gets a list of virtual machine image offers for the specified location, edge zone and publisher. @@ -69,7 +69,7 @@ export interface VirtualMachineImagesEdgeZone { location: string, edgeZone: string, publisherName: string, - options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams + options?: VirtualMachineImagesEdgeZoneListOffersOptionalParams, ): Promise; /** * Gets a list of virtual machine image publishers for the specified Azure location and edge zone. @@ -80,7 +80,7 @@ export interface VirtualMachineImagesEdgeZone { listPublishers( location: string, edgeZone: string, - options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams + options?: VirtualMachineImagesEdgeZoneListPublishersOptionalParams, ): Promise; /** * Gets a list of virtual machine image SKUs for the specified location, edge zone, publisher, and @@ -96,6 +96,6 @@ export interface VirtualMachineImagesEdgeZone { edgeZone: string, publisherName: string, offer: string, - options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams + options?: VirtualMachineImagesEdgeZoneListSkusOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts index 8a16255431b6..7805fd6e588e 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineRunCommands.ts @@ -22,7 +22,7 @@ import { VirtualMachineRunCommandsUpdateResponse, VirtualMachineRunCommandsDeleteOptionalParams, VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, - VirtualMachineRunCommandsGetByVirtualMachineResponse + VirtualMachineRunCommandsGetByVirtualMachineResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface VirtualMachineRunCommands { */ list( location: string, - options?: VirtualMachineRunCommandsListOptionalParams + options?: VirtualMachineRunCommandsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to get all run commands of a Virtual Machine. @@ -46,7 +46,7 @@ export interface VirtualMachineRunCommands { listByVirtualMachine( resourceGroupName: string, vmName: string, - options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsListByVirtualMachineOptionalParams, ): PagedAsyncIterableIterator; /** * Gets specific run command for a subscription in a location. @@ -57,7 +57,7 @@ export interface VirtualMachineRunCommands { get( location: string, commandId: string, - options?: VirtualMachineRunCommandsGetOptionalParams + options?: VirtualMachineRunCommandsGetOptionalParams, ): Promise; /** * The operation to create or update the run command. @@ -72,7 +72,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -92,7 +92,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineRunCommandsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the run command. @@ -107,7 +107,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -127,7 +127,7 @@ export interface VirtualMachineRunCommands { vmName: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineRunCommandsUpdateOptionalParams + options?: VirtualMachineRunCommandsUpdateOptionalParams, ): Promise; /** * The operation to delete the run command. @@ -140,7 +140,7 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the run command. @@ -153,7 +153,7 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsDeleteOptionalParams + options?: VirtualMachineRunCommandsDeleteOptionalParams, ): Promise; /** * The operation to get the run command. @@ -166,6 +166,6 @@ export interface VirtualMachineRunCommands { resourceGroupName: string, vmName: string, runCommandName: string, - options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams + options?: VirtualMachineRunCommandsGetByVirtualMachineOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts index d286677fa2eb..9a923fb4bd41 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetExtensionsUpdateResponse, VirtualMachineScaleSetExtensionsDeleteOptionalParams, VirtualMachineScaleSetExtensionsGetOptionalParams, - VirtualMachineScaleSetExtensionsGetResponse + VirtualMachineScaleSetExtensionsGetResponse, } from "../models"; /// @@ -33,7 +33,7 @@ export interface VirtualMachineScaleSetExtensions { list( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetExtensionsListOptionalParams + options?: VirtualMachineScaleSetExtensionsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update an extension. @@ -48,7 +48,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -68,7 +68,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtension, - options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update an extension. @@ -83,7 +83,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -103,7 +103,7 @@ export interface VirtualMachineScaleSetExtensions { vmScaleSetName: string, vmssExtensionName: string, extensionParameters: VirtualMachineScaleSetExtensionUpdate, - options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the extension. @@ -116,7 +116,7 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the extension. @@ -129,7 +129,7 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the extension. @@ -142,6 +142,6 @@ export interface VirtualMachineScaleSetExtensions { resourceGroupName: string, vmScaleSetName: string, vmssExtensionName: string, - options?: VirtualMachineScaleSetExtensionsGetOptionalParams + options?: VirtualMachineScaleSetExtensionsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts index a1326e13e258..07c809171637 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetRollingUpgrades.ts @@ -12,7 +12,7 @@ import { VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, - VirtualMachineScaleSetRollingUpgradesGetLatestResponse + VirtualMachineScaleSetRollingUpgradesGetLatestResponse, } from "../models"; /** Interface representing a VirtualMachineScaleSetRollingUpgrades. */ @@ -26,7 +26,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginCancel( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise, void>>; /** * Cancels the current virtual machine scale set rolling upgrade. @@ -37,7 +37,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginCancelAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesCancelOptionalParams, ): Promise; /** * Starts a rolling upgrade to move all virtual machine scale set instances to the latest available @@ -50,7 +50,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartOSUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise, void>>; /** * Starts a rolling upgrade to move all virtual machine scale set instances to the latest available @@ -63,7 +63,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartOSUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartOSUpgradeOptionalParams, ): Promise; /** * Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the @@ -76,7 +76,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartExtensionUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise, void>>; /** * Starts a rolling upgrade to move all extensions for all virtual machine scale set instances to the @@ -89,7 +89,7 @@ export interface VirtualMachineScaleSetRollingUpgrades { beginStartExtensionUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesStartExtensionUpgradeOptionalParams, ): Promise; /** * Gets the status of the latest virtual machine scale set rolling upgrade. @@ -100,6 +100,6 @@ export interface VirtualMachineScaleSetRollingUpgrades { getLatest( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams + options?: VirtualMachineScaleSetRollingUpgradesGetLatestOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts index ecd3190015b1..c76f6232239d 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMExtensions.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetVMExtensionsGetOptionalParams, VirtualMachineScaleSetVMExtensionsGetResponse, VirtualMachineScaleSetVMExtensionsListOptionalParams, - VirtualMachineScaleSetVMExtensionsListResponse + VirtualMachineScaleSetVMExtensionsListResponse, } from "../models"; /** Interface representing a VirtualMachineScaleSetVMExtensions. */ @@ -38,7 +38,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -60,7 +60,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtension, - options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the VMSS VM extension. @@ -77,7 +77,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -99,7 +99,7 @@ export interface VirtualMachineScaleSetVMExtensions { instanceId: string, vmExtensionName: string, extensionParameters: VirtualMachineScaleSetVMExtensionUpdate, - options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams + options?: VirtualMachineScaleSetVMExtensionsUpdateOptionalParams, ): Promise; /** * The operation to delete the VMSS VM extension. @@ -114,7 +114,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the VMSS VM extension. @@ -129,7 +129,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams + options?: VirtualMachineScaleSetVMExtensionsDeleteOptionalParams, ): Promise; /** * The operation to get the VMSS VM extension. @@ -144,7 +144,7 @@ export interface VirtualMachineScaleSetVMExtensions { vmScaleSetName: string, instanceId: string, vmExtensionName: string, - options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams + options?: VirtualMachineScaleSetVMExtensionsGetOptionalParams, ): Promise; /** * The operation to get all extensions of an instance in Virtual Machine Scaleset. @@ -157,6 +157,6 @@ export interface VirtualMachineScaleSetVMExtensions { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMExtensionsListOptionalParams + options?: VirtualMachineScaleSetVMExtensionsListOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts index 12f69421b9ce..044b950fa7e1 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMRunCommands.ts @@ -18,7 +18,7 @@ import { VirtualMachineScaleSetVMRunCommandsUpdateResponse, VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, VirtualMachineScaleSetVMRunCommandsGetOptionalParams, - VirtualMachineScaleSetVMRunCommandsGetResponse + VirtualMachineScaleSetVMRunCommandsGetResponse, } from "../models"; /// @@ -35,7 +35,7 @@ export interface VirtualMachineScaleSetVMRunCommands { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsListOptionalParams, ): PagedAsyncIterableIterator; /** * The operation to create or update the VMSS VM run command. @@ -52,7 +52,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -74,7 +74,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommand, - options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update the VMSS VM run command. @@ -91,7 +91,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -113,7 +113,7 @@ export interface VirtualMachineScaleSetVMRunCommands { instanceId: string, runCommandName: string, runCommand: VirtualMachineRunCommandUpdate, - options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsUpdateOptionalParams, ): Promise; /** * The operation to delete the VMSS VM run command. @@ -128,7 +128,7 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete the VMSS VM run command. @@ -143,7 +143,7 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsDeleteOptionalParams, ): Promise; /** * The operation to get the VMSS VM run command. @@ -158,6 +158,6 @@ export interface VirtualMachineScaleSetVMRunCommands { vmScaleSetName: string, instanceId: string, runCommandName: string, - options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams + options?: VirtualMachineScaleSetVMRunCommandsGetOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts index 72505ad04bab..faba210cac60 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSetVMs.ts @@ -36,7 +36,7 @@ import { VirtualMachineScaleSetVMsAttachDetachDataDisksResponse, RunCommandInput, VirtualMachineScaleSetVMsRunCommandOptionalParams, - VirtualMachineScaleSetVMsRunCommandResponse + VirtualMachineScaleSetVMsRunCommandResponse, } from "../models"; /// @@ -51,7 +51,7 @@ export interface VirtualMachineScaleSetVMs { list( resourceGroupName: string, virtualMachineScaleSetName: string, - options?: VirtualMachineScaleSetVMsListOptionalParams + options?: VirtualMachineScaleSetVMsListOptionalParams, ): PagedAsyncIterableIterator; /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -64,7 +64,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) a specific virtual machine in a VM scale set. @@ -77,7 +77,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageOptionalParams + options?: VirtualMachineScaleSetVMsReimageOptionalParams, ): Promise; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This @@ -91,7 +91,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise, void>>; /** * Allows you to re-image all the disks ( including data disks ) in the a VM scale set instance. This @@ -105,7 +105,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsReimageAllOptionalParams + options?: VirtualMachineScaleSetVMsReimageAllOptionalParams, ): Promise; /** * Approve upgrade on deferred rolling upgrade for OS disk on a VM scale set instance. @@ -118,7 +118,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -136,7 +136,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetVMsApproveRollingUpgradeOptionalParams, ): Promise; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and @@ -151,7 +151,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise, void>>; /** * Deallocates a specific virtual machine in a VM scale set. Shuts down the virtual machine and @@ -166,7 +166,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeallocateOptionalParams + options?: VirtualMachineScaleSetVMsDeallocateOptionalParams, ): Promise; /** * Updates a virtual machine of a VM scale set. @@ -181,7 +181,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -201,7 +201,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: VirtualMachineScaleSetVM, - options?: VirtualMachineScaleSetVMsUpdateOptionalParams + options?: VirtualMachineScaleSetVMsUpdateOptionalParams, ): Promise; /** * Deletes a virtual machine from a VM scale set. @@ -214,7 +214,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a virtual machine from a VM scale set. @@ -227,7 +227,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsDeleteOptionalParams + options?: VirtualMachineScaleSetVMsDeleteOptionalParams, ): Promise; /** * Gets a virtual machine from a VM scale set. @@ -240,7 +240,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetOptionalParams + options?: VirtualMachineScaleSetVMsGetOptionalParams, ): Promise; /** * Gets the status of a virtual machine from a VM scale set. @@ -253,7 +253,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetVMsGetInstanceViewOptionalParams, ): Promise; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you @@ -268,7 +268,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise, void>>; /** * Power off (stop) a virtual machine in a VM scale set. Note that resources are still attached and you @@ -283,7 +283,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPowerOffOptionalParams + options?: VirtualMachineScaleSetVMsPowerOffOptionalParams, ): Promise; /** * Restarts a virtual machine in a VM scale set. @@ -296,7 +296,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise, void>>; /** * Restarts a virtual machine in a VM scale set. @@ -309,7 +309,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRestartOptionalParams + options?: VirtualMachineScaleSetVMsRestartOptionalParams, ): Promise; /** * Starts a virtual machine in a VM scale set. @@ -322,7 +322,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise, void>>; /** * Starts a virtual machine in a VM scale set. @@ -335,7 +335,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsStartOptionalParams + options?: VirtualMachineScaleSetVMsStartOptionalParams, ): Promise; /** * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers @@ -349,7 +349,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine in the virtual machine scale set, moves it to a new node, and powers @@ -363,7 +363,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRedeployOptionalParams + options?: VirtualMachineScaleSetVMsRedeployOptionalParams, ): Promise; /** * The operation to retrieve SAS URIs of boot diagnostic logs for a virtual machine in a VM scale set. @@ -376,7 +376,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachineScaleSetVMsRetrieveBootDiagnosticsDataOptionalParams, ): Promise; /** * Performs maintenance on a virtual machine in a VM scale set. @@ -389,7 +389,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise, void>>; /** * Performs maintenance on a virtual machine in a VM scale set. @@ -402,7 +402,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetVMsPerformMaintenanceOptionalParams, ): Promise; /** * The operation to simulate the eviction of spot virtual machine in a VM scale set. @@ -415,7 +415,7 @@ export interface VirtualMachineScaleSetVMs { resourceGroupName: string, vmScaleSetName: string, instanceId: string, - options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams + options?: VirtualMachineScaleSetVMsSimulateEvictionOptionalParams, ): Promise; /** * Attach and detach data disks to/from a virtual machine in a VM scale set. @@ -431,7 +431,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -452,7 +452,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams + options?: VirtualMachineScaleSetVMsAttachDetachDataDisksOptionalParams, ): Promise; /** * Run command on a virtual machine in a VM scale set. @@ -467,7 +467,7 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -487,6 +487,6 @@ export interface VirtualMachineScaleSetVMs { vmScaleSetName: string, instanceId: string, parameters: RunCommandInput, - options?: VirtualMachineScaleSetVMsRunCommandOptionalParams + options?: VirtualMachineScaleSetVMsRunCommandOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts index 6b7366c5365b..719d183aa34b 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineScaleSets.ts @@ -46,7 +46,7 @@ import { VMScaleSetConvertToSinglePlacementGroupInput, VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, OrchestrationServiceStateInput, - VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, } from "../models"; /// @@ -59,7 +59,7 @@ export interface VirtualMachineScaleSets { */ listByLocation( location: string, - options?: VirtualMachineScaleSetsListByLocationOptionalParams + options?: VirtualMachineScaleSetsListByLocationOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all VM scale sets under a resource group. @@ -68,7 +68,7 @@ export interface VirtualMachineScaleSets { */ list( resourceGroupName: string, - options?: VirtualMachineScaleSetsListOptionalParams + options?: VirtualMachineScaleSetsListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of all VM Scale Sets in the subscription, regardless of the associated resource group. @@ -77,7 +77,7 @@ export interface VirtualMachineScaleSets { * @param options The options parameters. */ listAll( - options?: VirtualMachineScaleSetsListAllOptionalParams + options?: VirtualMachineScaleSetsListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Gets a list of SKUs available for your VM scale set, including the minimum and maximum VM instances @@ -89,7 +89,7 @@ export interface VirtualMachineScaleSets { listSkus( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsListSkusOptionalParams + options?: VirtualMachineScaleSetsListSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets list of OS upgrades on a VM scale set instance. @@ -100,7 +100,7 @@ export interface VirtualMachineScaleSets { listOSUpgradeHistory( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams + options?: VirtualMachineScaleSetsGetOSUpgradeHistoryOptionalParams, ): PagedAsyncIterableIterator; /** * Create or update a VM scale set. @@ -113,7 +113,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -131,7 +131,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSet, - options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams + options?: VirtualMachineScaleSetsCreateOrUpdateOptionalParams, ): Promise; /** * Update a VM scale set. @@ -144,7 +144,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -162,7 +162,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VirtualMachineScaleSetUpdate, - options?: VirtualMachineScaleSetsUpdateOptionalParams + options?: VirtualMachineScaleSetsUpdateOptionalParams, ): Promise; /** * Deletes a VM scale set. @@ -173,7 +173,7 @@ export interface VirtualMachineScaleSets { beginDelete( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise, void>>; /** * Deletes a VM scale set. @@ -184,7 +184,7 @@ export interface VirtualMachineScaleSets { beginDeleteAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeleteOptionalParams + options?: VirtualMachineScaleSetsDeleteOptionalParams, ): Promise; /** * Display information about a virtual machine scale set. @@ -195,7 +195,7 @@ export interface VirtualMachineScaleSets { get( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetOptionalParams + options?: VirtualMachineScaleSetsGetOptionalParams, ): Promise; /** * Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and @@ -208,7 +208,7 @@ export interface VirtualMachineScaleSets { beginDeallocate( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise, void>>; /** * Deallocates specific virtual machines in a VM scale set. Shuts down the virtual machines and @@ -221,7 +221,7 @@ export interface VirtualMachineScaleSets { beginDeallocateAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsDeallocateOptionalParams + options?: VirtualMachineScaleSetsDeallocateOptionalParams, ): Promise; /** * Deletes virtual machines in a VM scale set. @@ -234,7 +234,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise, void>>; /** * Deletes virtual machines in a VM scale set. @@ -247,7 +247,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams + options?: VirtualMachineScaleSetsDeleteInstancesOptionalParams, ): Promise; /** * Gets the status of a VM scale set instance. @@ -258,7 +258,7 @@ export interface VirtualMachineScaleSets { getInstanceView( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams + options?: VirtualMachineScaleSetsGetInstanceViewOptionalParams, ): Promise; /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still @@ -271,7 +271,7 @@ export interface VirtualMachineScaleSets { beginPowerOff( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise, void>>; /** * Power off (stop) one or more virtual machines in a VM scale set. Note that resources are still @@ -284,7 +284,7 @@ export interface VirtualMachineScaleSets { beginPowerOffAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPowerOffOptionalParams + options?: VirtualMachineScaleSetsPowerOffOptionalParams, ): Promise; /** * Restarts one or more virtual machines in a VM scale set. @@ -295,7 +295,7 @@ export interface VirtualMachineScaleSets { beginRestart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise, void>>; /** * Restarts one or more virtual machines in a VM scale set. @@ -306,7 +306,7 @@ export interface VirtualMachineScaleSets { beginRestartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRestartOptionalParams + options?: VirtualMachineScaleSetsRestartOptionalParams, ): Promise; /** * Starts one or more virtual machines in a VM scale set. @@ -317,7 +317,7 @@ export interface VirtualMachineScaleSets { beginStart( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise, void>>; /** * Starts one or more virtual machines in a VM scale set. @@ -328,7 +328,7 @@ export interface VirtualMachineScaleSets { beginStartAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsStartOptionalParams + options?: VirtualMachineScaleSetsStartOptionalParams, ): Promise; /** * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances @@ -339,7 +339,7 @@ export interface VirtualMachineScaleSets { beginReapply( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise, void>>; /** * Reapplies the Virtual Machine Scale Set Virtual Machine Profile to the Virtual Machine Instances @@ -350,7 +350,7 @@ export interface VirtualMachineScaleSets { beginReapplyAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReapplyOptionalParams + options?: VirtualMachineScaleSetsReapplyOptionalParams, ): Promise; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and @@ -362,7 +362,7 @@ export interface VirtualMachineScaleSets { beginRedeploy( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise, void>>; /** * Shuts down all the virtual machines in the virtual machine scale set, moves them to a new node, and @@ -374,7 +374,7 @@ export interface VirtualMachineScaleSets { beginRedeployAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsRedeployOptionalParams + options?: VirtualMachineScaleSetsRedeployOptionalParams, ): Promise; /** * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which @@ -388,7 +388,7 @@ export interface VirtualMachineScaleSets { beginPerformMaintenance( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise, void>>; /** * Perform maintenance on one or more virtual machines in a VM scale set. Operation on instances which @@ -402,7 +402,7 @@ export interface VirtualMachineScaleSets { beginPerformMaintenanceAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams + options?: VirtualMachineScaleSetsPerformMaintenanceOptionalParams, ): Promise; /** * Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -415,7 +415,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise, void>>; /** * Upgrades one or more virtual machines to the latest SKU set in the VM scale set model. @@ -428,7 +428,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, vmInstanceIDs: VirtualMachineScaleSetVMInstanceRequiredIDs, - options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams + options?: VirtualMachineScaleSetsUpdateInstancesOptionalParams, ): Promise; /** * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't @@ -441,7 +441,7 @@ export interface VirtualMachineScaleSets { beginReimage( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) one or more virtual machines in a VM scale set which don't @@ -454,7 +454,7 @@ export interface VirtualMachineScaleSets { beginReimageAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageOptionalParams + options?: VirtualMachineScaleSetsReimageOptionalParams, ): Promise; /** * Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This @@ -466,7 +466,7 @@ export interface VirtualMachineScaleSets { beginReimageAll( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise, void>>; /** * Reimages all the disks ( including data disks ) in the virtual machines in a VM scale set. This @@ -478,7 +478,7 @@ export interface VirtualMachineScaleSets { beginReimageAllAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsReimageAllOptionalParams + options?: VirtualMachineScaleSetsReimageAllOptionalParams, ): Promise; /** * Approve upgrade on deferred rolling upgrades for OS disks in the virtual machines in a VM scale set. @@ -489,7 +489,7 @@ export interface VirtualMachineScaleSets { beginApproveRollingUpgrade( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -505,7 +505,7 @@ export interface VirtualMachineScaleSets { beginApproveRollingUpgradeAndWait( resourceGroupName: string, vmScaleSetName: string, - options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams + options?: VirtualMachineScaleSetsApproveRollingUpgradeOptionalParams, ): Promise; /** * Manual platform update domain walk to update virtual machines in a service fabric virtual machine @@ -519,10 +519,8 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, platformUpdateDomain: number, - options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams - ): Promise< - VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkResponse - >; + options?: VirtualMachineScaleSetsForceRecoveryServiceFabricPlatformUpdateDomainWalkOptionalParams, + ): Promise; /** * Converts SinglePlacementGroup property to false for a existing virtual machine scale set. * @param resourceGroupName The name of the resource group. @@ -534,7 +532,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: VMScaleSetConvertToSinglePlacementGroupInput, - options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams + options?: VirtualMachineScaleSetsConvertToSinglePlacementGroupOptionalParams, ): Promise; /** * Changes ServiceState property for a given service @@ -547,7 +545,7 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise, void>>; /** * Changes ServiceState property for a given service @@ -560,6 +558,6 @@ export interface VirtualMachineScaleSets { resourceGroupName: string, vmScaleSetName: string, parameters: OrchestrationServiceStateInput, - options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams + options?: VirtualMachineScaleSetsSetOrchestrationServiceStateOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts index ef1e113bee1b..9672fb9b903c 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachineSizes.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { VirtualMachineSize, - VirtualMachineSizesListOptionalParams + VirtualMachineSizesListOptionalParams, } from "../models"; /// @@ -23,6 +23,6 @@ export interface VirtualMachineSizes { */ list( location: string, - options?: VirtualMachineSizesListOptionalParams + options?: VirtualMachineSizesListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts index 7bade4667082..8d62cf5b7cee 100644 --- a/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts +++ b/sdk/compute/arm-compute/src/operationsInterfaces/virtualMachines.ts @@ -51,7 +51,7 @@ import { VirtualMachinesAttachDetachDataDisksResponse, RunCommandInput, VirtualMachinesRunCommandOptionalParams, - VirtualMachinesRunCommandResponse + VirtualMachinesRunCommandResponse, } from "../models"; /// @@ -64,7 +64,7 @@ export interface VirtualMachines { */ listByLocation( location: string, - options?: VirtualMachinesListByLocationOptionalParams + options?: VirtualMachinesListByLocationOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the virtual machines in the specified resource group. Use the nextLink property in the @@ -74,7 +74,7 @@ export interface VirtualMachines { */ list( resourceGroupName: string, - options?: VirtualMachinesListOptionalParams + options?: VirtualMachinesListOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all of the virtual machines in the specified subscription. Use the nextLink property in the @@ -82,7 +82,7 @@ export interface VirtualMachines { * @param options The options parameters. */ listAll( - options?: VirtualMachinesListAllOptionalParams + options?: VirtualMachinesListAllOptionalParams, ): PagedAsyncIterableIterator; /** * Lists all available virtual machine sizes to which the specified virtual machine can be resized. @@ -93,7 +93,7 @@ export interface VirtualMachines { listAvailableSizes( resourceGroupName: string, vmName: string, - options?: VirtualMachinesListAvailableSizesOptionalParams + options?: VirtualMachinesListAvailableSizesOptionalParams, ): PagedAsyncIterableIterator; /** * Captures the VM by copying virtual hard disks of the VM and outputs a template that can be used to @@ -107,7 +107,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -126,7 +126,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineCaptureParameters, - options?: VirtualMachinesCaptureOptionalParams + options?: VirtualMachinesCaptureOptionalParams, ): Promise; /** * The operation to create or update a virtual machine. Please note some properties can be set only @@ -140,7 +140,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -159,7 +159,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachine, - options?: VirtualMachinesCreateOrUpdateOptionalParams + options?: VirtualMachinesCreateOrUpdateOptionalParams, ): Promise; /** * The operation to update a virtual machine. @@ -172,7 +172,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -190,7 +190,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: VirtualMachineUpdate, - options?: VirtualMachinesUpdateOptionalParams + options?: VirtualMachinesUpdateOptionalParams, ): Promise; /** * The operation to delete a virtual machine. @@ -201,7 +201,7 @@ export interface VirtualMachines { beginDelete( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise, void>>; /** * The operation to delete a virtual machine. @@ -212,7 +212,7 @@ export interface VirtualMachines { beginDeleteAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeleteOptionalParams + options?: VirtualMachinesDeleteOptionalParams, ): Promise; /** * Retrieves information about the model view or the instance view of a virtual machine. @@ -223,7 +223,7 @@ export interface VirtualMachines { get( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGetOptionalParams + options?: VirtualMachinesGetOptionalParams, ): Promise; /** * Retrieves information about the run-time state of a virtual machine. @@ -234,7 +234,7 @@ export interface VirtualMachines { instanceView( resourceGroupName: string, vmName: string, - options?: VirtualMachinesInstanceViewOptionalParams + options?: VirtualMachinesInstanceViewOptionalParams, ): Promise; /** * Converts virtual machine disks from blob-based to managed disks. Virtual machine must be @@ -246,7 +246,7 @@ export interface VirtualMachines { beginConvertToManagedDisks( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise, void>>; /** * Converts virtual machine disks from blob-based to managed disks. Virtual machine must be @@ -258,7 +258,7 @@ export interface VirtualMachines { beginConvertToManagedDisksAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesConvertToManagedDisksOptionalParams + options?: VirtualMachinesConvertToManagedDisksOptionalParams, ): Promise; /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the @@ -270,7 +270,7 @@ export interface VirtualMachines { beginDeallocate( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine and releases the compute resources. You are not billed for the @@ -282,7 +282,7 @@ export interface VirtualMachines { beginDeallocateAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesDeallocateOptionalParams + options?: VirtualMachinesDeallocateOptionalParams, ): Promise; /** * Sets the OS state of the virtual machine to generalized. It is recommended to sysprep the virtual @@ -298,7 +298,7 @@ export interface VirtualMachines { generalize( resourceGroupName: string, vmName: string, - options?: VirtualMachinesGeneralizeOptionalParams + options?: VirtualMachinesGeneralizeOptionalParams, ): Promise; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the @@ -310,7 +310,7 @@ export interface VirtualMachines { beginPowerOff( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise, void>>; /** * The operation to power off (stop) a virtual machine. The virtual machine can be restarted with the @@ -322,7 +322,7 @@ export interface VirtualMachines { beginPowerOffAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPowerOffOptionalParams + options?: VirtualMachinesPowerOffOptionalParams, ): Promise; /** * The operation to reapply a virtual machine's state. @@ -333,7 +333,7 @@ export interface VirtualMachines { beginReapply( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise, void>>; /** * The operation to reapply a virtual machine's state. @@ -344,7 +344,7 @@ export interface VirtualMachines { beginReapplyAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReapplyOptionalParams + options?: VirtualMachinesReapplyOptionalParams, ): Promise; /** * The operation to restart a virtual machine. @@ -355,7 +355,7 @@ export interface VirtualMachines { beginRestart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise, void>>; /** * The operation to restart a virtual machine. @@ -366,7 +366,7 @@ export interface VirtualMachines { beginRestartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRestartOptionalParams + options?: VirtualMachinesRestartOptionalParams, ): Promise; /** * The operation to start a virtual machine. @@ -377,7 +377,7 @@ export interface VirtualMachines { beginStart( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise, void>>; /** * The operation to start a virtual machine. @@ -388,7 +388,7 @@ export interface VirtualMachines { beginStartAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesStartOptionalParams + options?: VirtualMachinesStartOptionalParams, ): Promise; /** * Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -399,7 +399,7 @@ export interface VirtualMachines { beginRedeploy( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise, void>>; /** * Shuts down the virtual machine, moves it to a new node, and powers it back on. @@ -410,7 +410,7 @@ export interface VirtualMachines { beginRedeployAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRedeployOptionalParams + options?: VirtualMachinesRedeployOptionalParams, ): Promise; /** * Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for @@ -426,7 +426,7 @@ export interface VirtualMachines { beginReimage( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise, void>>; /** * Reimages (upgrade the operating system) a virtual machine which don't have a ephemeral OS disk, for @@ -442,7 +442,7 @@ export interface VirtualMachines { beginReimageAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesReimageOptionalParams + options?: VirtualMachinesReimageOptionalParams, ): Promise; /** * The operation to retrieve SAS URIs for a virtual machine's boot diagnostic logs. @@ -453,7 +453,7 @@ export interface VirtualMachines { retrieveBootDiagnosticsData( resourceGroupName: string, vmName: string, - options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams + options?: VirtualMachinesRetrieveBootDiagnosticsDataOptionalParams, ): Promise; /** * The operation to perform maintenance on a virtual machine. @@ -464,7 +464,7 @@ export interface VirtualMachines { beginPerformMaintenance( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise, void>>; /** * The operation to perform maintenance on a virtual machine. @@ -475,7 +475,7 @@ export interface VirtualMachines { beginPerformMaintenanceAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesPerformMaintenanceOptionalParams + options?: VirtualMachinesPerformMaintenanceOptionalParams, ): Promise; /** * The operation to simulate the eviction of spot virtual machine. @@ -486,7 +486,7 @@ export interface VirtualMachines { simulateEviction( resourceGroupName: string, vmName: string, - options?: VirtualMachinesSimulateEvictionOptionalParams + options?: VirtualMachinesSimulateEvictionOptionalParams, ): Promise; /** * Assess patches on the VM. @@ -497,7 +497,7 @@ export interface VirtualMachines { beginAssessPatches( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -513,7 +513,7 @@ export interface VirtualMachines { beginAssessPatchesAndWait( resourceGroupName: string, vmName: string, - options?: VirtualMachinesAssessPatchesOptionalParams + options?: VirtualMachinesAssessPatchesOptionalParams, ): Promise; /** * Installs patches on the VM. @@ -526,7 +526,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -544,7 +544,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, installPatchesInput: VirtualMachineInstallPatchesParameters, - options?: VirtualMachinesInstallPatchesOptionalParams + options?: VirtualMachinesInstallPatchesOptionalParams, ): Promise; /** * Attach and detach data disks to/from the virtual machine. @@ -558,7 +558,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -577,7 +577,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: AttachDetachDataDisksRequest, - options?: VirtualMachinesAttachDetachDataDisksOptionalParams + options?: VirtualMachinesAttachDetachDataDisksOptionalParams, ): Promise; /** * Run command on the VM. @@ -590,7 +590,7 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -608,6 +608,6 @@ export interface VirtualMachines { resourceGroupName: string, vmName: string, parameters: RunCommandInput, - options?: VirtualMachinesRunCommandOptionalParams + options?: VirtualMachinesRunCommandOptionalParams, ): Promise; } diff --git a/sdk/compute/arm-compute/src/pagingHelper.ts b/sdk/compute/arm-compute/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/compute/arm-compute/src/pagingHelper.ts +++ b/sdk/compute/arm-compute/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; From 8ec4dab324f203aabca744fb07d9be2e3ca27e58 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 15 Mar 2024 10:29:28 +0800 Subject: [PATCH 49/57] [mgmt] datafactory release (#28849) https://github.com/Azure/sdk-release-request/issues/4989 --- sdk/datafactory/arm-datafactory/CHANGELOG.md | 26 ++ sdk/datafactory/arm-datafactory/_meta.json | 6 +- sdk/datafactory/arm-datafactory/assets.json | 2 +- sdk/datafactory/arm-datafactory/package.json | 8 +- .../review/arm-datafactory.api.md | 138 +++++- .../src/dataFactoryManagementClient.ts | 2 +- .../arm-datafactory/src/models/index.ts | 245 +++++++++- .../arm-datafactory/src/models/mappers.ts | 441 ++++++++++++++++++ 8 files changed, 845 insertions(+), 23 deletions(-) diff --git a/sdk/datafactory/arm-datafactory/CHANGELOG.md b/sdk/datafactory/arm-datafactory/CHANGELOG.md index d1ecc689ca1a..48cea9b4c303 100644 --- a/sdk/datafactory/arm-datafactory/CHANGELOG.md +++ b/sdk/datafactory/arm-datafactory/CHANGELOG.md @@ -1,5 +1,31 @@ # Release History +## 14.1.0 (2024-03-11) + +**Features** + + - Added Interface ExpressionV2 + - Added Interface GoogleBigQueryV2LinkedService + - Added Interface GoogleBigQueryV2ObjectDataset + - Added Interface GoogleBigQueryV2Source + - Added Interface PostgreSqlV2LinkedService + - Added Interface PostgreSqlV2Source + - Added Interface PostgreSqlV2TableDataset + - Added Interface ServiceNowV2LinkedService + - Added Interface ServiceNowV2ObjectDataset + - Added Interface ServiceNowV2Source + - Added Type Alias ExpressionV2Type + - Added Type Alias GoogleBigQueryV2AuthenticationType + - Added Type Alias ServiceNowV2AuthenticationType + - Type of parameter type of interface CopySource has four new values "PostgreSqlV2Source" | "GoogleBigQueryV2Source" | "GreenplumSource" | "ServiceNowV2Source" + - Type of parameter type of interface Dataset has four new values "PostgreSqlV2Source" | "GoogleBigQueryV2Source" | "GreenplumSource" | "ServiceNowV2Source" + - Type of parameter type of interface LinkedService has three new values "PostgreSqlV2" | "GoogleBigQueryV2" | "ServiceNowV2" + - Type of parameter type of interface TabularSource has four new values "PostgreSqlV2Source" | "GoogleBigQueryV2Source" | "GreenplumSource" | "ServiceNowV2Source" + - Added Enum KnownExpressionV2Type + - Added Enum KnownGoogleBigQueryV2AuthenticationType + - Added Enum KnownServiceNowV2AuthenticationType + + ## 14.0.0 (2024-02-04) **Features** diff --git a/sdk/datafactory/arm-datafactory/_meta.json b/sdk/datafactory/arm-datafactory/_meta.json index 8591824d420a..809fce1f741b 100644 --- a/sdk/datafactory/arm-datafactory/_meta.json +++ b/sdk/datafactory/arm-datafactory/_meta.json @@ -1,8 +1,8 @@ { - "commit": "45f5b5a166c75a878d0f5404e74bd1855ff48894", + "commit": "1a011ff0d72315ef3c530fe545c4fe82d0450201", "readme": "specification/datafactory/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\datafactory\\resource-manager\\readme.md --use=@autorest/typescript@6.0.14 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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\\datafactory\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.14" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/assets.json b/sdk/datafactory/arm-datafactory/assets.json index fca6a18e28b5..e2dc118333a2 100644 --- a/sdk/datafactory/arm-datafactory/assets.json +++ b/sdk/datafactory/arm-datafactory/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/datafactory/arm-datafactory", - "Tag": "js/datafactory/arm-datafactory_826c384657" + "Tag": "js/datafactory/arm-datafactory_b0ae60ee53" } diff --git a/sdk/datafactory/arm-datafactory/package.json b/sdk/datafactory/arm-datafactory/package.json index b20037560d25..af00697bb53f 100644 --- a/sdk/datafactory/arm-datafactory/package.json +++ b/sdk/datafactory/arm-datafactory/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DataFactoryManagementClient.", - "version": "14.0.0", + "version": "14.1.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -115,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md b/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md index 8fe10d3119f9..3c9d2af959f0 100644 --- a/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md +++ b/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md @@ -1475,7 +1475,7 @@ export interface CopySource { maxConcurrentConnections?: any; sourceRetryCount?: any; sourceRetryWait?: any; - type: "AvroSource" | "ExcelSource" | "ParquetSource" | "DelimitedTextSource" | "JsonSource" | "XmlSource" | "OrcSource" | "BinarySource" | "TabularSource" | "AzureTableSource" | "BlobSource" | "DocumentDbCollectionSource" | "CosmosDbSqlApiSource" | "DynamicsSource" | "DynamicsCrmSource" | "CommonDataServiceForAppsSource" | "RelationalSource" | "InformixSource" | "MicrosoftAccessSource" | "Db2Source" | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" | "SybaseSource" | "SapBwSource" | "ODataSource" | "SalesforceSource" | "SalesforceServiceCloudSource" | "SapCloudForCustomerSource" | "SapEccSource" | "SapHanaSource" | "SapOpenHubSource" | "SapOdpSource" | "SapTableSource" | "RestSource" | "SqlSource" | "SqlServerSource" | "AmazonRdsForSqlServerSource" | "AzureSqlSource" | "SqlMISource" | "SqlDWSource" | "FileSystemSource" | "HdfsSource" | "AzureMySqlSource" | "AzureDataExplorerSource" | "OracleSource" | "AmazonRdsForOracleSource" | "TeradataSource" | "WebSource" | "CassandraSource" | "MongoDbSource" | "MongoDbAtlasSource" | "MongoDbV2Source" | "CosmosDbMongoDbApiSource" | "Office365Source" | "AzureDataLakeStoreSource" | "AzureBlobFSSource" | "HttpSource" | "AmazonMWSSource" | "AzurePostgreSqlSource" | "ConcurSource" | "CouchbaseSource" | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" | "GreenplumSource" | "HBaseSource" | "HiveSource" | "HubspotSource" | "ImpalaSource" | "JiraSource" | "MagentoSource" | "MariaDBSource" | "AzureMariaDBSource" | "MarketoSource" | "PaypalSource" | "PhoenixSource" | "PrestoSource" | "QuickBooksSource" | "ServiceNowSource" | "ShopifySource" | "SparkSource" | "SquareSource" | "XeroSource" | "ZohoSource" | "NetezzaSource" | "VerticaSource" | "SalesforceMarketingCloudSource" | "ResponsysSource" | "DynamicsAXSource" | "OracleServiceCloudSource" | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "LakeHouseTableSource" | "SnowflakeSource" | "SnowflakeV2Source" | "AzureDatabricksDeltaLakeSource" | "WarehouseSource" | "SharePointOnlineListSource" | "SalesforceV2Source" | "SalesforceServiceCloudV2Source"; + type: "AvroSource" | "ExcelSource" | "ParquetSource" | "DelimitedTextSource" | "JsonSource" | "XmlSource" | "OrcSource" | "BinarySource" | "TabularSource" | "AzureTableSource" | "BlobSource" | "DocumentDbCollectionSource" | "CosmosDbSqlApiSource" | "DynamicsSource" | "DynamicsCrmSource" | "CommonDataServiceForAppsSource" | "RelationalSource" | "InformixSource" | "MicrosoftAccessSource" | "Db2Source" | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" | "PostgreSqlV2Source" | "SybaseSource" | "SapBwSource" | "ODataSource" | "SalesforceSource" | "SalesforceServiceCloudSource" | "SapCloudForCustomerSource" | "SapEccSource" | "SapHanaSource" | "SapOpenHubSource" | "SapOdpSource" | "SapTableSource" | "RestSource" | "SqlSource" | "SqlServerSource" | "AmazonRdsForSqlServerSource" | "AzureSqlSource" | "SqlMISource" | "SqlDWSource" | "FileSystemSource" | "HdfsSource" | "AzureMySqlSource" | "AzureDataExplorerSource" | "OracleSource" | "AmazonRdsForOracleSource" | "TeradataSource" | "WebSource" | "CassandraSource" | "MongoDbSource" | "MongoDbAtlasSource" | "MongoDbV2Source" | "CosmosDbMongoDbApiSource" | "Office365Source" | "AzureDataLakeStoreSource" | "AzureBlobFSSource" | "HttpSource" | "AmazonMWSSource" | "AzurePostgreSqlSource" | "ConcurSource" | "CouchbaseSource" | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" | "GoogleBigQueryV2Source" | "GreenplumSource" | "HBaseSource" | "HiveSource" | "HubspotSource" | "ImpalaSource" | "JiraSource" | "MagentoSource" | "MariaDBSource" | "AzureMariaDBSource" | "MarketoSource" | "PaypalSource" | "PhoenixSource" | "PrestoSource" | "QuickBooksSource" | "ServiceNowSource" | "ShopifySource" | "SparkSource" | "SquareSource" | "XeroSource" | "ZohoSource" | "NetezzaSource" | "VerticaSource" | "SalesforceMarketingCloudSource" | "ResponsysSource" | "DynamicsAXSource" | "OracleServiceCloudSource" | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "LakeHouseTableSource" | "SnowflakeSource" | "SnowflakeV2Source" | "AzureDatabricksDeltaLakeSource" | "WarehouseSource" | "SharePointOnlineListSource" | "SalesforceV2Source" | "SalesforceServiceCloudV2Source" | "ServiceNowV2Source"; } // @public (undocumented) @@ -2102,7 +2102,7 @@ export interface Dataset { }; schema?: any; structure?: any; - type: "AmazonS3Object" | "Avro" | "Excel" | "Parquet" | "DelimitedText" | "Json" | "Xml" | "Orc" | "Binary" | "AzureBlob" | "AzureTable" | "AzureSqlTable" | "AzureSqlMITable" | "AzureSqlDWTable" | "CassandraTable" | "CustomDataset" | "CosmosDbSqlApiCollection" | "DocumentDbCollection" | "DynamicsEntity" | "DynamicsCrmEntity" | "CommonDataServiceForAppsEntity" | "AzureDataLakeStoreFile" | "AzureBlobFSFile" | "Office365Table" | "FileShare" | "MongoDbCollection" | "MongoDbAtlasCollection" | "MongoDbV2Collection" | "CosmosDbMongoDbApiCollection" | "ODataResource" | "OracleTable" | "AmazonRdsForOracleTable" | "TeradataTable" | "AzureMySqlTable" | "AmazonRedshiftTable" | "Db2Table" | "RelationalTable" | "InformixTable" | "OdbcTable" | "MySqlTable" | "PostgreSqlTable" | "MicrosoftAccessTable" | "SalesforceObject" | "SalesforceServiceCloudObject" | "SybaseTable" | "SapBwCube" | "SapCloudForCustomerResource" | "SapEccResource" | "SapHanaTable" | "SapOpenHubTable" | "SqlServerTable" | "AmazonRdsForSqlServerTable" | "RestResource" | "SapTableResource" | "SapOdpResource" | "WebTable" | "AzureSearchIndex" | "HttpFile" | "AmazonMWSObject" | "AzurePostgreSqlTable" | "ConcurObject" | "CouchbaseTable" | "DrillTable" | "EloquaObject" | "GoogleBigQueryObject" | "GreenplumTable" | "HBaseObject" | "HiveObject" | "HubspotObject" | "ImpalaObject" | "JiraObject" | "MagentoObject" | "MariaDBTable" | "AzureMariaDBTable" | "MarketoObject" | "PaypalObject" | "PhoenixObject" | "PrestoObject" | "QuickBooksObject" | "ServiceNowObject" | "ShopifyObject" | "SparkObject" | "SquareObject" | "XeroObject" | "ZohoObject" | "NetezzaTable" | "VerticaTable" | "SalesforceMarketingCloudObject" | "ResponsysObject" | "DynamicsAXResource" | "OracleServiceCloudObject" | "AzureDataExplorerTable" | "GoogleAdWordsObject" | "SnowflakeTable" | "SnowflakeV2Table" | "SharePointOnlineListResource" | "AzureDatabricksDeltaLakeDataset" | "LakeHouseTable" | "SalesforceV2Object" | "SalesforceServiceCloudV2Object" | "WarehouseTable"; + type: "AmazonS3Object" | "Avro" | "Excel" | "Parquet" | "DelimitedText" | "Json" | "Xml" | "Orc" | "Binary" | "AzureBlob" | "AzureTable" | "AzureSqlTable" | "AzureSqlMITable" | "AzureSqlDWTable" | "CassandraTable" | "CustomDataset" | "CosmosDbSqlApiCollection" | "DocumentDbCollection" | "DynamicsEntity" | "DynamicsCrmEntity" | "CommonDataServiceForAppsEntity" | "AzureDataLakeStoreFile" | "AzureBlobFSFile" | "Office365Table" | "FileShare" | "MongoDbCollection" | "MongoDbAtlasCollection" | "MongoDbV2Collection" | "CosmosDbMongoDbApiCollection" | "ODataResource" | "OracleTable" | "AmazonRdsForOracleTable" | "TeradataTable" | "AzureMySqlTable" | "AmazonRedshiftTable" | "Db2Table" | "RelationalTable" | "InformixTable" | "OdbcTable" | "MySqlTable" | "PostgreSqlTable" | "PostgreSqlV2Table" | "MicrosoftAccessTable" | "SalesforceObject" | "SalesforceServiceCloudObject" | "SybaseTable" | "SapBwCube" | "SapCloudForCustomerResource" | "SapEccResource" | "SapHanaTable" | "SapOpenHubTable" | "SqlServerTable" | "AmazonRdsForSqlServerTable" | "RestResource" | "SapTableResource" | "SapOdpResource" | "WebTable" | "AzureSearchIndex" | "HttpFile" | "AmazonMWSObject" | "AzurePostgreSqlTable" | "ConcurObject" | "CouchbaseTable" | "DrillTable" | "EloquaObject" | "GoogleBigQueryObject" | "GoogleBigQueryV2Object" | "GreenplumTable" | "HBaseObject" | "HiveObject" | "HubspotObject" | "ImpalaObject" | "JiraObject" | "MagentoObject" | "MariaDBTable" | "AzureMariaDBTable" | "MarketoObject" | "PaypalObject" | "PhoenixObject" | "PrestoObject" | "QuickBooksObject" | "ServiceNowObject" | "ShopifyObject" | "SparkObject" | "SquareObject" | "XeroObject" | "ZohoObject" | "NetezzaTable" | "VerticaTable" | "SalesforceMarketingCloudObject" | "ResponsysObject" | "DynamicsAXResource" | "OracleServiceCloudObject" | "AzureDataExplorerTable" | "GoogleAdWordsObject" | "SnowflakeTable" | "SnowflakeV2Table" | "SharePointOnlineListResource" | "AzureDatabricksDeltaLakeDataset" | "LakeHouseTable" | "SalesforceV2Object" | "SalesforceServiceCloudV2Object" | "WarehouseTable" | "ServiceNowV2Object"; } // @public @@ -2223,7 +2223,7 @@ export interface DatasetStorageFormat { export type DatasetStorageFormatUnion = DatasetStorageFormat | TextFormat | JsonFormat | AvroFormat | OrcFormat | ParquetFormat; // @public (undocumented) -export type DatasetUnion = Dataset | AmazonS3Dataset | AvroDataset | ExcelDataset | ParquetDataset | DelimitedTextDataset | JsonDataset | XmlDataset | OrcDataset | BinaryDataset | AzureBlobDataset | AzureTableDataset | AzureSqlTableDataset | AzureSqlMITableDataset | AzureSqlDWTableDataset | CassandraTableDataset | CustomDataset | CosmosDbSqlApiCollectionDataset | DocumentDbCollectionDataset | DynamicsEntityDataset | DynamicsCrmEntityDataset | CommonDataServiceForAppsEntityDataset | AzureDataLakeStoreDataset | AzureBlobFSDataset | Office365Dataset | FileShareDataset | MongoDbCollectionDataset | MongoDbAtlasCollectionDataset | MongoDbV2CollectionDataset | CosmosDbMongoDbApiCollectionDataset | ODataResourceDataset | OracleTableDataset | AmazonRdsForOracleTableDataset | TeradataTableDataset | AzureMySqlTableDataset | AmazonRedshiftTableDataset | Db2TableDataset | RelationalTableDataset | InformixTableDataset | OdbcTableDataset | MySqlTableDataset | PostgreSqlTableDataset | MicrosoftAccessTableDataset | SalesforceObjectDataset | SalesforceServiceCloudObjectDataset | SybaseTableDataset | SapBwCubeDataset | SapCloudForCustomerResourceDataset | SapEccResourceDataset | SapHanaTableDataset | SapOpenHubTableDataset | SqlServerTableDataset | AmazonRdsForSqlServerTableDataset | RestResourceDataset | SapTableResourceDataset | SapOdpResourceDataset | WebTableDataset | AzureSearchIndexDataset | HttpDataset | AmazonMWSObjectDataset | AzurePostgreSqlTableDataset | ConcurObjectDataset | CouchbaseTableDataset | DrillTableDataset | EloquaObjectDataset | GoogleBigQueryObjectDataset | GreenplumTableDataset | HBaseObjectDataset | HiveObjectDataset | HubspotObjectDataset | ImpalaObjectDataset | JiraObjectDataset | MagentoObjectDataset | MariaDBTableDataset | AzureMariaDBTableDataset | MarketoObjectDataset | PaypalObjectDataset | PhoenixObjectDataset | PrestoObjectDataset | QuickBooksObjectDataset | ServiceNowObjectDataset | ShopifyObjectDataset | SparkObjectDataset | SquareObjectDataset | XeroObjectDataset | ZohoObjectDataset | NetezzaTableDataset | VerticaTableDataset | SalesforceMarketingCloudObjectDataset | ResponsysObjectDataset | DynamicsAXResourceDataset | OracleServiceCloudObjectDataset | AzureDataExplorerTableDataset | GoogleAdWordsObjectDataset | SnowflakeDataset | SnowflakeV2Dataset | SharePointOnlineListResourceDataset | AzureDatabricksDeltaLakeDataset | LakeHouseTableDataset | SalesforceV2ObjectDataset | SalesforceServiceCloudV2ObjectDataset | WarehouseTableDataset; +export type DatasetUnion = Dataset | AmazonS3Dataset | AvroDataset | ExcelDataset | ParquetDataset | DelimitedTextDataset | JsonDataset | XmlDataset | OrcDataset | BinaryDataset | AzureBlobDataset | AzureTableDataset | AzureSqlTableDataset | AzureSqlMITableDataset | AzureSqlDWTableDataset | CassandraTableDataset | CustomDataset | CosmosDbSqlApiCollectionDataset | DocumentDbCollectionDataset | DynamicsEntityDataset | DynamicsCrmEntityDataset | CommonDataServiceForAppsEntityDataset | AzureDataLakeStoreDataset | AzureBlobFSDataset | Office365Dataset | FileShareDataset | MongoDbCollectionDataset | MongoDbAtlasCollectionDataset | MongoDbV2CollectionDataset | CosmosDbMongoDbApiCollectionDataset | ODataResourceDataset | OracleTableDataset | AmazonRdsForOracleTableDataset | TeradataTableDataset | AzureMySqlTableDataset | AmazonRedshiftTableDataset | Db2TableDataset | RelationalTableDataset | InformixTableDataset | OdbcTableDataset | MySqlTableDataset | PostgreSqlTableDataset | PostgreSqlV2TableDataset | MicrosoftAccessTableDataset | SalesforceObjectDataset | SalesforceServiceCloudObjectDataset | SybaseTableDataset | SapBwCubeDataset | SapCloudForCustomerResourceDataset | SapEccResourceDataset | SapHanaTableDataset | SapOpenHubTableDataset | SqlServerTableDataset | AmazonRdsForSqlServerTableDataset | RestResourceDataset | SapTableResourceDataset | SapOdpResourceDataset | WebTableDataset | AzureSearchIndexDataset | HttpDataset | AmazonMWSObjectDataset | AzurePostgreSqlTableDataset | ConcurObjectDataset | CouchbaseTableDataset | DrillTableDataset | EloquaObjectDataset | GoogleBigQueryObjectDataset | GoogleBigQueryV2ObjectDataset | GreenplumTableDataset | HBaseObjectDataset | HiveObjectDataset | HubspotObjectDataset | ImpalaObjectDataset | JiraObjectDataset | MagentoObjectDataset | MariaDBTableDataset | AzureMariaDBTableDataset | MarketoObjectDataset | PaypalObjectDataset | PhoenixObjectDataset | PrestoObjectDataset | QuickBooksObjectDataset | ServiceNowObjectDataset | ShopifyObjectDataset | SparkObjectDataset | SquareObjectDataset | XeroObjectDataset | ZohoObjectDataset | NetezzaTableDataset | VerticaTableDataset | SalesforceMarketingCloudObjectDataset | ResponsysObjectDataset | DynamicsAXResourceDataset | OracleServiceCloudObjectDataset | AzureDataExplorerTableDataset | GoogleAdWordsObjectDataset | SnowflakeDataset | SnowflakeV2Dataset | SharePointOnlineListResourceDataset | AzureDatabricksDeltaLakeDataset | LakeHouseTableDataset | SalesforceV2ObjectDataset | SalesforceServiceCloudV2ObjectDataset | WarehouseTableDataset | ServiceNowV2ObjectDataset; // @public export interface DataworldLinkedService extends LinkedService { @@ -2764,6 +2764,17 @@ export interface Expression { value: string; } +// @public +export interface ExpressionV2 { + operands?: ExpressionV2[]; + operator?: string; + type?: ExpressionV2Type; + value?: string; +} + +// @public +export type ExpressionV2Type = string; + // @public export interface Factories { configureFactoryRepo(locationId: string, factoryRepoUpdate: FactoryRepoUpdate, options?: FactoriesConfigureFactoryRepoOptionalParams): Promise; @@ -3254,6 +3265,34 @@ export interface GoogleBigQuerySource extends TabularSource { type: "GoogleBigQuerySource"; } +// @public +export type GoogleBigQueryV2AuthenticationType = string; + +// @public +export interface GoogleBigQueryV2LinkedService extends LinkedService { + authenticationType: GoogleBigQueryV2AuthenticationType; + clientId?: any; + clientSecret?: SecretBaseUnion; + encryptedCredential?: string; + keyFileContent?: SecretBaseUnion; + projectId: any; + refreshToken?: SecretBaseUnion; + type: "GoogleBigQueryV2"; +} + +// @public +export interface GoogleBigQueryV2ObjectDataset extends Dataset { + dataset?: any; + table?: any; + type: "GoogleBigQueryV2Object"; +} + +// @public +export interface GoogleBigQueryV2Source extends TabularSource { + query?: any; + type: "GoogleBigQueryV2Source"; +} + // @public export interface GoogleCloudStorageLinkedService extends LinkedService { accessKeyId?: any; @@ -4415,6 +4454,14 @@ export enum KnownEventSubscriptionStatus { Unknown = "Unknown" } +// @public +export enum KnownExpressionV2Type { + Binary = "Binary", + Constant = "Constant", + Field = "Field", + Unary = "Unary" +} + // @public export enum KnownFactoryIdentityType { SystemAssigned = "SystemAssigned", @@ -4457,6 +4504,12 @@ export enum KnownGoogleBigQueryAuthenticationType { UserAuthentication = "UserAuthentication" } +// @public +export enum KnownGoogleBigQueryV2AuthenticationType { + ServiceAuthentication = "ServiceAuthentication", + UserAuthentication = "UserAuthentication" +} + // @public export enum KnownHBaseAuthenticationType { Anonymous = "Anonymous", @@ -4873,6 +4926,12 @@ export enum KnownServiceNowAuthenticationType { OAuth2 = "OAuth2" } +// @public +export enum KnownServiceNowV2AuthenticationType { + Basic = "Basic", + OAuth2 = "OAuth2" +} + // @public export enum KnownServicePrincipalCredentialType { ServicePrincipalCert = "ServicePrincipalCert", @@ -5176,7 +5235,7 @@ export interface LinkedService { parameters?: { [propertyName: string]: ParameterSpecification; }; - type: "AzureStorage" | "AzureBlobStorage" | "AzureTableStorage" | "AzureSqlDW" | "SqlServer" | "AmazonRdsForSqlServer" | "AzureSqlDatabase" | "AzureSqlMI" | "AzureBatch" | "AzureKeyVault" | "CosmosDb" | "Dynamics" | "DynamicsCrm" | "CommonDataServiceForApps" | "HDInsight" | "FileServer" | "AzureFileStorage" | "AmazonS3Compatible" | "OracleCloudStorage" | "GoogleCloudStorage" | "Oracle" | "AmazonRdsForOracle" | "AzureMySql" | "MySql" | "PostgreSql" | "Sybase" | "Db2" | "Teradata" | "AzureML" | "AzureMLService" | "Odbc" | "Informix" | "MicrosoftAccess" | "Hdfs" | "OData" | "Web" | "Cassandra" | "MongoDb" | "MongoDbAtlas" | "MongoDbV2" | "CosmosDbMongoDbApi" | "AzureDataLakeStore" | "AzureBlobFS" | "Office365" | "Salesforce" | "SalesforceServiceCloud" | "SapCloudForCustomer" | "SapEcc" | "SapOpenHub" | "SapOdp" | "RestService" | "TeamDesk" | "Quickbase" | "Smartsheet" | "Zendesk" | "Dataworld" | "AppFigures" | "Asana" | "Twilio" | "GoogleSheets" | "AmazonS3" | "AmazonRedshift" | "CustomDataSource" | "AzureSearch" | "HttpServer" | "FtpServer" | "Sftp" | "SapBW" | "SapHana" | "AmazonMWS" | "AzurePostgreSql" | "Concur" | "Couchbase" | "Drill" | "Eloqua" | "GoogleBigQuery" | "Greenplum" | "HBase" | "Hive" | "Hubspot" | "Impala" | "Jira" | "Magento" | "MariaDB" | "AzureMariaDB" | "Marketo" | "Paypal" | "Phoenix" | "Presto" | "QuickBooks" | "ServiceNow" | "Shopify" | "Spark" | "Square" | "Xero" | "Zoho" | "Vertica" | "Netezza" | "SalesforceMarketingCloud" | "HDInsightOnDemand" | "AzureDataLakeAnalytics" | "AzureDatabricks" | "AzureDatabricksDeltaLake" | "Responsys" | "DynamicsAX" | "OracleServiceCloud" | "GoogleAdWords" | "SapTable" | "AzureDataExplorer" | "AzureFunction" | "Snowflake" | "SnowflakeV2" | "SharePointOnlineList" | "AzureSynapseArtifacts" | "LakeHouse" | "SalesforceV2" | "SalesforceServiceCloudV2" | "Warehouse"; + type: "AzureStorage" | "AzureBlobStorage" | "AzureTableStorage" | "AzureSqlDW" | "SqlServer" | "AmazonRdsForSqlServer" | "AzureSqlDatabase" | "AzureSqlMI" | "AzureBatch" | "AzureKeyVault" | "CosmosDb" | "Dynamics" | "DynamicsCrm" | "CommonDataServiceForApps" | "HDInsight" | "FileServer" | "AzureFileStorage" | "AmazonS3Compatible" | "OracleCloudStorage" | "GoogleCloudStorage" | "Oracle" | "AmazonRdsForOracle" | "AzureMySql" | "MySql" | "PostgreSql" | "PostgreSqlV2" | "Sybase" | "Db2" | "Teradata" | "AzureML" | "AzureMLService" | "Odbc" | "Informix" | "MicrosoftAccess" | "Hdfs" | "OData" | "Web" | "Cassandra" | "MongoDb" | "MongoDbAtlas" | "MongoDbV2" | "CosmosDbMongoDbApi" | "AzureDataLakeStore" | "AzureBlobFS" | "Office365" | "Salesforce" | "SalesforceServiceCloud" | "SapCloudForCustomer" | "SapEcc" | "SapOpenHub" | "SapOdp" | "RestService" | "TeamDesk" | "Quickbase" | "Smartsheet" | "Zendesk" | "Dataworld" | "AppFigures" | "Asana" | "Twilio" | "GoogleSheets" | "AmazonS3" | "AmazonRedshift" | "CustomDataSource" | "AzureSearch" | "HttpServer" | "FtpServer" | "Sftp" | "SapBW" | "SapHana" | "AmazonMWS" | "AzurePostgreSql" | "Concur" | "Couchbase" | "Drill" | "Eloqua" | "GoogleBigQuery" | "GoogleBigQueryV2" | "Greenplum" | "HBase" | "Hive" | "Hubspot" | "Impala" | "Jira" | "Magento" | "MariaDB" | "AzureMariaDB" | "Marketo" | "Paypal" | "Phoenix" | "Presto" | "QuickBooks" | "ServiceNow" | "Shopify" | "Spark" | "Square" | "Xero" | "Zoho" | "Vertica" | "Netezza" | "SalesforceMarketingCloud" | "HDInsightOnDemand" | "AzureDataLakeAnalytics" | "AzureDatabricks" | "AzureDatabricksDeltaLake" | "Responsys" | "DynamicsAX" | "OracleServiceCloud" | "GoogleAdWords" | "SapTable" | "AzureDataExplorer" | "AzureFunction" | "Snowflake" | "SnowflakeV2" | "SharePointOnlineList" | "AzureSynapseArtifacts" | "LakeHouse" | "SalesforceV2" | "SalesforceServiceCloudV2" | "Warehouse" | "ServiceNowV2"; } // @public @@ -5247,7 +5306,7 @@ export interface LinkedServicesListByFactoryOptionalParams extends coreClient.Op export type LinkedServicesListByFactoryResponse = LinkedServiceListResponse; // @public (undocumented) -export type LinkedServiceUnion = LinkedService | AzureStorageLinkedService | AzureBlobStorageLinkedService | AzureTableStorageLinkedService | AzureSqlDWLinkedService | SqlServerLinkedService | AmazonRdsForSqlServerLinkedService | AzureSqlDatabaseLinkedService | AzureSqlMILinkedService | AzureBatchLinkedService | AzureKeyVaultLinkedService | CosmosDbLinkedService | DynamicsLinkedService | DynamicsCrmLinkedService | CommonDataServiceForAppsLinkedService | HDInsightLinkedService | FileServerLinkedService | AzureFileStorageLinkedService | AmazonS3CompatibleLinkedService | OracleCloudStorageLinkedService | GoogleCloudStorageLinkedService | OracleLinkedService | AmazonRdsForOracleLinkedService | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService | AzureMLLinkedService | AzureMLServiceLinkedService | OdbcLinkedService | InformixLinkedService | MicrosoftAccessLinkedService | HdfsLinkedService | ODataLinkedService | WebLinkedService | CassandraLinkedService | MongoDbLinkedService | MongoDbAtlasLinkedService | MongoDbV2LinkedService | CosmosDbMongoDbApiLinkedService | AzureDataLakeStoreLinkedService | AzureBlobFSLinkedService | Office365LinkedService | SalesforceLinkedService | SalesforceServiceCloudLinkedService | SapCloudForCustomerLinkedService | SapEccLinkedService | SapOpenHubLinkedService | SapOdpLinkedService | RestServiceLinkedService | TeamDeskLinkedService | QuickbaseLinkedService | SmartsheetLinkedService | ZendeskLinkedService | DataworldLinkedService | AppFiguresLinkedService | AsanaLinkedService | TwilioLinkedService | GoogleSheetsLinkedService | AmazonS3LinkedService | AmazonRedshiftLinkedService | CustomDataSourceLinkedService | AzureSearchLinkedService | HttpLinkedService | FtpServerLinkedService | SftpServerLinkedService | SapBWLinkedService | SapHanaLinkedService | AmazonMWSLinkedService | AzurePostgreSqlLinkedService | ConcurLinkedService | CouchbaseLinkedService | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService | HubspotLinkedService | ImpalaLinkedService | JiraLinkedService | MagentoLinkedService | MariaDBLinkedService | AzureMariaDBLinkedService | MarketoLinkedService | PaypalLinkedService | PhoenixLinkedService | PrestoLinkedService | QuickBooksLinkedService | ServiceNowLinkedService | ShopifyLinkedService | SparkLinkedService | SquareLinkedService | XeroLinkedService | ZohoLinkedService | VerticaLinkedService | NetezzaLinkedService | SalesforceMarketingCloudLinkedService | HDInsightOnDemandLinkedService | AzureDataLakeAnalyticsLinkedService | AzureDatabricksLinkedService | AzureDatabricksDeltaLakeLinkedService | ResponsysLinkedService | DynamicsAXLinkedService | OracleServiceCloudLinkedService | GoogleAdWordsLinkedService | SapTableLinkedService | AzureDataExplorerLinkedService | AzureFunctionLinkedService | SnowflakeLinkedService | SnowflakeV2LinkedService | SharePointOnlineListLinkedService | AzureSynapseArtifactsLinkedService | LakeHouseLinkedService | SalesforceV2LinkedService | SalesforceServiceCloudV2LinkedService | WarehouseLinkedService; +export type LinkedServiceUnion = LinkedService | AzureStorageLinkedService | AzureBlobStorageLinkedService | AzureTableStorageLinkedService | AzureSqlDWLinkedService | SqlServerLinkedService | AmazonRdsForSqlServerLinkedService | AzureSqlDatabaseLinkedService | AzureSqlMILinkedService | AzureBatchLinkedService | AzureKeyVaultLinkedService | CosmosDbLinkedService | DynamicsLinkedService | DynamicsCrmLinkedService | CommonDataServiceForAppsLinkedService | HDInsightLinkedService | FileServerLinkedService | AzureFileStorageLinkedService | AmazonS3CompatibleLinkedService | OracleCloudStorageLinkedService | GoogleCloudStorageLinkedService | OracleLinkedService | AmazonRdsForOracleLinkedService | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService | PostgreSqlV2LinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService | AzureMLLinkedService | AzureMLServiceLinkedService | OdbcLinkedService | InformixLinkedService | MicrosoftAccessLinkedService | HdfsLinkedService | ODataLinkedService | WebLinkedService | CassandraLinkedService | MongoDbLinkedService | MongoDbAtlasLinkedService | MongoDbV2LinkedService | CosmosDbMongoDbApiLinkedService | AzureDataLakeStoreLinkedService | AzureBlobFSLinkedService | Office365LinkedService | SalesforceLinkedService | SalesforceServiceCloudLinkedService | SapCloudForCustomerLinkedService | SapEccLinkedService | SapOpenHubLinkedService | SapOdpLinkedService | RestServiceLinkedService | TeamDeskLinkedService | QuickbaseLinkedService | SmartsheetLinkedService | ZendeskLinkedService | DataworldLinkedService | AppFiguresLinkedService | AsanaLinkedService | TwilioLinkedService | GoogleSheetsLinkedService | AmazonS3LinkedService | AmazonRedshiftLinkedService | CustomDataSourceLinkedService | AzureSearchLinkedService | HttpLinkedService | FtpServerLinkedService | SftpServerLinkedService | SapBWLinkedService | SapHanaLinkedService | AmazonMWSLinkedService | AzurePostgreSqlLinkedService | ConcurLinkedService | CouchbaseLinkedService | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService | GoogleBigQueryV2LinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService | HubspotLinkedService | ImpalaLinkedService | JiraLinkedService | MagentoLinkedService | MariaDBLinkedService | AzureMariaDBLinkedService | MarketoLinkedService | PaypalLinkedService | PhoenixLinkedService | PrestoLinkedService | QuickBooksLinkedService | ServiceNowLinkedService | ShopifyLinkedService | SparkLinkedService | SquareLinkedService | XeroLinkedService | ZohoLinkedService | VerticaLinkedService | NetezzaLinkedService | SalesforceMarketingCloudLinkedService | HDInsightOnDemandLinkedService | AzureDataLakeAnalyticsLinkedService | AzureDatabricksLinkedService | AzureDatabricksDeltaLakeLinkedService | ResponsysLinkedService | DynamicsAXLinkedService | OracleServiceCloudLinkedService | GoogleAdWordsLinkedService | SapTableLinkedService | AzureDataExplorerLinkedService | AzureFunctionLinkedService | SnowflakeLinkedService | SnowflakeV2LinkedService | SharePointOnlineListLinkedService | AzureSynapseArtifactsLinkedService | LakeHouseLinkedService | SalesforceV2LinkedService | SalesforceServiceCloudV2LinkedService | WarehouseLinkedService | ServiceNowV2LinkedService; // @public export interface LogLocationSettings { @@ -6491,6 +6550,43 @@ export interface PostgreSqlTableDataset extends Dataset { type: "PostgreSqlTable"; } +// @public +export interface PostgreSqlV2LinkedService extends LinkedService { + commandTimeout?: any; + connectionTimeout?: any; + database: any; + encoding?: any; + encryptedCredential?: string; + logParameters?: any; + password?: AzureKeyVaultSecretReference; + pooling?: any; + port?: any; + readBufferSize?: any; + schema?: any; + server: any; + sslCertificate?: any; + sslKey?: any; + sslMode: any; + sslPassword?: any; + timezone?: any; + trustServerCertificate?: any; + type: "PostgreSqlV2"; + username: any; +} + +// @public +export interface PostgreSqlV2Source extends TabularSource { + query?: any; + type: "PostgreSqlV2Source"; +} + +// @public +export interface PostgreSqlV2TableDataset extends Dataset { + schemaTypePropertiesSchema?: any; + table?: any; + type: "PostgreSqlV2Table"; +} + // @public export interface PowerQuerySink extends DataFlowSink { script?: string; @@ -7488,6 +7584,34 @@ export interface ServiceNowSource extends TabularSource { type: "ServiceNowSource"; } +// @public +export type ServiceNowV2AuthenticationType = string; + +// @public +export interface ServiceNowV2LinkedService extends LinkedService { + authenticationType: ServiceNowV2AuthenticationType; + clientId?: any; + clientSecret?: SecretBaseUnion; + encryptedCredential?: string; + endpoint: any; + grantType?: any; + password?: SecretBaseUnion; + type: "ServiceNowV2"; + username?: any; +} + +// @public +export interface ServiceNowV2ObjectDataset extends Dataset { + tableName?: any; + type: "ServiceNowV2Object"; +} + +// @public +export interface ServiceNowV2Source extends TabularSource { + expression?: ExpressionV2; + type: "ServiceNowV2Source"; +} + // @public export interface ServicePrincipalCredential extends Credential_2 { servicePrincipalId?: any; @@ -8260,11 +8384,11 @@ export interface SynapseSparkJobReference { export interface TabularSource extends CopySource { additionalColumns?: any; queryTimeout?: any; - type: "TabularSource" | "AzureTableSource" | "InformixSource" | "Db2Source" | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" | "SybaseSource" | "SapBwSource" | "SalesforceSource" | "SapCloudForCustomerSource" | "SapEccSource" | "SapHanaSource" | "SapOpenHubSource" | "SapOdpSource" | "SapTableSource" | "SqlSource" | "SqlServerSource" | "AmazonRdsForSqlServerSource" | "AzureSqlSource" | "SqlMISource" | "SqlDWSource" | "AzureMySqlSource" | "TeradataSource" | "CassandraSource" | "AmazonMWSSource" | "AzurePostgreSqlSource" | "ConcurSource" | "CouchbaseSource" | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" | "GreenplumSource" | "HBaseSource" | "HiveSource" | "HubspotSource" | "ImpalaSource" | "JiraSource" | "MagentoSource" | "MariaDBSource" | "AzureMariaDBSource" | "MarketoSource" | "PaypalSource" | "PhoenixSource" | "PrestoSource" | "QuickBooksSource" | "ServiceNowSource" | "ShopifySource" | "SparkSource" | "SquareSource" | "XeroSource" | "ZohoSource" | "NetezzaSource" | "VerticaSource" | "SalesforceMarketingCloudSource" | "ResponsysSource" | "DynamicsAXSource" | "OracleServiceCloudSource" | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "WarehouseSource" | "SalesforceV2Source"; + type: "TabularSource" | "AzureTableSource" | "InformixSource" | "Db2Source" | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" | "PostgreSqlV2Source" | "SybaseSource" | "SapBwSource" | "SalesforceSource" | "SapCloudForCustomerSource" | "SapEccSource" | "SapHanaSource" | "SapOpenHubSource" | "SapOdpSource" | "SapTableSource" | "SqlSource" | "SqlServerSource" | "AmazonRdsForSqlServerSource" | "AzureSqlSource" | "SqlMISource" | "SqlDWSource" | "AzureMySqlSource" | "TeradataSource" | "CassandraSource" | "AmazonMWSSource" | "AzurePostgreSqlSource" | "ConcurSource" | "CouchbaseSource" | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" | "GoogleBigQueryV2Source" | "GreenplumSource" | "HBaseSource" | "HiveSource" | "HubspotSource" | "ImpalaSource" | "JiraSource" | "MagentoSource" | "MariaDBSource" | "AzureMariaDBSource" | "MarketoSource" | "PaypalSource" | "PhoenixSource" | "PrestoSource" | "QuickBooksSource" | "ServiceNowSource" | "ShopifySource" | "SparkSource" | "SquareSource" | "XeroSource" | "ZohoSource" | "NetezzaSource" | "VerticaSource" | "SalesforceMarketingCloudSource" | "ResponsysSource" | "DynamicsAXSource" | "OracleServiceCloudSource" | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "WarehouseSource" | "SalesforceV2Source" | "ServiceNowV2Source"; } // @public (undocumented) -export type TabularSourceUnion = TabularSource | AzureTableSource | InformixSource | Db2Source | OdbcSource | MySqlSource | PostgreSqlSource | SybaseSource | SapBwSource | SalesforceSource | SapCloudForCustomerSource | SapEccSource | SapHanaSource | SapOpenHubSource | SapOdpSource | SapTableSource | SqlSource | SqlServerSource | AmazonRdsForSqlServerSource | AzureSqlSource | SqlMISource | SqlDWSource | AzureMySqlSource | TeradataSource | CassandraSource | AmazonMWSSource | AzurePostgreSqlSource | ConcurSource | CouchbaseSource | DrillSource | EloquaSource | GoogleBigQuerySource | GreenplumSource | HBaseSource | HiveSource | HubspotSource | ImpalaSource | JiraSource | MagentoSource | MariaDBSource | AzureMariaDBSource | MarketoSource | PaypalSource | PhoenixSource | PrestoSource | QuickBooksSource | ServiceNowSource | ShopifySource | SparkSource | SquareSource | XeroSource | ZohoSource | NetezzaSource | VerticaSource | SalesforceMarketingCloudSource | ResponsysSource | DynamicsAXSource | OracleServiceCloudSource | GoogleAdWordsSource | AmazonRedshiftSource | WarehouseSource | SalesforceV2Source; +export type TabularSourceUnion = TabularSource | AzureTableSource | InformixSource | Db2Source | OdbcSource | MySqlSource | PostgreSqlSource | PostgreSqlV2Source | SybaseSource | SapBwSource | SalesforceSource | SapCloudForCustomerSource | SapEccSource | SapHanaSource | SapOpenHubSource | SapOdpSource | SapTableSource | SqlSource | SqlServerSource | AmazonRdsForSqlServerSource | AzureSqlSource | SqlMISource | SqlDWSource | AzureMySqlSource | TeradataSource | CassandraSource | AmazonMWSSource | AzurePostgreSqlSource | ConcurSource | CouchbaseSource | DrillSource | EloquaSource | GoogleBigQuerySource | GoogleBigQueryV2Source | GreenplumSource | HBaseSource | HiveSource | HubspotSource | ImpalaSource | JiraSource | MagentoSource | MariaDBSource | AzureMariaDBSource | MarketoSource | PaypalSource | PhoenixSource | PrestoSource | QuickBooksSource | ServiceNowSource | ShopifySource | SparkSource | SquareSource | XeroSource | ZohoSource | NetezzaSource | VerticaSource | SalesforceMarketingCloudSource | ResponsysSource | DynamicsAXSource | OracleServiceCloudSource | GoogleAdWordsSource | AmazonRedshiftSource | WarehouseSource | SalesforceV2Source | ServiceNowV2Source; // @public export interface TabularTranslator extends CopyTranslator { diff --git a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts index 00fa0f05ab85..6090b25d42f4 100644 --- a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts +++ b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts @@ -98,7 +98,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient { credential: credentials, }; - const packageDetails = `azsdk-js-arm-datafactory/14.0.0`; + const packageDetails = `azsdk-js-arm-datafactory/14.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/datafactory/arm-datafactory/src/models/index.ts b/sdk/datafactory/arm-datafactory/src/models/index.ts index 6b70fe600c73..fbc00f5dafbf 100644 --- a/sdk/datafactory/arm-datafactory/src/models/index.ts +++ b/sdk/datafactory/arm-datafactory/src/models/index.ts @@ -53,6 +53,7 @@ export type LinkedServiceUnion = | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService + | PostgreSqlV2LinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService @@ -104,6 +105,7 @@ export type LinkedServiceUnion = | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService + | GoogleBigQueryV2LinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService @@ -145,7 +147,8 @@ export type LinkedServiceUnion = | LakeHouseLinkedService | SalesforceV2LinkedService | SalesforceServiceCloudV2LinkedService - | WarehouseLinkedService; + | WarehouseLinkedService + | ServiceNowV2LinkedService; export type DatasetUnion = | Dataset | AmazonS3Dataset @@ -189,6 +192,7 @@ export type DatasetUnion = | OdbcTableDataset | MySqlTableDataset | PostgreSqlTableDataset + | PostgreSqlV2TableDataset | MicrosoftAccessTableDataset | SalesforceObjectDataset | SalesforceServiceCloudObjectDataset @@ -213,6 +217,7 @@ export type DatasetUnion = | DrillTableDataset | EloquaObjectDataset | GoogleBigQueryObjectDataset + | GoogleBigQueryV2ObjectDataset | GreenplumTableDataset | HBaseObjectDataset | HiveObjectDataset @@ -248,7 +253,8 @@ export type DatasetUnion = | LakeHouseTableDataset | SalesforceV2ObjectDataset | SalesforceServiceCloudV2ObjectDataset - | WarehouseTableDataset; + | WarehouseTableDataset + | ServiceNowV2ObjectDataset; export type ActivityUnion = | Activity | ControlActivityUnion @@ -512,6 +518,7 @@ export type TabularSourceUnion = | OdbcSource | MySqlSource | PostgreSqlSource + | PostgreSqlV2Source | SybaseSource | SapBwSource | SalesforceSource @@ -537,6 +544,7 @@ export type TabularSourceUnion = | DrillSource | EloquaSource | GoogleBigQuerySource + | GoogleBigQueryV2Source | GreenplumSource | HBaseSource | HiveSource @@ -566,7 +574,8 @@ export type TabularSourceUnion = | GoogleAdWordsSource | AmazonRedshiftSource | WarehouseSource - | SalesforceV2Source; + | SalesforceV2Source + | ServiceNowV2Source; export type TriggerDependencyReferenceUnion = | TriggerDependencyReference | TumblingWindowTriggerDependencyReference; @@ -1296,6 +1305,7 @@ export interface LinkedService { | "AzureMySql" | "MySql" | "PostgreSql" + | "PostgreSqlV2" | "Sybase" | "Db2" | "Teradata" @@ -1347,6 +1357,7 @@ export interface LinkedService { | "Drill" | "Eloqua" | "GoogleBigQuery" + | "GoogleBigQueryV2" | "Greenplum" | "HBase" | "Hive" @@ -1388,7 +1399,8 @@ export interface LinkedService { | "LakeHouse" | "SalesforceV2" | "SalesforceServiceCloudV2" - | "Warehouse"; + | "Warehouse" + | "ServiceNowV2"; /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** The integration runtime reference. */ @@ -1472,6 +1484,7 @@ export interface Dataset { | "OdbcTable" | "MySqlTable" | "PostgreSqlTable" + | "PostgreSqlV2Table" | "MicrosoftAccessTable" | "SalesforceObject" | "SalesforceServiceCloudObject" @@ -1496,6 +1509,7 @@ export interface Dataset { | "DrillTable" | "EloquaObject" | "GoogleBigQueryObject" + | "GoogleBigQueryV2Object" | "GreenplumTable" | "HBaseObject" | "HiveObject" @@ -1531,7 +1545,8 @@ export interface Dataset { | "LakeHouseTable" | "SalesforceV2Object" | "SalesforceServiceCloudV2Object" - | "WarehouseTable"; + | "WarehouseTable" + | "ServiceNowV2Object"; /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** Dataset description. */ @@ -3217,6 +3232,7 @@ export interface CopySource { | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" + | "PostgreSqlV2Source" | "SybaseSource" | "SapBwSource" | "ODataSource" @@ -3259,6 +3275,7 @@ export interface CopySource { | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" + | "GoogleBigQueryV2Source" | "GreenplumSource" | "HBaseSource" | "HiveSource" @@ -3294,7 +3311,8 @@ export interface CopySource { | "WarehouseSource" | "SharePointOnlineListSource" | "SalesforceV2Source" - | "SalesforceServiceCloudV2Source"; + | "SalesforceServiceCloudV2Source" + | "ServiceNowV2Source"; /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** Source retry count. Type: integer (or Expression with resultType integer). */ @@ -3893,6 +3911,18 @@ export interface SynapseSparkJobReference { referenceName: any; } +/** Nested representation of a complex expression. */ +export interface ExpressionV2 { + /** Type of expressions supported by the system. Type: string. */ + type?: ExpressionV2Type; + /** Value for Constant/Field Type: string. */ + value?: string; + /** Expression operator value Type: string. */ + operator?: string; + /** List of nested expressions. */ + operands?: ExpressionV2[]; +} + /** The workflow trigger recurrence. */ export interface ScheduleTriggerRecurrence { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -4826,6 +4856,50 @@ export interface PostgreSqlLinkedService extends LinkedService { encryptedCredential?: string; } +/** Linked service for PostgreSQLV2 data source. */ +export interface PostgreSqlV2LinkedService extends LinkedService { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PostgreSqlV2"; + /** Server name for connection. Type: string. */ + server: any; + /** The port for the connection. Type: integer. */ + port?: any; + /** Username for authentication. Type: string. */ + username: any; + /** Database name for connection. Type: string. */ + database: any; + /** SSL mode for connection. Type: integer. 0: disable, 1:allow, 2: prefer, 3: require, 4: verify-ca, 5: verify-full. Type: integer. */ + sslMode: any; + /** Sets the schema search path. Type: string. */ + schema?: any; + /** Whether connection pooling should be used. Type: boolean. */ + pooling?: any; + /** The time to wait (in seconds) while trying to establish a connection before terminating the attempt and generating an error. Type: integer. */ + connectionTimeout?: any; + /** The time to wait (in seconds) while trying to execute a command before terminating the attempt and generating an error. Set to zero for infinity. Type: integer. */ + commandTimeout?: any; + /** Whether to trust the server certificate without validating it. Type: boolean. */ + trustServerCertificate?: any; + /** Location of a client certificate to be sent to the server. Type: string. */ + sslCertificate?: any; + /** Location of a client key for a client certificate to be sent to the server. Type: string. */ + sslKey?: any; + /** Password for a key for a client certificate. Type: string. */ + sslPassword?: any; + /** Determines the size of the internal buffer uses when reading. Increasing may improve performance if transferring large values from the database. Type: integer. */ + readBufferSize?: any; + /** When enabled, parameter values are logged when commands are executed. Type: boolean. */ + logParameters?: any; + /** Gets or sets the session timezone. Type: string. */ + timezone?: any; + /** Gets or sets the .NET encoding that will be used to encode/decode PostgreSQL string data. Type: string */ + encoding?: any; + /** The Azure key vault secret reference of password in connection string. Type: string. */ + password?: AzureKeyVaultSecretReference; + /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. */ + encryptedCredential?: string; +} + /** Linked service for Sybase data source. */ export interface SybaseLinkedService extends LinkedService { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5782,6 +5856,26 @@ export interface GoogleBigQueryLinkedService extends LinkedService { encryptedCredential?: string; } +/** Google BigQuery service linked service. */ +export interface GoogleBigQueryV2LinkedService extends LinkedService { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "GoogleBigQueryV2"; + /** The default BigQuery project id to query against. Type: string (or Expression with resultType string). */ + projectId: any; + /** The OAuth 2.0 authentication mechanism used for authentication. */ + authenticationType: GoogleBigQueryV2AuthenticationType; + /** The client id of the google application used to acquire the refresh token. Type: string (or Expression with resultType string). */ + clientId?: any; + /** The client secret of the google application used to acquire the refresh token. */ + clientSecret?: SecretBaseUnion; + /** The refresh token obtained from Google for authorizing access to BigQuery for UserAuthentication. */ + refreshToken?: SecretBaseUnion; + /** The content of the .json key file that is used to authenticate the service account. Type: string (or Expression with resultType string). */ + keyFileContent?: SecretBaseUnion; + /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. */ + encryptedCredential?: string; +} + /** Greenplum Database linked service. */ export interface GreenplumLinkedService extends LinkedService { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -6787,6 +6881,28 @@ export interface WarehouseLinkedService extends LinkedService { servicePrincipalCredential?: SecretBaseUnion; } +/** ServiceNowV2 server linked service. */ +export interface ServiceNowV2LinkedService extends LinkedService { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceNowV2"; + /** The endpoint of the ServiceNowV2 server. (i.e. .service-now.com) */ + endpoint: any; + /** The authentication type to use. */ + authenticationType: ServiceNowV2AuthenticationType; + /** The user name used to connect to the ServiceNowV2 server for Basic and OAuth2 authentication. */ + username?: any; + /** The password corresponding to the user name for Basic and OAuth2 authentication. */ + password?: SecretBaseUnion; + /** The client id for OAuth2 authentication. */ + clientId?: any; + /** The client secret for OAuth2 authentication. */ + clientSecret?: SecretBaseUnion; + /** GrantType for OAuth2 authentication. Default value is password. */ + grantType?: any; + /** The encrypted credential used for authentication. Credentials are encrypted using the integration runtime credential manager. Type: string. */ + encryptedCredential?: string; +} + /** A single Amazon Simple Storage Service (S3) object or a set of S3 objects. */ export interface AmazonS3Dataset extends Dataset { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -7252,6 +7368,16 @@ export interface PostgreSqlTableDataset extends Dataset { schemaTypePropertiesSchema?: any; } +/** The PostgreSQLV2 table dataset. */ +export interface PostgreSqlV2TableDataset extends Dataset { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PostgreSqlV2Table"; + /** The PostgreSQL table name. Type: string (or Expression with resultType string). */ + table?: any; + /** The PostgreSQL schema name. Type: string (or Expression with resultType string). */ + schemaTypePropertiesSchema?: any; +} + /** The Microsoft Access table dataset. */ export interface MicrosoftAccessTableDataset extends Dataset { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -7492,6 +7618,16 @@ export interface GoogleBigQueryObjectDataset extends Dataset { dataset?: any; } +/** Google BigQuery service dataset. */ +export interface GoogleBigQueryV2ObjectDataset extends Dataset { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "GoogleBigQueryV2Object"; + /** The table name of the Google BigQuery. Type: string (or Expression with resultType string). */ + table?: any; + /** The database name of the Google BigQuery. Type: string (or Expression with resultType string). */ + dataset?: any; +} + /** Greenplum Database dataset. */ export interface GreenplumTableDataset extends Dataset { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -7824,6 +7960,14 @@ export interface WarehouseTableDataset extends Dataset { table?: any; } +/** ServiceNowV2 server dataset. */ +export interface ServiceNowV2ObjectDataset extends Dataset { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceNowV2Object"; + /** The table name. Type: string (or Expression with resultType string). */ + tableName?: any; +} + /** Base class for all control activities like IfCondition, ForEach , Until. */ export interface ControlActivity extends Activity { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -8977,6 +9121,7 @@ export interface TabularSource extends CopySource { | "OdbcSource" | "MySqlSource" | "PostgreSqlSource" + | "PostgreSqlV2Source" | "SybaseSource" | "SapBwSource" | "SalesforceSource" @@ -9002,6 +9147,7 @@ export interface TabularSource extends CopySource { | "DrillSource" | "EloquaSource" | "GoogleBigQuerySource" + | "GoogleBigQueryV2Source" | "GreenplumSource" | "HBaseSource" | "HiveSource" @@ -9031,7 +9177,8 @@ export interface TabularSource extends CopySource { | "GoogleAdWordsSource" | "AmazonRedshiftSource" | "WarehouseSource" - | "SalesforceV2Source"; + | "SalesforceV2Source" + | "ServiceNowV2Source"; /** Query timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). */ queryTimeout?: any; /** Specifies the additional columns to be added to source data. Type: array of objects(AdditionalColumns) (or Expression with resultType array of objects). */ @@ -10806,6 +10953,14 @@ export interface PostgreSqlSource extends TabularSource { query?: any; } +/** A copy activity source for PostgreSQL databases. */ +export interface PostgreSqlV2Source extends TabularSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "PostgreSqlV2Source"; + /** Database query. Type: string (or Expression with resultType string). */ + query?: any; +} + /** A copy activity source for Sybase databases. */ export interface SybaseSource extends TabularSource { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -11120,6 +11275,14 @@ export interface GoogleBigQuerySource extends TabularSource { query?: any; } +/** A copy activity Google BigQuery service source. */ +export interface GoogleBigQueryV2Source extends TabularSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "GoogleBigQueryV2Source"; + /** A query to retrieve data from source. Type: string (or Expression with resultType string). */ + query?: any; +} + /** A copy activity Greenplum Database source. */ export interface GreenplumSource extends TabularSource { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -11380,6 +11543,14 @@ export interface SalesforceV2Source extends TabularSource { includeDeletedObjects?: any; } +/** A copy activity ServiceNowV2 server source. */ +export interface ServiceNowV2Source extends TabularSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServiceNowV2Source"; + /** Expression to filter data from source. */ + expression?: ExpressionV2; +} + /** Referenced tumbling window trigger dependency. */ export interface TumblingWindowTriggerDependencyReference extends TriggerDependencyReference { @@ -12609,6 +12780,24 @@ export enum KnownGoogleBigQueryAuthenticationType { */ export type GoogleBigQueryAuthenticationType = string; +/** Known values of {@link GoogleBigQueryV2AuthenticationType} that the service accepts. */ +export enum KnownGoogleBigQueryV2AuthenticationType { + /** ServiceAuthentication */ + ServiceAuthentication = "ServiceAuthentication", + /** UserAuthentication */ + UserAuthentication = "UserAuthentication", +} + +/** + * Defines values for GoogleBigQueryV2AuthenticationType. \ + * {@link KnownGoogleBigQueryV2AuthenticationType} can be used interchangeably with GoogleBigQueryV2AuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **ServiceAuthentication** \ + * **UserAuthentication** + */ +export type GoogleBigQueryV2AuthenticationType = string; + /** Known values of {@link HBaseAuthenticationType} that the service accepts. */ export enum KnownHBaseAuthenticationType { /** Anonymous */ @@ -12876,6 +13065,24 @@ export enum KnownSnowflakeAuthenticationType { */ export type SnowflakeAuthenticationType = string; +/** Known values of {@link ServiceNowV2AuthenticationType} that the service accepts. */ +export enum KnownServiceNowV2AuthenticationType { + /** Basic */ + Basic = "Basic", + /** OAuth2 */ + OAuth2 = "OAuth2", +} + +/** + * Defines values for ServiceNowV2AuthenticationType. \ + * {@link KnownServiceNowV2AuthenticationType} can be used interchangeably with ServiceNowV2AuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Basic** \ + * **OAuth2** + */ +export type ServiceNowV2AuthenticationType = string; + /** Known values of {@link CassandraSourceReadConsistencyLevels} that the service accepts. */ export enum KnownCassandraSourceReadConsistencyLevels { /** ALL */ @@ -13398,6 +13605,30 @@ export enum KnownSalesforceV2SinkWriteBehavior { */ export type SalesforceV2SinkWriteBehavior = string; +/** Known values of {@link ExpressionV2Type} that the service accepts. */ +export enum KnownExpressionV2Type { + /** Constant */ + Constant = "Constant", + /** Field */ + Field = "Field", + /** Unary */ + Unary = "Unary", + /** Binary */ + Binary = "Binary", +} + +/** + * Defines values for ExpressionV2Type. \ + * {@link KnownExpressionV2Type} can be used interchangeably with ExpressionV2Type, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Constant** \ + * **Field** \ + * **Unary** \ + * **Binary** + */ +export type ExpressionV2Type = string; + /** Known values of {@link RecurrenceFrequency} that the service accepts. */ export enum KnownRecurrenceFrequency { /** NotSpecified */ diff --git a/sdk/datafactory/arm-datafactory/src/models/mappers.ts b/sdk/datafactory/arm-datafactory/src/models/mappers.ts index ca0b419d5e4c..26dec7d9c1ce 100644 --- a/sdk/datafactory/arm-datafactory/src/models/mappers.ts +++ b/sdk/datafactory/arm-datafactory/src/models/mappers.ts @@ -7542,6 +7542,45 @@ export const SynapseSparkJobReference: coreClient.CompositeMapper = { }, }; +export const ExpressionV2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExpressionV2", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + operator: { + serializedName: "operator", + type: { + name: "String", + }, + }, + operands: { + serializedName: "operands", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExpressionV2", + }, + }, + }, + }, + }, + }, +}; + export const ScheduleTriggerRecurrence: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10180,6 +10219,139 @@ export const PostgreSqlLinkedService: coreClient.CompositeMapper = { }, }; +export const PostgreSqlV2LinkedService: coreClient.CompositeMapper = { + serializedName: "PostgreSqlV2", + type: { + name: "Composite", + className: "PostgreSqlV2LinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + server: { + serializedName: "typeProperties.server", + required: true, + type: { + name: "any", + }, + }, + port: { + serializedName: "typeProperties.port", + type: { + name: "any", + }, + }, + username: { + serializedName: "typeProperties.username", + required: true, + type: { + name: "any", + }, + }, + database: { + serializedName: "typeProperties.database", + required: true, + type: { + name: "any", + }, + }, + sslMode: { + serializedName: "typeProperties.sslMode", + required: true, + type: { + name: "any", + }, + }, + schema: { + serializedName: "typeProperties.schema", + type: { + name: "any", + }, + }, + pooling: { + serializedName: "typeProperties.pooling", + type: { + name: "any", + }, + }, + connectionTimeout: { + serializedName: "typeProperties.connectionTimeout", + type: { + name: "any", + }, + }, + commandTimeout: { + serializedName: "typeProperties.commandTimeout", + type: { + name: "any", + }, + }, + trustServerCertificate: { + serializedName: "typeProperties.trustServerCertificate", + type: { + name: "any", + }, + }, + sslCertificate: { + serializedName: "typeProperties.sslCertificate", + type: { + name: "any", + }, + }, + sslKey: { + serializedName: "typeProperties.sslKey", + type: { + name: "any", + }, + }, + sslPassword: { + serializedName: "typeProperties.sslPassword", + type: { + name: "any", + }, + }, + readBufferSize: { + serializedName: "typeProperties.readBufferSize", + type: { + name: "any", + }, + }, + logParameters: { + serializedName: "typeProperties.logParameters", + type: { + name: "any", + }, + }, + timezone: { + serializedName: "typeProperties.timezone", + type: { + name: "any", + }, + }, + encoding: { + serializedName: "typeProperties.encoding", + type: { + name: "any", + }, + }, + password: { + serializedName: "typeProperties.password", + type: { + name: "Composite", + className: "AzureKeyVaultSecretReference", + }, + }, + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "String", + }, + }, + }, + }, +}; + export const SybaseLinkedService: coreClient.CompositeMapper = { serializedName: "Sybase", type: { @@ -12970,6 +13142,67 @@ export const GoogleBigQueryLinkedService: coreClient.CompositeMapper = { }, }; +export const GoogleBigQueryV2LinkedService: coreClient.CompositeMapper = { + serializedName: "GoogleBigQueryV2", + type: { + name: "Composite", + className: "GoogleBigQueryV2LinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + projectId: { + serializedName: "typeProperties.projectId", + required: true, + type: { + name: "any", + }, + }, + authenticationType: { + serializedName: "typeProperties.authenticationType", + required: true, + type: { + name: "String", + }, + }, + clientId: { + serializedName: "typeProperties.clientId", + type: { + name: "any", + }, + }, + clientSecret: { + serializedName: "typeProperties.clientSecret", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + refreshToken: { + serializedName: "typeProperties.refreshToken", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + keyFileContent: { + serializedName: "typeProperties.keyFileContent", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "String", + }, + }, + }, + }, +}; + export const GreenplumLinkedService: coreClient.CompositeMapper = { serializedName: "Greenplum", type: { @@ -15948,6 +16181,72 @@ export const WarehouseLinkedService: coreClient.CompositeMapper = { }, }; +export const ServiceNowV2LinkedService: coreClient.CompositeMapper = { + serializedName: "ServiceNowV2", + type: { + name: "Composite", + className: "ServiceNowV2LinkedService", + uberParent: "LinkedService", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator, + modelProperties: { + ...LinkedService.type.modelProperties, + endpoint: { + serializedName: "typeProperties.endpoint", + required: true, + type: { + name: "any", + }, + }, + authenticationType: { + serializedName: "typeProperties.authenticationType", + required: true, + type: { + name: "String", + }, + }, + username: { + serializedName: "typeProperties.username", + type: { + name: "any", + }, + }, + password: { + serializedName: "typeProperties.password", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + clientId: { + serializedName: "typeProperties.clientId", + type: { + name: "any", + }, + }, + clientSecret: { + serializedName: "typeProperties.clientSecret", + type: { + name: "Composite", + className: "SecretBase", + }, + }, + grantType: { + serializedName: "typeProperties.grantType", + type: { + name: "any", + }, + }, + encryptedCredential: { + serializedName: "typeProperties.encryptedCredential", + type: { + name: "String", + }, + }, + }, + }, +}; + export const AmazonS3Dataset: coreClient.CompositeMapper = { serializedName: "AmazonS3Object", type: { @@ -17218,6 +17517,32 @@ export const PostgreSqlTableDataset: coreClient.CompositeMapper = { }, }; +export const PostgreSqlV2TableDataset: coreClient.CompositeMapper = { + serializedName: "PostgreSqlV2Table", + type: { + name: "Composite", + className: "PostgreSqlV2TableDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + table: { + serializedName: "typeProperties.table", + type: { + name: "any", + }, + }, + schemaTypePropertiesSchema: { + serializedName: "typeProperties.schema", + type: { + name: "any", + }, + }, + }, + }, +}; + export const MicrosoftAccessTableDataset: coreClient.CompositeMapper = { serializedName: "MicrosoftAccessTable", type: { @@ -17842,6 +18167,32 @@ export const GoogleBigQueryObjectDataset: coreClient.CompositeMapper = { }, }; +export const GoogleBigQueryV2ObjectDataset: coreClient.CompositeMapper = { + serializedName: "GoogleBigQueryV2Object", + type: { + name: "Composite", + className: "GoogleBigQueryV2ObjectDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + table: { + serializedName: "typeProperties.table", + type: { + name: "any", + }, + }, + dataset: { + serializedName: "typeProperties.dataset", + type: { + name: "any", + }, + }, + }, + }, +}; + export const GreenplumTableDataset: coreClient.CompositeMapper = { serializedName: "GreenplumTable", type: { @@ -18697,6 +19048,26 @@ export const WarehouseTableDataset: coreClient.CompositeMapper = { }, }; +export const ServiceNowV2ObjectDataset: coreClient.CompositeMapper = { + serializedName: "ServiceNowV2Object", + type: { + name: "Composite", + className: "ServiceNowV2ObjectDataset", + uberParent: "Dataset", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator, + modelProperties: { + ...Dataset.type.modelProperties, + tableName: { + serializedName: "typeProperties.tableName", + type: { + name: "any", + }, + }, + }, + }, +}; + export const ControlActivity: coreClient.CompositeMapper = { serializedName: "Container", type: { @@ -27004,6 +27375,26 @@ export const PostgreSqlSource: coreClient.CompositeMapper = { }, }; +export const PostgreSqlV2Source: coreClient.CompositeMapper = { + serializedName: "PostgreSqlV2Source", + type: { + name: "Composite", + className: "PostgreSqlV2Source", + uberParent: "TabularSource", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: TabularSource.type.polymorphicDiscriminator, + modelProperties: { + ...TabularSource.type.modelProperties, + query: { + serializedName: "query", + type: { + name: "any", + }, + }, + }, + }, +}; + export const SybaseSource: coreClient.CompositeMapper = { serializedName: "SybaseSource", type: { @@ -27855,6 +28246,26 @@ export const GoogleBigQuerySource: coreClient.CompositeMapper = { }, }; +export const GoogleBigQueryV2Source: coreClient.CompositeMapper = { + serializedName: "GoogleBigQueryV2Source", + type: { + name: "Composite", + className: "GoogleBigQueryV2Source", + uberParent: "TabularSource", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: TabularSource.type.polymorphicDiscriminator, + modelProperties: { + ...TabularSource.type.modelProperties, + query: { + serializedName: "query", + type: { + name: "any", + }, + }, + }, + }, +}; + export const GreenplumSource: coreClient.CompositeMapper = { serializedName: "GreenplumSource", type: { @@ -28518,6 +28929,27 @@ export const SalesforceV2Source: coreClient.CompositeMapper = { }, }; +export const ServiceNowV2Source: coreClient.CompositeMapper = { + serializedName: "ServiceNowV2Source", + type: { + name: "Composite", + className: "ServiceNowV2Source", + uberParent: "TabularSource", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: TabularSource.type.polymorphicDiscriminator, + modelProperties: { + ...TabularSource.type.modelProperties, + expression: { + serializedName: "expression", + type: { + name: "Composite", + className: "ExpressionV2", + }, + }, + }, + }, +}; + export const TumblingWindowTriggerDependencyReference: coreClient.CompositeMapper = { serializedName: "TumblingWindowTriggerDependencyReference", @@ -28655,6 +29087,7 @@ export let discriminators = { "LinkedService.AzureMySql": AzureMySqlLinkedService, "LinkedService.MySql": MySqlLinkedService, "LinkedService.PostgreSql": PostgreSqlLinkedService, + "LinkedService.PostgreSqlV2": PostgreSqlV2LinkedService, "LinkedService.Sybase": SybaseLinkedService, "LinkedService.Db2": Db2LinkedService, "LinkedService.Teradata": TeradataLinkedService, @@ -28706,6 +29139,7 @@ export let discriminators = { "LinkedService.Drill": DrillLinkedService, "LinkedService.Eloqua": EloquaLinkedService, "LinkedService.GoogleBigQuery": GoogleBigQueryLinkedService, + "LinkedService.GoogleBigQueryV2": GoogleBigQueryV2LinkedService, "LinkedService.Greenplum": GreenplumLinkedService, "LinkedService.HBase": HBaseLinkedService, "LinkedService.Hive": HiveLinkedService, @@ -28751,6 +29185,7 @@ export let discriminators = { "LinkedService.SalesforceServiceCloudV2": SalesforceServiceCloudV2LinkedService, "LinkedService.Warehouse": WarehouseLinkedService, + "LinkedService.ServiceNowV2": ServiceNowV2LinkedService, "Dataset.AmazonS3Object": AmazonS3Dataset, "Dataset.Avro": AvroDataset, "Dataset.Excel": ExcelDataset, @@ -28793,6 +29228,7 @@ export let discriminators = { "Dataset.OdbcTable": OdbcTableDataset, "Dataset.MySqlTable": MySqlTableDataset, "Dataset.PostgreSqlTable": PostgreSqlTableDataset, + "Dataset.PostgreSqlV2Table": PostgreSqlV2TableDataset, "Dataset.MicrosoftAccessTable": MicrosoftAccessTableDataset, "Dataset.SalesforceObject": SalesforceObjectDataset, "Dataset.SalesforceServiceCloudObject": SalesforceServiceCloudObjectDataset, @@ -28817,6 +29253,7 @@ export let discriminators = { "Dataset.DrillTable": DrillTableDataset, "Dataset.EloquaObject": EloquaObjectDataset, "Dataset.GoogleBigQueryObject": GoogleBigQueryObjectDataset, + "Dataset.GoogleBigQueryV2Object": GoogleBigQueryV2ObjectDataset, "Dataset.GreenplumTable": GreenplumTableDataset, "Dataset.HBaseObject": HBaseObjectDataset, "Dataset.HiveObject": HiveObjectDataset, @@ -28855,6 +29292,7 @@ export let discriminators = { "Dataset.SalesforceServiceCloudV2Object": SalesforceServiceCloudV2ObjectDataset, "Dataset.WarehouseTable": WarehouseTableDataset, + "Dataset.ServiceNowV2Object": ServiceNowV2ObjectDataset, "Activity.Container": ControlActivity, "Activity.Execution": ExecutionActivity, "Activity.ExecuteWranglingDataflow": ExecuteWranglingDataflowActivity, @@ -29086,6 +29524,7 @@ export let discriminators = { "TabularSource.OdbcSource": OdbcSource, "TabularSource.MySqlSource": MySqlSource, "TabularSource.PostgreSqlSource": PostgreSqlSource, + "TabularSource.PostgreSqlV2Source": PostgreSqlV2Source, "TabularSource.SybaseSource": SybaseSource, "TabularSource.SapBwSource": SapBwSource, "TabularSource.SalesforceSource": SalesforceSource, @@ -29111,6 +29550,7 @@ export let discriminators = { "TabularSource.DrillSource": DrillSource, "TabularSource.EloquaSource": EloquaSource, "TabularSource.GoogleBigQuerySource": GoogleBigQuerySource, + "TabularSource.GoogleBigQueryV2Source": GoogleBigQueryV2Source, "TabularSource.GreenplumSource": GreenplumSource, "TabularSource.HBaseSource": HBaseSource, "TabularSource.HiveSource": HiveSource, @@ -29142,6 +29582,7 @@ export let discriminators = { "TabularSource.AmazonRedshiftSource": AmazonRedshiftSource, "TabularSource.WarehouseSource": WarehouseSource, "TabularSource.SalesforceV2Source": SalesforceV2Source, + "TabularSource.ServiceNowV2Source": ServiceNowV2Source, "TriggerDependencyReference.TumblingWindowTriggerDependencyReference": TumblingWindowTriggerDependencyReference, }; From 4a9912f7370064b076ff0b21dc5c19227078753c Mon Sep 17 00:00:00 2001 From: EmmaZhu-MSFT Date: Thu, 14 Mar 2024 22:55:19 -0700 Subject: [PATCH 50/57] Create test account with allowing public access (#27723) (#28913) ### Packages impacted by this PR ### Issues associated with this PR ### Describe the problem that is addressed by this PR ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) ### Packages impacted by this PR ### Issues associated with this PR ### Describe the problem that is addressed by this PR ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --- sdk/storage/test-resources.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sdk/storage/test-resources.json b/sdk/storage/test-resources.json index 119f9e132b7b..fd4d1b6c1eb4 100644 --- a/sdk/storage/test-resources.json +++ b/sdk/storage/test-resources.json @@ -216,7 +216,8 @@ "supportsHttpsTrafficOnly": true, "encryption": "[variables('encryption')]", "accessTier": "Hot", - "minimumTlsVersion": "TLS1_2" + "minimumTlsVersion": "TLS1_2", + "allowBlobPublicAccess": true } }, { From fdd1c26450042a1b178ac6a5a36b41d1d1389a86 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 15 Mar 2024 14:09:52 +0800 Subject: [PATCH 51/57] [mgmt] batch release (#28900) https://github.com/Azure/sdk-release-request/issues/5016 --- sdk/batch/arm-batch/CHANGELOG.md | 22 +- sdk/batch/arm-batch/LICENSE | 2 +- sdk/batch/arm-batch/_meta.json | 6 +- sdk/batch/arm-batch/assets.json | 2 +- sdk/batch/arm-batch/package.json | 7 +- sdk/batch/arm-batch/review/arm-batch.api.md | 31 + .../samples-dev/applicationCreateSample.ts | 8 +- .../samples-dev/applicationDeleteSample.ts | 4 +- .../samples-dev/applicationGetSample.ts | 4 +- .../samples-dev/applicationListSample.ts | 4 +- .../applicationPackageActivateSample.ts | 6 +- .../applicationPackageCreateSample.ts | 4 +- .../applicationPackageDeleteSample.ts | 4 +- .../applicationPackageGetSample.ts | 4 +- .../applicationPackageListSample.ts | 4 +- .../samples-dev/applicationUpdateSample.ts | 6 +- .../samples-dev/batchAccountCreateSample.ts | 57 +- .../samples-dev/batchAccountDeleteSample.ts | 4 +- .../batchAccountGetDetectorSample.ts | 4 +- .../samples-dev/batchAccountGetKeysSample.ts | 4 +- .../samples-dev/batchAccountGetSample.ts | 8 +- .../batchAccountListByResourceGroupSample.ts | 4 +- .../batchAccountListDetectorsSample.ts | 4 +- ...boundNetworkDependenciesEndpointsSample.ts | 8 +- .../samples-dev/batchAccountListSample.ts | 2 +- .../batchAccountRegenerateKeySample.ts | 8 +- ...AccountSynchronizeAutoStorageKeysSample.ts | 4 +- .../samples-dev/batchAccountUpdateSample.ts | 10 +- .../certificateCancelDeletionSample.ts | 4 +- .../samples-dev/certificateCreateSample.ts | 20 +- .../samples-dev/certificateDeleteSample.ts | 4 +- .../samples-dev/certificateGetSample.ts | 8 +- .../certificateListByBatchAccountSample.ts | 12 +- .../samples-dev/certificateUpdateSample.ts | 8 +- .../locationCheckNameAvailabilitySample.ts | 14 +- .../samples-dev/locationGetQuotasSample.ts | 2 +- ...tionListSupportedCloudServiceSkusSample.ts | 4 +- ...onListSupportedVirtualMachineSkusSample.ts | 4 +- .../samples-dev/operationsListSample.ts | 2 +- .../arm-batch/samples-dev/poolCreateSample.ts | 344 +- .../arm-batch/samples-dev/poolDeleteSample.ts | 4 +- .../samples-dev/poolDisableAutoScaleSample.ts | 4 +- .../arm-batch/samples-dev/poolGetSample.ts | 47 +- .../poolListByBatchAccountSample.ts | 10 +- .../samples-dev/poolStopResizeSample.ts | 4 +- .../arm-batch/samples-dev/poolUpdateSample.ts | 43 +- .../privateEndpointConnectionDeleteSample.ts | 13 +- .../privateEndpointConnectionGetSample.ts | 4 +- ...pointConnectionListByBatchAccountSample.ts | 4 +- .../privateEndpointConnectionUpdateSample.ts | 21 +- .../privateLinkResourceGetSample.ts | 4 +- ...ateLinkResourceListByBatchAccountSample.ts | 4 +- .../arm-batch/samples/v9/javascript/README.md | 92 +- .../v9/javascript/applicationCreateSample.js | 2 +- .../v9/javascript/applicationDeleteSample.js | 2 +- .../v9/javascript/applicationGetSample.js | 2 +- .../v9/javascript/applicationListSample.js | 2 +- .../applicationPackageActivateSample.js | 2 +- .../applicationPackageCreateSample.js | 2 +- .../applicationPackageDeleteSample.js | 2 +- .../javascript/applicationPackageGetSample.js | 2 +- .../applicationPackageListSample.js | 2 +- .../v9/javascript/applicationUpdateSample.js | 2 +- .../v9/javascript/batchAccountCreateSample.js | 10 +- .../v9/javascript/batchAccountDeleteSample.js | 2 +- .../batchAccountGetDetectorSample.js | 2 +- .../javascript/batchAccountGetKeysSample.js | 2 +- .../v9/javascript/batchAccountGetSample.js | 4 +- .../batchAccountListByResourceGroupSample.js | 2 +- .../batchAccountListDetectorsSample.js | 2 +- ...boundNetworkDependenciesEndpointsSample.js | 2 +- .../v9/javascript/batchAccountListSample.js | 2 +- .../batchAccountRegenerateKeySample.js | 2 +- ...AccountSynchronizeAutoStorageKeysSample.js | 2 +- .../v9/javascript/batchAccountUpdateSample.js | 2 +- .../certificateCancelDeletionSample.js | 2 +- .../v9/javascript/certificateCreateSample.js | 6 +- .../v9/javascript/certificateDeleteSample.js | 2 +- .../v9/javascript/certificateGetSample.js | 4 +- .../certificateListByBatchAccountSample.js | 4 +- .../v9/javascript/certificateUpdateSample.js | 2 +- .../locationCheckNameAvailabilitySample.js | 4 +- .../v9/javascript/locationGetQuotasSample.js | 2 +- ...tionListSupportedCloudServiceSkusSample.js | 2 +- ...onListSupportedVirtualMachineSkusSample.js | 2 +- .../v9/javascript/operationsListSample.js | 2 +- .../samples/v9/javascript/poolCreateSample.js | 92 +- .../samples/v9/javascript/poolDeleteSample.js | 2 +- .../javascript/poolDisableAutoScaleSample.js | 2 +- .../samples/v9/javascript/poolGetSample.js | 30 +- .../poolListByBatchAccountSample.js | 4 +- .../v9/javascript/poolStopResizeSample.js | 2 +- .../samples/v9/javascript/poolUpdateSample.js | 8 +- .../privateEndpointConnectionDeleteSample.js | 2 +- .../privateEndpointConnectionGetSample.js | 2 +- ...pointConnectionListByBatchAccountSample.js | 2 +- .../privateEndpointConnectionUpdateSample.js | 2 +- .../privateLinkResourceGetSample.js | 2 +- ...ateLinkResourceListByBatchAccountSample.js | 2 +- .../arm-batch/samples/v9/typescript/README.md | 92 +- .../typescript/src/applicationCreateSample.ts | 8 +- .../typescript/src/applicationDeleteSample.ts | 4 +- .../v9/typescript/src/applicationGetSample.ts | 4 +- .../typescript/src/applicationListSample.ts | 4 +- .../src/applicationPackageActivateSample.ts | 6 +- .../src/applicationPackageCreateSample.ts | 4 +- .../src/applicationPackageDeleteSample.ts | 4 +- .../src/applicationPackageGetSample.ts | 4 +- .../src/applicationPackageListSample.ts | 4 +- .../typescript/src/applicationUpdateSample.ts | 6 +- .../src/batchAccountCreateSample.ts | 57 +- .../src/batchAccountDeleteSample.ts | 4 +- .../src/batchAccountGetDetectorSample.ts | 4 +- .../src/batchAccountGetKeysSample.ts | 4 +- .../typescript/src/batchAccountGetSample.ts | 8 +- .../batchAccountListByResourceGroupSample.ts | 4 +- .../src/batchAccountListDetectorsSample.ts | 4 +- ...boundNetworkDependenciesEndpointsSample.ts | 4 +- .../typescript/src/batchAccountListSample.ts | 2 +- .../src/batchAccountRegenerateKeySample.ts | 8 +- ...AccountSynchronizeAutoStorageKeysSample.ts | 4 +- .../src/batchAccountUpdateSample.ts | 10 +- .../src/certificateCancelDeletionSample.ts | 4 +- .../typescript/src/certificateCreateSample.ts | 20 +- .../typescript/src/certificateDeleteSample.ts | 4 +- .../v9/typescript/src/certificateGetSample.ts | 8 +- .../certificateListByBatchAccountSample.ts | 12 +- .../typescript/src/certificateUpdateSample.ts | 8 +- .../locationCheckNameAvailabilitySample.ts | 14 +- .../typescript/src/locationGetQuotasSample.ts | 2 +- ...tionListSupportedCloudServiceSkusSample.ts | 4 +- ...onListSupportedVirtualMachineSkusSample.ts | 4 +- .../v9/typescript/src/operationsListSample.ts | 2 +- .../v9/typescript/src/poolCreateSample.ts | 344 +- .../v9/typescript/src/poolDeleteSample.ts | 4 +- .../src/poolDisableAutoScaleSample.ts | 4 +- .../v9/typescript/src/poolGetSample.ts | 47 +- .../src/poolListByBatchAccountSample.ts | 10 +- .../v9/typescript/src/poolStopResizeSample.ts | 4 +- .../v9/typescript/src/poolUpdateSample.ts | 43 +- .../privateEndpointConnectionDeleteSample.ts | 13 +- .../src/privateEndpointConnectionGetSample.ts | 4 +- ...pointConnectionListByBatchAccountSample.ts | 4 +- .../privateEndpointConnectionUpdateSample.ts | 21 +- .../src/privateLinkResourceGetSample.ts | 4 +- ...ateLinkResourceListByBatchAccountSample.ts | 4 +- .../arm-batch/src/batchManagementClient.ts | 44 +- sdk/batch/arm-batch/src/lroImpl.ts | 6 +- sdk/batch/arm-batch/src/models/index.ts | 88 +- sdk/batch/arm-batch/src/models/mappers.ts | 2773 +++++++++-------- sdk/batch/arm-batch/src/models/parameters.ts | 176 +- .../src/operations/applicationOperations.ts | 113 +- .../applicationPackageOperations.ts | 122 +- .../src/operations/batchAccountOperations.ts | 434 ++- .../src/operations/certificateOperations.ts | 167 +- .../arm-batch/src/operations/location.ts | 194 +- .../arm-batch/src/operations/operations.ts | 32 +- .../src/operations/poolOperations.ts | 184 +- .../privateEndpointConnectionOperations.ts | 177 +- .../privateLinkResourceOperations.ts | 71 +- .../applicationOperations.ts | 12 +- .../applicationPackageOperations.ts | 12 +- .../batchAccountOperations.ts | 32 +- .../certificateOperations.ts | 16 +- .../src/operationsInterfaces/location.ts | 10 +- .../src/operationsInterfaces/operations.ts | 2 +- .../operationsInterfaces/poolOperations.ts | 18 +- .../privateEndpointConnectionOperations.ts | 14 +- .../privateLinkResourceOperations.ts | 6 +- sdk/batch/arm-batch/src/pagingHelper.ts | 2 +- sdk/batch/arm-batch/test/batch_examples.ts | 2 +- 171 files changed, 3571 insertions(+), 3130 deletions(-) diff --git a/sdk/batch/arm-batch/CHANGELOG.md b/sdk/batch/arm-batch/CHANGELOG.md index 51a8819ec7d9..95bf3a7ea61d 100644 --- a/sdk/batch/arm-batch/CHANGELOG.md +++ b/sdk/batch/arm-batch/CHANGELOG.md @@ -1,15 +1,17 @@ # Release History + +## 9.2.0 (2024-03-13) + +**Features** -## 9.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added Interface AutomaticOSUpgradePolicy + - Added Interface RollingUpgradePolicy + - Added Interface UpgradePolicy + - Added Type Alias UpgradeMode + - Interface Pool has a new optional parameter upgradePolicy + - Interface SupportedSku has a new optional parameter batchSupportEndOfLife + + ## 9.1.0 (2023-12-08) **Features** diff --git a/sdk/batch/arm-batch/LICENSE b/sdk/batch/arm-batch/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/batch/arm-batch/LICENSE +++ b/sdk/batch/arm-batch/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 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/batch/arm-batch/_meta.json b/sdk/batch/arm-batch/_meta.json index 4e8fc0694fde..cc080b70fb11 100644 --- a/sdk/batch/arm-batch/_meta.json +++ b/sdk/batch/arm-batch/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0373f0edc4414fd402603fac51d0df93f1f70507", + "commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d", "readme": "specification/batch/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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\\batch\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/batch/arm-batch/assets.json b/sdk/batch/arm-batch/assets.json index 33923f30bd54..5f5c454d1c5e 100644 --- a/sdk/batch/arm-batch/assets.json +++ b/sdk/batch/arm-batch/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/batch/arm-batch", - "Tag": "js/batch/arm-batch_b9e91e3a94" + "Tag": "js/batch/arm-batch_5859ca6f69" } diff --git a/sdk/batch/arm-batch/package.json b/sdk/batch/arm-batch/package.json index 7f6f0d9568d8..137d9a31b8e9 100644 --- a/sdk/batch/arm-batch/package.json +++ b/sdk/batch/arm-batch/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for BatchManagementClient.", - "version": "9.1.1", + "version": "9.2.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -79,7 +79,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", diff --git a/sdk/batch/arm-batch/review/arm-batch.api.md b/sdk/batch/arm-batch/review/arm-batch.api.md index 984f35a151be..2f185f3372ab 100644 --- a/sdk/batch/arm-batch/review/arm-batch.api.md +++ b/sdk/batch/arm-batch/review/arm-batch.api.md @@ -146,6 +146,14 @@ export type ApplicationUpdateResponse = Application; // @public export type AuthenticationMode = "SharedKey" | "AAD" | "TaskAuthenticationToken"; +// @public +export interface AutomaticOSUpgradePolicy { + disableAutomaticRollback?: boolean; + enableAutomaticOSUpgrade?: boolean; + osRollingUpgradeDeferral?: boolean; + useRollingUpgradePolicy?: boolean; +} + // @public export interface AutoScaleRun { error?: AutoScaleRunError; @@ -1125,6 +1133,7 @@ export interface Pool extends ProxyResource { targetNodeCommunicationMode?: NodeCommunicationMode; taskSchedulingPolicy?: TaskSchedulingPolicy; taskSlotsPerNode?: number; + upgradePolicy?: UpgradePolicy; userAccounts?: UserAccount[]; vmSize?: string; } @@ -1433,6 +1442,17 @@ export interface ResourceFile { // @public export type ResourceIdentityType = "SystemAssigned" | "UserAssigned" | "None"; +// @public +export interface RollingUpgradePolicy { + enableCrossZoneUpgrade?: boolean; + maxBatchInstancePercent?: number; + maxUnhealthyInstancePercent?: number; + maxUnhealthyUpgradedInstancePercent?: number; + pauseTimeBetweenBatches?: string; + prioritizeUnhealthyInstances?: boolean; + rollbackFailedInstancesOnPolicyBreach?: boolean; +} + // @public export interface ScaleSettings { autoScale?: AutoScaleSettings; @@ -1473,6 +1493,7 @@ export type StorageAccountType = "Standard_LRS" | "Premium_LRS" | "StandardSSD_L // @public export interface SupportedSku { + readonly batchSupportEndOfLife?: Date; readonly capabilities?: SkuCapability[]; readonly familyName?: string; readonly name?: string; @@ -1503,6 +1524,16 @@ export interface UefiSettings { vTpmEnabled?: boolean; } +// @public +export type UpgradeMode = "automatic" | "manual" | "rolling"; + +// @public +export interface UpgradePolicy { + automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy; + mode: UpgradeMode; + rollingUpgradePolicy?: RollingUpgradePolicy; +} + // @public export interface UserAccount { elevationLevel?: ElevationLevel; diff --git a/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts index 64c4c2f1f6ff..a8dbd7489cc8 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationCreateSample.ts @@ -11,7 +11,7 @@ import { Application, ApplicationCreateOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationCreate() { const applicationName = "app1"; const parameters: Application = { allowUpdates: false, - displayName: "myAppName" + displayName: "myAppName", }; const options: ApplicationCreateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -41,7 +41,7 @@ async function applicationCreate() { resourceGroupName, accountName, applicationName, - options + options, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts index 78302373bbf7..cc654adc53ca 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationDelete() { const result = await client.applicationOperations.delete( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts b/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts index 37ba964c881e..5c8040343af6 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationGet() { const result = await client.applicationOperations.get( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationListSample.ts b/sdk/batch/arm-batch/samples-dev/applicationListSample.ts index 0b9fbf8a43ae..7bc002d6e44c 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function applicationList() { const resArray = new Array(); for await (let item of client.applicationOperations.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts index fdff2415ef76..300527a53c43 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageActivateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ActivateApplicationPackageParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. * * @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function applicationPackageActivate() { accountName, applicationName, versionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts index f05044dc1f76..24947565f7ee 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. * * @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageCreate() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts index a60eed70c9d5..5dfb9a724185 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageDelete() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts index 3728f051deb6..ae9deebd6509 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageGet() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts b/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts index 1f9f2731ec96..d2ec0a3b8aad 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationPackageListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationPackageList() { for await (let item of client.applicationPackageOperations.list( resourceGroupName, accountName, - applicationName + applicationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts index 6c012f8e5b44..7a2ab45754e2 100644 --- a/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/applicationUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function applicationUpdate() { const parameters: Application = { allowUpdates: true, defaultVersion: "2", - displayName: "myAppName" + displayName: "myAppName", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function applicationUpdate() { resourceGroupName, accountName, applicationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts index c114b1b2edd3..b18c9a9b33f8 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountCreateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,22 +31,21 @@ async function batchAccountCreateByos() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - poolAllocationMode: "UserSubscription" + poolAllocationMode: "UserSubscription", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -55,7 +54,7 @@ async function batchAccountCreateByos() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,16 +64,16 @@ async function batchAccountCreateDefault() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -83,7 +82,7 @@ async function batchAccountCreateDefault() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -93,17 +92,17 @@ async function batchAccountCreateSystemAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "SystemAssigned" }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -112,7 +111,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -122,22 +121,23 @@ async function batchAccountCreateUserAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + }, }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -146,7 +146,7 @@ async function batchAccountCreateUserAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -156,22 +156,21 @@ async function privateBatchAccountCreate() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - publicNetworkAccess: "Disabled" + publicNetworkAccess: "Disabled", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts index 215254b6434c..3ab28b3efbbb 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountDelete() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts index f21e79d7b5bd..02afade8344e 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetDetectorSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getDetector() { const result = await client.batchAccountOperations.getDetector( resourceGroupName, accountName, - detectorId + detectorId, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts index 007159c908cd..146587b90ee8 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGetKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.getKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts index e9de30289660..1b379c7b2016 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } @@ -38,7 +38,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function privateBatchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts index 474a0cf06a3f..3d89d382ca06 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function batchAccountListByResourceGroup() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.batchAccountOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts index 201e99bfec41..02c7bbb2963c 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListDetectorsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listDetectors() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listDetectors( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts index adb1740d9092..b16fc0e1eba5 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts @@ -15,10 +15,10 @@ import * as dotenv from "dotenv"; dotenv.config(); /** - * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. + * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * - * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listOutboundNetworkDependencies() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listOutboundNetworkDependenciesEndpoints( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts index d3059c1cd420..7e7e86a007ca 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts index 2af55052d73c..cb32a95ec558 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountRegenerateKeyParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,14 +29,14 @@ async function batchAccountRegenerateKey() { process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; const accountName = "sampleacct"; const parameters: BatchAccountRegenerateKeyParameters = { - keyName: "Primary" + keyName: "Primary", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.regenerateKey( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts index a1745f885316..270e29f2fe26 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountSynchronizeAutoStorageKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountSynchronizeAutoStorageKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.synchronizeAutoStorageKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts index 0b9d17a48d7f..dcd5e09a8b35 100644 --- a/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/batchAccountUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,15 +31,15 @@ async function batchAccountUpdate() { const parameters: BatchAccountUpdateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" - } + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.update( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts b/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts index c5eb7f42ea6c..be9ee3b99080 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateCancelDeletionSample.ts @@ -22,7 +22,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function certificateCancelDeletion() { const result = await client.certificateOperations.cancelDeletion( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts b/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts index 0cf0437c6750..732c5eb1da22 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function createCertificateFull() { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", password: "", thumbprint: "0a0e4f50d51beadeac1d35afc5116098e7902e6e", - thumbprintAlgorithm: "sha1" + thumbprintAlgorithm: "sha1", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createCertificateFull() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -51,7 +51,7 @@ async function createCertificateFull() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -61,7 +61,7 @@ async function createCertificateMinimalCer() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { format: "Cer", - data: "MIICrjCCAZagAwI..." + data: "MIICrjCCAZagAwI...", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -69,7 +69,7 @@ async function createCertificateMinimalCer() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -78,7 +78,7 @@ async function createCertificateMinimalCer() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -88,7 +88,7 @@ async function createCertificateMinimalPfx() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -96,7 +96,7 @@ async function createCertificateMinimalPfx() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts index 6f5983bd38c2..efca48cb301a 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function certificateDelete() { const result = await client.certificateOperations.beginDeleteAndWait( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts b/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts index 35f3a497aed3..877bcc59143b 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getCertificate() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getCertificate() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getCertificateWithDeletionError() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts index 19c1364f0406..50d9f2df5da4 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listCertificates() { const resArray = new Array(); for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listCertificates() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -56,7 +56,7 @@ async function listCertificatesFilterAndSelect() { "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'"; const options: CertificateListByBatchAccountOptionalParams = { select, - filter + filter, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -64,7 +64,7 @@ async function listCertificatesFilterAndSelect() { for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts index e230bb7c7d5d..aefb9a6329aa 100644 --- a/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/certificateUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function updateCertificate() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function updateCertificate() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts b/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts index 761b7a3991e7..a8378a706525 100644 --- a/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,20 +21,20 @@ dotenv.config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "existingaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } @@ -43,20 +43,20 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "newaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts b/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts index a72bd970c416..a3255897f228 100644 --- a/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationGetQuotasSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts b/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts index 126cb58c3ece..2c759a7a9f4d 100644 --- a/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationListSupportedCloudServiceSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListCloudServiceSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedCloudServiceSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts b/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts index 0371db773b4c..a4542724d2eb 100644 --- a/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts +++ b/sdk/batch/arm-batch/samples-dev/locationListSupportedVirtualMachineSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListVirtualMachineSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedVirtualMachineSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/operationsListSample.ts b/sdk/batch/arm-batch/samples-dev/operationsListSample.ts index 31f150fda6ec..465aa4cdc751 100644 --- a/sdk/batch/arm-batch/samples-dev/operationsListSample.ts +++ b/sdk/batch/arm-batch/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts b/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts index e05ac9f73010..30c2b6d5427c 100644 --- a/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,13 +30,12 @@ async function createPoolCustomImage() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -44,7 +43,7 @@ async function createPoolCustomImage() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -53,7 +52,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,50 +64,48 @@ async function createPoolFullCloudServiceConfiguration() { applicationLicenses: ["app-license0", "app-license1"], applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", - version: "asdf" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", + version: "asdf", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", storeName: "MY", - visibility: ["RemoteUser"] - } + visibility: ["RemoteUser"], + }, ], deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "4", - osVersion: "WA-GUEST-OS-4.45_201708-01" - } + osVersion: "WA-GUEST-OS-4.45_201708-01", + }, }, displayName: "my-pool-name", interNodeCommunication: "Enabled", metadata: [ { name: "metadata-1", value: "value-1" }, - { name: "metadata-2", value: "value-2" } + { name: "metadata-2", value: "value-2" }, ], networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", - "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268" + "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { fixedScale: { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 6, - targetLowPriorityNodes: 28 - } + targetLowPriorityNodes: 28, + }, }, startTask: { commandLine: "cmd /c SET", @@ -118,11 +115,12 @@ async function createPoolFullCloudServiceConfiguration() { { fileMode: "777", filePath: "c:\\temp\\gohere", - httpUrl: "https://testaccount.blob.core.windows.net/example-blob-file" - } + httpUrl: + "https://testaccount.blob.core.windows.net/example-blob-file", + }, ], userIdentity: { autoUser: { elevationLevel: "Admin", scope: "Pool" } }, - waitForSuccess: true + waitForSuccess: true, }, taskSchedulingPolicy: { nodeFillType: "Pack" }, taskSlotsPerNode: 13, @@ -133,12 +131,12 @@ async function createPoolFullCloudServiceConfiguration() { linuxUserConfiguration: { gid: 4567, sshPrivateKey: "sshprivatekeyvalue", - uid: 1234 + uid: 1234, }, - password: "" - } + password: "", + }, ], - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -146,7 +144,7 @@ async function createPoolFullCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -155,7 +153,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -171,28 +169,28 @@ async function createPoolFullVirtualMachineConfiguration() { caching: "ReadWrite", diskSizeGB: 30, lun: 0, - storageAccountType: "Premium_LRS" + storageAccountType: "Premium_LRS", }, { caching: "None", diskSizeGB: 200, lun: 1, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, ], diskEncryptionConfiguration: { targets: ["OsDisk", "TemporaryDisk"] }, imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter-SmallDisk", - version: "latest" + version: "latest", }, licenseType: "Windows_Server", nodeAgentSkuId: "batch.node.windows amd64", nodePlacementConfiguration: { policy: "Zonal" }, osDisk: { ephemeralOSDiskSettings: { placement: "CacheDisk" } }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, networkConfiguration: { endpointConfiguration: { @@ -207,27 +205,27 @@ async function createPoolFullVirtualMachineConfiguration() { access: "Allow", priority: 150, sourceAddressPrefix: "192.100.12.45", - sourcePortRanges: ["1", "2"] + sourcePortRanges: ["1", "2"], }, { access: "Deny", priority: 3500, sourceAddressPrefix: "*", - sourcePortRanges: ["*"] - } + sourcePortRanges: ["*"], + }, ], - protocol: "TCP" - } - ] - } + protocol: "TCP", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -235,7 +233,7 @@ async function createPoolFullVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -244,7 +242,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -255,7 +253,7 @@ async function createPoolMinimalCloudServiceConfiguration() { const parameters: Pool = { deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "5" } }, scaleSettings: { fixedScale: { targetDedicatedNodes: 3 } }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -263,7 +261,7 @@ async function createPoolMinimalCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -272,7 +270,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -287,18 +285,18 @@ async function createPoolMinimalVirtualMachineConfiguration() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -306,7 +304,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -315,7 +313,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -327,18 +325,17 @@ async function createPoolNoPublicIP() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { provision: "NoPublicIPAddresses" }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -346,7 +343,7 @@ async function createPoolNoPublicIP() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -355,7 +352,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -367,23 +364,22 @@ async function createPoolPublicIPs() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ - "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135" + "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -391,7 +387,7 @@ async function createPoolPublicIPs() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -400,7 +396,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -415,16 +411,16 @@ async function createPoolResourceTags() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, resourceTags: { tagName1: "TagValue1", tagName2: "TagValue2" }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -432,7 +428,7 @@ async function createPoolResourceTags() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -441,7 +437,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -456,20 +452,20 @@ async function createPoolSecurityProfile() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.ubuntu 18.04", securityProfile: { encryptionAtHost: true, securityType: "trustedLaunch", - uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false } - } - } + uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false }, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -477,7 +473,7 @@ async function createPoolSecurityProfile() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -486,7 +482,67 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters: Pool = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -501,25 +557,27 @@ async function createPoolUserAssignedIdentities() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": + {}, + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -527,7 +585,7 @@ async function createPoolUserAssignedIdentities() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -536,7 +594,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -550,7 +608,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { imageReference: { offer: "0001-com-ubuntu-server-focal", publisher: "Canonical", - sku: "20_04-lts" + sku: "20_04-lts", }, nodeAgentSkuId: "batch.node.ubuntu 20.04", extensions: [ @@ -562,21 +620,21 @@ async function createPoolVirtualMachineConfigurationExtensions() { publisher: "Microsoft.Azure.KeyVault", settings: { authenticationSettingsKey: "authenticationSettingsValue", - secretsManagementSettingsKey: "secretsManagementSettingsValue" + secretsManagementSettingsKey: "secretsManagementSettingsValue", }, - typeHandlerVersion: "2.0" - } - ] - } + typeHandlerVersion: "2.0", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, targetNodeCommunicationMode: "Default", - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -584,7 +642,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -593,7 +651,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -607,21 +665,21 @@ async function createPoolVirtualMachineConfigurationOSDisk() { imageReference: { offer: "windowsserver", publisher: "microsoftwindowsserver", - sku: "2022-datacenter-smalldisk" + sku: "2022-datacenter-smalldisk", }, nodeAgentSkuId: "batch.node.windows amd64", osDisk: { caching: "ReadWrite", diskSizeGB: 100, managedDisk: { storageAccountType: "StandardSSD_LRS" }, - writeAcceleratorEnabled: false - } - } + writeAcceleratorEnabled: false, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d2s_v3" + vmSize: "Standard_d2s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -629,7 +687,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -638,7 +696,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -653,20 +711,23 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-datacenter-smalldisk", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.windows amd64", serviceArtifactReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile", }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -674,7 +735,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -683,7 +744,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -698,20 +759,20 @@ async function createPoolAcceleratedNetworking() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-datacenter-smalldisk", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.windows amd64" - } + nodeAgentSkuId: "batch.node.windows amd64", + }, }, networkConfiguration: { enableAcceleratedNetworking: true, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "STANDARD_D1_V2" + vmSize: "STANDARD_D1_V2", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -719,7 +780,7 @@ async function createPoolAcceleratedNetworking() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -734,6 +795,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts index cf18ad258e9d..a9c912eb888f 100644 --- a/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function deletePool() { const result = await client.poolOperations.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts b/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts index c10f630a8671..92d1ba4f00de 100644 --- a/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolDisableAutoScaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function disableAutoScale() { const result = await client.poolOperations.disableAutoScale( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolGetSample.ts b/sdk/batch/arm-batch/samples-dev/poolGetSample.ts index eb208ab6a187..ee1c5fc0db34 100644 --- a/sdk/batch/arm-batch/samples-dev/poolGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPool() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getPoolAcceleratedNetworking() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -62,7 +62,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function getPoolSecurityProfile() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -84,7 +84,29 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -97,7 +119,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -106,7 +128,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -119,7 +141,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -128,7 +150,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -141,7 +163,7 @@ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -150,6 +172,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts index 3e76c5e8f0cd..ddd4e180cc82 100644 --- a/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PoolListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listPool() { const resArray = new Array(); for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -62,7 +62,7 @@ async function listPoolWithFilter() { for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts b/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts index 1f4dd79eeccb..7a33f48c738f 100644 --- a/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolStopResizeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function stopPoolResize() { const result = await client.poolOperations.stopResize( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts index fa0397c7b525..bfe544cbcb18 100644 --- a/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/poolUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function updatePoolEnableAutoscale() { const accountName = "sampleacct"; const poolName = "testpool"; const parameters: Pool = { - scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } } + scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -35,7 +35,7 @@ async function updatePoolEnableAutoscale() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -44,7 +44,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -55,25 +55,22 @@ async function updatePoolOtherProperties() { const parameters: Pool = { applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", }, { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", - version: "1.0" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", + version: "1.0", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", - storeName: "MY" - } + storeName: "MY", + }, ], metadata: [{ name: "key1", value: "value1" }], - targetNodeCommunicationMode: "Simplified" + targetNodeCommunicationMode: "Simplified", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -81,7 +78,7 @@ async function updatePoolOtherProperties() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -90,7 +87,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -105,7 +102,7 @@ async function updatePoolRemoveStartTask() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -114,7 +111,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -128,9 +125,9 @@ async function updatePoolResizePool() { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 5, - targetLowPriorityNodes: 0 - } - } + targetLowPriorityNodes: 0, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -138,7 +135,7 @@ async function updatePoolResizePool() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts index d8e0c7ef64fe..f5562067e058 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,11 +29,12 @@ async function privateEndpointConnectionDelete() { "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0"; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginDeleteAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName - ); + const result = + await client.privateEndpointConnectionOperations.beginDeleteAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts index b83b8adf4525..f21885b1e9dc 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function getPrivateEndpointConnection() { const result = await client.privateEndpointConnectionOperations.get( resourceGroupName, accountName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts index 488f066105a5..e93316acdb2d 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateEndpointConnections() { const resArray = new Array(); for await (let item of client.privateEndpointConnectionOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts index dda28f162d82..055c113527c2 100644 --- a/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateEndpointConnectionUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,17 +33,18 @@ async function updatePrivateEndpointConnection() { const parameters: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approved by xyz.abc@company.com", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginUpdateAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName, - parameters - ); + const result = + await client.privateEndpointConnectionOperations.beginUpdateAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + parameters, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts b/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts index c00ae2cf0c01..08a2c9e9186f 100644 --- a/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateLinkResourceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPrivateLinkResource() { const result = await client.privateLinkResourceOperations.get( resourceGroupName, accountName, - privateLinkResourceName + privateLinkResourceName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts index bc3d78c558cc..285583c8a39a 100644 --- a/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples-dev/privateLinkResourceListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateLinkResource() { const resArray = new Array(); for await (let item of client.privateLinkResourceOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/javascript/README.md b/sdk/batch/arm-batch/samples/v9/javascript/README.md index 8c5de35a90b6..137d817992f9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/README.md +++ b/sdk/batch/arm-batch/samples/v9/javascript/README.md @@ -4,52 +4,52 @@ These sample programs show how to use the JavaScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [applicationCreateSample.js][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json | -| [applicationDeleteSample.js][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json | -| [applicationGetSample.js][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json | -| [applicationListSample.js][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json | -| [applicationPackageActivateSample.js][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json | -| [applicationPackageCreateSample.js][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json | -| [applicationPackageDeleteSample.js][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json | -| [applicationPackageGetSample.js][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json | -| [applicationPackageListSample.js][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json | -| [applicationUpdateSample.js][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json | -| [batchAccountCreateSample.js][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json | -| [batchAccountDeleteSample.js][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json | -| [batchAccountGetDetectorSample.js][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json | -| [batchAccountGetKeysSample.js][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json | -| [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json | -| [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json | -| [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json | -| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | -| [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json | -| [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json | -| [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | -| [batchAccountUpdateSample.js][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json | -| [certificateCancelDeletionSample.js][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json | -| [certificateCreateSample.js][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json | -| [certificateDeleteSample.js][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json | -| [certificateGetSample.js][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json | -| [certificateListByBatchAccountSample.js][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json | -| [certificateUpdateSample.js][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json | -| [locationCheckNameAvailabilitySample.js][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json | -| [locationGetQuotasSample.js][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json | -| [locationListSupportedCloudServiceSkusSample.js][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json | -| [locationListSupportedVirtualMachineSkusSample.js][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json | -| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json | -| [poolCreateSample.js][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json | -| [poolDeleteSample.js][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json | -| [poolDisableAutoScaleSample.js][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json | -| [poolGetSample.js][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json | -| [poolListByBatchAccountSample.js][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json | -| [poolStopResizeSample.js][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json | -| [poolUpdateSample.js][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json | -| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionListByBatchAccountSample.js][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json | -| [privateEndpointConnectionUpdateSample.js][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json | -| [privateLinkResourceGetSample.js][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json | -| [privateLinkResourceListByBatchAccountSample.js][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json | +| [applicationCreateSample.js][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json | +| [applicationDeleteSample.js][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json | +| [applicationGetSample.js][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json | +| [applicationListSample.js][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json | +| [applicationPackageActivateSample.js][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json | +| [applicationPackageCreateSample.js][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json | +| [applicationPackageDeleteSample.js][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json | +| [applicationPackageGetSample.js][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json | +| [applicationPackageListSample.js][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json | +| [applicationUpdateSample.js][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json | +| [batchAccountCreateSample.js][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json | +| [batchAccountDeleteSample.js][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json | +| [batchAccountGetDetectorSample.js][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json | +| [batchAccountGetKeysSample.js][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json | +| [batchAccountGetSample.js][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json | +| [batchAccountListByResourceGroupSample.js][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json | +| [batchAccountListDetectorsSample.js][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json | +| [batchAccountListOutboundNetworkDependenciesEndpointsSample.js][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | +| [batchAccountListSample.js][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json | +| [batchAccountRegenerateKeySample.js][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json | +| [batchAccountSynchronizeAutoStorageKeysSample.js][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | +| [batchAccountUpdateSample.js][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json | +| [certificateCancelDeletionSample.js][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json | +| [certificateCreateSample.js][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json | +| [certificateDeleteSample.js][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json | +| [certificateGetSample.js][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json | +| [certificateListByBatchAccountSample.js][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json | +| [certificateUpdateSample.js][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json | +| [locationCheckNameAvailabilitySample.js][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json | +| [locationGetQuotasSample.js][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json | +| [locationListSupportedCloudServiceSkusSample.js][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json | +| [locationListSupportedVirtualMachineSkusSample.js][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json | +| [operationsListSample.js][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json | +| [poolCreateSample.js][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json | +| [poolDeleteSample.js][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json | +| [poolDisableAutoScaleSample.js][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json | +| [poolGetSample.js][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json | +| [poolListByBatchAccountSample.js][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json | +| [poolStopResizeSample.js][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json | +| [poolUpdateSample.js][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json | +| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionListByBatchAccountSample.js][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json | +| [privateEndpointConnectionUpdateSample.js][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json | +| [privateLinkResourceGetSample.js][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json | +| [privateLinkResourceListByBatchAccountSample.js][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json | ## Prerequisites diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js index 5d7e48fdaead..b5db95add04f 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js index 2b34e0ad3e85..11a00a873c16 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js index 7f8a00940740..65fb660a9507 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js index f5391d800a26..8b3692e173aa 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js index 989022c9fe70..65d3a0272dc9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageActivateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. * * @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js index 632c0ff65e15..b9510c2a3512 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. * * @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js index b170c47c4ce1..bf517ae12f0d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js index f3390d539e96..b16875ec3bef 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js index d550e6632c4a..2356de10a2b0 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationPackageListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js index 9ab51e9740d6..f202ea2b005a 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/applicationUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js index 6b2c1564dac9..5bbc873f81d0 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -48,7 +48,7 @@ async function batchAccountCreateByos() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function batchAccountCreateDefault() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -103,7 +103,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -137,7 +137,7 @@ async function batchAccountCreateUserAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js index 47133687dae2..69cb5dc6043b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js index 3c3897978a23..976d9d6b5021 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetDetectorSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js index badbe550bcb9..061c3879df34 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js index b0f614cc3dd8..ff0192b6d6de 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js index c50860efc125..509cacc1f91d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js index 0502a931c1a9..db3bb8037671 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListDetectorsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js index 739cda1b20df..95bb8e3b20f4 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListOutboundNetworkDependenciesEndpointsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. * * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js index 41eadc16027f..0473ec85a61c 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js index b0b6a0e12df2..361e8f289826 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountRegenerateKeySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js index dd4ff709e919..4a6d6ea96239 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountSynchronizeAutoStorageKeysSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js index 04e1fd2719a2..cb991341426f 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/batchAccountUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js index 43298a033cc1..37eb9de32ab3 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateCancelDeletionSample.js @@ -20,7 +20,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js index e74f3408820c..ce5cb1a1907e 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -45,7 +45,7 @@ async function createCertificateFull() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -71,7 +71,7 @@ async function createCertificateMinimalCer() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js index 5c679939dabb..40785b67927b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js index dad8d8da3261..e4c5e4fae699 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -37,7 +37,7 @@ async function getCertificate() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js index 2314eb903a7f..e2913b045ff7 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function listCertificates() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js index 2c1386684443..ee646a8b1da4 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/certificateUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js index 7b527ba50814..d8407fa395c5 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js index 0012cec10aee..a4f4f4fa4663 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationGetQuotasSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js index ab7ef144f835..97f01ae414c9 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedCloudServiceSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js index 4ef7cb1fd31a..92fb29c6a8b8 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/locationListSupportedVirtualMachineSkusSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js b/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js index 9339ba527f8d..65713f385abd 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js index 72a9262ea624..828bf091d16d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -148,7 +148,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -236,7 +236,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -263,7 +263,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -305,7 +305,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -343,7 +343,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -386,7 +386,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -426,7 +426,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -470,7 +470,66 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -521,7 +580,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -577,7 +636,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -621,7 +680,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -647,6 +706,10 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { scaleSettings: { fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", + }, vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); @@ -664,7 +727,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -714,6 +777,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js index 37c52a862a47..71f2e688210d 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js index 5b477e10a804..f0105d8e1ab1 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolDisableAutoScaleSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js index 164fc18f2c9d..c7b8498614de 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -50,7 +50,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -67,7 +67,24 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get(resourceGroupName, accountName, poolName); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -84,7 +101,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -101,7 +118,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -118,6 +135,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js index 6d3d037aba31..eb48717bacb2 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js index b5e1916f1df0..e3732c3eab73 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolStopResizeSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js index 2161023bba69..d04e9ab8362e 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/poolUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -41,7 +41,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -83,7 +83,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -106,7 +106,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js index 60e91d3576ab..b221b30620b6 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js index 406f8d3dc204..b63c99408b24 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js index c5693239b272..3727fb556fac 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js index f88d0adc737d..f67960055542 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateEndpointConnectionUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js index f4066398a2c6..9fd4a3eae66b 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js index d1af6bce38e1..ac05db0b9641 100644 --- a/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js +++ b/sdk/batch/arm-batch/samples/v9/javascript/privateLinkResourceListByBatchAccountSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/README.md b/sdk/batch/arm-batch/samples/v9/typescript/README.md index 03256f187939..739c846dfee7 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/README.md +++ b/sdk/batch/arm-batch/samples/v9/typescript/README.md @@ -4,52 +4,52 @@ These sample programs show how to use the TypeScript client libraries for in som | **File Name** | **Description** | | --------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [applicationCreateSample.ts][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json | -| [applicationDeleteSample.ts][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json | -| [applicationGetSample.ts][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json | -| [applicationListSample.ts][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json | -| [applicationPackageActivateSample.ts][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json | -| [applicationPackageCreateSample.ts][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json | -| [applicationPackageDeleteSample.ts][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json | -| [applicationPackageGetSample.ts][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json | -| [applicationPackageListSample.ts][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json | -| [applicationUpdateSample.ts][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json | -| [batchAccountCreateSample.ts][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json | -| [batchAccountDeleteSample.ts][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json | -| [batchAccountGetDetectorSample.ts][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json | -| [batchAccountGetKeysSample.ts][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json | -| [batchAccountGetSample.ts][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json | -| [batchAccountListByResourceGroupSample.ts][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json | -| [batchAccountListDetectorsSample.ts][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json | -| [batchAccountListOutboundNetworkDependenciesEndpointsSample.ts][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | -| [batchAccountListSample.ts][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json | -| [batchAccountRegenerateKeySample.ts][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json | -| [batchAccountSynchronizeAutoStorageKeysSample.ts][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | -| [batchAccountUpdateSample.ts][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json | -| [certificateCancelDeletionSample.ts][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json | -| [certificateCreateSample.ts][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json | -| [certificateDeleteSample.ts][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json | -| [certificateGetSample.ts][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json | -| [certificateListByBatchAccountSample.ts][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json | -| [certificateUpdateSample.ts][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json | -| [locationCheckNameAvailabilitySample.ts][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json | -| [locationGetQuotasSample.ts][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json | -| [locationListSupportedCloudServiceSkusSample.ts][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json | -| [locationListSupportedVirtualMachineSkusSample.ts][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json | -| [operationsListSample.ts][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json | -| [poolCreateSample.ts][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json | -| [poolDeleteSample.ts][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json | -| [poolDisableAutoScaleSample.ts][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json | -| [poolGetSample.ts][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json | -| [poolListByBatchAccountSample.ts][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json | -| [poolStopResizeSample.ts][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json | -| [poolUpdateSample.ts][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json | -| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json | -| [privateEndpointConnectionGetSample.ts][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json | -| [privateEndpointConnectionListByBatchAccountSample.ts][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json | -| [privateEndpointConnectionUpdateSample.ts][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json | -| [privateLinkResourceGetSample.ts][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json | -| [privateLinkResourceListByBatchAccountSample.ts][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json | +| [applicationCreateSample.ts][applicationcreatesample] | Adds an application to the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json | +| [applicationDeleteSample.ts][applicationdeletesample] | Deletes an application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json | +| [applicationGetSample.ts][applicationgetsample] | Gets information about the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json | +| [applicationListSample.ts][applicationlistsample] | Lists all of the applications in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json | +| [applicationPackageActivateSample.ts][applicationpackageactivatesample] | Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json | +| [applicationPackageCreateSample.ts][applicationpackagecreatesample] | Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json | +| [applicationPackageDeleteSample.ts][applicationpackagedeletesample] | Deletes an application package record and its associated binary file. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json | +| [applicationPackageGetSample.ts][applicationpackagegetsample] | Gets information about the specified application package. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json | +| [applicationPackageListSample.ts][applicationpackagelistsample] | Lists all of the application packages in the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json | +| [applicationUpdateSample.ts][applicationupdatesample] | Updates settings for the specified application. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json | +| [batchAccountCreateSample.ts][batchaccountcreatesample] | Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json | +| [batchAccountDeleteSample.ts][batchaccountdeletesample] | Deletes the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json | +| [batchAccountGetDetectorSample.ts][batchaccountgetdetectorsample] | Gets information about the given detector for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json | +| [batchAccountGetKeysSample.ts][batchaccountgetkeyssample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json | +| [batchAccountGetSample.ts][batchaccountgetsample] | Gets information about the specified Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json | +| [batchAccountListByResourceGroupSample.ts][batchaccountlistbyresourcegroupsample] | Gets information about the Batch accounts associated with the specified resource group. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json | +| [batchAccountListDetectorsSample.ts][batchaccountlistdetectorssample] | Gets information about the detectors available for a given Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json | +| [batchAccountListOutboundNetworkDependenciesEndpointsSample.ts][batchaccountlistoutboundnetworkdependenciesendpointssample] | Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json | +| [batchAccountListSample.ts][batchaccountlistsample] | Gets information about the Batch accounts associated with the subscription. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json | +| [batchAccountRegenerateKeySample.ts][batchaccountregeneratekeysample] | This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json | +| [batchAccountSynchronizeAutoStorageKeysSample.ts][batchaccountsynchronizeautostoragekeyssample] | Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json | +| [batchAccountUpdateSample.ts][batchaccountupdatesample] | Updates the properties of an existing Batch account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json | +| [certificateCancelDeletionSample.ts][certificatecanceldeletionsample] | If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. //@@TS-MAGIC-NEWLINE@@ Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json | +| [certificateCreateSample.ts][certificatecreatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json | +| [certificateDeleteSample.ts][certificatedeletesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json | +| [certificateGetSample.ts][certificategetsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json | +| [certificateListByBatchAccountSample.ts][certificatelistbybatchaccountsample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json | +| [certificateUpdateSample.ts][certificateupdatesample] | Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json | +| [locationCheckNameAvailabilitySample.ts][locationchecknameavailabilitysample] | Checks whether the Batch account name is available in the specified region. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json | +| [locationGetQuotasSample.ts][locationgetquotassample] | Gets the Batch service quotas for the specified subscription at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json | +| [locationListSupportedCloudServiceSkusSample.ts][locationlistsupportedcloudserviceskussample] | Gets the list of Batch supported Cloud Service VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json | +| [locationListSupportedVirtualMachineSkusSample.ts][locationlistsupportedvirtualmachineskussample] | Gets the list of Batch supported Virtual Machine VM sizes available at the given location. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json | +| [operationsListSample.ts][operationslistsample] | Lists available operations for the Microsoft.Batch provider x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json | +| [poolCreateSample.ts][poolcreatesample] | Creates a new pool inside the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json | +| [poolDeleteSample.ts][pooldeletesample] | Deletes the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json | +| [poolDisableAutoScaleSample.ts][pooldisableautoscalesample] | Disables automatic scaling for a pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json | +| [poolGetSample.ts][poolgetsample] | Gets information about the specified pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json | +| [poolListByBatchAccountSample.ts][poollistbybatchaccountsample] | Lists all of the pools in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json | +| [poolStopResizeSample.ts][poolstopresizesample] | This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json | +| [poolUpdateSample.ts][poolupdatesample] | Updates the properties of an existing pool. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json | +| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json | +| [privateEndpointConnectionGetSample.ts][privateendpointconnectiongetsample] | Gets information about the specified private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json | +| [privateEndpointConnectionListByBatchAccountSample.ts][privateendpointconnectionlistbybatchaccountsample] | Lists all of the private endpoint connections in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json | +| [privateEndpointConnectionUpdateSample.ts][privateendpointconnectionupdatesample] | Updates the properties of an existing private endpoint connection. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json | +| [privateLinkResourceGetSample.ts][privatelinkresourcegetsample] | Gets information about the specified private link resource. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json | +| [privateLinkResourceListByBatchAccountSample.ts][privatelinkresourcelistbybatchaccountsample] | Lists all of the private link resources in the specified account. x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json | ## Prerequisites diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts index 64c4c2f1f6ff..a8dbd7489cc8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationCreateSample.ts @@ -11,7 +11,7 @@ import { Application, ApplicationCreateOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Adds an application to the specified Batch account. * * @summary Adds an application to the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationCreate.json */ async function applicationCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationCreate() { const applicationName = "app1"; const parameters: Application = { allowUpdates: false, - displayName: "myAppName" + displayName: "myAppName", }; const options: ApplicationCreateOptionalParams = { parameters }; const credential = new DefaultAzureCredential(); @@ -41,7 +41,7 @@ async function applicationCreate() { resourceGroupName, accountName, applicationName, - options + options, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts index 78302373bbf7..cc654adc53ca 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application. * * @summary Deletes an application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationDelete.json */ async function applicationDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationDelete() { const result = await client.applicationOperations.delete( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts index 37ba964c881e..5c8040343af6 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application. * * @summary Gets information about the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationGet.json */ async function applicationGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function applicationGet() { const result = await client.applicationOperations.get( resourceGroupName, accountName, - applicationName + applicationName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts index 0b9fbf8a43ae..7bc002d6e44c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the applications in the specified account. * * @summary Lists all of the applications in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationList.json */ async function applicationList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function applicationList() { const resArray = new Array(); for await (let item of client.applicationOperations.list( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts index fdff2415ef76..300527a53c43 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageActivateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ActivateApplicationPackageParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. * * @summary Activates the specified application package. This should be done after the `ApplicationPackage` was created and uploaded. This needs to be done before an `ApplicationPackage` can be used on Pools or Tasks. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageActivate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageActivate.json */ async function applicationPackageActivate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -38,7 +38,7 @@ async function applicationPackageActivate() { accountName, applicationName, versionName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts index f05044dc1f76..24947565f7ee 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. * * @summary Creates an application package record. The record contains a storageUrl where the package should be uploaded to. Once it is uploaded the `ApplicationPackage` needs to be activated using `ApplicationPackageActive` before it can be used. If the auto storage account was configured to use storage keys, the URL returned will contain a SAS. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageCreate.json */ async function applicationPackageCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageCreate() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts index a60eed70c9d5..5dfb9a724185 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes an application package record and its associated binary file. * * @summary Deletes an application package record and its associated binary file. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageDelete.json */ async function applicationPackageDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageDelete() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts index 3728f051deb6..ae9deebd6509 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified application package. * * @summary Gets information about the specified application package. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageGet.json */ async function applicationPackageGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function applicationPackageGet() { resourceGroupName, accountName, applicationName, - versionName + versionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts index 1f9f2731ec96..d2ec0a3b8aad 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationPackageListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the application packages in the specified application. * * @summary Lists all of the application packages in the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationPackageList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationPackageList.json */ async function applicationPackageList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function applicationPackageList() { for await (let item of client.applicationPackageOperations.list( resourceGroupName, accountName, - applicationName + applicationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts index 6c012f8e5b44..7a2ab45754e2 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/applicationUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates settings for the specified application. * * @summary Updates settings for the specified application. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/ApplicationUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/ApplicationUpdate.json */ async function applicationUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function applicationUpdate() { const parameters: Application = { allowUpdates: true, defaultVersion: "2", - displayName: "myAppName" + displayName: "myAppName", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -37,7 +37,7 @@ async function applicationUpdate() { resourceGroupName, accountName, applicationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts index c114b1b2edd3..b18c9a9b33f8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountCreateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_BYOS.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_BYOS.json */ async function batchAccountCreateByos() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,22 +31,21 @@ async function batchAccountCreateByos() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - poolAllocationMode: "UserSubscription" + poolAllocationMode: "UserSubscription", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -55,7 +54,7 @@ async function batchAccountCreateByos() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_Default.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_Default.json */ async function batchAccountCreateDefault() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,16 +64,16 @@ async function batchAccountCreateDefault() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -83,7 +82,7 @@ async function batchAccountCreateDefault() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_SystemAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_SystemAssignedIdentity.json */ async function batchAccountCreateSystemAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -93,17 +92,17 @@ async function batchAccountCreateSystemAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "SystemAssigned" }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -112,7 +111,7 @@ async function batchAccountCreateSystemAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountCreate_UserAssignedIdentity.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountCreate_UserAssignedIdentity.json */ async function batchAccountCreateUserAssignedIdentity() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -122,22 +121,23 @@ async function batchAccountCreateUserAssignedIdentity() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + }, }, - location: "japaneast" + location: "japaneast", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } @@ -146,7 +146,7 @@ async function batchAccountCreateUserAssignedIdentity() { * This sample demonstrates how to Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. * * @summary Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with this API and should instead be updated with the Update Batch Account API. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountCreate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountCreate.json */ async function privateBatchAccountCreate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -156,22 +156,21 @@ async function privateBatchAccountCreate() { const parameters: BatchAccountCreateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", }, keyVaultReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", - url: "http://sample.vault.azure.net/" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.KeyVault/vaults/sample", + url: "http://sample.vault.azure.net/", }, location: "japaneast", - publicNetworkAccess: "Disabled" + publicNetworkAccess: "Disabled", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginCreateAndWait( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts index 215254b6434c..3ab28b3efbbb 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified Batch account. * * @summary Deletes the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountDelete.json */ async function batchAccountDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountDelete() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.beginDeleteAndWait( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts index f21e79d7b5bd..02afade8344e 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetDetectorSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the given detector for a given Batch account. * * @summary Gets information about the given detector for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorGet.json */ async function getDetector() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getDetector() { const result = await client.batchAccountOperations.getDetector( resourceGroupName, accountName, - detectorId + detectorId, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts index 007159c908cd..146587b90ee8 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, getting the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGetKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGetKeys.json */ async function batchAccountGetKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGetKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.getKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts index e9de30289660..1b379c7b2016 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountGet.json */ async function batchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } @@ -38,7 +38,7 @@ async function batchAccountGet() { * This sample demonstrates how to Gets information about the specified Batch account. * * @summary Gets information about the specified Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateBatchAccountGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateBatchAccountGet.json */ async function privateBatchAccountGet() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -49,7 +49,7 @@ async function privateBatchAccountGet() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.get( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts index 474a0cf06a3f..3d89d382ca06 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the specified resource group. * * @summary Gets information about the Batch accounts associated with the specified resource group. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListByResourceGroup.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListByResourceGroup.json */ async function batchAccountListByResourceGroup() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -28,7 +28,7 @@ async function batchAccountListByResourceGroup() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.batchAccountOperations.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts index 201e99bfec41..02c7bbb2963c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListDetectorsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the detectors available for a given Batch account. * * @summary Gets information about the detectors available for a given Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/DetectorList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/DetectorList.json */ async function listDetectors() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listDetectors() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listDetectors( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts index adb1740d9092..6ee9127b744e 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListOutboundNetworkDependenciesEndpointsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. * * @summary Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch service administration. If you are deploying a Pool inside of a virtual network that you specify, you must make sure your network allows outbound access to these endpoints. Failure to allow access to these endpoints may cause Batch to mark the affected nodes as unusable. For more information about creating a pool inside of a virtual network, see https://docs.microsoft.com/azure/batch/batch-virtual-network. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountListOutboundNetworkDependenciesEndpoints.json */ async function listOutboundNetworkDependencies() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listOutboundNetworkDependencies() { const resArray = new Array(); for await (let item of client.batchAccountOperations.listOutboundNetworkDependenciesEndpoints( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts index d3059c1cd420..7e7e86a007ca 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the Batch accounts associated with the subscription. * * @summary Gets information about the Batch accounts associated with the subscription. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountList.json */ async function batchAccountList() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts index 2af55052d73c..cb32a95ec558 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountRegenerateKeySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountRegenerateKeyParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. * * @summary This operation applies only to Batch accounts with allowedAuthenticationModes containing 'SharedKey'. If the Batch account doesn't contain 'SharedKey' in its allowedAuthenticationMode, clients cannot use shared keys to authenticate, and must use another allowedAuthenticationModes instead. In this case, regenerating the keys will fail. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountRegenerateKey.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountRegenerateKey.json */ async function batchAccountRegenerateKey() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,14 +29,14 @@ async function batchAccountRegenerateKey() { process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; const accountName = "sampleacct"; const parameters: BatchAccountRegenerateKeyParameters = { - keyName: "Primary" + keyName: "Primary", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.regenerateKey( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts index a1745f885316..270e29f2fe26 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountSynchronizeAutoStorageKeysSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. * * @summary Synchronizes access keys for the auto-storage account configured for the specified Batch account, only if storage key authentication is being used. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountSynchronizeAutoStorageKeys.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountSynchronizeAutoStorageKeys.json */ async function batchAccountSynchronizeAutoStorageKeys() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,7 +29,7 @@ async function batchAccountSynchronizeAutoStorageKeys() { const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.synchronizeAutoStorageKeys( resourceGroupName, - accountName + accountName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts index 0b9d17a48d7f..dcd5e09a8b35 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/batchAccountUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { BatchAccountUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing Batch account. * * @summary Updates the properties of an existing Batch account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/BatchAccountUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/BatchAccountUpdate.json */ async function batchAccountUpdate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,15 +31,15 @@ async function batchAccountUpdate() { const parameters: BatchAccountUpdateParameters = { autoStorage: { storageAccountId: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage" - } + "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Storage/storageAccounts/samplestorage", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.batchAccountOperations.update( resourceGroupName, accountName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts index c5eb7f42ea6c..be9ee3b99080 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCancelDeletionSample.ts @@ -22,7 +22,7 @@ Warning: This operation is deprecated and will be removed after February, 2024. * @summary If you try to delete a certificate that is being used by a pool or compute node, the status of the certificate changes to deleteFailed. If you decide that you want to continue using the certificate, you can use this operation to set the status of the certificate back to active. If you intend to delete the certificate, you do not need to run this operation after the deletion failed. You must make sure that the certificate is not being used by any resources, and then you can try again to delete the certificate. Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCancelDeletion.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCancelDeletion.json */ async function certificateCancelDeletion() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -35,7 +35,7 @@ async function certificateCancelDeletion() { const result = await client.certificateOperations.cancelDeletion( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts index 0cf0437c6750..732c5eb1da22 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateCreateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Full.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Full.json */ async function createCertificateFull() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -34,7 +34,7 @@ async function createCertificateFull() { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", password: "", thumbprint: "0a0e4f50d51beadeac1d35afc5116098e7902e6e", - thumbprintAlgorithm: "sha1" + thumbprintAlgorithm: "sha1", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -42,7 +42,7 @@ async function createCertificateFull() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -51,7 +51,7 @@ async function createCertificateFull() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_MinimalCer.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_MinimalCer.json */ async function createCertificateMinimalCer() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -61,7 +61,7 @@ async function createCertificateMinimalCer() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { format: "Cer", - data: "MIICrjCCAZagAwI..." + data: "MIICrjCCAZagAwI...", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -69,7 +69,7 @@ async function createCertificateMinimalCer() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } @@ -78,7 +78,7 @@ async function createCertificateMinimalCer() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateCreate_Minimal.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateCreate_Minimal.json */ async function createCertificateMinimalPfx() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -88,7 +88,7 @@ async function createCertificateMinimalPfx() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -96,7 +96,7 @@ async function createCertificateMinimalPfx() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts index 6f5983bd38c2..efca48cb301a 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateDelete.json */ async function certificateDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function certificateDelete() { const result = await client.certificateOperations.beginDeleteAndWait( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts index 35f3a497aed3..877bcc59143b 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGet.json */ async function getCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getCertificate() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getCertificate() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateGetWithDeletionError.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateGetWithDeletionError.json */ async function getCertificateWithDeletionError() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getCertificateWithDeletionError() { const result = await client.certificateOperations.get( resourceGroupName, accountName, - certificateName + certificateName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts index 19c1364f0406..50d9f2df5da4 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateList.json */ async function listCertificates() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listCertificates() { const resArray = new Array(); for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listCertificates() { * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateListWithFilter.json */ async function listCertificatesFilterAndSelect() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -56,7 +56,7 @@ async function listCertificatesFilterAndSelect() { "properties/provisioningStateTransitionTime gt '2017-05-01' or properties/provisioningState eq 'Failed'"; const options: CertificateListByBatchAccountOptionalParams = { select, - filter + filter, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -64,7 +64,7 @@ async function listCertificatesFilterAndSelect() { for await (let item of client.certificateOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts index e230bb7c7d5d..aefb9a6329aa 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/certificateUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CertificateCreateOrUpdateParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. * * @summary Warning: This operation is deprecated and will be removed after February, 2024. Please use the [Azure KeyVault Extension](https://learn.microsoft.com/azure/batch/batch-certificate-migration-guide) instead. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/CertificateUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/CertificateUpdate.json */ async function updateCertificate() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function updateCertificate() { const certificateName = "sha1-0a0e4f50d51beadeac1d35afc5116098e7902e6e"; const parameters: CertificateCreateOrUpdateParameters = { data: "MIIJsgIBAzCCCW4GCSqGSIb3DQE...", - password: "" + password: "", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -39,7 +39,7 @@ async function updateCertificate() { resourceGroupName, accountName, certificateName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts index 761b7a3991e7..a8378a706525 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,20 +21,20 @@ dotenv.config(); * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_AlreadyExists.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_AlreadyExists.json */ async function locationCheckNameAvailabilityAlreadyExists() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "existingaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } @@ -43,20 +43,20 @@ async function locationCheckNameAvailabilityAlreadyExists() { * This sample demonstrates how to Checks whether the Batch account name is available in the specified region. * * @summary Checks whether the Batch account name is available in the specified region. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationCheckNameAvailability_Available.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationCheckNameAvailability_Available.json */ async function locationCheckNameAvailabilityAvailable() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; const locationName = "japaneast"; const parameters: CheckNameAvailabilityParameters = { name: "newaccountname", - type: "Microsoft.Batch/batchAccounts" + type: "Microsoft.Batch/batchAccounts", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); const result = await client.location.checkNameAvailability( locationName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts index a72bd970c416..a3255897f228 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationGetQuotasSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the Batch service quotas for the specified subscription at the given location. * * @summary Gets the Batch service quotas for the specified subscription at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationGetQuotas.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationGetQuotas.json */ async function locationGetQuotas() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts index 126cb58c3ece..2c759a7a9f4d 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedCloudServiceSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Cloud Service VM sizes available at the given location. * * @summary Gets the list of Batch supported Cloud Service VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListCloudServiceSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListCloudServiceSkus.json */ async function locationListCloudServiceSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListCloudServiceSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedCloudServiceSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts index 0371db773b4c..a4542724d2eb 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/locationListSupportedVirtualMachineSkusSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Batch supported Virtual Machine VM sizes available at the given location. * * @summary Gets the list of Batch supported Virtual Machine VM sizes available at the given location. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/LocationListVirtualMachineSkus.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/LocationListVirtualMachineSkus.json */ async function locationListVirtualMachineSkus() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function locationListVirtualMachineSkus() { const client = new BatchManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.location.listSupportedVirtualMachineSkus( - locationName + locationName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts index 31f150fda6ec..465aa4cdc751 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists available operations for the Microsoft.Batch provider * * @summary Lists available operations for the Microsoft.Batch provider - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/OperationsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/OperationsList.json */ async function operationsList() { const subscriptionId = diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts index e05ac9f73010..30c2b6d5427c 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SharedImageGallery.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SharedImageGallery.json */ async function createPoolCustomImage() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,13 +30,12 @@ async function createPoolCustomImage() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -44,7 +43,7 @@ async function createPoolCustomImage() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -53,7 +52,7 @@ async function createPoolCustomImage() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_CloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_CloudServiceConfiguration.json */ async function createPoolFullCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -65,50 +64,48 @@ async function createPoolFullCloudServiceConfiguration() { applicationLicenses: ["app-license0", "app-license1"], applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", - version: "asdf" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", + version: "asdf", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", storeName: "MY", - visibility: ["RemoteUser"] - } + visibility: ["RemoteUser"], + }, ], deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "4", - osVersion: "WA-GUEST-OS-4.45_201708-01" - } + osVersion: "WA-GUEST-OS-4.45_201708-01", + }, }, displayName: "my-pool-name", interNodeCommunication: "Enabled", metadata: [ { name: "metadata-1", value: "value-1" }, - { name: "metadata-2", value: "value-2" } + { name: "metadata-2", value: "value-2" }, ], networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", - "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268" + "/subscriptions/subid2/resourceGroups/rg24/providers/Microsoft.Network/publicIPAddresses/ip268", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { fixedScale: { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 6, - targetLowPriorityNodes: 28 - } + targetLowPriorityNodes: 28, + }, }, startTask: { commandLine: "cmd /c SET", @@ -118,11 +115,12 @@ async function createPoolFullCloudServiceConfiguration() { { fileMode: "777", filePath: "c:\\temp\\gohere", - httpUrl: "https://testaccount.blob.core.windows.net/example-blob-file" - } + httpUrl: + "https://testaccount.blob.core.windows.net/example-blob-file", + }, ], userIdentity: { autoUser: { elevationLevel: "Admin", scope: "Pool" } }, - waitForSuccess: true + waitForSuccess: true, }, taskSchedulingPolicy: { nodeFillType: "Pack" }, taskSlotsPerNode: 13, @@ -133,12 +131,12 @@ async function createPoolFullCloudServiceConfiguration() { linuxUserConfiguration: { gid: 4567, sshPrivateKey: "sshprivatekeyvalue", - uid: 1234 + uid: 1234, }, - password: "" - } + password: "", + }, ], - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -146,7 +144,7 @@ async function createPoolFullCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -155,7 +153,7 @@ async function createPoolFullCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration.json */ async function createPoolFullVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -171,28 +169,28 @@ async function createPoolFullVirtualMachineConfiguration() { caching: "ReadWrite", diskSizeGB: 30, lun: 0, - storageAccountType: "Premium_LRS" + storageAccountType: "Premium_LRS", }, { caching: "None", diskSizeGB: 200, lun: 1, - storageAccountType: "Standard_LRS" - } + storageAccountType: "Standard_LRS", + }, ], diskEncryptionConfiguration: { targets: ["OsDisk", "TemporaryDisk"] }, imageReference: { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-Datacenter-SmallDisk", - version: "latest" + version: "latest", }, licenseType: "Windows_Server", nodeAgentSkuId: "batch.node.windows amd64", nodePlacementConfiguration: { policy: "Zonal" }, osDisk: { ephemeralOSDiskSettings: { placement: "CacheDisk" } }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, networkConfiguration: { endpointConfiguration: { @@ -207,27 +205,27 @@ async function createPoolFullVirtualMachineConfiguration() { access: "Allow", priority: 150, sourceAddressPrefix: "192.100.12.45", - sourcePortRanges: ["1", "2"] + sourcePortRanges: ["1", "2"], }, { access: "Deny", priority: 3500, sourceAddressPrefix: "*", - sourcePortRanges: ["*"] - } + sourcePortRanges: ["*"], + }, ], - protocol: "TCP" - } - ] - } + protocol: "TCP", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -235,7 +233,7 @@ async function createPoolFullVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -244,7 +242,7 @@ async function createPoolFullVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalCloudServiceConfiguration.json */ async function createPoolMinimalCloudServiceConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -255,7 +253,7 @@ async function createPoolMinimalCloudServiceConfiguration() { const parameters: Pool = { deploymentConfiguration: { cloudServiceConfiguration: { osFamily: "5" } }, scaleSettings: { fixedScale: { targetDedicatedNodes: 3 } }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -263,7 +261,7 @@ async function createPoolMinimalCloudServiceConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -272,7 +270,7 @@ async function createPoolMinimalCloudServiceConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_MinimalVirtualMachineConfiguration.json */ async function createPoolMinimalVirtualMachineConfiguration() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -287,18 +285,18 @@ async function createPoolMinimalVirtualMachineConfiguration() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -306,7 +304,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -315,7 +313,7 @@ async function createPoolMinimalVirtualMachineConfiguration() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_NoPublicIPAddresses.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_NoPublicIPAddresses.json */ async function createPoolNoPublicIP() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -327,18 +325,17 @@ async function createPoolNoPublicIP() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { provision: "NoPublicIPAddresses" }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -346,7 +343,7 @@ async function createPoolNoPublicIP() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -355,7 +352,7 @@ async function createPoolNoPublicIP() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_PublicIPs.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_PublicIPs.json */ async function createPoolPublicIPs() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -367,23 +364,22 @@ async function createPoolPublicIPs() { deploymentConfiguration: { virtualMachineConfiguration: { imageReference: { - id: - "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1" + id: "/subscriptions/subid/resourceGroups/networking-group/providers/Microsoft.Compute/galleries/testgallery/images/testimagedef/versions/0.0.1", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, networkConfiguration: { publicIPAddressConfiguration: { ipAddressIds: [ - "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135" + "/subscriptions/subid1/resourceGroups/rg13/providers/Microsoft.Network/publicIPAddresses/ip135", ], - provision: "UserManaged" + provision: "UserManaged", }, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -391,7 +387,7 @@ async function createPoolPublicIPs() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -400,7 +396,7 @@ async function createPoolPublicIPs() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_ResourceTags.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_ResourceTags.json */ async function createPoolResourceTags() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -415,16 +411,16 @@ async function createPoolResourceTags() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, resourceTags: { tagName1: "TagValue1", tagName2: "TagValue2" }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -432,7 +428,7 @@ async function createPoolResourceTags() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -441,7 +437,7 @@ async function createPoolResourceTags() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_SecurityProfile.json */ async function createPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -456,20 +452,20 @@ async function createPoolSecurityProfile() { offer: "UbuntuServer", publisher: "Canonical", sku: "18_04-lts-gen2", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.ubuntu 18.04", securityProfile: { encryptionAtHost: true, securityType: "trustedLaunch", - uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false } - } - } + uefiSettings: { secureBootEnabled: undefined, vTpmEnabled: false }, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -477,7 +473,7 @@ async function createPoolSecurityProfile() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -486,7 +482,67 @@ async function createPoolSecurityProfile() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_UserAssignedIdentities.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UpgradePolicy.json + */ +async function createPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const parameters: Pool = { + deploymentConfiguration: { + virtualMachineConfiguration: { + imageReference: { + offer: "WindowsServer", + publisher: "MicrosoftWindowsServer", + sku: "2019-datacenter-smalldisk", + version: "latest", + }, + nodeAgentSkuId: "batch.node.windows amd64", + nodePlacementConfiguration: { policy: "Zonal" }, + windowsConfiguration: { enableAutomaticUpdates: false }, + }, + }, + scaleSettings: { + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { + disableAutomaticRollback: true, + enableAutomaticOSUpgrade: true, + osRollingUpgradeDeferral: true, + useRollingUpgradePolicy: true, + }, + mode: "automatic", + rollingUpgradePolicy: { + enableCrossZoneUpgrade: true, + maxBatchInstancePercent: 20, + maxUnhealthyInstancePercent: 20, + maxUnhealthyUpgradedInstancePercent: 20, + pauseTimeBetweenBatches: "PT0S", + prioritizeUnhealthyInstances: false, + rollbackFailedInstancesOnPolicyBreach: false, + }, + }, + vmSize: "Standard_d4s_v3", + }; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.create( + resourceGroupName, + accountName, + poolName, + parameters, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates a new pool inside the specified account. + * + * @summary Creates a new pool inside the specified account. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_UserAssignedIdentities.json */ async function createPoolUserAssignedIdentities() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -501,25 +557,27 @@ async function createPoolUserAssignedIdentities() { offer: "UbuntuServer", publisher: "Canonical", sku: "18.04-LTS", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.ubuntu 18.04" - } + nodeAgentSkuId: "batch.node.ubuntu 18.04", + }, }, identity: { type: "UserAssigned", userAssignedIdentities: { - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": {}, - "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": {} - } + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id1": + {}, + "/subscriptions/subid/resourceGroups/defaultAzurebatchJapaneast/providers/MicrosoftManagedIdentity/userAssignedIdentities/id2": + {}, + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -527,7 +585,7 @@ async function createPoolUserAssignedIdentities() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -536,7 +594,7 @@ async function createPoolUserAssignedIdentities() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_Extensions.json */ async function createPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -550,7 +608,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { imageReference: { offer: "0001-com-ubuntu-server-focal", publisher: "Canonical", - sku: "20_04-lts" + sku: "20_04-lts", }, nodeAgentSkuId: "batch.node.ubuntu 20.04", extensions: [ @@ -562,21 +620,21 @@ async function createPoolVirtualMachineConfigurationExtensions() { publisher: "Microsoft.Azure.KeyVault", settings: { authenticationSettingsKey: "authenticationSettingsValue", - secretsManagementSettingsKey: "secretsManagementSettingsValue" + secretsManagementSettingsKey: "secretsManagementSettingsValue", }, - typeHandlerVersion: "2.0" - } - ] - } + typeHandlerVersion: "2.0", + }, + ], + }, }, scaleSettings: { autoScale: { evaluationInterval: "PT5M", - formula: "$TargetDedicatedNodes=1" - } + formula: "$TargetDedicatedNodes=1", + }, }, targetNodeCommunicationMode: "Default", - vmSize: "STANDARD_D4" + vmSize: "STANDARD_D4", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -584,7 +642,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -593,7 +651,7 @@ async function createPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ManagedOSDisk.json */ async function createPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -607,21 +665,21 @@ async function createPoolVirtualMachineConfigurationOSDisk() { imageReference: { offer: "windowsserver", publisher: "microsoftwindowsserver", - sku: "2022-datacenter-smalldisk" + sku: "2022-datacenter-smalldisk", }, nodeAgentSkuId: "batch.node.windows amd64", osDisk: { caching: "ReadWrite", diskSizeGB: 100, managedDisk: { storageAccountType: "StandardSSD_LRS" }, - writeAcceleratorEnabled: false - } - } + writeAcceleratorEnabled: false, + }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "Standard_d2s_v3" + vmSize: "Standard_d2s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -629,7 +687,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -638,7 +696,7 @@ async function createPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -653,20 +711,23 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2019-datacenter-smalldisk", - version: "latest" + version: "latest", }, nodeAgentSkuId: "batch.node.windows amd64", serviceArtifactReference: { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Compute/galleries/myGallery/serviceArtifacts/myServiceArtifact/vmArtifactsProfiles/vmArtifactsProfile", }, - windowsConfiguration: { enableAutomaticUpdates: false } - } + windowsConfiguration: { enableAutomaticUpdates: false }, + }, }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 2, targetLowPriorityNodes: 0 }, + }, + upgradePolicy: { + automaticOSUpgradePolicy: { enableAutomaticOSUpgrade: true }, + mode: "automatic", }, - vmSize: "Standard_d4s_v3" + vmSize: "Standard_d4s_v3", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -674,7 +735,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -683,7 +744,7 @@ async function createPoolVirtualMachineConfigurationServiceArtifactReference() { * This sample demonstrates how to Creates a new pool inside the specified account. * * @summary Creates a new pool inside the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolCreate_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolCreate_AcceleratedNetworking.json */ async function createPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -698,20 +759,20 @@ async function createPoolAcceleratedNetworking() { offer: "WindowsServer", publisher: "MicrosoftWindowsServer", sku: "2016-datacenter-smalldisk", - version: "latest" + version: "latest", }, - nodeAgentSkuId: "batch.node.windows amd64" - } + nodeAgentSkuId: "batch.node.windows amd64", + }, }, networkConfiguration: { enableAcceleratedNetworking: true, subnetId: - "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123" + "/subscriptions/subid/resourceGroups/rg1234/providers/Microsoft.Network/virtualNetworks/network1234/subnets/subnet123", }, scaleSettings: { - fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 } + fixedScale: { targetDedicatedNodes: 1, targetLowPriorityNodes: 0 }, }, - vmSize: "STANDARD_D1_V2" + vmSize: "STANDARD_D1_V2", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -719,7 +780,7 @@ async function createPoolAcceleratedNetworking() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -734,6 +795,7 @@ async function main() { createPoolPublicIPs(); createPoolResourceTags(); createPoolSecurityProfile(); + createPoolUpgradePolicy(); createPoolUserAssignedIdentities(); createPoolVirtualMachineConfigurationExtensions(); createPoolVirtualMachineConfigurationOSDisk(); diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts index cf18ad258e9d..a9c912eb888f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified pool. * * @summary Deletes the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDelete.json */ async function deletePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function deletePool() { const result = await client.poolOperations.beginDeleteAndWait( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts index c10f630a8671..92d1ba4f00de 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolDisableAutoScaleSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Disables automatic scaling for a pool. * * @summary Disables automatic scaling for a pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolDisableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolDisableAutoScale.json */ async function disableAutoScale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function disableAutoScale() { const result = await client.poolOperations.disableAutoScale( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts index eb208ab6a187..ee1c5fc0db34 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet.json */ async function getPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPool() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -40,7 +40,7 @@ async function getPool() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_AcceleratedNetworking.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_AcceleratedNetworking.json */ async function getPoolAcceleratedNetworking() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -53,7 +53,7 @@ async function getPoolAcceleratedNetworking() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -62,7 +62,7 @@ async function getPoolAcceleratedNetworking() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_SecurityProfile.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_SecurityProfile.json */ async function getPoolSecurityProfile() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -75,7 +75,7 @@ async function getPoolSecurityProfile() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -84,7 +84,29 @@ async function getPoolSecurityProfile() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_UpgradePolicy.json + */ +async function getPoolUpgradePolicy() { + const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; + const resourceGroupName = + process.env["BATCH_RESOURCE_GROUP"] || "default-azurebatch-japaneast"; + const accountName = "sampleacct"; + const poolName = "testpool"; + const credential = new DefaultAzureCredential(); + const client = new BatchManagementClient(credential, subscriptionId); + const result = await client.poolOperations.get( + resourceGroupName, + accountName, + poolName, + ); + console.log(result); +} + +/** + * This sample demonstrates how to Gets information about the specified pool. + * + * @summary Gets information about the specified pool. + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_Extensions.json */ async function getPoolVirtualMachineConfigurationExtensions() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -97,7 +119,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -106,7 +128,7 @@ async function getPoolVirtualMachineConfigurationExtensions() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_MangedOSDisk.json */ async function getPoolVirtualMachineConfigurationOSDisk() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -119,7 +141,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -128,7 +150,7 @@ async function getPoolVirtualMachineConfigurationOSDisk() { * This sample demonstrates how to Gets information about the specified pool. * * @summary Gets information about the specified pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolGet_VirtualMachineConfiguration_ServiceArtifactReference.json */ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -141,7 +163,7 @@ async function getPoolVirtualMachineConfigurationServiceArtifactReference() { const result = await client.poolOperations.get( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } @@ -150,6 +172,7 @@ async function main() { getPool(); getPoolAcceleratedNetworking(); getPoolSecurityProfile(); + getPoolUpgradePolicy(); getPoolVirtualMachineConfigurationExtensions(); getPoolVirtualMachineConfigurationOSDisk(); getPoolVirtualMachineConfigurationServiceArtifactReference(); diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts index 3e76c5e8f0cd..ddd4e180cc82 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolListByBatchAccountSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PoolListByBatchAccountOptionalParams, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolList.json */ async function listPool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,7 +33,7 @@ async function listPool() { const resArray = new Array(); for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } @@ -44,7 +44,7 @@ async function listPool() { * This sample demonstrates how to Lists all of the pools in the specified account. * * @summary Lists all of the pools in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolListWithFilter.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolListWithFilter.json */ async function listPoolWithFilter() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -62,7 +62,7 @@ async function listPoolWithFilter() { for await (let item of client.poolOperations.listByBatchAccount( resourceGroupName, accountName, - options + options, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts index 1f4dd79eeccb..7a33f48c738f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolStopResizeSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. * * @summary This does not restore the pool to its previous state before the resize operation: it only stops any further changes being made, and the pool maintains its current state. After stopping, the pool stabilizes at the number of nodes it was at when the stop operation was done. During the stop operation, the pool allocation state changes first to stopping and then to steady. A resize operation need not be an explicit resize pool request; this API can also be used to halt the initial sizing of the pool when it is created. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolStopResize.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolStopResize.json */ async function stopPoolResize() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function stopPoolResize() { const result = await client.poolOperations.stopResize( resourceGroupName, accountName, - poolName + poolName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts index fa0397c7b525..bfe544cbcb18 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/poolUpdateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_EnableAutoScale.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_EnableAutoScale.json */ async function updatePoolEnableAutoscale() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -27,7 +27,7 @@ async function updatePoolEnableAutoscale() { const accountName = "sampleacct"; const poolName = "testpool"; const parameters: Pool = { - scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } } + scaleSettings: { autoScale: { formula: "$TargetDedicatedNodes=34" } }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -35,7 +35,7 @@ async function updatePoolEnableAutoscale() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -44,7 +44,7 @@ async function updatePoolEnableAutoscale() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_OtherProperties.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_OtherProperties.json */ async function updatePoolOtherProperties() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -55,25 +55,22 @@ async function updatePoolOtherProperties() { const parameters: Pool = { applicationPackages: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234" + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_1234", }, { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", - version: "1.0" - } + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/applications/app_5678", + version: "1.0", + }, ], certificates: [ { - id: - "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", + id: "/subscriptions/subid/resourceGroups/default-azurebatch-japaneast/providers/Microsoft.Batch/batchAccounts/sampleacct/pools/testpool/certificates/sha1-1234567", storeLocation: "LocalMachine", - storeName: "MY" - } + storeName: "MY", + }, ], metadata: [{ name: "key1", value: "value1" }], - targetNodeCommunicationMode: "Simplified" + targetNodeCommunicationMode: "Simplified", }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -81,7 +78,7 @@ async function updatePoolOtherProperties() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -90,7 +87,7 @@ async function updatePoolOtherProperties() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_RemoveStartTask.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_RemoveStartTask.json */ async function updatePoolRemoveStartTask() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -105,7 +102,7 @@ async function updatePoolRemoveStartTask() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } @@ -114,7 +111,7 @@ async function updatePoolRemoveStartTask() { * This sample demonstrates how to Updates the properties of an existing pool. * * @summary Updates the properties of an existing pool. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PoolUpdate_ResizePool.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PoolUpdate_ResizePool.json */ async function updatePoolResizePool() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -128,9 +125,9 @@ async function updatePoolResizePool() { nodeDeallocationOption: "TaskCompletion", resizeTimeout: "PT8M", targetDedicatedNodes: 5, - targetLowPriorityNodes: 0 - } - } + targetLowPriorityNodes: 0, + }, + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); @@ -138,7 +135,7 @@ async function updatePoolResizePool() { resourceGroupName, accountName, poolName, - parameters + parameters, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts index d8e0c7ef64fe..f5562067e058 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes the specified private endpoint connection. * * @summary Deletes the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionDelete.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionDelete.json */ async function privateEndpointConnectionDelete() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -29,11 +29,12 @@ async function privateEndpointConnectionDelete() { "testprivateEndpointConnection5testprivateEndpointConnection5.24d6b4b5-e65c-4330-bbe9-3a290d62f8e0"; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginDeleteAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName - ); + const result = + await client.privateEndpointConnectionOperations.beginDeleteAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts index b83b8adf4525..f21885b1e9dc 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private endpoint connection. * * @summary Gets information about the specified private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionGet.json */ async function getPrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -32,7 +32,7 @@ async function getPrivateEndpointConnection() { const result = await client.privateEndpointConnectionOperations.get( resourceGroupName, accountName, - privateEndpointConnectionName + privateEndpointConnectionName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts index 488f066105a5..e93316acdb2d 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private endpoint connections in the specified account. * * @summary Lists all of the private endpoint connections in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionsList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionsList.json */ async function listPrivateEndpointConnections() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateEndpointConnections() { const resArray = new Array(); for await (let item of client.privateEndpointConnectionOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts index dda28f162d82..055c113527c2 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateEndpointConnectionUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { PrivateEndpointConnection, - BatchManagementClient + BatchManagementClient, } from "@azure/arm-batch"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Updates the properties of an existing private endpoint connection. * * @summary Updates the properties of an existing private endpoint connection. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateEndpointConnectionUpdate.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateEndpointConnectionUpdate.json */ async function updatePrivateEndpointConnection() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -33,17 +33,18 @@ async function updatePrivateEndpointConnection() { const parameters: PrivateEndpointConnection = { privateLinkServiceConnectionState: { description: "Approved by xyz.abc@company.com", - status: "Approved" - } + status: "Approved", + }, }; const credential = new DefaultAzureCredential(); const client = new BatchManagementClient(credential, subscriptionId); - const result = await client.privateEndpointConnectionOperations.beginUpdateAndWait( - resourceGroupName, - accountName, - privateEndpointConnectionName, - parameters - ); + const result = + await client.privateEndpointConnectionOperations.beginUpdateAndWait( + resourceGroupName, + accountName, + privateEndpointConnectionName, + parameters, + ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts index c00ae2cf0c01..08a2c9e9186f 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets information about the specified private link resource. * * @summary Gets information about the specified private link resource. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourceGet.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourceGet.json */ async function getPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -31,7 +31,7 @@ async function getPrivateLinkResource() { const result = await client.privateLinkResourceOperations.get( resourceGroupName, accountName, - privateLinkResourceName + privateLinkResourceName, ); console.log(result); } diff --git a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts index bc3d78c558cc..285583c8a39a 100644 --- a/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts +++ b/sdk/batch/arm-batch/samples/v9/typescript/src/privateLinkResourceListByBatchAccountSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Lists all of the private link resources in the specified account. * * @summary Lists all of the private link resources in the specified account. - * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2023-11-01/examples/PrivateLinkResourcesList.json + * x-ms-original-file: specification/batch/resource-manager/Microsoft.Batch/stable/2024-02-01/examples/PrivateLinkResourcesList.json */ async function listPrivateLinkResource() { const subscriptionId = process.env["BATCH_SUBSCRIPTION_ID"] || "subid"; @@ -30,7 +30,7 @@ async function listPrivateLinkResource() { const resArray = new Array(); for await (let item of client.privateLinkResourceOperations.listByBatchAccount( resourceGroupName, - accountName + accountName, )) { resArray.push(item); } diff --git a/sdk/batch/arm-batch/src/batchManagementClient.ts b/sdk/batch/arm-batch/src/batchManagementClient.ts index 2b4559093aad..93ad312c92be 100644 --- a/sdk/batch/arm-batch/src/batchManagementClient.ts +++ b/sdk/batch/arm-batch/src/batchManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -23,7 +23,7 @@ import { CertificateOperationsImpl, PrivateLinkResourceOperationsImpl, PrivateEndpointConnectionOperationsImpl, - PoolOperationsImpl + PoolOperationsImpl, } from "./operations"; import { BatchAccountOperations, @@ -34,7 +34,7 @@ import { CertificateOperations, PrivateLinkResourceOperations, PrivateEndpointConnectionOperations, - PoolOperations + PoolOperations, } from "./operationsInterfaces"; import { BatchManagementClientOptionalParams } from "./models"; @@ -53,7 +53,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: BatchManagementClientOptionalParams + options?: BatchManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -68,10 +68,10 @@ export class BatchManagementClient extends coreClient.ServiceClient { } const defaults: BatchManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-batch/9.1.1`; + const packageDetails = `azsdk-js-arm-batch/9.2.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -81,20 +81,21 @@ export class BatchManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -104,7 +105,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -114,9 +115,9 @@ export class BatchManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -124,21 +125,20 @@ export class BatchManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-11-01"; + this.apiVersion = options.apiVersion || "2024-02-01"; this.batchAccountOperations = new BatchAccountOperationsImpl(this); this.applicationPackageOperations = new ApplicationPackageOperationsImpl( - this + this, ); this.applicationOperations = new ApplicationOperationsImpl(this); this.location = new LocationImpl(this); this.operations = new OperationsImpl(this); this.certificateOperations = new CertificateOperationsImpl(this); this.privateLinkResourceOperations = new PrivateLinkResourceOperationsImpl( - this - ); - this.privateEndpointConnectionOperations = new PrivateEndpointConnectionOperationsImpl( - this + this, ); + this.privateEndpointConnectionOperations = + new PrivateEndpointConnectionOperationsImpl(this); this.poolOperations = new PoolOperationsImpl(this); this.addCustomApiVersionPolicy(options.apiVersion); } @@ -152,7 +152,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -166,7 +166,7 @@ export class BatchManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/batch/arm-batch/src/lroImpl.ts b/sdk/batch/arm-batch/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/batch/arm-batch/src/lroImpl.ts +++ b/sdk/batch/arm-batch/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/batch/arm-batch/src/models/index.ts b/sdk/batch/arm-batch/src/models/index.ts index b0b18caad87d..8d31af50a25f 100644 --- a/sdk/batch/arm-batch/src/models/index.ts +++ b/sdk/batch/arm-batch/src/models/index.ts @@ -349,6 +349,11 @@ export interface SupportedSku { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly capabilities?: SkuCapability[]; + /** + * The time when Azure Batch service will retire this SKU. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly batchSupportEndOfLife?: Date; } /** A SKU capability, such as the number of cores. */ @@ -1021,6 +1026,46 @@ export interface AzureFileShareConfiguration { mountOptions?: string; } +/** Describes an upgrade policy - automatic, manual, or rolling. */ +export interface UpgradePolicy { + /** Specifies the mode of an upgrade to virtual machines in the scale set.

Possible values are:

**Manual** - You control the application of updates to virtual machines in the scale set. You do this by using the manualUpgrade action.

**Automatic** - All virtual machines in the scale set are automatically updated at the same time.

**Rolling** - Scale set performs updates in batches with an optional pause time in between. */ + mode: UpgradeMode; + /** The configuration parameters used for performing automatic OS upgrade. */ + automaticOSUpgradePolicy?: AutomaticOSUpgradePolicy; + /** This property is only supported on Pools with the virtualMachineConfiguration property. */ + rollingUpgradePolicy?: RollingUpgradePolicy; +} + +/** The configuration parameters used for performing automatic OS upgrade. */ +export interface AutomaticOSUpgradePolicy { + /** Whether OS image rollback feature should be disabled. */ + disableAutomaticRollback?: boolean; + /** Indicates whether OS upgrades should automatically be applied to scale set instances in a rolling fashion when a newer version of the OS image becomes available.

If this is set to true for Windows based pools, [WindowsConfiguration.enableAutomaticUpdates](https://learn.microsoft.com/en-us/rest/api/batchmanagement/pool/create?tabs=HTTP#windowsconfiguration) cannot be set to true. */ + enableAutomaticOSUpgrade?: boolean; + /** Indicates whether rolling upgrade policy should be used during Auto OS Upgrade. Auto OS Upgrade will fallback to the default policy if no policy is defined on the VMSS. */ + useRollingUpgradePolicy?: boolean; + /** Defer OS upgrades on the TVMs if they are running tasks. */ + osRollingUpgradeDeferral?: boolean; +} + +/** The configuration parameters used while performing a rolling upgrade. */ +export interface RollingUpgradePolicy { + /** Allow VMSS to ignore AZ boundaries when constructing upgrade batches. Take into consideration the Update Domain and maxBatchInstancePercent to determine the batch size. If this field is not set, Azure Azure Batch will not set its default value. The value of enableCrossZoneUpgrade on the created VirtualMachineScaleSet will be decided by the default configurations on VirtualMachineScaleSet. This field is able to be set to true or false only when using NodePlacementConfiguration as Zonal. */ + enableCrossZoneUpgrade?: boolean; + /** The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxBatchInstancePercent?: number; + /** The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch. The value of this field should be between 5 and 100, inclusive. If both maxBatchInstancePercent and maxUnhealthyInstancePercent are assigned with value, the value of maxBatchInstancePercent should not be more than maxUnhealthyInstancePercent. */ + maxUnhealthyInstancePercent?: number; + /** The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts. The value of this field should be between 0 and 100, inclusive. */ + maxUnhealthyUpgradedInstancePercent?: number; + /** The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format. */ + pauseTimeBetweenBatches?: string; + /** Upgrade all unhealthy instances in a scale set before any healthy instances. */ + prioritizeUnhealthyInstances?: boolean; + /** Rollback failed instances to previous model if the Rolling Upgrade policy is violated. */ + rollbackFailedInstancesOnPolicyBreach?: boolean; +} + /** The identity of the Batch pool, if configured. If the pool identity is updated during update an existing pool, only the new vms which are created after the pool shrinks to 0 will have the updated identities */ export interface BatchPoolIdentity { /** The type of identity used for the Batch Pool. */ @@ -1319,6 +1364,8 @@ export interface Pool extends ProxyResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly currentNodeCommunicationMode?: NodeCommunicationMode; + /** Describes an upgrade policy - automatic, manual, or rolling. */ + upgradePolicy?: UpgradePolicy; /** The user-defined tags to be associated with the Azure Batch Pool. When specified, these tags are propagated to the backing Azure resources associated with the pool. This property can only be specified when the Batch account was created with the poolAllocationMode property set to 'UserSubscription'. */ resourceTags?: { [propertyName: string]: string }; } @@ -1555,7 +1602,7 @@ export enum KnownContainerType { /** A Docker compatible container technology will be used to launch the containers. */ DockerCompatible = "DockerCompatible", /** A CRI based technology will be used to launch the containers. */ - CriCompatible = "CriCompatible" + CriCompatible = "CriCompatible", } /** @@ -1670,6 +1717,8 @@ export type CertificateStoreLocation = "CurrentUser" | "LocalMachine"; export type CertificateVisibility = "StartTask" | "Task" | "RemoteUser"; /** Defines values for NodeCommunicationMode. */ export type NodeCommunicationMode = "Default" | "Classic" | "Simplified"; +/** Defines values for UpgradeMode. */ +export type UpgradeMode = "automatic" | "manual" | "rolling"; /** Defines values for PoolIdentityType. */ export type PoolIdentityType = "UserAssigned" | "None"; @@ -1759,7 +1808,8 @@ export interface BatchAccountListOutboundNetworkDependenciesEndpointsOptionalPar extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpoints operation. */ -export type BatchAccountListOutboundNetworkDependenciesEndpointsResponse = OutboundEnvironmentEndpointCollection; +export type BatchAccountListOutboundNetworkDependenciesEndpointsResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface BatchAccountListNextOptionalParams @@ -1773,7 +1823,8 @@ export interface BatchAccountListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type BatchAccountListByResourceGroupNextResponse = BatchAccountListResult; +export type BatchAccountListByResourceGroupNextResponse = + BatchAccountListResult; /** Optional parameters. */ export interface BatchAccountListDetectorsNextOptionalParams @@ -1787,7 +1838,8 @@ export interface BatchAccountListOutboundNetworkDependenciesEndpointsNextOptiona extends coreClient.OperationOptions {} /** Contains response data for the listOutboundNetworkDependenciesEndpointsNext operation. */ -export type BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse = OutboundEnvironmentEndpointCollection; +export type BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse = + OutboundEnvironmentEndpointCollection; /** Optional parameters. */ export interface ApplicationPackageActivateOptionalParams @@ -1896,7 +1948,8 @@ export interface LocationListSupportedVirtualMachineSkusOptionalParams } /** Contains response data for the listSupportedVirtualMachineSkus operation. */ -export type LocationListSupportedVirtualMachineSkusResponse = SupportedSkusResult; +export type LocationListSupportedVirtualMachineSkusResponse = + SupportedSkusResult; /** Optional parameters. */ export interface LocationListSupportedCloudServiceSkusOptionalParams @@ -1922,14 +1975,16 @@ export interface LocationListSupportedVirtualMachineSkusNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedVirtualMachineSkusNext operation. */ -export type LocationListSupportedVirtualMachineSkusNextResponse = SupportedSkusResult; +export type LocationListSupportedVirtualMachineSkusNextResponse = + SupportedSkusResult; /** Optional parameters. */ export interface LocationListSupportedCloudServiceSkusNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listSupportedCloudServiceSkusNext operation. */ -export type LocationListSupportedCloudServiceSkusNextResponse = SupportedSkusResult; +export type LocationListSupportedCloudServiceSkusNextResponse = + SupportedSkusResult; /** Optional parameters. */ export interface OperationsListOptionalParams @@ -2002,8 +2057,8 @@ export interface CertificateCancelDeletionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the cancelDeletion operation. */ -export type CertificateCancelDeletionResponse = CertificateCancelDeletionHeaders & - Certificate; +export type CertificateCancelDeletionResponse = + CertificateCancelDeletionHeaders & Certificate; /** Optional parameters. */ export interface CertificateListByBatchAccountNextOptionalParams @@ -2020,7 +2075,8 @@ export interface PrivateLinkResourceListByBatchAccountOptionalParams } /** Contains response data for the listByBatchAccount operation. */ -export type PrivateLinkResourceListByBatchAccountResponse = ListPrivateLinkResourcesResult; +export type PrivateLinkResourceListByBatchAccountResponse = + ListPrivateLinkResourcesResult; /** Optional parameters. */ export interface PrivateLinkResourceGetOptionalParams @@ -2034,7 +2090,8 @@ export interface PrivateLinkResourceListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBatchAccountNext operation. */ -export type PrivateLinkResourceListByBatchAccountNextResponse = ListPrivateLinkResourcesResult; +export type PrivateLinkResourceListByBatchAccountNextResponse = + ListPrivateLinkResourcesResult; /** Optional parameters. */ export interface PrivateEndpointConnectionListByBatchAccountOptionalParams @@ -2044,7 +2101,8 @@ export interface PrivateEndpointConnectionListByBatchAccountOptionalParams } /** Contains response data for the listByBatchAccount operation. */ -export type PrivateEndpointConnectionListByBatchAccountResponse = ListPrivateEndpointConnectionsResult; +export type PrivateEndpointConnectionListByBatchAccountResponse = + ListPrivateEndpointConnectionsResult; /** Optional parameters. */ export interface PrivateEndpointConnectionGetOptionalParams @@ -2077,14 +2135,16 @@ export interface PrivateEndpointConnectionDeleteOptionalParams } /** Contains response data for the delete operation. */ -export type PrivateEndpointConnectionDeleteResponse = PrivateEndpointConnectionDeleteHeaders; +export type PrivateEndpointConnectionDeleteResponse = + PrivateEndpointConnectionDeleteHeaders; /** Optional parameters. */ export interface PrivateEndpointConnectionListByBatchAccountNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByBatchAccountNext operation. */ -export type PrivateEndpointConnectionListByBatchAccountNextResponse = ListPrivateEndpointConnectionsResult; +export type PrivateEndpointConnectionListByBatchAccountNextResponse = + ListPrivateEndpointConnectionsResult; /** Optional parameters. */ export interface PoolListByBatchAccountOptionalParams diff --git a/sdk/batch/arm-batch/src/models/mappers.ts b/sdk/batch/arm-batch/src/models/mappers.ts index 21edbbf89a6a..a95cce97add6 100644 --- a/sdk/batch/arm-batch/src/models/mappers.ts +++ b/sdk/batch/arm-batch/src/models/mappers.ts @@ -17,65 +17,65 @@ export const BatchAccountCreateParameters: coreClient.CompositeMapper = { serializedName: "location", required: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageBaseProperties" - } + className: "AutoStorageBaseProperties", + }, }, poolAllocationMode: { serializedName: "properties.poolAllocationMode", type: { name: "Enum", - allowedValues: ["BatchService", "UserSubscription"] - } + allowedValues: ["BatchService", "UserSubscription"], + }, }, keyVaultReference: { serializedName: "properties.keyVaultReference", type: { name: "Composite", - className: "KeyVaultReference" - } + className: "KeyVaultReference", + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -85,13 +85,13 @@ export const BatchAccountCreateParameters: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, + }, + }, + }, }; export const AutoStorageBaseProperties: coreClient.CompositeMapper = { @@ -103,26 +103,26 @@ export const AutoStorageBaseProperties: coreClient.CompositeMapper = { serializedName: "storageAccountId", required: true, type: { - name: "String" - } + name: "String", + }, }, authenticationMode: { defaultValue: "StorageKeys", serializedName: "authenticationMode", type: { name: "Enum", - allowedValues: ["StorageKeys", "BatchAccountManagedIdentity"] - } + allowedValues: ["StorageKeys", "BatchAccountManagedIdentity"], + }, }, nodeIdentityReference: { serializedName: "nodeIdentityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const ComputeNodeIdentityReference: coreClient.CompositeMapper = { @@ -133,11 +133,11 @@ export const ComputeNodeIdentityReference: coreClient.CompositeMapper = { resourceId: { serializedName: "resourceId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const KeyVaultReference: coreClient.CompositeMapper = { @@ -149,18 +149,18 @@ export const KeyVaultReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, url: { serializedName: "url", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NetworkProfile: coreClient.CompositeMapper = { @@ -172,18 +172,18 @@ export const NetworkProfile: coreClient.CompositeMapper = { serializedName: "accountAccess", type: { name: "Composite", - className: "EndpointAccessProfile" - } + className: "EndpointAccessProfile", + }, }, nodeManagementAccess: { serializedName: "nodeManagementAccess", type: { name: "Composite", - className: "EndpointAccessProfile" - } - } - } - } + className: "EndpointAccessProfile", + }, + }, + }, + }, }; export const EndpointAccessProfile: coreClient.CompositeMapper = { @@ -196,8 +196,8 @@ export const EndpointAccessProfile: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Allow", "Deny"] - } + allowedValues: ["Allow", "Deny"], + }, }, ipRules: { serializedName: "ipRules", @@ -206,13 +206,13 @@ export const EndpointAccessProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IPRule" - } - } - } - } - } - } + className: "IPRule", + }, + }, + }, + }, + }, + }, }; export const IPRule: coreClient.CompositeMapper = { @@ -225,18 +225,18 @@ export const IPRule: coreClient.CompositeMapper = { isConstant: true, serializedName: "action", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EncryptionProperties: coreClient.CompositeMapper = { @@ -248,18 +248,18 @@ export const EncryptionProperties: coreClient.CompositeMapper = { serializedName: "keySource", type: { name: "Enum", - allowedValues: ["Microsoft.Batch", "Microsoft.KeyVault"] - } + allowedValues: ["Microsoft.Batch", "Microsoft.KeyVault"], + }, }, keyVaultProperties: { serializedName: "keyVaultProperties", type: { name: "Composite", - className: "KeyVaultProperties" - } - } - } - } + className: "KeyVaultProperties", + }, + }, + }, + }, }; export const KeyVaultProperties: coreClient.CompositeMapper = { @@ -270,11 +270,11 @@ export const KeyVaultProperties: coreClient.CompositeMapper = { keyIdentifier: { serializedName: "keyIdentifier", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountIdentity: coreClient.CompositeMapper = { @@ -286,35 +286,35 @@ export const BatchAccountIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { name: "Enum", - allowedValues: ["SystemAssigned", "UserAssigned", "None"] - } + allowedValues: ["SystemAssigned", "UserAssigned", "None"], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentities" } - } - } - } - } - } + type: { name: "Composite", className: "UserAssignedIdentities" }, + }, + }, + }, + }, + }, }; export const UserAssignedIdentities: coreClient.CompositeMapper = { @@ -326,18 +326,18 @@ export const UserAssignedIdentities: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateEndpoint: coreClient.CompositeMapper = { @@ -349,11 +349,11 @@ export const PrivateEndpoint: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { @@ -366,24 +366,24 @@ export const PrivateLinkServiceConnectionState: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Approved", "Pending", "Rejected", "Disconnected"] - } + allowedValues: ["Approved", "Pending", "Rejected", "Disconnected"], + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, actionsRequired: { serializedName: "actionsRequired", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProxyResource: coreClient.CompositeMapper = { @@ -395,32 +395,32 @@ export const ProxyResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, etag: { serializedName: "etag", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineFamilyCoreQuota: coreClient.CompositeMapper = { @@ -432,18 +432,18 @@ export const VirtualMachineFamilyCoreQuota: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, coreQuota: { serializedName: "coreQuota", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Resource: coreClient.CompositeMapper = { @@ -455,40 +455,40 @@ export const Resource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, location: { serializedName: "location", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tags: { serializedName: "tags", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const CloudError: coreClient.CompositeMapper = { @@ -500,11 +500,11 @@ export const CloudError: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, }; export const CloudErrorBody: coreClient.CompositeMapper = { @@ -515,20 +515,20 @@ export const CloudErrorBody: coreClient.CompositeMapper = { code: { serializedName: "code", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -537,13 +537,13 @@ export const CloudErrorBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CloudErrorBody" - } - } - } - } - } - } + className: "CloudErrorBody", + }, + }, + }, + }, + }, + }, }; export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { @@ -555,29 +555,29 @@ export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageBaseProperties" - } + className: "AutoStorageBaseProperties", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -587,28 +587,28 @@ export const BatchAccountUpdateParameters: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, }, publicNetworkAccess: { defaultValue: "Enabled", serializedName: "properties.publicNetworkAccess", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } - } - } - } + className: "NetworkProfile", + }, + }, + }, + }, }; export const BatchAccountListResult: coreClient.CompositeMapper = { @@ -623,19 +623,19 @@ export const BatchAccountListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "BatchAccount" - } - } - } + className: "BatchAccount", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountRegenerateKeyParameters: coreClient.CompositeMapper = { @@ -648,11 +648,11 @@ export const BatchAccountRegenerateKeyParameters: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Primary", "Secondary"] - } - } - } - } + allowedValues: ["Primary", "Secondary"], + }, + }, + }, + }, }; export const BatchAccountKeys: coreClient.CompositeMapper = { @@ -664,42 +664,43 @@ export const BatchAccountKeys: coreClient.CompositeMapper = { serializedName: "accountName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, primary: { serializedName: "primary", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, secondary: { serializedName: "secondary", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const ActivateApplicationPackageParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ActivateApplicationPackageParameters", - modelProperties: { - format: { - serializedName: "format", - required: true, - type: { - name: "String" - } - } - } - } -}; +export const ActivateApplicationPackageParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ActivateApplicationPackageParameters", + modelProperties: { + format: { + serializedName: "format", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const ListApplicationsResult: coreClient.CompositeMapper = { type: { @@ -713,19 +714,19 @@ export const ListApplicationsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Application" - } - } - } + className: "Application", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListApplicationPackagesResult: coreClient.CompositeMapper = { @@ -740,19 +741,19 @@ export const ListApplicationPackagesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationPackage" - } - } - } + className: "ApplicationPackage", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchLocationQuota: coreClient.CompositeMapper = { @@ -764,11 +765,11 @@ export const BatchLocationQuota: coreClient.CompositeMapper = { serializedName: "accountQuota", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SupportedSkusResult: coreClient.CompositeMapper = { @@ -784,20 +785,20 @@ export const SupportedSkusResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SupportedSku" - } - } - } + className: "SupportedSku", + }, + }, + }, }, nextLink: { serializedName: "nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SupportedSku: coreClient.CompositeMapper = { @@ -809,15 +810,15 @@ export const SupportedSku: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, familyName: { serializedName: "familyName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, capabilities: { serializedName: "capabilities", @@ -827,13 +828,20 @@ export const SupportedSku: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuCapability" - } - } - } - } - } - } + className: "SkuCapability", + }, + }, + }, + }, + batchSupportEndOfLife: { + serializedName: "batchSupportEndOfLife", + readOnly: true, + type: { + name: "DateTime", + }, + }, + }, + }, }; export const SkuCapability: coreClient.CompositeMapper = { @@ -845,18 +853,18 @@ export const SkuCapability: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -871,19 +879,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } + className: "Operation", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -894,37 +902,37 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, origin: { serializedName: "origin", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -935,29 +943,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { @@ -969,19 +977,19 @@ export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { defaultValue: "Microsoft.Batch/batchAccounts", isConstant: true, serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { @@ -993,26 +1001,26 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { serializedName: "nameAvailable", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", readOnly: true, type: { name: "Enum", - allowedValues: ["Invalid", "AlreadyExists"] - } + allowedValues: ["Invalid", "AlreadyExists"], + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListCertificatesResult: coreClient.CompositeMapper = { @@ -1027,19 +1035,19 @@ export const ListCertificatesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Certificate" - } - } - } + className: "Certificate", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeleteCertificateError: coreClient.CompositeMapper = { @@ -1051,21 +1059,21 @@ export const DeleteCertificateError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -1074,13 +1082,13 @@ export const DeleteCertificateError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, + }, + }, }; export const CertificateBaseProperties: coreClient.CompositeMapper = { @@ -1091,24 +1099,24 @@ export const CertificateBaseProperties: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } - } - } - } + allowedValues: ["Pfx", "Cer"], + }, + }, + }, + }, }; export const DetectorListResult: coreClient.CompositeMapper = { @@ -1123,19 +1131,19 @@ export const DetectorListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DetectorResponse" - } - } - } + className: "DetectorResponse", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListPrivateLinkResourcesResult: coreClient.CompositeMapper = { @@ -1150,48 +1158,49 @@ export const ListPrivateLinkResourcesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateLinkResource" - } - } - } + className: "PrivateLinkResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } -}; - -export const ListPrivateEndpointConnectionsResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ListPrivateEndpointConnectionsResult", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + name: "String", + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; +export const ListPrivateEndpointConnectionsResult: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ListPrivateEndpointConnectionsResult", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PrivateEndpointConnection", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + export const ListPoolsResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1204,19 +1213,19 @@ export const ListPoolsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Pool" - } - } - } + className: "Pool", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DeploymentConfiguration: coreClient.CompositeMapper = { @@ -1228,18 +1237,18 @@ export const DeploymentConfiguration: coreClient.CompositeMapper = { serializedName: "cloudServiceConfiguration", type: { name: "Composite", - className: "CloudServiceConfiguration" - } + className: "CloudServiceConfiguration", + }, }, virtualMachineConfiguration: { serializedName: "virtualMachineConfiguration", type: { name: "Composite", - className: "VirtualMachineConfiguration" - } - } - } - } + className: "VirtualMachineConfiguration", + }, + }, + }, + }, }; export const CloudServiceConfiguration: coreClient.CompositeMapper = { @@ -1251,17 +1260,17 @@ export const CloudServiceConfiguration: coreClient.CompositeMapper = { serializedName: "osFamily", required: true, type: { - name: "String" - } + name: "String", + }, }, osVersion: { serializedName: "osVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VirtualMachineConfiguration: coreClient.CompositeMapper = { @@ -1273,22 +1282,22 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { serializedName: "imageReference", type: { name: "Composite", - className: "ImageReference" - } + className: "ImageReference", + }, }, nodeAgentSkuId: { serializedName: "nodeAgentSkuId", required: true, type: { - name: "String" - } + name: "String", + }, }, windowsConfiguration: { serializedName: "windowsConfiguration", type: { name: "Composite", - className: "WindowsConfiguration" - } + className: "WindowsConfiguration", + }, }, dataDisks: { serializedName: "dataDisks", @@ -1297,37 +1306,37 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DataDisk" - } - } - } + className: "DataDisk", + }, + }, + }, }, licenseType: { serializedName: "licenseType", type: { - name: "String" - } + name: "String", + }, }, containerConfiguration: { serializedName: "containerConfiguration", type: { name: "Composite", - className: "ContainerConfiguration" - } + className: "ContainerConfiguration", + }, }, diskEncryptionConfiguration: { serializedName: "diskEncryptionConfiguration", type: { name: "Composite", - className: "DiskEncryptionConfiguration" - } + className: "DiskEncryptionConfiguration", + }, }, nodePlacementConfiguration: { serializedName: "nodePlacementConfiguration", type: { name: "Composite", - className: "NodePlacementConfiguration" - } + className: "NodePlacementConfiguration", + }, }, extensions: { serializedName: "extensions", @@ -1336,34 +1345,34 @@ export const VirtualMachineConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VMExtension" - } - } - } + className: "VMExtension", + }, + }, + }, }, osDisk: { serializedName: "osDisk", type: { name: "Composite", - className: "OSDisk" - } + className: "OSDisk", + }, }, securityProfile: { serializedName: "securityProfile", type: { name: "Composite", - className: "SecurityProfile" - } + className: "SecurityProfile", + }, }, serviceArtifactReference: { serializedName: "serviceArtifactReference", type: { name: "Composite", - className: "ServiceArtifactReference" - } - } - } - } + className: "ServiceArtifactReference", + }, + }, + }, + }, }; export const ImageReference: coreClient.CompositeMapper = { @@ -1374,36 +1383,35 @@ export const ImageReference: coreClient.CompositeMapper = { publisher: { serializedName: "publisher", type: { - name: "String" - } + name: "String", + }, }, offer: { serializedName: "offer", type: { - name: "String" - } + name: "String", + }, }, sku: { serializedName: "sku", type: { - name: "String" - } + name: "String", + }, }, version: { - defaultValue: "latest", serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WindowsConfiguration: coreClient.CompositeMapper = { @@ -1414,11 +1422,11 @@ export const WindowsConfiguration: coreClient.CompositeMapper = { enableAutomaticUpdates: { serializedName: "enableAutomaticUpdates", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DataDisk: coreClient.CompositeMapper = { @@ -1430,32 +1438,32 @@ export const DataDisk: coreClient.CompositeMapper = { serializedName: "lun", required: true, type: { - name: "Number" - } + name: "Number", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, diskSizeGB: { serializedName: "diskSizeGB", required: true, type: { - name: "Number" - } + name: "Number", + }, }, storageAccountType: { serializedName: "storageAccountType", type: { name: "Enum", - allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"] - } - } - } - } + allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"], + }, + }, + }, + }, }; export const ContainerConfiguration: coreClient.CompositeMapper = { @@ -1467,8 +1475,8 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, containerImageNames: { serializedName: "containerImageNames", @@ -1476,10 +1484,10 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, containerRegistries: { serializedName: "containerRegistries", @@ -1488,13 +1496,13 @@ export const ContainerConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ContainerRegistry" - } - } - } - } - } - } + className: "ContainerRegistry", + }, + }, + }, + }, + }, + }, }; export const ContainerRegistry: coreClient.CompositeMapper = { @@ -1505,30 +1513,30 @@ export const ContainerRegistry: coreClient.CompositeMapper = { userName: { serializedName: "username", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } + name: "String", + }, }, registryServer: { serializedName: "registryServer", type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const DiskEncryptionConfiguration: coreClient.CompositeMapper = { @@ -1543,13 +1551,13 @@ export const DiskEncryptionConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["OsDisk", "TemporaryDisk"] - } - } - } - } - } - } + allowedValues: ["OsDisk", "TemporaryDisk"], + }, + }, + }, + }, + }, + }, }; export const NodePlacementConfiguration: coreClient.CompositeMapper = { @@ -1561,11 +1569,11 @@ export const NodePlacementConfiguration: coreClient.CompositeMapper = { serializedName: "policy", type: { name: "Enum", - allowedValues: ["Regional", "Zonal"] - } - } - } - } + allowedValues: ["Regional", "Zonal"], + }, + }, + }, + }, }; export const VMExtension: coreClient.CompositeMapper = { @@ -1577,54 +1585,54 @@ export const VMExtension: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, publisher: { serializedName: "publisher", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, typeHandlerVersion: { serializedName: "typeHandlerVersion", type: { - name: "String" - } + name: "String", + }, }, autoUpgradeMinorVersion: { serializedName: "autoUpgradeMinorVersion", type: { - name: "Boolean" - } + name: "Boolean", + }, }, enableAutomaticUpgrade: { serializedName: "enableAutomaticUpgrade", type: { - name: "Boolean" - } + name: "Boolean", + }, }, settings: { serializedName: "settings", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, protectedSettings: { serializedName: "protectedSettings", type: { name: "Dictionary", - value: { type: { name: "any" } } - } + value: { type: { name: "any" } }, + }, }, provisionAfterExtensions: { serializedName: "provisionAfterExtensions", @@ -1632,13 +1640,13 @@ export const VMExtension: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const OSDisk: coreClient.CompositeMapper = { @@ -1650,37 +1658,37 @@ export const OSDisk: coreClient.CompositeMapper = { serializedName: "ephemeralOSDiskSettings", type: { name: "Composite", - className: "DiffDiskSettings" - } + className: "DiffDiskSettings", + }, }, caching: { serializedName: "caching", type: { name: "Enum", - allowedValues: ["None", "ReadOnly", "ReadWrite"] - } + allowedValues: ["None", "ReadOnly", "ReadWrite"], + }, }, managedDisk: { serializedName: "managedDisk", type: { name: "Composite", - className: "ManagedDisk" - } + className: "ManagedDisk", + }, }, diskSizeGB: { serializedName: "diskSizeGB", type: { - name: "Number" - } + name: "Number", + }, }, writeAcceleratorEnabled: { serializedName: "writeAcceleratorEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DiffDiskSettings: coreClient.CompositeMapper = { @@ -1693,11 +1701,11 @@ export const DiffDiskSettings: coreClient.CompositeMapper = { isConstant: true, serializedName: "placement", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ManagedDisk: coreClient.CompositeMapper = { @@ -1709,11 +1717,11 @@ export const ManagedDisk: coreClient.CompositeMapper = { serializedName: "storageAccountType", type: { name: "Enum", - allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"] - } - } - } - } + allowedValues: ["Standard_LRS", "Premium_LRS", "StandardSSD_LRS"], + }, + }, + }, + }, }; export const SecurityProfile: coreClient.CompositeMapper = { @@ -1726,24 +1734,24 @@ export const SecurityProfile: coreClient.CompositeMapper = { isConstant: true, serializedName: "securityType", type: { - name: "String" - } + name: "String", + }, }, encryptionAtHost: { serializedName: "encryptionAtHost", type: { - name: "Boolean" - } + name: "Boolean", + }, }, uefiSettings: { serializedName: "uefiSettings", type: { name: "Composite", - className: "UefiSettings" - } - } - } - } + className: "UefiSettings", + }, + }, + }, + }, }; export const UefiSettings: coreClient.CompositeMapper = { @@ -1754,17 +1762,17 @@ export const UefiSettings: coreClient.CompositeMapper = { secureBootEnabled: { serializedName: "secureBootEnabled", type: { - name: "Boolean" - } + name: "Boolean", + }, }, vTpmEnabled: { serializedName: "vTpmEnabled", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ServiceArtifactReference: coreClient.CompositeMapper = { @@ -1776,11 +1784,11 @@ export const ServiceArtifactReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ScaleSettings: coreClient.CompositeMapper = { @@ -1792,18 +1800,18 @@ export const ScaleSettings: coreClient.CompositeMapper = { serializedName: "fixedScale", type: { name: "Composite", - className: "FixedScaleSettings" - } + className: "FixedScaleSettings", + }, }, autoScale: { serializedName: "autoScale", type: { name: "Composite", - className: "AutoScaleSettings" - } - } - } - } + className: "AutoScaleSettings", + }, + }, + }, + }, }; export const FixedScaleSettings: coreClient.CompositeMapper = { @@ -1815,20 +1823,20 @@ export const FixedScaleSettings: coreClient.CompositeMapper = { defaultValue: "PT15M", serializedName: "resizeTimeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, targetDedicatedNodes: { serializedName: "targetDedicatedNodes", type: { - name: "Number" - } + name: "Number", + }, }, targetLowPriorityNodes: { serializedName: "targetLowPriorityNodes", type: { - name: "Number" - } + name: "Number", + }, }, nodeDeallocationOption: { serializedName: "nodeDeallocationOption", @@ -1838,12 +1846,12 @@ export const FixedScaleSettings: coreClient.CompositeMapper = { "Requeue", "Terminate", "TaskCompletion", - "RetainedData" - ] - } - } - } - } + "RetainedData", + ], + }, + }, + }, + }, }; export const AutoScaleSettings: coreClient.CompositeMapper = { @@ -1855,17 +1863,17 @@ export const AutoScaleSettings: coreClient.CompositeMapper = { serializedName: "formula", required: true, type: { - name: "String" - } + name: "String", + }, }, evaluationInterval: { serializedName: "evaluationInterval", type: { - name: "TimeSpan" - } - } - } - } + name: "TimeSpan", + }, + }, + }, + }, }; export const AutoScaleRun: coreClient.CompositeMapper = { @@ -1877,24 +1885,24 @@ export const AutoScaleRun: coreClient.CompositeMapper = { serializedName: "evaluationTime", required: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, results: { serializedName: "results", type: { - name: "String" - } + name: "String", + }, }, error: { serializedName: "error", type: { name: "Composite", - className: "AutoScaleRunError" - } - } - } - } + className: "AutoScaleRunError", + }, + }, + }, + }, }; export const AutoScaleRunError: coreClient.CompositeMapper = { @@ -1906,15 +1914,15 @@ export const AutoScaleRunError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -1923,13 +1931,13 @@ export const AutoScaleRunError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AutoScaleRunError" - } - } - } - } - } - } + className: "AutoScaleRunError", + }, + }, + }, + }, + }, + }, }; export const NetworkConfiguration: coreClient.CompositeMapper = { @@ -1940,39 +1948,39 @@ export const NetworkConfiguration: coreClient.CompositeMapper = { subnetId: { serializedName: "subnetId", type: { - name: "String" - } + name: "String", + }, }, dynamicVnetAssignmentScope: { defaultValue: "none", serializedName: "dynamicVnetAssignmentScope", type: { name: "Enum", - allowedValues: ["none", "job"] - } + allowedValues: ["none", "job"], + }, }, endpointConfiguration: { serializedName: "endpointConfiguration", type: { name: "Composite", - className: "PoolEndpointConfiguration" - } + className: "PoolEndpointConfiguration", + }, }, publicIPAddressConfiguration: { serializedName: "publicIPAddressConfiguration", type: { name: "Composite", - className: "PublicIPAddressConfiguration" - } + className: "PublicIPAddressConfiguration", + }, }, enableAcceleratedNetworking: { serializedName: "enableAcceleratedNetworking", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PoolEndpointConfiguration: coreClient.CompositeMapper = { @@ -1988,13 +1996,13 @@ export const PoolEndpointConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InboundNatPool" - } - } - } - } - } - } + className: "InboundNatPool", + }, + }, + }, + }, + }, + }, }; export const InboundNatPool: coreClient.CompositeMapper = { @@ -2006,37 +2014,37 @@ export const InboundNatPool: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, protocol: { serializedName: "protocol", required: true, type: { name: "Enum", - allowedValues: ["TCP", "UDP"] - } + allowedValues: ["TCP", "UDP"], + }, }, backendPort: { serializedName: "backendPort", required: true, type: { - name: "Number" - } + name: "Number", + }, }, frontendPortRangeStart: { serializedName: "frontendPortRangeStart", required: true, type: { - name: "Number" - } + name: "Number", + }, }, frontendPortRangeEnd: { serializedName: "frontendPortRangeEnd", required: true, type: { - name: "Number" - } + name: "Number", + }, }, networkSecurityGroupRules: { serializedName: "networkSecurityGroupRules", @@ -2045,13 +2053,13 @@ export const InboundNatPool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NetworkSecurityGroupRule" - } - } - } - } - } - } + className: "NetworkSecurityGroupRule", + }, + }, + }, + }, + }, + }, }; export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { @@ -2063,23 +2071,23 @@ export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { serializedName: "priority", required: true, type: { - name: "Number" - } + name: "Number", + }, }, access: { serializedName: "access", required: true, type: { name: "Enum", - allowedValues: ["Allow", "Deny"] - } + allowedValues: ["Allow", "Deny"], + }, }, sourceAddressPrefix: { serializedName: "sourceAddressPrefix", required: true, type: { - name: "String" - } + name: "String", + }, }, sourcePortRanges: { serializedName: "sourcePortRanges", @@ -2087,13 +2095,13 @@ export const NetworkSecurityGroupRule: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { @@ -2105,8 +2113,8 @@ export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { serializedName: "provision", type: { name: "Enum", - allowedValues: ["BatchManaged", "UserManaged", "NoPublicIPAddresses"] - } + allowedValues: ["BatchManaged", "UserManaged", "NoPublicIPAddresses"], + }, }, ipAddressIds: { serializedName: "ipAddressIds", @@ -2114,13 +2122,13 @@ export const PublicIPAddressConfiguration: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const TaskSchedulingPolicy: coreClient.CompositeMapper = { @@ -2134,11 +2142,11 @@ export const TaskSchedulingPolicy: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["Spread", "Pack"] - } - } - } - } + allowedValues: ["Spread", "Pack"], + }, + }, + }, + }, }; export const UserAccount: coreClient.CompositeMapper = { @@ -2150,39 +2158,39 @@ export const UserAccount: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } + name: "String", + }, }, elevationLevel: { serializedName: "elevationLevel", type: { name: "Enum", - allowedValues: ["NonAdmin", "Admin"] - } + allowedValues: ["NonAdmin", "Admin"], + }, }, linuxUserConfiguration: { serializedName: "linuxUserConfiguration", type: { name: "Composite", - className: "LinuxUserConfiguration" - } + className: "LinuxUserConfiguration", + }, }, windowsUserConfiguration: { serializedName: "windowsUserConfiguration", type: { name: "Composite", - className: "WindowsUserConfiguration" - } - } - } - } + className: "WindowsUserConfiguration", + }, + }, + }, + }, }; export const LinuxUserConfiguration: coreClient.CompositeMapper = { @@ -2193,23 +2201,23 @@ export const LinuxUserConfiguration: coreClient.CompositeMapper = { uid: { serializedName: "uid", type: { - name: "Number" - } + name: "Number", + }, }, gid: { serializedName: "gid", type: { - name: "Number" - } + name: "Number", + }, }, sshPrivateKey: { serializedName: "sshPrivateKey", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const WindowsUserConfiguration: coreClient.CompositeMapper = { @@ -2221,11 +2229,11 @@ export const WindowsUserConfiguration: coreClient.CompositeMapper = { serializedName: "loginMode", type: { name: "Enum", - allowedValues: ["Batch", "Interactive"] - } - } - } - } + allowedValues: ["Batch", "Interactive"], + }, + }, + }, + }, }; export const MetadataItem: coreClient.CompositeMapper = { @@ -2237,18 +2245,18 @@ export const MetadataItem: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const StartTask: coreClient.CompositeMapper = { @@ -2259,8 +2267,8 @@ export const StartTask: coreClient.CompositeMapper = { commandLine: { serializedName: "commandLine", type: { - name: "String" - } + name: "String", + }, }, resourceFiles: { serializedName: "resourceFiles", @@ -2269,10 +2277,10 @@ export const StartTask: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResourceFile" - } - } - } + className: "ResourceFile", + }, + }, + }, }, environmentSettings: { serializedName: "environmentSettings", @@ -2281,40 +2289,40 @@ export const StartTask: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EnvironmentSetting" - } - } - } + className: "EnvironmentSetting", + }, + }, + }, }, userIdentity: { serializedName: "userIdentity", type: { name: "Composite", - className: "UserIdentity" - } + className: "UserIdentity", + }, }, maxTaskRetryCount: { defaultValue: 0, serializedName: "maxTaskRetryCount", type: { - name: "Number" - } + name: "Number", + }, }, waitForSuccess: { serializedName: "waitForSuccess", type: { - name: "Boolean" - } + name: "Boolean", + }, }, containerSettings: { serializedName: "containerSettings", type: { name: "Composite", - className: "TaskContainerSettings" - } - } - } - } + className: "TaskContainerSettings", + }, + }, + }, + }, }; export const ResourceFile: coreClient.CompositeMapper = { @@ -2325,48 +2333,48 @@ export const ResourceFile: coreClient.CompositeMapper = { autoStorageContainerName: { serializedName: "autoStorageContainerName", type: { - name: "String" - } + name: "String", + }, }, storageContainerUrl: { serializedName: "storageContainerUrl", type: { - name: "String" - } + name: "String", + }, }, httpUrl: { serializedName: "httpUrl", type: { - name: "String" - } + name: "String", + }, }, blobPrefix: { serializedName: "blobPrefix", type: { - name: "String" - } + name: "String", + }, }, filePath: { serializedName: "filePath", type: { - name: "String" - } + name: "String", + }, }, fileMode: { serializedName: "fileMode", type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const EnvironmentSetting: coreClient.CompositeMapper = { @@ -2378,17 +2386,17 @@ export const EnvironmentSetting: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserIdentity: coreClient.CompositeMapper = { @@ -2399,18 +2407,18 @@ export const UserIdentity: coreClient.CompositeMapper = { userName: { serializedName: "userName", type: { - name: "String" - } + name: "String", + }, }, autoUser: { serializedName: "autoUser", type: { name: "Composite", - className: "AutoUserSpecification" - } - } - } - } + className: "AutoUserSpecification", + }, + }, + }, + }, }; export const AutoUserSpecification: coreClient.CompositeMapper = { @@ -2422,18 +2430,18 @@ export const AutoUserSpecification: coreClient.CompositeMapper = { serializedName: "scope", type: { name: "Enum", - allowedValues: ["Task", "Pool"] - } + allowedValues: ["Task", "Pool"], + }, }, elevationLevel: { serializedName: "elevationLevel", type: { name: "Enum", - allowedValues: ["NonAdmin", "Admin"] - } - } - } - } + allowedValues: ["NonAdmin", "Admin"], + }, + }, + }, + }, }; export const TaskContainerSettings: coreClient.CompositeMapper = { @@ -2444,32 +2452,32 @@ export const TaskContainerSettings: coreClient.CompositeMapper = { containerRunOptions: { serializedName: "containerRunOptions", type: { - name: "String" - } + name: "String", + }, }, imageName: { serializedName: "imageName", required: true, type: { - name: "String" - } + name: "String", + }, }, registry: { serializedName: "registry", type: { name: "Composite", - className: "ContainerRegistry" - } + className: "ContainerRegistry", + }, }, workingDirectory: { serializedName: "workingDirectory", type: { name: "Enum", - allowedValues: ["TaskWorkingDirectory", "ContainerImageDefault"] - } - } - } - } + allowedValues: ["TaskWorkingDirectory", "ContainerImageDefault"], + }, + }, + }, + }, }; export const CertificateReference: coreClient.CompositeMapper = { @@ -2481,21 +2489,21 @@ export const CertificateReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, storeLocation: { serializedName: "storeLocation", type: { name: "Enum", - allowedValues: ["CurrentUser", "LocalMachine"] - } + allowedValues: ["CurrentUser", "LocalMachine"], + }, }, storeName: { serializedName: "storeName", type: { - name: "String" - } + name: "String", + }, }, visibility: { serializedName: "visibility", @@ -2504,13 +2512,13 @@ export const CertificateReference: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["StartTask", "Task", "RemoteUser"] - } - } - } - } - } - } + allowedValues: ["StartTask", "Task", "RemoteUser"], + }, + }, + }, + }, + }, + }, }; export const ApplicationPackageReference: coreClient.CompositeMapper = { @@ -2522,17 +2530,17 @@ export const ApplicationPackageReference: coreClient.CompositeMapper = { serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResizeOperationStatus: coreClient.CompositeMapper = { @@ -2543,20 +2551,20 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { targetDedicatedNodes: { serializedName: "targetDedicatedNodes", type: { - name: "Number" - } + name: "Number", + }, }, targetLowPriorityNodes: { serializedName: "targetLowPriorityNodes", type: { - name: "Number" - } + name: "Number", + }, }, resizeTimeout: { serializedName: "resizeTimeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, nodeDeallocationOption: { serializedName: "nodeDeallocationOption", @@ -2566,15 +2574,15 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { "Requeue", "Terminate", "TaskCompletion", - "RetainedData" - ] - } + "RetainedData", + ], + }, }, startTime: { serializedName: "startTime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, errors: { serializedName: "errors", @@ -2583,13 +2591,13 @@ export const ResizeOperationStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResizeError" - } - } - } - } - } - } + className: "ResizeError", + }, + }, + }, + }, + }, + }, }; export const ResizeError: coreClient.CompositeMapper = { @@ -2601,15 +2609,15 @@ export const ResizeError: coreClient.CompositeMapper = { serializedName: "code", required: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -2618,13 +2626,13 @@ export const ResizeError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ResizeError" - } - } - } - } - } - } + className: "ResizeError", + }, + }, + }, + }, + }, + }, }; export const MountConfiguration: coreClient.CompositeMapper = { @@ -2636,32 +2644,32 @@ export const MountConfiguration: coreClient.CompositeMapper = { serializedName: "azureBlobFileSystemConfiguration", type: { name: "Composite", - className: "AzureBlobFileSystemConfiguration" - } + className: "AzureBlobFileSystemConfiguration", + }, }, nfsMountConfiguration: { serializedName: "nfsMountConfiguration", type: { name: "Composite", - className: "NFSMountConfiguration" - } + className: "NFSMountConfiguration", + }, }, cifsMountConfiguration: { serializedName: "cifsMountConfiguration", type: { name: "Composite", - className: "CifsMountConfiguration" - } + className: "CifsMountConfiguration", + }, }, azureFileShareConfiguration: { serializedName: "azureFileShareConfiguration", type: { name: "Composite", - className: "AzureFileShareConfiguration" - } - } - } - } + className: "AzureFileShareConfiguration", + }, + }, + }, + }, }; export const AzureBlobFileSystemConfiguration: coreClient.CompositeMapper = { @@ -2673,50 +2681,50 @@ export const AzureBlobFileSystemConfiguration: coreClient.CompositeMapper = { serializedName: "accountName", required: true, type: { - name: "String" - } + name: "String", + }, }, containerName: { serializedName: "containerName", required: true, type: { - name: "String" - } + name: "String", + }, }, accountKey: { serializedName: "accountKey", type: { - name: "String" - } + name: "String", + }, }, sasKey: { serializedName: "sasKey", type: { - name: "String" - } + name: "String", + }, }, blobfuseOptions: { serializedName: "blobfuseOptions", type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, identityReference: { serializedName: "identityReference", type: { name: "Composite", - className: "ComputeNodeIdentityReference" - } - } - } - } + className: "ComputeNodeIdentityReference", + }, + }, + }, + }, }; export const NFSMountConfiguration: coreClient.CompositeMapper = { @@ -2728,24 +2736,24 @@ export const NFSMountConfiguration: coreClient.CompositeMapper = { serializedName: "source", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CifsMountConfiguration: coreClient.CompositeMapper = { @@ -2757,38 +2765,38 @@ export const CifsMountConfiguration: coreClient.CompositeMapper = { serializedName: "userName", required: true, type: { - name: "String" - } + name: "String", + }, }, source: { serializedName: "source", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AzureFileShareConfiguration: coreClient.CompositeMapper = { @@ -2800,38 +2808,165 @@ export const AzureFileShareConfiguration: coreClient.CompositeMapper = { serializedName: "accountName", required: true, type: { - name: "String" - } + name: "String", + }, }, azureFileUrl: { serializedName: "azureFileUrl", required: true, type: { - name: "String" - } + name: "String", + }, }, accountKey: { serializedName: "accountKey", required: true, type: { - name: "String" - } + name: "String", + }, }, relativeMountPath: { serializedName: "relativeMountPath", required: true, type: { - name: "String" - } + name: "String", + }, }, mountOptions: { serializedName: "mountOptions", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const UpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpgradePolicy", + modelProperties: { + mode: { + serializedName: "mode", + required: true, + type: { + name: "Enum", + allowedValues: ["automatic", "manual", "rolling"], + }, + }, + automaticOSUpgradePolicy: { + serializedName: "automaticOSUpgradePolicy", + type: { + name: "Composite", + className: "AutomaticOSUpgradePolicy", + }, + }, + rollingUpgradePolicy: { + serializedName: "rollingUpgradePolicy", + type: { + name: "Composite", + className: "RollingUpgradePolicy", + }, + }, + }, + }, +}; + +export const AutomaticOSUpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomaticOSUpgradePolicy", + modelProperties: { + disableAutomaticRollback: { + serializedName: "disableAutomaticRollback", + type: { + name: "Boolean", + }, + }, + enableAutomaticOSUpgrade: { + serializedName: "enableAutomaticOSUpgrade", + type: { + name: "Boolean", + }, + }, + useRollingUpgradePolicy: { + serializedName: "useRollingUpgradePolicy", + type: { + name: "Boolean", + }, + }, + osRollingUpgradeDeferral: { + serializedName: "osRollingUpgradeDeferral", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const RollingUpgradePolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RollingUpgradePolicy", + modelProperties: { + enableCrossZoneUpgrade: { + serializedName: "enableCrossZoneUpgrade", + type: { + name: "Boolean", + }, + }, + maxBatchInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5, + }, + serializedName: "maxBatchInstancePercent", + type: { + name: "Number", + }, + }, + maxUnhealthyInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 5, + }, + serializedName: "maxUnhealthyInstancePercent", + type: { + name: "Number", + }, + }, + maxUnhealthyUpgradedInstancePercent: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "maxUnhealthyUpgradedInstancePercent", + type: { + name: "Number", + }, + }, + pauseTimeBetweenBatches: { + serializedName: "pauseTimeBetweenBatches", + type: { + name: "String", + }, + }, + prioritizeUnhealthyInstances: { + serializedName: "prioritizeUnhealthyInstances", + type: { + name: "Boolean", + }, + }, + rollbackFailedInstancesOnPolicyBreach: { + serializedName: "rollbackFailedInstancesOnPolicyBreach", + type: { + name: "Boolean", + }, + }, + }, + }, }; export const BatchPoolIdentity: coreClient.CompositeMapper = { @@ -2844,50 +2979,51 @@ export const BatchPoolIdentity: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["UserAssigned", "None"] - } + allowedValues: ["UserAssigned", "None"], + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserAssignedIdentities" } - } - } - } - } - } -}; - -export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpointCollection", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OutboundEnvironmentEndpoint" - } - } - } + type: { name: "Composite", className: "UserAssignedIdentities" }, + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } + }, + }, }; +export const OutboundEnvironmentEndpointCollection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpointCollection", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OutboundEnvironmentEndpoint", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, + }; + export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2897,8 +3033,8 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { serializedName: "category", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpoints: { serializedName: "endpoints", @@ -2908,13 +3044,13 @@ export const OutboundEnvironmentEndpoint: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDependency" - } - } - } - } - } - } + className: "EndpointDependency", + }, + }, + }, + }, + }, + }, }; export const EndpointDependency: coreClient.CompositeMapper = { @@ -2926,15 +3062,15 @@ export const EndpointDependency: coreClient.CompositeMapper = { serializedName: "domainName", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, endpointDetails: { serializedName: "endpointDetails", @@ -2944,13 +3080,13 @@ export const EndpointDependency: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "EndpointDetail" - } - } - } - } - } - } + className: "EndpointDetail", + }, + }, + }, + }, + }, + }, }; export const EndpointDetail: coreClient.CompositeMapper = { @@ -2962,11 +3098,11 @@ export const EndpointDetail: coreClient.CompositeMapper = { serializedName: "port", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutoStorageProperties: coreClient.CompositeMapper = { @@ -2979,11 +3115,11 @@ export const AutoStorageProperties: coreClient.CompositeMapper = { serializedName: "lastKeySync", required: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const PrivateEndpointConnection: coreClient.CompositeMapper = { @@ -3003,16 +3139,16 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { "Deleting", "Succeeded", "Failed", - "Cancelled" - ] - } + "Cancelled", + ], + }, }, privateEndpoint: { serializedName: "properties.privateEndpoint", type: { name: "Composite", - className: "PrivateEndpoint" - } + className: "PrivateEndpoint", + }, }, groupIds: { serializedName: "properties.groupIds", @@ -3021,20 +3157,20 @@ export const PrivateEndpointConnection: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, privateLinkServiceConnectionState: { serializedName: "properties.privateLinkServiceConnectionState", type: { name: "Composite", - className: "PrivateLinkServiceConnectionState" - } - } - } - } + className: "PrivateLinkServiceConnectionState", + }, + }, + }, + }, }; export const ApplicationPackage: coreClient.CompositeMapper = { @@ -3048,39 +3184,39 @@ export const ApplicationPackage: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Pending", "Active"] - } + allowedValues: ["Pending", "Active"], + }, }, format: { serializedName: "properties.format", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageUrl: { serializedName: "properties.storageUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, storageUrlExpiry: { serializedName: "properties.storageUrlExpiry", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastActivationTime: { serializedName: "properties.lastActivationTime", readOnly: true, type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const Application: coreClient.CompositeMapper = { @@ -3092,23 +3228,23 @@ export const Application: coreClient.CompositeMapper = { displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, allowUpdates: { serializedName: "properties.allowUpdates", type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultVersion: { serializedName: "properties.defaultVersion", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Certificate: coreClient.CompositeMapper = { @@ -3120,68 +3256,68 @@ export const Certificate: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "properties.thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "properties.format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } + allowedValues: ["Pfx", "Cer"], + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, provisioningStateTransitionTime: { serializedName: "properties.provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, previousProvisioningState: { serializedName: "properties.previousProvisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, previousProvisioningStateTransitionTime: { serializedName: "properties.previousProvisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, publicData: { serializedName: "properties.publicData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deleteCertificateError: { serializedName: "properties.deleteCertificateError", type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { @@ -3193,36 +3329,36 @@ export const CertificateCreateOrUpdateParameters: coreClient.CompositeMapper = { thumbprintAlgorithm: { serializedName: "properties.thumbprintAlgorithm", type: { - name: "String" - } + name: "String", + }, }, thumbprint: { serializedName: "properties.thumbprint", type: { - name: "String" - } + name: "String", + }, }, format: { serializedName: "properties.format", type: { name: "Enum", - allowedValues: ["Pfx", "Cer"] - } + allowedValues: ["Pfx", "Cer"], + }, }, data: { serializedName: "properties.data", type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "properties.password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DetectorResponse: coreClient.CompositeMapper = { @@ -3234,11 +3370,11 @@ export const DetectorResponse: coreClient.CompositeMapper = { value: { serializedName: "properties.value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PrivateLinkResource: coreClient.CompositeMapper = { @@ -3251,8 +3387,8 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { serializedName: "properties.groupId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, requiredMembers: { serializedName: "properties.requiredMembers", @@ -3261,10 +3397,10 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, requiredZoneNames: { serializedName: "properties.requiredZoneNames", @@ -3273,13 +3409,13 @@ export const PrivateLinkResource: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const Pool: coreClient.CompositeMapper = { @@ -3292,127 +3428,127 @@ export const Pool: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "BatchPoolIdentity" - } + className: "BatchPoolIdentity", + }, }, displayName: { serializedName: "properties.displayName", type: { - name: "String" - } + name: "String", + }, }, lastModified: { serializedName: "properties.lastModified", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, creationTime: { serializedName: "properties.creationTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting"] - } + allowedValues: ["Succeeded", "Deleting"], + }, }, provisioningStateTransitionTime: { serializedName: "properties.provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, allocationState: { serializedName: "properties.allocationState", readOnly: true, type: { name: "Enum", - allowedValues: ["Steady", "Resizing", "Stopping"] - } + allowedValues: ["Steady", "Resizing", "Stopping"], + }, }, allocationStateTransitionTime: { serializedName: "properties.allocationStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, vmSize: { serializedName: "properties.vmSize", type: { - name: "String" - } + name: "String", + }, }, deploymentConfiguration: { serializedName: "properties.deploymentConfiguration", type: { name: "Composite", - className: "DeploymentConfiguration" - } + className: "DeploymentConfiguration", + }, }, currentDedicatedNodes: { serializedName: "properties.currentDedicatedNodes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, currentLowPriorityNodes: { serializedName: "properties.currentLowPriorityNodes", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, scaleSettings: { serializedName: "properties.scaleSettings", type: { name: "Composite", - className: "ScaleSettings" - } + className: "ScaleSettings", + }, }, autoScaleRun: { serializedName: "properties.autoScaleRun", type: { name: "Composite", - className: "AutoScaleRun" - } + className: "AutoScaleRun", + }, }, interNodeCommunication: { serializedName: "properties.interNodeCommunication", type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkConfiguration: { serializedName: "properties.networkConfiguration", type: { name: "Composite", - className: "NetworkConfiguration" - } + className: "NetworkConfiguration", + }, }, taskSlotsPerNode: { defaultValue: 1, serializedName: "properties.taskSlotsPerNode", type: { - name: "Number" - } + name: "Number", + }, }, taskSchedulingPolicy: { serializedName: "properties.taskSchedulingPolicy", type: { name: "Composite", - className: "TaskSchedulingPolicy" - } + className: "TaskSchedulingPolicy", + }, }, userAccounts: { serializedName: "properties.userAccounts", @@ -3421,10 +3557,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserAccount" - } - } - } + className: "UserAccount", + }, + }, + }, }, metadata: { serializedName: "properties.metadata", @@ -3433,17 +3569,17 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MetadataItem" - } - } - } + className: "MetadataItem", + }, + }, + }, }, startTask: { serializedName: "properties.startTask", type: { name: "Composite", - className: "StartTask" - } + className: "StartTask", + }, }, certificates: { serializedName: "properties.certificates", @@ -3452,10 +3588,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CertificateReference" - } - } - } + className: "CertificateReference", + }, + }, + }, }, applicationPackages: { serializedName: "properties.applicationPackages", @@ -3464,10 +3600,10 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApplicationPackageReference" - } - } - } + className: "ApplicationPackageReference", + }, + }, + }, }, applicationLicenses: { serializedName: "properties.applicationLicenses", @@ -3475,17 +3611,17 @@ export const Pool: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, resizeOperationStatus: { serializedName: "properties.resizeOperationStatus", type: { name: "Composite", - className: "ResizeOperationStatus" - } + className: "ResizeOperationStatus", + }, }, mountConfiguration: { serializedName: "properties.mountConfiguration", @@ -3494,17 +3630,17 @@ export const Pool: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "MountConfiguration" - } - } - } + className: "MountConfiguration", + }, + }, + }, }, targetNodeCommunicationMode: { serializedName: "properties.targetNodeCommunicationMode", type: { name: "Enum", - allowedValues: ["Default", "Classic", "Simplified"] - } + allowedValues: ["Default", "Classic", "Simplified"], + }, }, currentNodeCommunicationMode: { serializedName: "properties.currentNodeCommunicationMode", @@ -3512,18 +3648,25 @@ export const Pool: coreClient.CompositeMapper = { nullable: true, type: { name: "Enum", - allowedValues: ["Default", "Classic", "Simplified"] - } + allowedValues: ["Default", "Classic", "Simplified"], + }, + }, + upgradePolicy: { + serializedName: "properties.upgradePolicy", + type: { + name: "Composite", + className: "UpgradePolicy", + }, }, resourceTags: { serializedName: "properties.resourceTags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const BatchAccount: coreClient.CompositeMapper = { @@ -3536,22 +3679,22 @@ export const BatchAccount: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "BatchAccountIdentity" - } + className: "BatchAccountIdentity", + }, }, accountEndpoint: { serializedName: "properties.accountEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nodeManagementEndpoint: { serializedName: "properties.nodeManagementEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "properties.provisioningState", @@ -3564,24 +3707,24 @@ export const BatchAccount: coreClient.CompositeMapper = { "Deleting", "Succeeded", "Failed", - "Cancelled" - ] - } + "Cancelled", + ], + }, }, poolAllocationMode: { serializedName: "properties.poolAllocationMode", readOnly: true, type: { name: "Enum", - allowedValues: ["BatchService", "UserSubscription"] - } + allowedValues: ["BatchService", "UserSubscription"], + }, }, keyVaultReference: { serializedName: "properties.keyVaultReference", type: { name: "Composite", - className: "KeyVaultReference" - } + className: "KeyVaultReference", + }, }, publicNetworkAccess: { defaultValue: "Enabled", @@ -3589,15 +3732,15 @@ export const BatchAccount: coreClient.CompositeMapper = { nullable: true, type: { name: "Enum", - allowedValues: ["Enabled", "Disabled"] - } + allowedValues: ["Enabled", "Disabled"], + }, }, networkProfile: { serializedName: "properties.networkProfile", type: { name: "Composite", - className: "NetworkProfile" - } + className: "NetworkProfile", + }, }, privateEndpointConnections: { serializedName: "properties.privateEndpointConnections", @@ -3608,40 +3751,40 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PrivateEndpointConnection" - } - } - } + className: "PrivateEndpointConnection", + }, + }, + }, }, autoStorage: { serializedName: "properties.autoStorage", type: { name: "Composite", - className: "AutoStorageProperties" - } + className: "AutoStorageProperties", + }, }, encryption: { serializedName: "properties.encryption", type: { name: "Composite", - className: "EncryptionProperties" - } + className: "EncryptionProperties", + }, }, dedicatedCoreQuota: { serializedName: "properties.dedicatedCoreQuota", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, lowPriorityCoreQuota: { serializedName: "properties.lowPriorityCoreQuota", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, dedicatedCoreQuotaPerVMFamily: { serializedName: "properties.dedicatedCoreQuotaPerVMFamily", @@ -3652,31 +3795,31 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VirtualMachineFamilyCoreQuota" - } - } - } + className: "VirtualMachineFamilyCoreQuota", + }, + }, + }, }, dedicatedCoreQuotaPerVMFamilyEnforced: { serializedName: "properties.dedicatedCoreQuotaPerVMFamilyEnforced", readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, poolQuota: { serializedName: "properties.poolQuota", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, activeJobAndJobScheduleQuota: { serializedName: "properties.activeJobAndJobScheduleQuota", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, allowedAuthenticationModes: { serializedName: "properties.allowedAuthenticationModes", @@ -3687,13 +3830,13 @@ export const BatchAccount: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"] - } - } - } - } - } - } + allowedValues: ["SharedKey", "AAD", "TaskAuthenticationToken"], + }, + }, + }, + }, + }, + }, }; export const CertificateProperties: coreClient.CompositeMapper = { @@ -3707,47 +3850,47 @@ export const CertificateProperties: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, provisioningStateTransitionTime: { serializedName: "provisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, previousProvisioningState: { serializedName: "previousProvisioningState", readOnly: true, type: { name: "Enum", - allowedValues: ["Succeeded", "Deleting", "Failed"] - } + allowedValues: ["Succeeded", "Deleting", "Failed"], + }, }, previousProvisioningStateTransitionTime: { serializedName: "previousProvisioningStateTransitionTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, publicData: { serializedName: "publicData", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, deleteCertificateError: { serializedName: "deleteCertificateError", type: { name: "Composite", - className: "DeleteCertificateError" - } - } - } - } + className: "DeleteCertificateError", + }, + }, + }, + }, }; export const CertificateCreateOrUpdateProperties: coreClient.CompositeMapper = { @@ -3760,17 +3903,17 @@ export const CertificateCreateOrUpdateProperties: coreClient.CompositeMapper = { serializedName: "data", required: true, type: { - name: "String" - } + name: "String", + }, }, password: { serializedName: "password", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const BatchAccountCreateHeaders: coreClient.CompositeMapper = { @@ -3781,17 +3924,17 @@ export const BatchAccountCreateHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const BatchAccountDeleteHeaders: coreClient.CompositeMapper = { @@ -3802,17 +3945,17 @@ export const BatchAccountDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CertificateCreateHeaders: coreClient.CompositeMapper = { @@ -3823,11 +3966,11 @@ export const CertificateCreateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateUpdateHeaders: coreClient.CompositeMapper = { @@ -3838,11 +3981,11 @@ export const CertificateUpdateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateDeleteHeaders: coreClient.CompositeMapper = { @@ -3853,17 +3996,17 @@ export const CertificateDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CertificateGetHeaders: coreClient.CompositeMapper = { @@ -3874,11 +4017,11 @@ export const CertificateGetHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CertificateCancelDeletionHeaders: coreClient.CompositeMapper = { @@ -3889,54 +4032,56 @@ export const CertificateCancelDeletionHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } -}; - -export const PrivateEndpointConnectionUpdateHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionUpdateHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } + name: "String", + }, }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } + }, + }, }; -export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PrivateEndpointConnectionDeleteHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String" - } - }, - retryAfter: { - serializedName: "retry-after", - type: { - name: "Number" - } - } - } - } -}; +export const PrivateEndpointConnectionUpdateHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionUpdateHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; + +export const PrivateEndpointConnectionDeleteHeaders: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "PrivateEndpointConnectionDeleteHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", + }, + }, + retryAfter: { + serializedName: "retry-after", + type: { + name: "Number", + }, + }, + }, + }, + }; export const PoolCreateHeaders: coreClient.CompositeMapper = { type: { @@ -3946,11 +4091,11 @@ export const PoolCreateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolUpdateHeaders: coreClient.CompositeMapper = { @@ -3961,11 +4106,11 @@ export const PoolUpdateHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolDeleteHeaders: coreClient.CompositeMapper = { @@ -3976,17 +4121,17 @@ export const PoolDeleteHeaders: coreClient.CompositeMapper = { location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, retryAfter: { serializedName: "retry-after", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PoolGetHeaders: coreClient.CompositeMapper = { @@ -3997,11 +4142,11 @@ export const PoolGetHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolDisableAutoScaleHeaders: coreClient.CompositeMapper = { @@ -4012,11 +4157,11 @@ export const PoolDisableAutoScaleHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PoolStopResizeHeaders: coreClient.CompositeMapper = { @@ -4027,9 +4172,9 @@ export const PoolStopResizeHeaders: coreClient.CompositeMapper = { eTag: { serializedName: "etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/batch/arm-batch/src/models/parameters.ts b/sdk/batch/arm-batch/src/models/parameters.ts index 7705fbad524e..1a7a4ef11930 100644 --- a/sdk/batch/arm-batch/src/models/parameters.ts +++ b/sdk/batch/arm-batch/src/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { BatchAccountCreateParameters as BatchAccountCreateParametersMapper, @@ -21,7 +21,7 @@ import { CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper, CertificateCreateOrUpdateParameters as CertificateCreateOrUpdateParametersMapper, PrivateEndpointConnection as PrivateEndpointConnectionMapper, - Pool as PoolMapper + Pool as PoolMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -31,14 +31,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountCreateParametersMapper + mapper: BatchAccountCreateParametersMapper, }; export const accept: OperationParameter = { @@ -48,9 +48,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -59,10 +59,10 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { @@ -71,9 +71,9 @@ export const resourceGroupName: OperationURLParameter = { serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const accountName: OperationURLParameter = { @@ -82,26 +82,26 @@ export const accountName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-z0-9]+$"), MaxLength: 24, - MinLength: 3 + MinLength: 3, }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-11-01", + defaultValue: "2024-02-01", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -110,14 +110,14 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters1: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountUpdateParametersMapper + mapper: BatchAccountUpdateParametersMapper, }; export const accountName1: OperationURLParameter = { @@ -126,19 +126,19 @@ export const accountName1: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9]+$"), MaxLength: 24, - MinLength: 3 + MinLength: 3, }, serializedName: "accountName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters2: OperationParameter = { parameterPath: "parameters", - mapper: BatchAccountRegenerateKeyParametersMapper + mapper: BatchAccountRegenerateKeyParametersMapper, }; export const detectorId: OperationURLParameter = { @@ -147,9 +147,9 @@ export const detectorId: OperationURLParameter = { serializedName: "detectorId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const nextLink: OperationURLParameter = { @@ -158,15 +158,15 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const parameters3: OperationParameter = { parameterPath: "parameters", - mapper: ActivateApplicationPackageParametersMapper + mapper: ActivateApplicationPackageParametersMapper, }; export const applicationName: OperationURLParameter = { @@ -175,14 +175,14 @@ export const applicationName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "applicationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const versionName: OperationURLParameter = { @@ -191,19 +191,19 @@ export const versionName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-][a-zA-Z0-9_.-]*$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "versionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters4: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApplicationPackageMapper + mapper: ApplicationPackageMapper, }; export const maxresults: OperationQueryParameter = { @@ -211,19 +211,19 @@ export const maxresults: OperationQueryParameter = { mapper: { serializedName: "maxresults", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const parameters5: OperationParameter = { parameterPath: ["options", "parameters"], - mapper: ApplicationMapper + mapper: ApplicationMapper, }; export const parameters6: OperationParameter = { parameterPath: "parameters", - mapper: ApplicationMapper + mapper: ApplicationMapper, }; export const locationName: OperationURLParameter = { @@ -232,9 +232,9 @@ export const locationName: OperationURLParameter = { serializedName: "locationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter: OperationQueryParameter = { @@ -242,14 +242,14 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters7: OperationParameter = { parameterPath: "parameters", - mapper: CheckNameAvailabilityParametersMapper + mapper: CheckNameAvailabilityParametersMapper, }; export const select: OperationQueryParameter = { @@ -257,14 +257,14 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters8: OperationParameter = { parameterPath: "parameters", - mapper: CertificateCreateOrUpdateParametersMapper + mapper: CertificateCreateOrUpdateParametersMapper, }; export const certificateName: OperationURLParameter = { @@ -273,14 +273,14 @@ export const certificateName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[\\w]+-[\\w]+$"), MaxLength: 45, - MinLength: 5 + MinLength: 5, }, serializedName: "certificateName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifMatch: OperationParameter = { @@ -288,9 +288,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -298,9 +298,9 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateLinkResourceName: OperationURLParameter = { @@ -309,14 +309,14 @@ export const privateLinkResourceName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+\\.?[a-fA-F0-9-]*$"), MaxLength: 101, - MinLength: 1 + MinLength: 1, }, serializedName: "privateLinkResourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const privateEndpointConnectionName: OperationURLParameter = { @@ -325,24 +325,24 @@ export const privateEndpointConnectionName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+\\.?[a-fA-F0-9-]*$"), MaxLength: 101, - MinLength: 1 + MinLength: 1, }, serializedName: "privateEndpointConnectionName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const parameters9: OperationParameter = { parameterPath: "parameters", - mapper: PrivateEndpointConnectionMapper + mapper: PrivateEndpointConnectionMapper, }; export const parameters10: OperationParameter = { parameterPath: "parameters", - mapper: PoolMapper + mapper: PoolMapper, }; export const poolName: OperationURLParameter = { @@ -351,12 +351,12 @@ export const poolName: OperationURLParameter = { constraints: { Pattern: new RegExp("^[a-zA-Z0-9_-]+$"), MaxLength: 64, - MinLength: 1 + MinLength: 1, }, serializedName: "poolName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/batch/arm-batch/src/operations/applicationOperations.ts b/sdk/batch/arm-batch/src/operations/applicationOperations.ts index f48191b33b65..7746f9c21924 100644 --- a/sdk/batch/arm-batch/src/operations/applicationOperations.ts +++ b/sdk/batch/arm-batch/src/operations/applicationOperations.ts @@ -25,7 +25,7 @@ import { ApplicationGetResponse, ApplicationUpdateOptionalParams, ApplicationUpdateResponse, - ApplicationListNextResponse + ApplicationListNextResponse, } from "../models"; /// @@ -50,7 +50,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { public list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, accountName, options); return { @@ -68,9 +68,9 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +78,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, options?: ApplicationListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationListResponse; let continuationToken = settings?.continuationToken; @@ -94,7 +94,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -106,12 +106,12 @@ export class ApplicationOperationsImpl implements ApplicationOperations { private async *listPagingAll( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -128,11 +128,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationCreateOptionalParams + options?: ApplicationCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - createOperationSpec + createOperationSpec, ); } @@ -147,11 +147,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationDeleteOptionalParams + options?: ApplicationDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -166,11 +166,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationGetOptionalParams + options?: ApplicationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -187,11 +187,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { accountName: string, applicationName: string, parameters: Application, - options?: ApplicationUpdateOptionalParams + options?: ApplicationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -204,11 +204,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { private _list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOperationSpec + listOperationSpec, ); } @@ -223,11 +223,11 @@ export class ApplicationOperationsImpl implements ApplicationOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: ApplicationListNextOptionalParams + options?: ApplicationListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -235,16 +235,15 @@ export class ApplicationOperationsImpl implements ApplicationOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters5, queryParameters: [Parameters.apiVersion], @@ -253,22 +252,21 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -276,22 +274,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -299,22 +296,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.Application + bodyMapper: Mappers.Application, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters6, queryParameters: [Parameters.apiVersion], @@ -323,52 +319,51 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationsResult + bodyMapper: Mappers.ListApplicationsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationsResult + bodyMapper: Mappers.ListApplicationsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts b/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts index 7ff1fbc2349c..414725719472 100644 --- a/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts +++ b/sdk/batch/arm-batch/src/operations/applicationPackageOperations.ts @@ -26,13 +26,14 @@ import { ApplicationPackageDeleteOptionalParams, ApplicationPackageGetOptionalParams, ApplicationPackageGetResponse, - ApplicationPackageListNextResponse + ApplicationPackageListNextResponse, } from "../models"; /// /** Class containing ApplicationPackageOperations operations. */ export class ApplicationPackageOperationsImpl - implements ApplicationPackageOperations { + implements ApplicationPackageOperations +{ private readonly client: BatchManagementClient; /** @@ -54,13 +55,13 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll( resourceGroupName, accountName, applicationName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class ApplicationPackageOperationsImpl accountName, applicationName, options, - settings + settings, ); - } + }, }; } @@ -89,7 +90,7 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, options?: ApplicationPackageListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ApplicationPackageListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +99,7 @@ export class ApplicationPackageOperationsImpl resourceGroupName, accountName, applicationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -111,7 +112,7 @@ export class ApplicationPackageOperationsImpl accountName, applicationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,13 +125,13 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, accountName, applicationName, - options + options, )) { yield* page; } @@ -153,7 +154,7 @@ export class ApplicationPackageOperationsImpl applicationName: string, versionName: string, parameters: ActivateApplicationPackageParameters, - options?: ApplicationPackageActivateOptionalParams + options?: ApplicationPackageActivateOptionalParams, ): Promise { return this.client.sendOperationRequest( { @@ -162,9 +163,9 @@ export class ApplicationPackageOperationsImpl applicationName, versionName, parameters, - options + options, }, - activateOperationSpec + activateOperationSpec, ); } @@ -184,11 +185,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageCreateOptionalParams + options?: ApplicationPackageCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - createOperationSpec + createOperationSpec, ); } @@ -205,11 +206,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageDeleteOptionalParams + options?: ApplicationPackageDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -226,11 +227,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageGetOptionalParams + options?: ApplicationPackageGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, versionName, options }, - getOperationSpec + getOperationSpec, ); } @@ -245,11 +246,11 @@ export class ApplicationPackageOperationsImpl resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, options }, - listOperationSpec + listOperationSpec, ); } @@ -266,11 +267,11 @@ export class ApplicationPackageOperationsImpl accountName: string, applicationName: string, nextLink: string, - options?: ApplicationPackageListNextOptionalParams + options?: ApplicationPackageListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, applicationName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -278,16 +279,15 @@ export class ApplicationPackageOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const activateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}/activate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters3, queryParameters: [Parameters.apiVersion], @@ -297,23 +297,22 @@ const activateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters4, queryParameters: [Parameters.apiVersion], @@ -323,22 +322,21 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -347,22 +345,21 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions/{versionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ApplicationPackage + bodyMapper: Mappers.ApplicationPackage, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -371,22 +368,21 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.applicationName, - Parameters.versionName + Parameters.versionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}/versions", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationPackagesResult + bodyMapper: Mappers.ListApplicationPackagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ @@ -394,21 +390,21 @@ const listOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListApplicationPackagesResult + bodyMapper: Mappers.ListApplicationPackagesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, @@ -416,8 +412,8 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.accountName1, Parameters.nextLink, - Parameters.applicationName + Parameters.applicationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts b/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts index 212f700e901f..b7b7eedac253 100644 --- a/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts +++ b/sdk/batch/arm-batch/src/operations/batchAccountOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -55,7 +55,7 @@ import { BatchAccountListNextResponse, BatchAccountListByResourceGroupNextResponse, BatchAccountListDetectorsNextResponse, - BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse + BatchAccountListOutboundNetworkDependenciesEndpointsNextResponse, } from "../models"; /// @@ -76,7 +76,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * @param options The options parameters. */ public list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -91,13 +91,13 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: BatchAccountListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListResponse; let continuationToken = settings?.continuationToken; @@ -118,7 +118,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { } private async *listPagingAll( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -132,7 +132,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ public listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -149,16 +149,16 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: BatchAccountListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -173,7 +173,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -184,11 +184,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -203,12 +203,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { public listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listDetectorsPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -225,9 +225,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -235,7 +235,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, options?: BatchAccountListDetectorsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListDetectorsResponse; let continuationToken = settings?.continuationToken; @@ -243,7 +243,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listDetectors( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -255,7 +255,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -267,12 +267,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listDetectorsPagingAll( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listDetectorsPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -284,7 +284,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * you must make sure your network allows outbound access to these endpoints. Failure to allow access * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information * about creating a pool inside of a virtual network, see - * https://docs.microsoft.com/azure/batch/batch-virtual-network. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -292,12 +292,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { public listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -314,9 +314,9 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -324,7 +324,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: BatchAccountListOutboundNetworkDependenciesEndpointsResponse; let continuationToken = settings?.continuationToken; @@ -332,7 +332,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { result = await this._listOutboundNetworkDependenciesEndpoints( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -344,7 +344,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -356,12 +356,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private async *listOutboundNetworkDependenciesEndpointsPagingAll( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): AsyncIterableIterator { for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -382,7 +382,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -391,21 +391,20 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -414,8 +413,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -423,15 +422,15 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, parameters, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< BatchAccountCreateResponse, @@ -439,7 +438,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -460,13 +459,13 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, accountName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -482,11 +481,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountUpdateParameters, - options?: BatchAccountUpdateOptionalParams + options?: BatchAccountUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -499,25 +498,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { async beginDelete( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -526,8 +524,8 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -535,20 +533,20 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -563,12 +561,12 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { async beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, - options + options, ); return poller.pollUntilDone(); } @@ -582,11 +580,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { get( resourceGroupName: string, accountName: string, - options?: BatchAccountGetOptionalParams + options?: BatchAccountGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getOperationSpec + getOperationSpec, ); } @@ -595,7 +593,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * @param options The options parameters. */ private _list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -607,11 +605,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ private _listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -625,11 +623,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { synchronizeAutoStorageKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams + options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - synchronizeAutoStorageKeysOperationSpec + synchronizeAutoStorageKeysOperationSpec, ); } @@ -647,11 +645,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountRegenerateKeyParameters, - options?: BatchAccountRegenerateKeyOptionalParams + options?: BatchAccountRegenerateKeyOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, parameters, options }, - regenerateKeyOperationSpec + regenerateKeyOperationSpec, ); } @@ -667,11 +665,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { getKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountGetKeysOptionalParams + options?: BatchAccountGetKeysOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - getKeysOperationSpec + getKeysOperationSpec, ); } @@ -684,11 +682,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listDetectorsOperationSpec + listDetectorsOperationSpec, ); } @@ -703,11 +701,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, detectorId: string, - options?: BatchAccountGetDetectorOptionalParams + options?: BatchAccountGetDetectorOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, detectorId, options }, - getDetectorOperationSpec + getDetectorOperationSpec, ); } @@ -717,7 +715,7 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { * you must make sure your network allows outbound access to these endpoints. Failure to allow access * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information * about creating a pool inside of a virtual network, see - * https://docs.microsoft.com/azure/batch/batch-virtual-network. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -725,11 +723,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listOutboundNetworkDependenciesEndpointsOperationSpec + listOutboundNetworkDependenciesEndpointsOperationSpec, ); } @@ -740,11 +738,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { */ private _listNext( nextLink: string, - options?: BatchAccountListNextOptionalParams + options?: BatchAccountListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -757,11 +755,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: BatchAccountListByResourceGroupNextOptionalParams + options?: BatchAccountListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } @@ -776,11 +774,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: BatchAccountListDetectorsNextOptionalParams + options?: BatchAccountListDetectorsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listDetectorsNextOperationSpec + listDetectorsNextOperationSpec, ); } @@ -796,11 +794,11 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listOutboundNetworkDependenciesEndpointsNextOperationSpec + listOutboundNetworkDependenciesEndpointsNextOperationSpec, ); } } @@ -808,25 +806,24 @@ export class BatchAccountOperationsImpl implements BatchAccountOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 201: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 202: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, 204: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters, queryParameters: [Parameters.apiVersion], @@ -834,23 +831,22 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.accountName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters1, queryParameters: [Parameters.apiVersion], @@ -858,15 +854,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "DELETE", responses: { 200: {}, @@ -874,110 +869,105 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccount + bodyMapper: Mappers.BatchAccount, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/batchAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const synchronizeAutoStorageKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/syncAutoStorageKeys", httpMethod: "POST", responses: { 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const regenerateKeyOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/regenerateKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.BatchAccountKeys + bodyMapper: Mappers.BatchAccountKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters2, queryParameters: [Parameters.apiVersion], @@ -985,67 +975,64 @@ const regenerateKeyOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getKeysOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/listKeys", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.BatchAccountKeys + bodyMapper: Mappers.BatchAccountKeys, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDetectorsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorListResult + bodyMapper: Mappers.DetectorListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getDetectorOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/detectors/{detectorId}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorResponse + bodyMapper: Mappers.DetectorResponse, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -1053,111 +1040,112 @@ const getDetectorOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.detectorId + Parameters.detectorId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; -const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection +const listOutboundNetworkDependenciesEndpointsOperationSpec: coreClient.OperationSpec = + { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/outboundNetworkDependenciesEndpoints", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.accountName1 - ], - headerParameters: [Parameters.accept], - serializer -}; + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.accountName1, + ], + headerParameters: [Parameters.accept], + serializer, + }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchAccountListResult + bodyMapper: Mappers.BatchAccountListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listDetectorsNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.DetectorListResult + bodyMapper: Mappers.DetectorListResult, }, default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.resourceGroupName, - Parameters.subscriptionId, - Parameters.accountName1, - Parameters.nextLink - ], - headerParameters: [Parameters.accept], - serializer -}; -const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OutboundEnvironmentEndpointCollection + bodyMapper: Mappers.CloudError, }, - default: { - bodyMapper: Mappers.CloudError - } }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; +const listOutboundNetworkDependenciesEndpointsNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OutboundEnvironmentEndpointCollection, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.accountName1, + Parameters.nextLink, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/batch/arm-batch/src/operations/certificateOperations.ts b/sdk/batch/arm-batch/src/operations/certificateOperations.ts index faf4b1e9145a..476b5ff3a10e 100644 --- a/sdk/batch/arm-batch/src/operations/certificateOperations.ts +++ b/sdk/batch/arm-batch/src/operations/certificateOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -34,7 +34,7 @@ import { CertificateGetResponse, CertificateCancelDeletionOptionalParams, CertificateCancelDeletionResponse, - CertificateListByBatchAccountNextResponse + CertificateListByBatchAccountNextResponse, } from "../models"; /// @@ -61,12 +61,12 @@ export class CertificateOperationsImpl implements CertificateOperations { public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -83,9 +83,9 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -93,7 +93,7 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, options?: CertificateListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificateListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -101,7 +101,7 @@ export class CertificateOperationsImpl implements CertificateOperations { result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -113,7 +113,7 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -125,12 +125,12 @@ export class CertificateOperationsImpl implements CertificateOperations { private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -147,11 +147,11 @@ export class CertificateOperationsImpl implements CertificateOperations { private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -172,11 +172,11 @@ export class CertificateOperationsImpl implements CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOptionalParams + options?: CertificateCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -197,11 +197,11 @@ export class CertificateOperationsImpl implements CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateUpdateOptionalParams + options?: CertificateUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -220,25 +220,24 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -247,8 +246,8 @@ export class CertificateOperationsImpl implements CertificateOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -256,20 +255,20 @@ export class CertificateOperationsImpl implements CertificateOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, certificateName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -290,13 +289,13 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, certificateName, - options + options, ); return poller.pollUntilDone(); } @@ -316,11 +315,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -346,11 +345,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateCancelDeletionOptionalParams + options?: CertificateCancelDeletionOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, certificateName, options }, - cancelDeletionOperationSpec + cancelDeletionOperationSpec, ); } @@ -365,11 +364,11 @@ export class CertificateOperationsImpl implements CertificateOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: CertificateListByBatchAccountNextOptionalParams + options?: CertificateListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -377,44 +376,42 @@ export class CertificateOperationsImpl implements CertificateOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListCertificatesResult + bodyMapper: Mappers.ListCertificatesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateCreateHeaders + headersMapper: Mappers.CertificateCreateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -423,29 +420,28 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [ Parameters.contentType, Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateUpdateHeaders + headersMapper: Mappers.CertificateUpdateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters8, queryParameters: [Parameters.apiVersion], @@ -454,19 +450,18 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, @@ -474,8 +469,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -483,23 +478,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateGetHeaders + headersMapper: Mappers.CertificateGetHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -507,23 +501,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const cancelDeletionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/certificates/{certificateName}/cancelDelete", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Certificate, - headersMapper: Mappers.CertificateCancelDeletionHeaders + headersMapper: Mappers.CertificateCancelDeletionHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -531,29 +524,29 @@ const cancelDeletionOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListCertificatesResult + bodyMapper: Mappers.ListCertificatesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/location.ts b/sdk/batch/arm-batch/src/operations/location.ts index 2efa1d7f3919..8d6d8e9f7262 100644 --- a/sdk/batch/arm-batch/src/operations/location.ts +++ b/sdk/batch/arm-batch/src/operations/location.ts @@ -27,7 +27,7 @@ import { LocationCheckNameAvailabilityOptionalParams, LocationCheckNameAvailabilityResponse, LocationListSupportedVirtualMachineSkusNextResponse, - LocationListSupportedCloudServiceSkusNextResponse + LocationListSupportedCloudServiceSkusNextResponse, } from "../models"; /// @@ -50,11 +50,11 @@ export class LocationImpl implements Location { */ public listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedVirtualMachineSkusPagingAll( locationName, - options + options, ); return { next() { @@ -70,23 +70,23 @@ export class LocationImpl implements Location { return this.listSupportedVirtualMachineSkusPagingPage( locationName, options, - settings + settings, ); - } + }, }; } private async *listSupportedVirtualMachineSkusPagingPage( locationName: string, options?: LocationListSupportedVirtualMachineSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LocationListSupportedVirtualMachineSkusResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { result = await this._listSupportedVirtualMachineSkus( locationName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -97,7 +97,7 @@ export class LocationImpl implements Location { result = await this._listSupportedVirtualMachineSkusNext( locationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -108,11 +108,11 @@ export class LocationImpl implements Location { private async *listSupportedVirtualMachineSkusPagingAll( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedVirtualMachineSkusPagingPage( locationName, - options + options, )) { yield* page; } @@ -125,11 +125,11 @@ export class LocationImpl implements Location { */ public listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listSupportedCloudServiceSkusPagingAll( locationName, - options + options, ); return { next() { @@ -145,16 +145,16 @@ export class LocationImpl implements Location { return this.listSupportedCloudServiceSkusPagingPage( locationName, options, - settings + settings, ); - } + }, }; } private async *listSupportedCloudServiceSkusPagingPage( locationName: string, options?: LocationListSupportedCloudServiceSkusOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: LocationListSupportedCloudServiceSkusResponse; let continuationToken = settings?.continuationToken; @@ -169,7 +169,7 @@ export class LocationImpl implements Location { result = await this._listSupportedCloudServiceSkusNext( locationName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -180,11 +180,11 @@ export class LocationImpl implements Location { private async *listSupportedCloudServiceSkusPagingAll( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): AsyncIterableIterator { for await (const page of this.listSupportedCloudServiceSkusPagingPage( locationName, - options + options, )) { yield* page; } @@ -197,11 +197,11 @@ export class LocationImpl implements Location { */ getQuotas( locationName: string, - options?: LocationGetQuotasOptionalParams + options?: LocationGetQuotasOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - getQuotasOperationSpec + getQuotasOperationSpec, ); } @@ -212,11 +212,11 @@ export class LocationImpl implements Location { */ private _listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - listSupportedVirtualMachineSkusOperationSpec + listSupportedVirtualMachineSkusOperationSpec, ); } @@ -227,11 +227,11 @@ export class LocationImpl implements Location { */ private _listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - listSupportedCloudServiceSkusOperationSpec + listSupportedCloudServiceSkusOperationSpec, ); } @@ -244,11 +244,11 @@ export class LocationImpl implements Location { checkNameAvailability( locationName: string, parameters: CheckNameAvailabilityParameters, - options?: LocationCheckNameAvailabilityOptionalParams + options?: LocationCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, parameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, ); } @@ -262,11 +262,11 @@ export class LocationImpl implements Location { private _listSupportedVirtualMachineSkusNext( locationName: string, nextLink: string, - options?: LocationListSupportedVirtualMachineSkusNextOptionalParams + options?: LocationListSupportedVirtualMachineSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, nextLink, options }, - listSupportedVirtualMachineSkusNextOperationSpec + listSupportedVirtualMachineSkusNextOperationSpec, ); } @@ -280,11 +280,11 @@ export class LocationImpl implements Location { private _listSupportedCloudServiceSkusNext( locationName: string, nextLink: string, - options?: LocationListSupportedCloudServiceSkusNextOptionalParams + options?: LocationListSupportedCloudServiceSkusNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, nextLink, options }, - listSupportedCloudServiceSkusNextOperationSpec + listSupportedCloudServiceSkusNextOperationSpec, ); } } @@ -292,136 +292,134 @@ export class LocationImpl implements Location { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getQuotasOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/quotas", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.BatchLocationQuota + bodyMapper: Mappers.BatchLocationQuota, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedVirtualMachineSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/virtualMachineSkus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedSkusResult + bodyMapper: Mappers.SupportedSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, - Parameters.filter + Parameters.filter, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listSupportedCloudServiceSkusOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/cloudServiceSkus", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SupportedSkusResult + bodyMapper: Mappers.SupportedSkusResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, - Parameters.filter + Parameters.filter, ], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Batch/locations/{locationName}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters7, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; -const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SupportedSkusResult +const listSupportedVirtualMachineSkusNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedSkusResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; -const listSupportedCloudServiceSkusNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.SupportedSkusResult + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + ], + headerParameters: [Parameters.accept], + serializer, + }; +const listSupportedCloudServiceSkusNextOperationSpec: coreClient.OperationSpec = + { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SupportedSkusResult, + }, + default: { + bodyMapper: Mappers.CloudError, + }, }, - default: { - bodyMapper: Mappers.CloudError - } - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.locationName - ], - headerParameters: [Parameters.accept], - serializer -}; + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.locationName, + ], + headerParameters: [Parameters.accept], + serializer, + }; diff --git a/sdk/batch/arm-batch/src/operations/operations.ts b/sdk/batch/arm-batch/src/operations/operations.ts index 517211c24fa2..a52f58db23c0 100644 --- a/sdk/batch/arm-batch/src/operations/operations.ts +++ b/sdk/batch/arm-batch/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/poolOperations.ts b/sdk/batch/arm-batch/src/operations/poolOperations.ts index f4338b80c41c..f86c261cf03d 100644 --- a/sdk/batch/arm-batch/src/operations/poolOperations.ts +++ b/sdk/batch/arm-batch/src/operations/poolOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -35,7 +35,7 @@ import { PoolDisableAutoScaleResponse, PoolStopResizeOptionalParams, PoolStopResizeResponse, - PoolListByBatchAccountNextResponse + PoolListByBatchAccountNextResponse, } from "../models"; /// @@ -60,12 +60,12 @@ export class PoolOperationsImpl implements PoolOperations { public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -82,9 +82,9 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -92,7 +92,7 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, options?: PoolListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PoolListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -100,7 +100,7 @@ export class PoolOperationsImpl implements PoolOperations { result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -112,7 +112,7 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -124,12 +124,12 @@ export class PoolOperationsImpl implements PoolOperations { private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -144,11 +144,11 @@ export class PoolOperationsImpl implements PoolOperations { private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -165,11 +165,11 @@ export class PoolOperationsImpl implements PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolCreateOptionalParams + options?: PoolCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, parameters, options }, - createOperationSpec + createOperationSpec, ); } @@ -187,11 +187,11 @@ export class PoolOperationsImpl implements PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolUpdateOptionalParams + options?: PoolUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, parameters, options }, - updateOperationSpec + updateOperationSpec, ); } @@ -206,25 +206,24 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -233,8 +232,8 @@ export class PoolOperationsImpl implements PoolOperations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -242,20 +241,20 @@ export class PoolOperationsImpl implements PoolOperations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, accountName, poolName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -272,13 +271,13 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, poolName, - options + options, ); return poller.pollUntilDone(); } @@ -294,11 +293,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolGetOptionalParams + options?: PoolGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - getOperationSpec + getOperationSpec, ); } @@ -313,11 +312,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDisableAutoScaleOptionalParams + options?: PoolDisableAutoScaleOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - disableAutoScaleOperationSpec + disableAutoScaleOperationSpec, ); } @@ -337,11 +336,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolStopResizeOptionalParams + options?: PoolStopResizeOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, poolName, options }, - stopResizeOperationSpec + stopResizeOperationSpec, ); } @@ -356,11 +355,11 @@ export class PoolOperationsImpl implements PoolOperations { resourceGroupName: string, accountName: string, nextLink: string, - options?: PoolListByBatchAccountNextOptionalParams + options?: PoolListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -368,44 +367,42 @@ export class PoolOperationsImpl implements PoolOperations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPoolsResult + bodyMapper: Mappers.ListPoolsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [ Parameters.apiVersion, Parameters.maxresults, Parameters.filter, - Parameters.select + Parameters.select, ], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "PUT", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolCreateHeaders + headersMapper: Mappers.PoolCreateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -414,29 +411,28 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [ Parameters.contentType, Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "PATCH", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolUpdateHeaders + headersMapper: Mappers.PoolUpdateHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters10, queryParameters: [Parameters.apiVersion], @@ -445,19 +441,18 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "DELETE", responses: { 200: {}, @@ -465,8 +460,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -474,23 +469,22 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}", httpMethod: "GET", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolGetHeaders + headersMapper: Mappers.PoolGetHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -498,23 +492,22 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const disableAutoScaleOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/disableAutoScale", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolDisableAutoScaleHeaders + headersMapper: Mappers.PoolDisableAutoScaleHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -522,23 +515,22 @@ const disableAutoScaleOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const stopResizeOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/pools/{poolName}/stopResize", httpMethod: "POST", responses: { 200: { bodyMapper: Mappers.Pool, - headersMapper: Mappers.PoolStopResizeHeaders + headersMapper: Mappers.PoolStopResizeHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -546,29 +538,29 @@ const stopResizeOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.poolName + Parameters.poolName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPoolsResult + bodyMapper: Mappers.ListPoolsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts b/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts index 9b9a50fda5b7..fa382ce0dd81 100644 --- a/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts +++ b/sdk/batch/arm-batch/src/operations/privateEndpointConnectionOperations.ts @@ -16,7 +16,7 @@ import { BatchManagementClient } from "../batchManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -30,13 +30,14 @@ import { PrivateEndpointConnectionUpdateResponse, PrivateEndpointConnectionDeleteOptionalParams, PrivateEndpointConnectionDeleteResponse, - PrivateEndpointConnectionListByBatchAccountNextResponse + PrivateEndpointConnectionListByBatchAccountNextResponse, } from "../models"; /// /** Class containing PrivateEndpointConnectionOperations operations. */ export class PrivateEndpointConnectionOperationsImpl - implements PrivateEndpointConnectionOperations { + implements PrivateEndpointConnectionOperations +{ private readonly client: BatchManagementClient; /** @@ -56,12 +57,12 @@ export class PrivateEndpointConnectionOperationsImpl public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -78,9 +79,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -88,7 +89,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateEndpointConnectionListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -96,7 +97,7 @@ export class PrivateEndpointConnectionOperationsImpl result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -108,7 +109,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -120,12 +121,12 @@ export class PrivateEndpointConnectionOperationsImpl private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -140,11 +141,11 @@ export class PrivateEndpointConnectionOperationsImpl private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -160,16 +161,16 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetOptionalParams + options?: PrivateEndpointConnectionGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, privateEndpointConnectionName, - options + options, }, - getOperationSpec + getOperationSpec, ); } @@ -188,7 +189,7 @@ export class PrivateEndpointConnectionOperationsImpl accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -197,21 +198,20 @@ export class PrivateEndpointConnectionOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -220,8 +220,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -229,8 +229,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -241,9 +241,9 @@ export class PrivateEndpointConnectionOperationsImpl accountName, privateEndpointConnectionName, parameters, - options + options, }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionUpdateResponse, @@ -251,7 +251,7 @@ export class PrivateEndpointConnectionOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -272,14 +272,14 @@ export class PrivateEndpointConnectionOperationsImpl accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, accountName, privateEndpointConnectionName, parameters, - options + options, ); return poller.pollUntilDone(); } @@ -296,7 +296,7 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -305,21 +305,20 @@ export class PrivateEndpointConnectionOperationsImpl > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -328,8 +327,8 @@ export class PrivateEndpointConnectionOperationsImpl ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -337,8 +336,8 @@ export class PrivateEndpointConnectionOperationsImpl rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; @@ -348,9 +347,9 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName, accountName, privateEndpointConnectionName, - options + options, }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller< PrivateEndpointConnectionDeleteResponse, @@ -358,7 +357,7 @@ export class PrivateEndpointConnectionOperationsImpl >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -376,13 +375,13 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, accountName, privateEndpointConnectionName, - options + options, ); return poller.pollUntilDone(); } @@ -398,11 +397,11 @@ export class PrivateEndpointConnectionOperationsImpl resourceGroupName: string, accountName: string, nextLink: string, - options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -410,38 +409,36 @@ export class PrivateEndpointConnectionOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateEndpointConnectionsResult + bodyMapper: Mappers.ListPrivateEndpointConnectionsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -449,31 +446,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 201: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 202: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, 204: { - bodyMapper: Mappers.PrivateEndpointConnection + bodyMapper: Mappers.PrivateEndpointConnection, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, requestBody: Parameters.parameters9, queryParameters: [Parameters.apiVersion], @@ -482,36 +478,35 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [ Parameters.contentType, Parameters.accept, - Parameters.ifMatch + Parameters.ifMatch, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}", httpMethod: "DELETE", responses: { 200: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 201: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 202: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, 204: { - headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders + headersMapper: Mappers.PrivateEndpointConnectionDeleteHeaders, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -519,29 +514,29 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateEndpointConnectionName + Parameters.privateEndpointConnectionName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateEndpointConnectionsResult + bodyMapper: Mappers.ListPrivateEndpointConnectionsResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts b/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts index b5bde5b736b5..d623320f73d5 100644 --- a/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts +++ b/sdk/batch/arm-batch/src/operations/privateLinkResourceOperations.ts @@ -20,13 +20,14 @@ import { PrivateLinkResourceListByBatchAccountResponse, PrivateLinkResourceGetOptionalParams, PrivateLinkResourceGetResponse, - PrivateLinkResourceListByBatchAccountNextResponse + PrivateLinkResourceListByBatchAccountNextResponse, } from "../models"; /// /** Class containing PrivateLinkResourceOperations operations. */ export class PrivateLinkResourceOperationsImpl - implements PrivateLinkResourceOperations { + implements PrivateLinkResourceOperations +{ private readonly client: BatchManagementClient; /** @@ -46,12 +47,12 @@ export class PrivateLinkResourceOperationsImpl public listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByBatchAccountPagingAll( resourceGroupName, accountName, - options + options, ); return { next() { @@ -68,9 +69,9 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName, accountName, options, - settings + settings, ); - } + }, }; } @@ -78,7 +79,7 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, options?: PrivateLinkResourceListByBatchAccountOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: PrivateLinkResourceListByBatchAccountResponse; let continuationToken = settings?.continuationToken; @@ -86,7 +87,7 @@ export class PrivateLinkResourceOperationsImpl result = await this._listByBatchAccount( resourceGroupName, accountName, - options + options, ); let page = result.value || []; continuationToken = result.nextLink; @@ -98,7 +99,7 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName, accountName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +111,12 @@ export class PrivateLinkResourceOperationsImpl private async *listByBatchAccountPagingAll( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByBatchAccountPagingPage( resourceGroupName, accountName, - options + options, )) { yield* page; } @@ -130,11 +131,11 @@ export class PrivateLinkResourceOperationsImpl private _listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, options }, - listByBatchAccountOperationSpec + listByBatchAccountOperationSpec, ); } @@ -150,11 +151,11 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, privateLinkResourceName: string, - options?: PrivateLinkResourceGetOptionalParams + options?: PrivateLinkResourceGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, privateLinkResourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -169,11 +170,11 @@ export class PrivateLinkResourceOperationsImpl resourceGroupName: string, accountName: string, nextLink: string, - options?: PrivateLinkResourceListByBatchAccountNextOptionalParams + options?: PrivateLinkResourceListByBatchAccountNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, accountName, nextLink, options }, - listByBatchAccountNextOperationSpec + listByBatchAccountNextOperationSpec, ); } } @@ -181,38 +182,36 @@ export class PrivateLinkResourceOperationsImpl const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listByBatchAccountOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateLinkResourcesResult + bodyMapper: Mappers.ListPrivateLinkResourcesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion, Parameters.maxresults], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.accountName1 + Parameters.accountName1, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/privateLinkResources/{privateLinkResourceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.PrivateLinkResource + bodyMapper: Mappers.PrivateLinkResource, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -220,29 +219,29 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.privateLinkResourceName + Parameters.privateLinkResourceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByBatchAccountNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListPrivateLinkResourcesResult + bodyMapper: Mappers.ListPrivateLinkResourcesResult, }, default: { - bodyMapper: Mappers.CloudError - } + bodyMapper: Mappers.CloudError, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, Parameters.accountName1, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts index 3f4ee2745ef6..54afaa1c9773 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/applicationOperations.ts @@ -16,7 +16,7 @@ import { ApplicationGetOptionalParams, ApplicationGetResponse, ApplicationUpdateOptionalParams, - ApplicationUpdateResponse + ApplicationUpdateResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface ApplicationOperations { list( resourceGroupName: string, accountName: string, - options?: ApplicationListOptionalParams + options?: ApplicationListOptionalParams, ): PagedAsyncIterableIterator; /** * Adds an application to the specified Batch account. @@ -44,7 +44,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationCreateOptionalParams + options?: ApplicationCreateOptionalParams, ): Promise; /** * Deletes an application. @@ -57,7 +57,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationDeleteOptionalParams + options?: ApplicationDeleteOptionalParams, ): Promise; /** * Gets information about the specified application. @@ -70,7 +70,7 @@ export interface ApplicationOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationGetOptionalParams + options?: ApplicationGetOptionalParams, ): Promise; /** * Updates settings for the specified application. @@ -85,6 +85,6 @@ export interface ApplicationOperations { accountName: string, applicationName: string, parameters: Application, - options?: ApplicationUpdateOptionalParams + options?: ApplicationUpdateOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts index 4f2fea8c6fb8..51b1989f82d0 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/applicationPackageOperations.ts @@ -17,7 +17,7 @@ import { ApplicationPackageCreateResponse, ApplicationPackageDeleteOptionalParams, ApplicationPackageGetOptionalParams, - ApplicationPackageGetResponse + ApplicationPackageGetResponse, } from "../models"; /// @@ -34,7 +34,7 @@ export interface ApplicationPackageOperations { resourceGroupName: string, accountName: string, applicationName: string, - options?: ApplicationPackageListOptionalParams + options?: ApplicationPackageListOptionalParams, ): PagedAsyncIterableIterator; /** * Activates the specified application package. This should be done after the `ApplicationPackage` was @@ -53,7 +53,7 @@ export interface ApplicationPackageOperations { applicationName: string, versionName: string, parameters: ActivateApplicationPackageParameters, - options?: ApplicationPackageActivateOptionalParams + options?: ApplicationPackageActivateOptionalParams, ): Promise; /** * Creates an application package record. The record contains a storageUrl where the package should be @@ -71,7 +71,7 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageCreateOptionalParams + options?: ApplicationPackageCreateOptionalParams, ): Promise; /** * Deletes an application package record and its associated binary file. @@ -86,7 +86,7 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageDeleteOptionalParams + options?: ApplicationPackageDeleteOptionalParams, ): Promise; /** * Gets information about the specified application package. @@ -101,6 +101,6 @@ export interface ApplicationPackageOperations { accountName: string, applicationName: string, versionName: string, - options?: ApplicationPackageGetOptionalParams + options?: ApplicationPackageGetOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts index eaf5581f29f0..973966fb8a00 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/batchAccountOperations.ts @@ -32,7 +32,7 @@ import { BatchAccountGetKeysOptionalParams, BatchAccountGetKeysResponse, BatchAccountGetDetectorOptionalParams, - BatchAccountGetDetectorResponse + BatchAccountGetDetectorResponse, } from "../models"; /// @@ -43,7 +43,7 @@ export interface BatchAccountOperations { * @param options The options parameters. */ list( - options?: BatchAccountListOptionalParams + options?: BatchAccountListOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the Batch accounts associated with the specified resource group. @@ -52,7 +52,7 @@ export interface BatchAccountOperations { */ listByResourceGroup( resourceGroupName: string, - options?: BatchAccountListByResourceGroupOptionalParams + options?: BatchAccountListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the detectors available for a given Batch account. @@ -63,7 +63,7 @@ export interface BatchAccountOperations { listDetectors( resourceGroupName: string, accountName: string, - options?: BatchAccountListDetectorsOptionalParams + options?: BatchAccountListDetectorsOptionalParams, ): PagedAsyncIterableIterator; /** * Lists the endpoints that a Batch Compute Node under this Batch Account may call as part of Batch @@ -71,7 +71,7 @@ export interface BatchAccountOperations { * you must make sure your network allows outbound access to these endpoints. Failure to allow access * to these endpoints may cause Batch to mark the affected nodes as unusable. For more information * about creating a pool inside of a virtual network, see - * https://docs.microsoft.com/azure/batch/batch-virtual-network. + * https://docs.microsoft.com/en-us/azure/batch/batch-virtual-network. * @param resourceGroupName The name of the resource group that contains the Batch account. * @param accountName The name of the Batch account. * @param options The options parameters. @@ -79,7 +79,7 @@ export interface BatchAccountOperations { listOutboundNetworkDependenciesEndpoints( resourceGroupName: string, accountName: string, - options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams + options?: BatchAccountListOutboundNetworkDependenciesEndpointsOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new Batch account with the specified parameters. Existing accounts cannot be updated with @@ -96,7 +96,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -118,7 +118,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountCreateParameters, - options?: BatchAccountCreateOptionalParams + options?: BatchAccountCreateOptionalParams, ): Promise; /** * Updates the properties of an existing Batch account. @@ -131,7 +131,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountUpdateParameters, - options?: BatchAccountUpdateOptionalParams + options?: BatchAccountUpdateOptionalParams, ): Promise; /** * Deletes the specified Batch account. @@ -142,7 +142,7 @@ export interface BatchAccountOperations { beginDelete( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified Batch account. @@ -153,7 +153,7 @@ export interface BatchAccountOperations { beginDeleteAndWait( resourceGroupName: string, accountName: string, - options?: BatchAccountDeleteOptionalParams + options?: BatchAccountDeleteOptionalParams, ): Promise; /** * Gets information about the specified Batch account. @@ -164,7 +164,7 @@ export interface BatchAccountOperations { get( resourceGroupName: string, accountName: string, - options?: BatchAccountGetOptionalParams + options?: BatchAccountGetOptionalParams, ): Promise; /** * Synchronizes access keys for the auto-storage account configured for the specified Batch account, @@ -176,7 +176,7 @@ export interface BatchAccountOperations { synchronizeAutoStorageKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams + options?: BatchAccountSynchronizeAutoStorageKeysOptionalParams, ): Promise; /** * This operation applies only to Batch accounts with allowedAuthenticationModes containing @@ -192,7 +192,7 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, parameters: BatchAccountRegenerateKeyParameters, - options?: BatchAccountRegenerateKeyOptionalParams + options?: BatchAccountRegenerateKeyOptionalParams, ): Promise; /** * This operation applies only to Batch accounts with allowedAuthenticationModes containing @@ -206,7 +206,7 @@ export interface BatchAccountOperations { getKeys( resourceGroupName: string, accountName: string, - options?: BatchAccountGetKeysOptionalParams + options?: BatchAccountGetKeysOptionalParams, ): Promise; /** * Gets information about the given detector for a given Batch account. @@ -219,6 +219,6 @@ export interface BatchAccountOperations { resourceGroupName: string, accountName: string, detectorId: string, - options?: BatchAccountGetDetectorOptionalParams + options?: BatchAccountGetDetectorOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts index 0d1dcf9ae7d9..a4bc93abed5f 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/certificateOperations.ts @@ -20,7 +20,7 @@ import { CertificateGetOptionalParams, CertificateGetResponse, CertificateCancelDeletionOptionalParams, - CertificateCancelDeletionResponse + CertificateCancelDeletionResponse, } from "../models"; /// @@ -37,7 +37,7 @@ export interface CertificateOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: CertificateListByBatchAccountOptionalParams + options?: CertificateListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -56,7 +56,7 @@ export interface CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateCreateOptionalParams + options?: CertificateCreateOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -75,7 +75,7 @@ export interface CertificateOperations { accountName: string, certificateName: string, parameters: CertificateCreateOrUpdateParameters, - options?: CertificateUpdateOptionalParams + options?: CertificateUpdateOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -92,7 +92,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise, void>>; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -109,7 +109,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateDeleteOptionalParams + options?: CertificateDeleteOptionalParams, ): Promise; /** * Warning: This operation is deprecated and will be removed after February, 2024. Please use the @@ -126,7 +126,7 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateGetOptionalParams + options?: CertificateGetOptionalParams, ): Promise; /** * If you try to delete a certificate that is being used by a pool or compute node, the status of the @@ -150,6 +150,6 @@ export interface CertificateOperations { resourceGroupName: string, accountName: string, certificateName: string, - options?: CertificateCancelDeletionOptionalParams + options?: CertificateCancelDeletionOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/location.ts b/sdk/batch/arm-batch/src/operationsInterfaces/location.ts index c7d73327a815..1c488bb65dd4 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/location.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/location.ts @@ -15,7 +15,7 @@ import { LocationGetQuotasResponse, CheckNameAvailabilityParameters, LocationCheckNameAvailabilityOptionalParams, - LocationCheckNameAvailabilityResponse + LocationCheckNameAvailabilityResponse, } from "../models"; /// @@ -28,7 +28,7 @@ export interface Location { */ listSupportedVirtualMachineSkus( locationName: string, - options?: LocationListSupportedVirtualMachineSkusOptionalParams + options?: LocationListSupportedVirtualMachineSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of Batch supported Cloud Service VM sizes available at the given location. @@ -37,7 +37,7 @@ export interface Location { */ listSupportedCloudServiceSkus( locationName: string, - options?: LocationListSupportedCloudServiceSkusOptionalParams + options?: LocationListSupportedCloudServiceSkusOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the Batch service quotas for the specified subscription at the given location. @@ -46,7 +46,7 @@ export interface Location { */ getQuotas( locationName: string, - options?: LocationGetQuotasOptionalParams + options?: LocationGetQuotasOptionalParams, ): Promise; /** * Checks whether the Batch account name is available in the specified region. @@ -57,6 +57,6 @@ export interface Location { checkNameAvailability( locationName: string, parameters: CheckNameAvailabilityParameters, - options?: LocationCheckNameAvailabilityOptionalParams + options?: LocationCheckNameAvailabilityOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts index f80e7aeb4620..e0110fed929d 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts index 0949ed1456a7..39c49e4cab1a 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/poolOperations.ts @@ -21,7 +21,7 @@ import { PoolDisableAutoScaleOptionalParams, PoolDisableAutoScaleResponse, PoolStopResizeOptionalParams, - PoolStopResizeResponse + PoolStopResizeResponse, } from "../models"; /// @@ -36,7 +36,7 @@ export interface PoolOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PoolListByBatchAccountOptionalParams + options?: PoolListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Creates a new pool inside the specified account. @@ -51,7 +51,7 @@ export interface PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolCreateOptionalParams + options?: PoolCreateOptionalParams, ): Promise; /** * Updates the properties of an existing pool. @@ -67,7 +67,7 @@ export interface PoolOperations { accountName: string, poolName: string, parameters: Pool, - options?: PoolUpdateOptionalParams + options?: PoolUpdateOptionalParams, ): Promise; /** * Deletes the specified pool. @@ -80,7 +80,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise, void>>; /** * Deletes the specified pool. @@ -93,7 +93,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDeleteOptionalParams + options?: PoolDeleteOptionalParams, ): Promise; /** * Gets information about the specified pool. @@ -106,7 +106,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolGetOptionalParams + options?: PoolGetOptionalParams, ): Promise; /** * Disables automatic scaling for a pool. @@ -119,7 +119,7 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolDisableAutoScaleOptionalParams + options?: PoolDisableAutoScaleOptionalParams, ): Promise; /** * This does not restore the pool to its previous state before the resize operation: it only stops any @@ -137,6 +137,6 @@ export interface PoolOperations { resourceGroupName: string, accountName: string, poolName: string, - options?: PoolStopResizeOptionalParams + options?: PoolStopResizeOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts index 04bd4b2bf8db..5edc5ba3ade6 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/privateEndpointConnectionOperations.ts @@ -16,7 +16,7 @@ import { PrivateEndpointConnectionUpdateOptionalParams, PrivateEndpointConnectionUpdateResponse, PrivateEndpointConnectionDeleteOptionalParams, - PrivateEndpointConnectionDeleteResponse + PrivateEndpointConnectionDeleteResponse, } from "../models"; /// @@ -31,7 +31,7 @@ export interface PrivateEndpointConnectionOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateEndpointConnectionListByBatchAccountOptionalParams + options?: PrivateEndpointConnectionListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the specified private endpoint connection. @@ -45,7 +45,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionGetOptionalParams + options?: PrivateEndpointConnectionGetOptionalParams, ): Promise; /** * Updates the properties of an existing private endpoint connection. @@ -62,7 +62,7 @@ export interface PrivateEndpointConnectionOperations { accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -84,7 +84,7 @@ export interface PrivateEndpointConnectionOperations { accountName: string, privateEndpointConnectionName: string, parameters: PrivateEndpointConnection, - options?: PrivateEndpointConnectionUpdateOptionalParams + options?: PrivateEndpointConnectionUpdateOptionalParams, ): Promise; /** * Deletes the specified private endpoint connection. @@ -98,7 +98,7 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -117,6 +117,6 @@ export interface PrivateEndpointConnectionOperations { resourceGroupName: string, accountName: string, privateEndpointConnectionName: string, - options?: PrivateEndpointConnectionDeleteOptionalParams + options?: PrivateEndpointConnectionDeleteOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts b/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts index 2c921d998b7e..75252ea84733 100644 --- a/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts +++ b/sdk/batch/arm-batch/src/operationsInterfaces/privateLinkResourceOperations.ts @@ -11,7 +11,7 @@ import { PrivateLinkResource, PrivateLinkResourceListByBatchAccountOptionalParams, PrivateLinkResourceGetOptionalParams, - PrivateLinkResourceGetResponse + PrivateLinkResourceGetResponse, } from "../models"; /// @@ -26,7 +26,7 @@ export interface PrivateLinkResourceOperations { listByBatchAccount( resourceGroupName: string, accountName: string, - options?: PrivateLinkResourceListByBatchAccountOptionalParams + options?: PrivateLinkResourceListByBatchAccountOptionalParams, ): PagedAsyncIterableIterator; /** * Gets information about the specified private link resource. @@ -40,6 +40,6 @@ export interface PrivateLinkResourceOperations { resourceGroupName: string, accountName: string, privateLinkResourceName: string, - options?: PrivateLinkResourceGetOptionalParams + options?: PrivateLinkResourceGetOptionalParams, ): Promise; } diff --git a/sdk/batch/arm-batch/src/pagingHelper.ts b/sdk/batch/arm-batch/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/batch/arm-batch/src/pagingHelper.ts +++ b/sdk/batch/arm-batch/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/batch/arm-batch/test/batch_examples.ts b/sdk/batch/arm-batch/test/batch_examples.ts index 173f6fa0cc0c..9b93e5126cdb 100644 --- a/sdk/batch/arm-batch/test/batch_examples.ts +++ b/sdk/batch/arm-batch/test/batch_examples.ts @@ -60,7 +60,7 @@ describe("Batch test", () => { resourceGroup = "myjstest"; accountName = "myaccountxxx"; applicationName = "myapplicationxxx"; - storageaccountName = "mystorageaccountxxx111"; + storageaccountName = "myjsstorageaccount111"; certificateName = "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7"; poolName = "mypoolxxx"; }); From 1320327b6d07e6140d1affe095c1c641503ea616 Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Fri, 15 Mar 2024 14:12:18 +0800 Subject: [PATCH 52/57] [mgmt] confluent release (#28901) https://github.com/Azure/sdk-release-request/issues/5018 --- sdk/confluent/arm-confluent/CHANGELOG.md | 83 +- sdk/confluent/arm-confluent/LICENSE | 2 +- sdk/confluent/arm-confluent/_meta.json | 8 +- sdk/confluent/arm-confluent/assets.json | 2 +- sdk/confluent/arm-confluent/package.json | 9 +- .../arm-confluent/review/arm-confluent.api.md | 317 +++ .../accessCreateRoleBindingSample.ts | 53 + .../accessDeleteRoleBindingSample.ts | 45 + .../samples-dev/accessInviteUserSample.ts | 10 +- .../samples-dev/accessListClustersSample.ts | 8 +- .../accessListEnvironmentsSample.ts | 8 +- .../accessListInvitationsSample.ts | 10 +- .../accessListRoleBindingNameListSample.ts | 55 + .../accessListRoleBindingsSample.ts | 8 +- .../accessListServiceAccountsSample.ts | 8 +- .../samples-dev/accessListUsersSample.ts | 8 +- .../marketplaceAgreementsCreateSample.ts | 2 +- .../marketplaceAgreementsListSample.ts | 2 +- .../organizationCreateApiKeySample.ts | 55 + .../samples-dev/organizationCreateSample.ts | 12 +- .../organizationDeleteClusterApiKeySample.ts | 45 + .../samples-dev/organizationDeleteSample.ts | 4 +- .../organizationGetClusterApiKeySample.ts | 45 + .../organizationGetClusterByIdSample.ts | 47 + .../organizationGetEnvironmentByIdSample.ts | 45 + .../samples-dev/organizationGetSample.ts | 4 +- ...ationGetSchemaRegistryClusterByIdSample.ts | 47 + .../organizationListByResourceGroupSample.ts | 4 +- .../organizationListBySubscriptionSample.ts | 2 +- .../organizationListClustersSample.ts | 54 + .../organizationListEnvironmentsSample.ts | 52 + .../organizationListRegionsSample.ts | 54 + ...izationListSchemaRegistryClustersSample.ts | 48 + .../organizationOperationsListSample.ts | 2 +- .../samples-dev/organizationUpdateSample.ts | 8 +- .../validationsValidateOrganizationSample.ts | 12 +- ...validationsValidateOrganizationV2Sample.ts | 12 +- .../samples/v3/javascript/README.md | 70 +- .../accessCreateRoleBindingSample.js | 42 + .../accessDeleteRoleBindingSample.js | 41 + .../v3/javascript/accessInviteUserSample.js | 2 +- .../v3/javascript/accessListClustersSample.js | 2 +- .../accessListEnvironmentsSample.js | 2 +- .../javascript/accessListInvitationsSample.js | 2 +- .../accessListRoleBindingNameListSample.js | 47 + .../accessListRoleBindingsSample.js | 2 +- .../accessListServiceAccountsSample.js | 2 +- .../v3/javascript/accessListUsersSample.js | 2 +- .../marketplaceAgreementsCreateSample.js | 2 +- .../marketplaceAgreementsListSample.js | 2 +- .../organizationCreateApiKeySample.js | 48 + .../v3/javascript/organizationCreateSample.js | 4 +- .../organizationDeleteClusterApiKeySample.js | 41 + .../v3/javascript/organizationDeleteSample.js | 2 +- .../organizationGetClusterApiKeySample.js | 41 + .../organizationGetClusterByIdSample.js | 43 + .../organizationGetEnvironmentByIdSample.js | 41 + .../v3/javascript/organizationGetSample.js | 2 +- ...ationGetSchemaRegistryClusterByIdSample.js | 43 + .../organizationListByResourceGroupSample.js | 2 +- .../organizationListBySubscriptionSample.js | 2 +- .../organizationListClustersSample.js | 47 + .../organizationListEnvironmentsSample.js | 45 + .../organizationListRegionsSample.js | 43 + ...izationListSchemaRegistryClustersSample.js | 44 + .../organizationOperationsListSample.js | 2 +- .../v3/javascript/organizationUpdateSample.js | 2 +- .../validationsValidateOrganizationSample.js | 4 +- ...validationsValidateOrganizationV2Sample.js | 4 +- .../samples/v3/typescript/README.md | 70 +- .../src/accessCreateRoleBindingSample.ts | 53 + .../src/accessDeleteRoleBindingSample.ts | 45 + .../typescript/src/accessInviteUserSample.ts | 10 +- .../src/accessListClustersSample.ts | 8 +- .../src/accessListEnvironmentsSample.ts | 8 +- .../src/accessListInvitationsSample.ts | 10 +- .../accessListRoleBindingNameListSample.ts | 55 + .../src/accessListRoleBindingsSample.ts | 8 +- .../src/accessListServiceAccountsSample.ts | 8 +- .../typescript/src/accessListUsersSample.ts | 8 +- .../src/marketplaceAgreementsCreateSample.ts | 2 +- .../src/marketplaceAgreementsListSample.ts | 2 +- .../src/organizationCreateApiKeySample.ts | 55 + .../src/organizationCreateSample.ts | 12 +- .../organizationDeleteClusterApiKeySample.ts | 45 + .../src/organizationDeleteSample.ts | 4 +- .../src/organizationGetClusterApiKeySample.ts | 45 + .../src/organizationGetClusterByIdSample.ts | 47 + .../organizationGetEnvironmentByIdSample.ts | 45 + .../typescript/src/organizationGetSample.ts | 4 +- ...ationGetSchemaRegistryClusterByIdSample.ts | 47 + .../organizationListByResourceGroupSample.ts | 4 +- .../organizationListBySubscriptionSample.ts | 2 +- .../src/organizationListClustersSample.ts | 54 + .../src/organizationListEnvironmentsSample.ts | 52 + .../src/organizationListRegionsSample.ts | 54 + ...izationListSchemaRegistryClustersSample.ts | 48 + .../src/organizationOperationsListSample.ts | 2 +- .../src/organizationUpdateSample.ts | 8 +- .../validationsValidateOrganizationSample.ts | 12 +- ...validationsValidateOrganizationV2Sample.ts | 12 +- .../src/confluentManagementClient.ts | 41 +- sdk/confluent/arm-confluent/src/lroImpl.ts | 6 +- .../arm-confluent/src/models/index.ts | 474 +++- .../arm-confluent/src/models/mappers.ts | 1992 ++++++++++++----- .../arm-confluent/src/models/parameters.ts | 161 +- .../arm-confluent/src/operations/access.ts | 279 ++- .../src/operations/marketplaceAgreements.ts | 50 +- .../src/operations/organization.ts | 1201 ++++++++-- .../src/operations/organizationOperations.ts | 32 +- .../src/operations/validations.ts | 44 +- .../src/operationsInterfaces/access.ts | 69 +- .../marketplaceAgreements.ts | 6 +- .../src/operationsInterfaces/organization.ts | 190 +- .../organizationOperations.ts | 4 +- .../src/operationsInterfaces/validations.ts | 10 +- .../arm-confluent/src/pagingHelper.ts | 2 +- 117 files changed, 6052 insertions(+), 1216 deletions(-) create mode 100644 sdk/confluent/arm-confluent/samples-dev/accessCreateRoleBindingSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/accessDeleteRoleBindingSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingNameListSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationCreateApiKeySample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationDeleteClusterApiKeySample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationGetClusterApiKeySample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationGetClusterByIdSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationGetEnvironmentByIdSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationGetSchemaRegistryClusterByIdSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationListClustersSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationListEnvironmentsSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationListRegionsSample.ts create mode 100644 sdk/confluent/arm-confluent/samples-dev/organizationListSchemaRegistryClustersSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts create mode 100644 sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts diff --git a/sdk/confluent/arm-confluent/CHANGELOG.md b/sdk/confluent/arm-confluent/CHANGELOG.md index 08a59c41ade1..e7f14741f419 100644 --- a/sdk/confluent/arm-confluent/CHANGELOG.md +++ b/sdk/confluent/arm-confluent/CHANGELOG.md @@ -1,15 +1,78 @@ # Release History + +## 3.1.0 (2024-03-13) + +**Features** -## 3.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - + - Added operation Access.createRoleBinding + - Added operation Access.deleteRoleBinding + - Added operation Access.listRoleBindingNameList + - Added operation Organization.createAPIKey + - Added operation Organization.deleteClusterAPIKey + - Added operation Organization.getClusterAPIKey + - Added operation Organization.getClusterById + - Added operation Organization.getEnvironmentById + - Added operation Organization.getSchemaRegistryClusterById + - Added operation Organization.listClusters + - Added operation Organization.listEnvironments + - Added operation Organization.listRegions + - Added operation Organization.listSchemaRegistryClusters + - Added Interface AccessCreateRoleBindingOptionalParams + - Added Interface AccessCreateRoleBindingRequestModel + - Added Interface AccessDeleteRoleBindingOptionalParams + - Added Interface AccessListRoleBindingNameListOptionalParams + - Added Interface AccessRoleBindingNameListSuccessResponse + - Added Interface APIKeyOwnerEntity + - Added Interface APIKeyRecord + - Added Interface APIKeyResourceEntity + - Added Interface APIKeySpecEntity + - Added Interface CreateAPIKeyModel + - Added Interface GetEnvironmentsResponse + - Added Interface ListClustersSuccessResponse + - Added Interface ListRegionsSuccessResponse + - Added Interface ListSchemaRegistryClustersResponse + - Added Interface OrganizationCreateAPIKeyOptionalParams + - Added Interface OrganizationDeleteClusterAPIKeyOptionalParams + - Added Interface OrganizationGetClusterAPIKeyOptionalParams + - Added Interface OrganizationGetClusterByIdOptionalParams + - Added Interface OrganizationGetEnvironmentByIdOptionalParams + - Added Interface OrganizationGetSchemaRegistryClusterByIdOptionalParams + - Added Interface OrganizationListClustersNextOptionalParams + - Added Interface OrganizationListClustersOptionalParams + - Added Interface OrganizationListEnvironmentsNextOptionalParams + - Added Interface OrganizationListEnvironmentsOptionalParams + - Added Interface OrganizationListRegionsOptionalParams + - Added Interface OrganizationListSchemaRegistryClustersNextOptionalParams + - Added Interface OrganizationListSchemaRegistryClustersOptionalParams + - Added Interface RegionRecord + - Added Interface RegionSpecEntity + - Added Interface SCClusterByokEntity + - Added Interface SCClusterNetworkEnvironmentEntity + - Added Interface SCClusterRecord + - Added Interface SCClusterSpecEntity + - Added Interface SCConfluentListMetadata + - Added Interface SCEnvironmentRecord + - Added Interface SchemaRegistryClusterEnvironmentRegionEntity + - Added Interface SchemaRegistryClusterRecord + - Added Interface SchemaRegistryClusterSpecEntity + - Added Interface SchemaRegistryClusterStatusEntity + - Added Interface SCMetadataEntity + - Added Type Alias AccessCreateRoleBindingResponse + - Added Type Alias AccessListRoleBindingNameListResponse + - Added Type Alias OrganizationCreateAPIKeyResponse + - Added Type Alias OrganizationGetClusterAPIKeyResponse + - Added Type Alias OrganizationGetClusterByIdResponse + - Added Type Alias OrganizationGetEnvironmentByIdResponse + - Added Type Alias OrganizationGetSchemaRegistryClusterByIdResponse + - Added Type Alias OrganizationListClustersNextResponse + - Added Type Alias OrganizationListClustersResponse + - Added Type Alias OrganizationListEnvironmentsNextResponse + - Added Type Alias OrganizationListEnvironmentsResponse + - Added Type Alias OrganizationListRegionsResponse + - Added Type Alias OrganizationListSchemaRegistryClustersNextResponse + - Added Type Alias OrganizationListSchemaRegistryClustersResponse + + ## 3.0.0 (2023-11-07) The package of @azure/arm-confluent is using our next generation design principles since version 3.0.0, which contains breaking changes. diff --git a/sdk/confluent/arm-confluent/LICENSE b/sdk/confluent/arm-confluent/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/confluent/arm-confluent/LICENSE +++ b/sdk/confluent/arm-confluent/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 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/confluent/arm-confluent/_meta.json b/sdk/confluent/arm-confluent/_meta.json index 416b5ba51ffb..00c51770a19f 100644 --- a/sdk/confluent/arm-confluent/_meta.json +++ b/sdk/confluent/arm-confluent/_meta.json @@ -1,8 +1,8 @@ { - "commit": "b13bd252f5a0ae3e870dcd5fb4dc5c1389a7a734", + "commit": "3004d02873a4b583ba6a3966a370f1ba19b5da1d", "readme": "specification/confluent/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\confluent\\resource-manager\\readme.md --use=@autorest/typescript@6.0.12 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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\\confluent\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.12" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/confluent/arm-confluent/assets.json b/sdk/confluent/arm-confluent/assets.json index ceafd70f98a4..032536a6af62 100644 --- a/sdk/confluent/arm-confluent/assets.json +++ b/sdk/confluent/arm-confluent/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/confluent/arm-confluent", - "Tag": "js/confluent/arm-confluent_d726dea7d2" + "Tag": "js/confluent/arm-confluent_4fa200895a" } diff --git a/sdk/confluent/arm-confluent/package.json b/sdk/confluent/arm-confluent/package.json index d3134cf13f86..cc9bdd79fbb3 100644 --- a/sdk/confluent/arm-confluent/package.json +++ b/sdk/confluent/arm-confluent/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for ConfluentManagementClient.", - "version": "3.0.1", + "version": "3.1.0", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -116,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-confluent?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/confluent/arm-confluent/review/arm-confluent.api.md b/sdk/confluent/arm-confluent/review/arm-confluent.api.md index c4b91738bab6..8b836c04a139 100644 --- a/sdk/confluent/arm-confluent/review/arm-confluent.api.md +++ b/sdk/confluent/arm-confluent/review/arm-confluent.api.md @@ -12,15 +12,36 @@ import { SimplePollerLike } from '@azure/core-lro'; // @public export interface Access { + createRoleBinding(resourceGroupName: string, organizationName: string, body: AccessCreateRoleBindingRequestModel, options?: AccessCreateRoleBindingOptionalParams): Promise; + deleteRoleBinding(resourceGroupName: string, organizationName: string, roleBindingId: string, options?: AccessDeleteRoleBindingOptionalParams): Promise; inviteUser(resourceGroupName: string, organizationName: string, body: AccessInviteUserAccountModel, options?: AccessInviteUserOptionalParams): Promise; listClusters(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListClustersOptionalParams): Promise; listEnvironments(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListEnvironmentsOptionalParams): Promise; listInvitations(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListInvitationsOptionalParams): Promise; + listRoleBindingNameList(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListRoleBindingNameListOptionalParams): Promise; listRoleBindings(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListRoleBindingsOptionalParams): Promise; listServiceAccounts(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListServiceAccountsOptionalParams): Promise; listUsers(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: AccessListUsersOptionalParams): Promise; } +// @public +export interface AccessCreateRoleBindingOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface AccessCreateRoleBindingRequestModel { + crnPattern?: string; + principal?: string; + roleName?: string; +} + +// @public +export type AccessCreateRoleBindingResponse = RoleBindingRecord; + +// @public +export interface AccessDeleteRoleBindingOptionalParams extends coreClient.OperationOptions { +} + // @public export interface AccessInvitedUserDetails { authType?: string; @@ -84,6 +105,13 @@ export interface AccessListInvitationsSuccessResponse { metadata?: ConfluentListMetadata; } +// @public +export interface AccessListRoleBindingNameListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AccessListRoleBindingNameListResponse = AccessRoleBindingNameListSuccessResponse; + // @public export interface AccessListRoleBindingsOptionalParams extends coreClient.OperationOptions { } @@ -126,6 +154,47 @@ export interface AccessListUsersSuccessResponse { metadata?: ConfluentListMetadata; } +// @public +export interface AccessRoleBindingNameListSuccessResponse { + data?: string[]; + kind?: string; + metadata?: ConfluentListMetadata; +} + +// @public +export interface APIKeyOwnerEntity { + id?: string; + kind?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface APIKeyRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + spec?: APIKeySpecEntity; +} + +// @public +export interface APIKeyResourceEntity { + environment?: string; + id?: string; + kind?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface APIKeySpecEntity { + description?: string; + name?: string; + owner?: APIKeyOwnerEntity; + resource?: APIKeyResourceEntity; + secret?: string; +} + // @public export interface ClusterByokEntity { id?: string; @@ -246,6 +315,12 @@ export interface ConfluentManagementClientOptionalParams extends coreClient.Serv endpoint?: string; } +// @public +export interface CreateAPIKeyModel { + description?: string; + name?: string; +} + // @public export type CreatedByType = string; @@ -268,6 +343,12 @@ export interface ErrorResponseBody { // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +export interface GetEnvironmentsResponse { + nextLink?: string; + value?: SCEnvironmentRecord[]; +} + // @public export interface InvitationRecord { acceptedAt?: string; @@ -327,6 +408,23 @@ export interface ListAccessRequestModel { }; } +// @public +export interface ListClustersSuccessResponse { + nextLink?: string; + value?: SCClusterRecord[]; +} + +// @public +export interface ListRegionsSuccessResponse { + data?: RegionRecord[]; +} + +// @public +export interface ListSchemaRegistryClustersResponse { + nextLink?: string; + value?: SchemaRegistryClusterRecord[]; +} + // @public export interface MarketplaceAgreements { create(options?: MarketplaceAgreementsCreateOptionalParams): Promise; @@ -404,12 +502,29 @@ export interface Organization { beginCreateAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationCreateOptionalParams): Promise; beginDelete(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise, void>>; beginDeleteAndWait(resourceGroupName: string, organizationName: string, options?: OrganizationDeleteOptionalParams): Promise; + createAPIKey(resourceGroupName: string, organizationName: string, environmentId: string, clusterId: string, body: CreateAPIKeyModel, options?: OrganizationCreateAPIKeyOptionalParams): Promise; + deleteClusterAPIKey(resourceGroupName: string, organizationName: string, apiKeyId: string, options?: OrganizationDeleteClusterAPIKeyOptionalParams): Promise; get(resourceGroupName: string, organizationName: string, options?: OrganizationGetOptionalParams): Promise; + getClusterAPIKey(resourceGroupName: string, organizationName: string, apiKeyId: string, options?: OrganizationGetClusterAPIKeyOptionalParams): Promise; + getClusterById(resourceGroupName: string, organizationName: string, environmentId: string, clusterId: string, options?: OrganizationGetClusterByIdOptionalParams): Promise; + getEnvironmentById(resourceGroupName: string, organizationName: string, environmentId: string, options?: OrganizationGetEnvironmentByIdOptionalParams): Promise; + getSchemaRegistryClusterById(resourceGroupName: string, organizationName: string, environmentId: string, clusterId: string, options?: OrganizationGetSchemaRegistryClusterByIdOptionalParams): Promise; listByResourceGroup(resourceGroupName: string, options?: OrganizationListByResourceGroupOptionalParams): PagedAsyncIterableIterator; listBySubscription(options?: OrganizationListBySubscriptionOptionalParams): PagedAsyncIterableIterator; + listClusters(resourceGroupName: string, organizationName: string, environmentId: string, options?: OrganizationListClustersOptionalParams): PagedAsyncIterableIterator; + listEnvironments(resourceGroupName: string, organizationName: string, options?: OrganizationListEnvironmentsOptionalParams): PagedAsyncIterableIterator; + listRegions(resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, options?: OrganizationListRegionsOptionalParams): Promise; + listSchemaRegistryClusters(resourceGroupName: string, organizationName: string, environmentId: string, options?: OrganizationListSchemaRegistryClustersOptionalParams): PagedAsyncIterableIterator; update(resourceGroupName: string, organizationName: string, options?: OrganizationUpdateOptionalParams): Promise; } +// @public +export interface OrganizationCreateAPIKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationCreateAPIKeyResponse = APIKeyRecord; + // @public export interface OrganizationCreateOptionalParams extends coreClient.OperationOptions { body?: OrganizationResource; @@ -420,12 +535,37 @@ export interface OrganizationCreateOptionalParams extends coreClient.OperationOp // @public export type OrganizationCreateResponse = OrganizationResource; +// @public +export interface OrganizationDeleteClusterAPIKeyOptionalParams extends coreClient.OperationOptions { +} + // @public export interface OrganizationDeleteOptionalParams extends coreClient.OperationOptions { resumeFrom?: string; updateIntervalInMs?: number; } +// @public +export interface OrganizationGetClusterAPIKeyOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetClusterAPIKeyResponse = APIKeyRecord; + +// @public +export interface OrganizationGetClusterByIdOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetClusterByIdResponse = SCClusterRecord; + +// @public +export interface OrganizationGetEnvironmentByIdOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetEnvironmentByIdResponse = SCEnvironmentRecord; + // @public export interface OrganizationGetOptionalParams extends coreClient.OperationOptions { } @@ -433,6 +573,13 @@ export interface OrganizationGetOptionalParams extends coreClient.OperationOptio // @public export type OrganizationGetResponse = OrganizationResource; +// @public +export interface OrganizationGetSchemaRegistryClusterByIdOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationGetSchemaRegistryClusterByIdResponse = SchemaRegistryClusterRecord; + // @public export interface OrganizationListByResourceGroupNextOptionalParams extends coreClient.OperationOptions { } @@ -461,6 +608,61 @@ export interface OrganizationListBySubscriptionOptionalParams extends coreClient // @public export type OrganizationListBySubscriptionResponse = OrganizationResourceListResult; +// @public +export interface OrganizationListClustersNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListClustersNextResponse = ListClustersSuccessResponse; + +// @public +export interface OrganizationListClustersOptionalParams extends coreClient.OperationOptions { + pageSize?: number; + pageToken?: string; +} + +// @public +export type OrganizationListClustersResponse = ListClustersSuccessResponse; + +// @public +export interface OrganizationListEnvironmentsNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListEnvironmentsNextResponse = GetEnvironmentsResponse; + +// @public +export interface OrganizationListEnvironmentsOptionalParams extends coreClient.OperationOptions { + pageSize?: number; + pageToken?: string; +} + +// @public +export type OrganizationListEnvironmentsResponse = GetEnvironmentsResponse; + +// @public +export interface OrganizationListRegionsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListRegionsResponse = ListRegionsSuccessResponse; + +// @public +export interface OrganizationListSchemaRegistryClustersNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type OrganizationListSchemaRegistryClustersNextResponse = ListSchemaRegistryClustersResponse; + +// @public +export interface OrganizationListSchemaRegistryClustersOptionalParams extends coreClient.OperationOptions { + pageSize?: number; + pageToken?: string; +} + +// @public +export type OrganizationListSchemaRegistryClustersResponse = ListSchemaRegistryClustersResponse; + // @public export interface OrganizationOperations { list(options?: OrganizationOperationsListOptionalParams): PagedAsyncIterableIterator; @@ -523,6 +725,23 @@ export type OrganizationUpdateResponse = OrganizationResource; // @public export type ProvisionState = string; +// @public +export interface RegionRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + spec?: RegionSpecEntity; +} + +// @public +export interface RegionSpecEntity { + cloud?: string; + name?: string; + // (undocumented) + packages?: string[]; + regionName?: string; +} + // @public export interface ResourceProviderDefaultErrorResponse { readonly error?: ErrorResponseBody; @@ -541,6 +760,104 @@ export interface RoleBindingRecord { // @public export type SaaSOfferStatus = string; +// @public +export interface SCClusterByokEntity { + id?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface SCClusterNetworkEnvironmentEntity { + environment?: string; + id?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface SCClusterRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + name?: string; + spec?: SCClusterSpecEntity; + status?: ClusterStatusEntity; +} + +// @public +export interface SCClusterSpecEntity { + apiEndpoint?: string; + availability?: string; + byok?: SCClusterByokEntity; + cloud?: string; + config?: ClusterConfigEntity; + environment?: SCClusterNetworkEnvironmentEntity; + httpEndpoint?: string; + kafkaBootstrapEndpoint?: string; + name?: string; + network?: SCClusterNetworkEnvironmentEntity; + region?: string; + zone?: string; +} + +// @public +export interface SCConfluentListMetadata { + first?: string; + last?: string; + next?: string; + prev?: string; + totalSize?: number; +} + +// @public +export interface SCEnvironmentRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + name?: string; +} + +// @public +export interface SchemaRegistryClusterEnvironmentRegionEntity { + id?: string; + related?: string; + resourceName?: string; +} + +// @public +export interface SchemaRegistryClusterRecord { + id?: string; + kind?: string; + metadata?: SCMetadataEntity; + spec?: SchemaRegistryClusterSpecEntity; + status?: SchemaRegistryClusterStatusEntity; +} + +// @public +export interface SchemaRegistryClusterSpecEntity { + cloud?: string; + environment?: SchemaRegistryClusterEnvironmentRegionEntity; + httpEndpoint?: string; + name?: string; + package?: string; + region?: SchemaRegistryClusterEnvironmentRegionEntity; +} + +// @public +export interface SchemaRegistryClusterStatusEntity { + phase?: string; +} + +// @public +export interface SCMetadataEntity { + createdTimestamp?: string; + deletedTimestamp?: string; + resourceName?: string; + self?: string; + updatedTimestamp?: string; +} + // @public export interface ServiceAccountRecord { description?: string; diff --git a/sdk/confluent/arm-confluent/samples-dev/accessCreateRoleBindingSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessCreateRoleBindingSample.ts new file mode 100644 index 000000000000..197475b1f20c --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/accessCreateRoleBindingSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AccessCreateRoleBindingRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json + */ +async function accessCreateRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: AccessCreateRoleBindingRequestModel = { + crnPattern: + "crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-aaa1111/cloud-cluster=lkc-1111aaa", + principal: "User:u-111aaa", + roleName: "CloudClusterAdmin", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.createRoleBinding( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessCreateRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/accessDeleteRoleBindingSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessDeleteRoleBindingSample.ts new file mode 100644 index 000000000000..da5970a6c279 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/accessDeleteRoleBindingSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json + */ +async function accessDeleteRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const roleBindingId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.deleteRoleBinding( + resourceGroupName, + organizationName, + roleBindingId, + ); + console.log(result); +} + +async function main() { + accessDeleteRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/accessInviteUserSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessInviteUserSample.ts index 5634690a3ae1..c917ce28a1f1 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessInviteUserSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessInviteUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AccessInviteUserAccountModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Invite user to the organization * * @summary Invite user to the organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json */ async function accessInviteUser() { const subscriptionId = @@ -33,15 +33,15 @@ async function accessInviteUser() { const body: AccessInviteUserAccountModel = { invitedUserDetails: { authType: "AUTH_TYPE_SSO", - invitedEmail: "user2@onmicrosoft.com" - } + invitedEmail: "user2@onmicrosoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.inviteUser( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListClustersSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListClustersSample.ts index 900e9a46d0e6..1b24afebc699 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListClustersSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListClustersSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Cluster details * * @summary Cluster details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json */ async function accessClusterList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessClusterList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listClusters( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListEnvironmentsSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListEnvironmentsSample.ts index 8b2a89bd89a3..897b1c50cf67 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListEnvironmentsSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListEnvironmentsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Environment list of an organization * * @summary Environment list of an organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json */ async function accessEnvironmentList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessEnvironmentList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listEnvironments( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListInvitationsSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListInvitationsSample.ts index b3a8ad0b4364..348bbc4315b7 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListInvitationsSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListInvitationsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization accounts invitation details * * @summary Organization accounts invitation details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json */ async function accessInvitationsList() { const subscriptionId = @@ -34,15 +34,15 @@ async function accessInvitationsList() { searchFilters: { pageSize: "10", pageToken: "asc4fts4ft", - status: "INVITE_STATUS_SENT" - } + status: "INVITE_STATUS_SENT", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listInvitations( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingNameListSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingNameListSample.ts new file mode 100644 index 000000000000..5a5f945a2ca3 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingNameListSample.ts @@ -0,0 +1,55 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ListAccessRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json + */ +async function accessRoleBindingNameList() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: ListAccessRequestModel = { + searchFilters: { + crnPattern: + "crn://confluent.cloud/organization=1aa7de07-298e-479c-8f2f-16ac91fd8e76", + namespace: + "public,dataplane,networking,identity,datagovernance,connect,streamcatalog,pipelines,ksql", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.listRoleBindingNameList( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessRoleBindingNameList(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingsSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingsSample.ts index 4cd5da44d1a5..ca28e87e9a1f 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingsSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListRoleBindingsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization role bindings * * @summary Organization role bindings - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json */ async function accessRoleBindingList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessRoleBindingList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listRoleBindings( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListServiceAccountsSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListServiceAccountsSample.ts index 4b5ffb8ea3d6..29d86e806bb4 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListServiceAccountsSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListServiceAccountsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization service accounts details * * @summary Organization service accounts details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json */ async function accessServiceAccountsList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessServiceAccountsList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listServiceAccounts( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/accessListUsersSample.ts b/sdk/confluent/arm-confluent/samples-dev/accessListUsersSample.ts index cf037a2c1b51..43d6badc7966 100644 --- a/sdk/confluent/arm-confluent/samples-dev/accessListUsersSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/accessListUsersSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization users details * * @summary Organization users details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json */ async function accessUsersList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessUsersList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listUsers( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsCreateSample.ts b/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsCreateSample.ts index 134427e70114..abc5964bfb3f 100644 --- a/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsCreateSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create Confluent Marketplace agreement in the subscription. * * @summary Create Confluent Marketplace agreement in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json */ async function marketplaceAgreementsCreate() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsListSample.ts b/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsListSample.ts index 0e601dd4df6a..fadf5d5fc293 100644 --- a/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsListSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/marketplaceAgreementsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List Confluent marketplace agreements in the subscription. * * @summary List Confluent marketplace agreements in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json */ async function marketplaceAgreementsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationCreateApiKeySample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationCreateApiKeySample.ts new file mode 100644 index 000000000000..23904416bdf3 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationCreateApiKeySample.ts @@ -0,0 +1,55 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CreateAPIKeyModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * + * @summary Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json + */ +async function organizationCreateApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "clusterId-123"; + const body: CreateAPIKeyModel = { + name: "CI kafka access key", + description: "This API key provides kafka access to cluster x", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.createAPIKey( + resourceGroupName, + organizationName, + environmentId, + clusterId, + body, + ); + console.log(result); +} + +async function main() { + organizationCreateApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationCreateSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationCreateSample.ts index 08fbb77de91f..5c9487ffed2b 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationCreateSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationCreateSample.ts @@ -11,7 +11,7 @@ import { OrganizationResource, OrganizationCreateOptionalParams, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create Organization resource * * @summary Create Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json */ async function organizationCreate() { const subscriptionId = @@ -41,7 +41,7 @@ async function organizationCreate() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -49,8 +49,8 @@ async function organizationCreate() { emailAddress: "contoso@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "contoso@microsoft.com" - } + userPrincipalName: "contoso@microsoft.com", + }, }; const options: OrganizationCreateOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -58,7 +58,7 @@ async function organizationCreate() { const result = await client.organization.beginCreateAndWait( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationDeleteClusterApiKeySample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationDeleteClusterApiKeySample.ts new file mode 100644 index 000000000000..0bdd114a48cd --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationDeleteClusterApiKeySample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes API key of a kafka or schema registry cluster + * + * @summary Deletes API key of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json + */ +async function organizationDeleteClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "ZFZ6SZZZWGYBEIFB"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.deleteClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationDeleteClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationDeleteSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationDeleteSample.ts index 7c4a5edbdd6b..df129918b09f 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationDeleteSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete Organization resource * * @summary Delete Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json */ async function confluentDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function confluentDelete() { const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.organization.beginDeleteAndWait( resourceGroupName, - organizationName + organizationName, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterApiKeySample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterApiKeySample.ts new file mode 100644 index 000000000000..a3ce47be0ad6 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterApiKeySample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get API key details of a kafka or schema registry cluster + * + * @summary Get API key details of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json + */ +async function organizationGetClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "apiKeyId-123"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterByIdSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterByIdSample.ts new file mode 100644 index 000000000000..0a9a7d91fc71 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetClusterByIdSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get cluster by Id + * + * @summary Get cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json + */ +async function organizationGetClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetEnvironmentByIdSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetEnvironmentByIdSample.ts new file mode 100644 index 000000000000..459f2b029aed --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetEnvironmentByIdSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get Environment details by environment Id + * + * @summary Get Environment details by environment Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json + */ +async function organizationGetEnvironmentById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getEnvironmentById( + resourceGroupName, + organizationName, + environmentId, + ); + console.log(result); +} + +async function main() { + organizationGetEnvironmentById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetSample.ts index 94b488337c74..9ba4cb107618 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationGetSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of a specific Organization resource. * * @summary Get the properties of a specific Organization resource. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json */ async function organizationGet() { const subscriptionId = @@ -31,7 +31,7 @@ async function organizationGet() { const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.organization.get( resourceGroupName, - organizationName + organizationName, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationGetSchemaRegistryClusterByIdSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationGetSchemaRegistryClusterByIdSample.ts new file mode 100644 index 000000000000..1bcdb5a65be4 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationGetSchemaRegistryClusterByIdSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get schema registry cluster by Id + * + * @summary Get schema registry cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json + */ +async function organizationGetSchemaRegistryClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const clusterId = "lsrc-stgczkq22z"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getSchemaRegistryClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetSchemaRegistryClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListByResourceGroupSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListByResourceGroupSample.ts index dd3152967243..2b6518a9d3af 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationListByResourceGroupSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all Organizations under the specified resource group. * * @summary List all Organizations under the specified resource group. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json */ async function organizationListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function organizationListByResourceGroup() { const client = new ConfluentManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.organization.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListBySubscriptionSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListBySubscriptionSample.ts index d74e0b6fd824..3b3bcf8cdc53 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationListBySubscriptionSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all organizations under the specified subscription. * * @summary List all organizations under the specified subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json */ async function organizationListBySubscription() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListClustersSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListClustersSample.ts new file mode 100644 index 000000000000..1ce1b5ff4c96 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListClustersSample.ts @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + OrganizationListClustersOptionalParams, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists of all the clusters in a environment + * + * @summary Lists of all the clusters in a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json + */ +async function organizationListClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const pageSize = 10; + const options: OrganizationListClustersOptionalParams = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listClusters( + resourceGroupName, + organizationName, + environmentId, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListEnvironmentsSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListEnvironmentsSample.ts new file mode 100644 index 000000000000..1c7712413e91 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListEnvironmentsSample.ts @@ -0,0 +1,52 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + OrganizationListEnvironmentsOptionalParams, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists of all the environments in a organization + * + * @summary Lists of all the environments in a organization + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json + */ +async function organizationListEnvironments() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const pageSize = 10; + const options: OrganizationListEnvironmentsOptionalParams = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listEnvironments( + resourceGroupName, + organizationName, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListEnvironments(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListRegionsSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListRegionsSample.ts new file mode 100644 index 000000000000..60011490dd32 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListRegionsSample.ts @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ListAccessRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to cloud provider regions available for creating Schema Registry clusters. + * + * @summary cloud provider regions available for creating Schema Registry clusters. + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json + */ +async function organizationListRegions() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: ListAccessRequestModel = { + searchFilters: { + cloud: "azure", + packages: "ADVANCED,ESSENTIALS", + region: "eastus", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.listRegions( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + organizationListRegions(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationListSchemaRegistryClustersSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationListSchemaRegistryClustersSample.ts new file mode 100644 index 000000000000..41085249e5d6 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples-dev/organizationListSchemaRegistryClustersSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get schema registry clusters + * + * @summary Get schema registry clusters + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json + */ +async function organizationListSchemaRegistryClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listSchemaRegistryClusters( + resourceGroupName, + organizationName, + environmentId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListSchemaRegistryClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationOperationsListSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationOperationsListSample.ts index 19a195322d40..2f956546ac1d 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationOperationsListSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationOperationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all operations provided by Microsoft.Confluent. * * @summary List all operations provided by Microsoft.Confluent. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json */ async function organizationOperationsList() { const credential = new DefaultAzureCredential(); diff --git a/sdk/confluent/arm-confluent/samples-dev/organizationUpdateSample.ts b/sdk/confluent/arm-confluent/samples-dev/organizationUpdateSample.ts index eb9f194ed417..c9aef3ca73cb 100644 --- a/sdk/confluent/arm-confluent/samples-dev/organizationUpdateSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/organizationUpdateSample.ts @@ -11,7 +11,7 @@ import { OrganizationResourceUpdate, OrganizationUpdateOptionalParams, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update Organization resource * * @summary Update Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json */ async function confluentUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function confluentUpdate() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: OrganizationResourceUpdate = { - tags: { client: "dev-client", env: "dev" } + tags: { client: "dev-client", env: "dev" }, }; const options: OrganizationUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function confluentUpdate() { const result = await client.organization.update( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationSample.ts b/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationSample.ts index 589cf820839a..a0e676cae85d 100644 --- a/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationSample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrganizationResource, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -39,7 +39,7 @@ async function validationsValidateOrganizations() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -47,15 +47,15 @@ async function validationsValidateOrganizations() { emailAddress: "abc@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "abc@microsoft.com" - } + userPrincipalName: "abc@microsoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.validations.validateOrganization( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationV2Sample.ts b/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationV2Sample.ts index a9d6c32e6bda..017ceb059578 100644 --- a/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationV2Sample.ts +++ b/sdk/confluent/arm-confluent/samples-dev/validationsValidateOrganizationV2Sample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrganizationResource, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -39,7 +39,7 @@ async function validationsValidateOrganizations() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -47,15 +47,15 @@ async function validationsValidateOrganizations() { emailAddress: "abc@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "abc@microsoft.com" - } + userPrincipalName: "abc@microsoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.validations.validateOrganizationV2( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/README.md b/sdk/confluent/arm-confluent/samples/v3/javascript/README.md index 01a17713c540..ce4ccccdc2c9 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/README.md +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/README.md @@ -2,26 +2,39 @@ These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accessInviteUserSample.js][accessinviteusersample] | Invite user to the organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json | -| [accessListClustersSample.js][accesslistclusterssample] | Cluster details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json | -| [accessListEnvironmentsSample.js][accesslistenvironmentssample] | Environment list of an organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json | -| [accessListInvitationsSample.js][accesslistinvitationssample] | Organization accounts invitation details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json | -| [accessListRoleBindingsSample.js][accesslistrolebindingssample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json | -| [accessListServiceAccountsSample.js][accesslistserviceaccountssample] | Organization service accounts details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json | -| [accessListUsersSample.js][accesslistuserssample] | Organization users details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json | -| [marketplaceAgreementsCreateSample.js][marketplaceagreementscreatesample] | Create Confluent Marketplace agreement in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json | -| [marketplaceAgreementsListSample.js][marketplaceagreementslistsample] | List Confluent marketplace agreements in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json | -| [organizationCreateSample.js][organizationcreatesample] | Create Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json | -| [organizationDeleteSample.js][organizationdeletesample] | Delete Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json | -| [organizationGetSample.js][organizationgetsample] | Get the properties of a specific Organization resource. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json | -| [organizationListByResourceGroupSample.js][organizationlistbyresourcegroupsample] | List all Organizations under the specified resource group. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json | -| [organizationListBySubscriptionSample.js][organizationlistbysubscriptionsample] | List all organizations under the specified subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json | -| [organizationOperationsListSample.js][organizationoperationslistsample] | List all operations provided by Microsoft.Confluent. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json | -| [organizationUpdateSample.js][organizationupdatesample] | Update Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json | -| [validationsValidateOrganizationSample.js][validationsvalidateorganizationsample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json | -| [validationsValidateOrganizationV2Sample.js][validationsvalidateorganizationv2sample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json | +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accessCreateRoleBindingSample.js][accesscreaterolebindingsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json | +| [accessDeleteRoleBindingSample.js][accessdeleterolebindingsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json | +| [accessInviteUserSample.js][accessinviteusersample] | Invite user to the organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json | +| [accessListClustersSample.js][accesslistclusterssample] | Cluster details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json | +| [accessListEnvironmentsSample.js][accesslistenvironmentssample] | Environment list of an organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json | +| [accessListInvitationsSample.js][accesslistinvitationssample] | Organization accounts invitation details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json | +| [accessListRoleBindingNameListSample.js][accesslistrolebindingnamelistsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json | +| [accessListRoleBindingsSample.js][accesslistrolebindingssample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json | +| [accessListServiceAccountsSample.js][accesslistserviceaccountssample] | Organization service accounts details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json | +| [accessListUsersSample.js][accesslistuserssample] | Organization users details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json | +| [marketplaceAgreementsCreateSample.js][marketplaceagreementscreatesample] | Create Confluent Marketplace agreement in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json | +| [marketplaceAgreementsListSample.js][marketplaceagreementslistsample] | List Confluent marketplace agreements in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json | +| [organizationCreateApiKeySample.js][organizationcreateapikeysample] | Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json | +| [organizationCreateSample.js][organizationcreatesample] | Create Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json | +| [organizationDeleteClusterApiKeySample.js][organizationdeleteclusterapikeysample] | Deletes API key of a kafka or schema registry cluster x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json | +| [organizationDeleteSample.js][organizationdeletesample] | Delete Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json | +| [organizationGetClusterApiKeySample.js][organizationgetclusterapikeysample] | Get API key details of a kafka or schema registry cluster x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json | +| [organizationGetClusterByIdSample.js][organizationgetclusterbyidsample] | Get cluster by Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json | +| [organizationGetEnvironmentByIdSample.js][organizationgetenvironmentbyidsample] | Get Environment details by environment Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json | +| [organizationGetSample.js][organizationgetsample] | Get the properties of a specific Organization resource. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json | +| [organizationGetSchemaRegistryClusterByIdSample.js][organizationgetschemaregistryclusterbyidsample] | Get schema registry cluster by Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json | +| [organizationListByResourceGroupSample.js][organizationlistbyresourcegroupsample] | List all Organizations under the specified resource group. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json | +| [organizationListBySubscriptionSample.js][organizationlistbysubscriptionsample] | List all organizations under the specified subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json | +| [organizationListClustersSample.js][organizationlistclusterssample] | Lists of all the clusters in a environment x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json | +| [organizationListEnvironmentsSample.js][organizationlistenvironmentssample] | Lists of all the environments in a organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json | +| [organizationListRegionsSample.js][organizationlistregionssample] | cloud provider regions available for creating Schema Registry clusters. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json | +| [organizationListSchemaRegistryClustersSample.js][organizationlistschemaregistryclusterssample] | Get schema registry clusters x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json | +| [organizationOperationsListSample.js][organizationoperationslistsample] | List all operations provided by Microsoft.Confluent. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json | +| [organizationUpdateSample.js][organizationupdatesample] | Update Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json | +| [validationsValidateOrganizationSample.js][validationsvalidateorganizationsample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json | +| [validationsValidateOrganizationV2Sample.js][validationsvalidateorganizationv2sample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json | ## Prerequisites @@ -48,33 +61,46 @@ npm install 3. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node accessInviteUserSample.js +node accessCreateRoleBindingSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env CONFLUENT_SUBSCRIPTION_ID="" CONFLUENT_RESOURCE_GROUP="" node accessInviteUserSample.js +npx cross-env CONFLUENT_SUBSCRIPTION_ID="" CONFLUENT_RESOURCE_GROUP="" node accessCreateRoleBindingSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. +[accesscreaterolebindingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js +[accessdeleterolebindingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js [accessinviteusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js [accesslistclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js [accesslistenvironmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js [accesslistinvitationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js +[accesslistrolebindingnamelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js [accesslistrolebindingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js [accesslistserviceaccountssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js [accesslistuserssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js [marketplaceagreementscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js [marketplaceagreementslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js +[organizationcreateapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js [organizationcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js +[organizationdeleteclusterapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js [organizationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js +[organizationgetclusterapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js +[organizationgetclusterbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js +[organizationgetenvironmentbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js [organizationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js +[organizationgetschemaregistryclusterbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js [organizationlistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js [organizationlistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js +[organizationlistclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js +[organizationlistenvironmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js +[organizationlistregionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js +[organizationlistschemaregistryclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js [organizationoperationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js [organizationupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js [validationsvalidateorganizationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js new file mode 100644 index 000000000000..6865af825658 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessCreateRoleBindingSample.js @@ -0,0 +1,42 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json + */ +async function accessCreateRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body = { + crnPattern: + "crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-aaa1111/cloud-cluster=lkc-1111aaa", + principal: "User:u-111aaa", + roleName: "CloudClusterAdmin", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.createRoleBinding(resourceGroupName, organizationName, body); + console.log(result); +} + +async function main() { + accessCreateRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js new file mode 100644 index 000000000000..d1f1c3400d06 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessDeleteRoleBindingSample.js @@ -0,0 +1,41 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json + */ +async function accessDeleteRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const roleBindingId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.deleteRoleBinding( + resourceGroupName, + organizationName, + roleBindingId, + ); + console.log(result); +} + +async function main() { + accessDeleteRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js index 816278118d62..05f6c4010681 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessInviteUserSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Invite user to the organization * * @summary Invite user to the organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json */ async function accessInviteUser() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js index 6d79b21ffcc1..2a3453d9ce8c 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListClustersSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Cluster details * * @summary Cluster details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json */ async function accessClusterList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js index 2bbe9854d808..d44de546d2ae 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListEnvironmentsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Environment list of an organization * * @summary Environment list of an organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json */ async function accessEnvironmentList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js index ae3caf2d893e..9d70512508ff 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListInvitationsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization accounts invitation details * * @summary Organization accounts invitation details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json */ async function accessInvitationsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js new file mode 100644 index 000000000000..ccc904a51cde --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingNameListSample.js @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json + */ +async function accessRoleBindingNameList() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body = { + searchFilters: { + crnPattern: "crn://confluent.cloud/organization=1aa7de07-298e-479c-8f2f-16ac91fd8e76", + namespace: + "public,dataplane,networking,identity,datagovernance,connect,streamcatalog,pipelines,ksql", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.listRoleBindingNameList( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessRoleBindingNameList(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js index a6a7f221199c..0f766145dbd2 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListRoleBindingsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization role bindings * * @summary Organization role bindings - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json */ async function accessRoleBindingList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js index a115760c015a..9e357162ed8f 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListServiceAccountsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization service accounts details * * @summary Organization service accounts details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json */ async function accessServiceAccountsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js index be183d01c6db..168cfbd73167 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/accessListUsersSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization users details * * @summary Organization users details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json */ async function accessUsersList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js index ddad98f9befb..fe40c0fc0a32 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create Confluent Marketplace agreement in the subscription. * * @summary Create Confluent Marketplace agreement in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json */ async function marketplaceAgreementsCreate() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js index f70367afd4e2..16d9f475bc72 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/marketplaceAgreementsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List Confluent marketplace agreements in the subscription. * * @summary List Confluent marketplace agreements in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json */ async function marketplaceAgreementsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js new file mode 100644 index 000000000000..e63102d2f479 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateApiKeySample.js @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * + * @summary Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json + */ +async function organizationCreateApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "clusterId-123"; + const body = { + name: "CI kafka access key", + description: "This API key provides kafka access to cluster x", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.createAPIKey( + resourceGroupName, + organizationName, + environmentId, + clusterId, + body, + ); + console.log(result); +} + +async function main() { + organizationCreateApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js index 72a00d2b36f1..6af0cdd2d9b6 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationCreateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Create Organization resource * * @summary Create Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json */ async function organizationCreate() { const subscriptionId = @@ -50,7 +50,7 @@ async function organizationCreate() { const result = await client.organization.beginCreateAndWait( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js new file mode 100644 index 000000000000..5423d74d8b0c --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteClusterApiKeySample.js @@ -0,0 +1,41 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes API key of a kafka or schema registry cluster + * + * @summary Deletes API key of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json + */ +async function organizationDeleteClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "ZFZ6SZZZWGYBEIFB"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.deleteClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationDeleteClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js index 1dac7d493432..de052be0de3c 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Delete Organization resource * * @summary Delete Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json */ async function confluentDelete() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js new file mode 100644 index 000000000000..c9fea7053a95 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterApiKeySample.js @@ -0,0 +1,41 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get API key details of a kafka or schema registry cluster + * + * @summary Get API key details of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json + */ +async function organizationGetClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "apiKeyId-123"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js new file mode 100644 index 000000000000..85091d644473 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetClusterByIdSample.js @@ -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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get cluster by Id + * + * @summary Get cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json + */ +async function organizationGetClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js new file mode 100644 index 000000000000..1fda60b7ae62 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetEnvironmentByIdSample.js @@ -0,0 +1,41 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get Environment details by environment Id + * + * @summary Get Environment details by environment Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json + */ +async function organizationGetEnvironmentById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getEnvironmentById( + resourceGroupName, + organizationName, + environmentId, + ); + console.log(result); +} + +async function main() { + organizationGetEnvironmentById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js index fa468ed7cf44..ba02ecff2722 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Get the properties of a specific Organization resource. * * @summary Get the properties of a specific Organization resource. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json */ async function organizationGet() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js new file mode 100644 index 000000000000..e456cdf84f03 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationGetSchemaRegistryClusterByIdSample.js @@ -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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get schema registry cluster by Id + * + * @summary Get schema registry cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json + */ +async function organizationGetSchemaRegistryClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const clusterId = "lsrc-stgczkq22z"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getSchemaRegistryClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetSchemaRegistryClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js index b768c92d6f6e..0fbc944fe690 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all Organizations under the specified resource group. * * @summary List all Organizations under the specified resource group. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json */ async function organizationListByResourceGroup() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js index 927f7f80c473..a53e7b621745 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all organizations under the specified subscription. * * @summary List all organizations under the specified subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json */ async function organizationListBySubscription() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js new file mode 100644 index 000000000000..be0e54e01d4e --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListClustersSample.js @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists of all the clusters in a environment + * + * @summary Lists of all the clusters in a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json + */ +async function organizationListClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const pageSize = 10; + const options = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listClusters( + resourceGroupName, + organizationName, + environmentId, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js new file mode 100644 index 000000000000..c3a28683620e --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListEnvironmentsSample.js @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists of all the environments in a organization + * + * @summary Lists of all the environments in a organization + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json + */ +async function organizationListEnvironments() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const pageSize = 10; + const options = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listEnvironments( + resourceGroupName, + organizationName, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListEnvironments(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js new file mode 100644 index 000000000000..0ce92a19678c --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListRegionsSample.js @@ -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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to cloud provider regions available for creating Schema Registry clusters. + * + * @summary cloud provider regions available for creating Schema Registry clusters. + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json + */ +async function organizationListRegions() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body = { + searchFilters: { + cloud: "azure", + packages: "ADVANCED,ESSENTIALS", + region: "eastus", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.listRegions(resourceGroupName, organizationName, body); + console.log(result); +} + +async function main() { + organizationListRegions(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js new file mode 100644 index 000000000000..8aa0e0de8fde --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationListSchemaRegistryClustersSample.js @@ -0,0 +1,44 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { ConfluentManagementClient } = require("@azure/arm-confluent"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get schema registry clusters + * + * @summary Get schema registry clusters + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json + */ +async function organizationListSchemaRegistryClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listSchemaRegistryClusters( + resourceGroupName, + organizationName, + environmentId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListSchemaRegistryClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js index 3e60bab13ae6..fe91fdf851de 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationOperationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to List all operations provided by Microsoft.Confluent. * * @summary List all operations provided by Microsoft.Confluent. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json */ async function organizationOperationsList() { const credential = new DefaultAzureCredential(); diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js index 1e773143b577..676d0890dcbc 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/organizationUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Update Organization resource * * @summary Update Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json */ async function confluentUpdate() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js index defa945b22bf..f24fdc2182ac 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -48,7 +48,7 @@ async function validationsValidateOrganizations() { const result = await client.validations.validateOrganization( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationV2Sample.js b/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationV2Sample.js index 31f47eae4587..59c1b45b09e7 100644 --- a/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationV2Sample.js +++ b/sdk/confluent/arm-confluent/samples/v3/javascript/validationsValidateOrganizationV2Sample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -48,7 +48,7 @@ async function validationsValidateOrganizations() { const result = await client.validations.validateOrganizationV2( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/README.md b/sdk/confluent/arm-confluent/samples/v3/typescript/README.md index 7cf7358dc4f9..f6f383e85ec1 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/README.md +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/README.md @@ -2,26 +2,39 @@ These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| [accessInviteUserSample.ts][accessinviteusersample] | Invite user to the organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json | -| [accessListClustersSample.ts][accesslistclusterssample] | Cluster details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json | -| [accessListEnvironmentsSample.ts][accesslistenvironmentssample] | Environment list of an organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json | -| [accessListInvitationsSample.ts][accesslistinvitationssample] | Organization accounts invitation details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json | -| [accessListRoleBindingsSample.ts][accesslistrolebindingssample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json | -| [accessListServiceAccountsSample.ts][accesslistserviceaccountssample] | Organization service accounts details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json | -| [accessListUsersSample.ts][accesslistuserssample] | Organization users details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json | -| [marketplaceAgreementsCreateSample.ts][marketplaceagreementscreatesample] | Create Confluent Marketplace agreement in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json | -| [marketplaceAgreementsListSample.ts][marketplaceagreementslistsample] | List Confluent marketplace agreements in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json | -| [organizationCreateSample.ts][organizationcreatesample] | Create Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json | -| [organizationDeleteSample.ts][organizationdeletesample] | Delete Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json | -| [organizationGetSample.ts][organizationgetsample] | Get the properties of a specific Organization resource. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json | -| [organizationListByResourceGroupSample.ts][organizationlistbyresourcegroupsample] | List all Organizations under the specified resource group. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json | -| [organizationListBySubscriptionSample.ts][organizationlistbysubscriptionsample] | List all organizations under the specified subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json | -| [organizationOperationsListSample.ts][organizationoperationslistsample] | List all operations provided by Microsoft.Confluent. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json | -| [organizationUpdateSample.ts][organizationupdatesample] | Update Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json | -| [validationsValidateOrganizationSample.ts][validationsvalidateorganizationsample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json | -| [validationsValidateOrganizationV2Sample.ts][validationsvalidateorganizationv2sample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json | +| **File Name** | **Description** | +| --------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [accessCreateRoleBindingSample.ts][accesscreaterolebindingsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json | +| [accessDeleteRoleBindingSample.ts][accessdeleterolebindingsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json | +| [accessInviteUserSample.ts][accessinviteusersample] | Invite user to the organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json | +| [accessListClustersSample.ts][accesslistclusterssample] | Cluster details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json | +| [accessListEnvironmentsSample.ts][accesslistenvironmentssample] | Environment list of an organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json | +| [accessListInvitationsSample.ts][accesslistinvitationssample] | Organization accounts invitation details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json | +| [accessListRoleBindingNameListSample.ts][accesslistrolebindingnamelistsample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json | +| [accessListRoleBindingsSample.ts][accesslistrolebindingssample] | Organization role bindings x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json | +| [accessListServiceAccountsSample.ts][accesslistserviceaccountssample] | Organization service accounts details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json | +| [accessListUsersSample.ts][accesslistuserssample] | Organization users details x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json | +| [marketplaceAgreementsCreateSample.ts][marketplaceagreementscreatesample] | Create Confluent Marketplace agreement in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json | +| [marketplaceAgreementsListSample.ts][marketplaceagreementslistsample] | List Confluent marketplace agreements in the subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json | +| [organizationCreateApiKeySample.ts][organizationcreateapikeysample] | Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json | +| [organizationCreateSample.ts][organizationcreatesample] | Create Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json | +| [organizationDeleteClusterApiKeySample.ts][organizationdeleteclusterapikeysample] | Deletes API key of a kafka or schema registry cluster x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json | +| [organizationDeleteSample.ts][organizationdeletesample] | Delete Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json | +| [organizationGetClusterApiKeySample.ts][organizationgetclusterapikeysample] | Get API key details of a kafka or schema registry cluster x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json | +| [organizationGetClusterByIdSample.ts][organizationgetclusterbyidsample] | Get cluster by Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json | +| [organizationGetEnvironmentByIdSample.ts][organizationgetenvironmentbyidsample] | Get Environment details by environment Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json | +| [organizationGetSample.ts][organizationgetsample] | Get the properties of a specific Organization resource. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json | +| [organizationGetSchemaRegistryClusterByIdSample.ts][organizationgetschemaregistryclusterbyidsample] | Get schema registry cluster by Id x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json | +| [organizationListByResourceGroupSample.ts][organizationlistbyresourcegroupsample] | List all Organizations under the specified resource group. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json | +| [organizationListBySubscriptionSample.ts][organizationlistbysubscriptionsample] | List all organizations under the specified subscription. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json | +| [organizationListClustersSample.ts][organizationlistclusterssample] | Lists of all the clusters in a environment x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json | +| [organizationListEnvironmentsSample.ts][organizationlistenvironmentssample] | Lists of all the environments in a organization x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json | +| [organizationListRegionsSample.ts][organizationlistregionssample] | cloud provider regions available for creating Schema Registry clusters. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json | +| [organizationListSchemaRegistryClustersSample.ts][organizationlistschemaregistryclusterssample] | Get schema registry clusters x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json | +| [organizationOperationsListSample.ts][organizationoperationslistsample] | List all operations provided by Microsoft.Confluent. x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json | +| [organizationUpdateSample.ts][organizationupdatesample] | Update Organization resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json | +| [validationsValidateOrganizationSample.ts][validationsvalidateorganizationsample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json | +| [validationsValidateOrganizationV2Sample.ts][validationsvalidateorganizationv2sample] | Organization Validate proxy resource x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json | ## Prerequisites @@ -60,33 +73,46 @@ npm run build 4. Run whichever samples you like (note that some samples may require additional setup, see the table above): ```bash -node dist/accessInviteUserSample.js +node dist/accessCreateRoleBindingSample.js ``` Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): ```bash -npx cross-env CONFLUENT_SUBSCRIPTION_ID="" CONFLUENT_RESOURCE_GROUP="" node dist/accessInviteUserSample.js +npx cross-env CONFLUENT_SUBSCRIPTION_ID="" CONFLUENT_RESOURCE_GROUP="" node dist/accessCreateRoleBindingSample.js ``` ## Next Steps Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. +[accesscreaterolebindingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts +[accessdeleterolebindingsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts [accessinviteusersample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts [accesslistclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts [accesslistenvironmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts [accesslistinvitationssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts +[accesslistrolebindingnamelistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts [accesslistrolebindingssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts [accesslistserviceaccountssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts [accesslistuserssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts [marketplaceagreementscreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts [marketplaceagreementslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts +[organizationcreateapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts [organizationcreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts +[organizationdeleteclusterapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts [organizationdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts +[organizationgetclusterapikeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts +[organizationgetclusterbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts +[organizationgetenvironmentbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts [organizationgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts +[organizationgetschemaregistryclusterbyidsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts [organizationlistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts [organizationlistbysubscriptionsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts +[organizationlistclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts +[organizationlistenvironmentssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts +[organizationlistregionssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts +[organizationlistschemaregistryclusterssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts [organizationoperationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts [organizationupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts [validationsvalidateorganizationsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts new file mode 100644 index 000000000000..197475b1f20c --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessCreateRoleBindingSample.ts @@ -0,0 +1,53 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + AccessCreateRoleBindingRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json + */ +async function accessCreateRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: AccessCreateRoleBindingRequestModel = { + crnPattern: + "crn://confluent.cloud/organization=1111aaaa-11aa-11aa-11aa-111111aaaaaa/environment=env-aaa1111/cloud-cluster=lkc-1111aaa", + principal: "User:u-111aaa", + roleName: "CloudClusterAdmin", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.createRoleBinding( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessCreateRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts new file mode 100644 index 000000000000..da5970a6c279 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessDeleteRoleBindingSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json + */ +async function accessDeleteRoleBinding() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const roleBindingId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.deleteRoleBinding( + resourceGroupName, + organizationName, + roleBindingId, + ); + console.log(result); +} + +async function main() { + accessDeleteRoleBinding(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts index 5634690a3ae1..c917ce28a1f1 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessInviteUserSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { AccessInviteUserAccountModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Invite user to the organization * * @summary Invite user to the organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InviteUser.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json */ async function accessInviteUser() { const subscriptionId = @@ -33,15 +33,15 @@ async function accessInviteUser() { const body: AccessInviteUserAccountModel = { invitedUserDetails: { authType: "AUTH_TYPE_SSO", - invitedEmail: "user2@onmicrosoft.com" - } + invitedEmail: "user2@onmicrosoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.inviteUser( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts index 900e9a46d0e6..1b24afebc699 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListClustersSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Cluster details * * @summary Cluster details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ClusterList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json */ async function accessClusterList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessClusterList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listClusters( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts index 8b2a89bd89a3..897b1c50cf67 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListEnvironmentsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Environment list of an organization * * @summary Environment list of an organization - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_EnvironmentList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json */ async function accessEnvironmentList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessEnvironmentList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listEnvironments( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts index b3a8ad0b4364..348bbc4315b7 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListInvitationsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization accounts invitation details * * @summary Organization accounts invitation details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_InvitationsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json */ async function accessInvitationsList() { const subscriptionId = @@ -34,15 +34,15 @@ async function accessInvitationsList() { searchFilters: { pageSize: "10", pageToken: "asc4fts4ft", - status: "INVITE_STATUS_SENT" - } + status: "INVITE_STATUS_SENT", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listInvitations( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts new file mode 100644 index 000000000000..5a5f945a2ca3 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingNameListSample.ts @@ -0,0 +1,55 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ListAccessRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Organization role bindings + * + * @summary Organization role bindings + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json + */ +async function accessRoleBindingNameList() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: ListAccessRequestModel = { + searchFilters: { + crnPattern: + "crn://confluent.cloud/organization=1aa7de07-298e-479c-8f2f-16ac91fd8e76", + namespace: + "public,dataplane,networking,identity,datagovernance,connect,streamcatalog,pipelines,ksql", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.access.listRoleBindingNameList( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + accessRoleBindingNameList(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts index 4cd5da44d1a5..ca28e87e9a1f 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListRoleBindingsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization role bindings * * @summary Organization role bindings - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_RoleBindingList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json */ async function accessRoleBindingList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessRoleBindingList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listRoleBindings( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts index 4b5ffb8ea3d6..29d86e806bb4 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListServiceAccountsSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization service accounts details * * @summary Organization service accounts details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_ServiceAccountsList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json */ async function accessServiceAccountsList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessServiceAccountsList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listServiceAccounts( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts index cf037a2c1b51..43d6badc7966 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/accessListUsersSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { ListAccessRequestModel, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization users details * * @summary Organization users details - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Access_UsersList.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json */ async function accessUsersList() { const subscriptionId = @@ -31,14 +31,14 @@ async function accessUsersList() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: ListAccessRequestModel = { - searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" } + searchFilters: { pageSize: "10", pageToken: "asc4fts4ft" }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.access.listUsers( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts index 134427e70114..abc5964bfb3f 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsCreateSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Create Confluent Marketplace agreement in the subscription. * * @summary Create Confluent Marketplace agreement in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json */ async function marketplaceAgreementsCreate() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts index 0e601dd4df6a..fadf5d5fc293 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/marketplaceAgreementsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List Confluent marketplace agreements in the subscription. * * @summary List Confluent marketplace agreements in the subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/MarketplaceAgreements_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json */ async function marketplaceAgreementsList() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts new file mode 100644 index 000000000000..23904416bdf3 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateApiKeySample.ts @@ -0,0 +1,55 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CreateAPIKeyModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * + * @summary Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json + */ +async function organizationCreateApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "clusterId-123"; + const body: CreateAPIKeyModel = { + name: "CI kafka access key", + description: "This API key provides kafka access to cluster x", + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.createAPIKey( + resourceGroupName, + organizationName, + environmentId, + clusterId, + body, + ); + console.log(result); +} + +async function main() { + organizationCreateApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts index 08fbb77de91f..5c9487ffed2b 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationCreateSample.ts @@ -11,7 +11,7 @@ import { OrganizationResource, OrganizationCreateOptionalParams, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Create Organization resource * * @summary Create Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Create.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json */ async function organizationCreate() { const subscriptionId = @@ -41,7 +41,7 @@ async function organizationCreate() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -49,8 +49,8 @@ async function organizationCreate() { emailAddress: "contoso@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "contoso@microsoft.com" - } + userPrincipalName: "contoso@microsoft.com", + }, }; const options: OrganizationCreateOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -58,7 +58,7 @@ async function organizationCreate() { const result = await client.organization.beginCreateAndWait( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts new file mode 100644 index 000000000000..0bdd114a48cd --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteClusterApiKeySample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes API key of a kafka or schema registry cluster + * + * @summary Deletes API key of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json + */ +async function organizationDeleteClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "ZFZ6SZZZWGYBEIFB"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.deleteClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationDeleteClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts index 7c4a5edbdd6b..df129918b09f 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Delete Organization resource * * @summary Delete Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Delete.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json */ async function confluentDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function confluentDelete() { const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.organization.beginDeleteAndWait( resourceGroupName, - organizationName + organizationName, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts new file mode 100644 index 000000000000..a3ce47be0ad6 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterApiKeySample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get API key details of a kafka or schema registry cluster + * + * @summary Get API key details of a kafka or schema registry cluster + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json + */ +async function organizationGetClusterApiKey() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const apiKeyId = "apiKeyId-123"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterAPIKey( + resourceGroupName, + organizationName, + apiKeyId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterApiKey(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts new file mode 100644 index 000000000000..0a9a7d91fc71 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetClusterByIdSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get cluster by Id + * + * @summary Get cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json + */ +async function organizationGetClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const clusterId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts new file mode 100644 index 000000000000..459f2b029aed --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetEnvironmentByIdSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get Environment details by environment Id + * + * @summary Get Environment details by environment Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json + */ +async function organizationGetEnvironmentById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "dlz-f3a90de"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getEnvironmentById( + resourceGroupName, + organizationName, + environmentId, + ); + console.log(result); +} + +async function main() { + organizationGetEnvironmentById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts index 94b488337c74..9ba4cb107618 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Get the properties of a specific Organization resource. * * @summary Get the properties of a specific Organization resource. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Get.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json */ async function organizationGet() { const subscriptionId = @@ -31,7 +31,7 @@ async function organizationGet() { const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.organization.get( resourceGroupName, - organizationName + organizationName, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts new file mode 100644 index 000000000000..1bcdb5a65be4 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationGetSchemaRegistryClusterByIdSample.ts @@ -0,0 +1,47 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get schema registry cluster by Id + * + * @summary Get schema registry cluster by Id + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json + */ +async function organizationGetSchemaRegistryClusterById() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const clusterId = "lsrc-stgczkq22z"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.getSchemaRegistryClusterById( + resourceGroupName, + organizationName, + environmentId, + clusterId, + ); + console.log(result); +} + +async function main() { + organizationGetSchemaRegistryClusterById(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts index dd3152967243..2b6518a9d3af 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all Organizations under the specified resource group. * * @summary List all Organizations under the specified resource group. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListByResourceGroup.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json */ async function organizationListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function organizationListByResourceGroup() { const client = new ConfluentManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.organization.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts index d74e0b6fd824..3b3bcf8cdc53 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all organizations under the specified subscription. * * @summary List all organizations under the specified subscription. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_ListBySubscription.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json */ async function organizationListBySubscription() { const subscriptionId = diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts new file mode 100644 index 000000000000..1ce1b5ff4c96 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListClustersSample.ts @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + OrganizationListClustersOptionalParams, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists of all the clusters in a environment + * + * @summary Lists of all the clusters in a environment + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json + */ +async function organizationListClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-12132"; + const pageSize = 10; + const options: OrganizationListClustersOptionalParams = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listClusters( + resourceGroupName, + organizationName, + environmentId, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts new file mode 100644 index 000000000000..1c7712413e91 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListEnvironmentsSample.ts @@ -0,0 +1,52 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + OrganizationListEnvironmentsOptionalParams, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists of all the environments in a organization + * + * @summary Lists of all the environments in a organization + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json + */ +async function organizationListEnvironments() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const pageSize = 10; + const options: OrganizationListEnvironmentsOptionalParams = { pageSize }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listEnvironments( + resourceGroupName, + organizationName, + options, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListEnvironments(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts new file mode 100644 index 000000000000..60011490dd32 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListRegionsSample.ts @@ -0,0 +1,54 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ListAccessRequestModel, + ConfluentManagementClient, +} from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to cloud provider regions available for creating Schema Registry clusters. + * + * @summary cloud provider regions available for creating Schema Registry clusters. + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json + */ +async function organizationListRegions() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const body: ListAccessRequestModel = { + searchFilters: { + cloud: "azure", + packages: "ADVANCED,ESSENTIALS", + region: "eastus", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const result = await client.organization.listRegions( + resourceGroupName, + organizationName, + body, + ); + console.log(result); +} + +async function main() { + organizationListRegions(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts new file mode 100644 index 000000000000..41085249e5d6 --- /dev/null +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationListSchemaRegistryClustersSample.ts @@ -0,0 +1,48 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { ConfluentManagementClient } from "@azure/arm-confluent"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get schema registry clusters + * + * @summary Get schema registry clusters + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json + */ +async function organizationListSchemaRegistryClusters() { + const subscriptionId = + process.env["CONFLUENT_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const resourceGroupName = + process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; + const organizationName = "myOrganization"; + const environmentId = "env-stgcczjp2j3"; + const credential = new DefaultAzureCredential(); + const client = new ConfluentManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.organization.listSchemaRegistryClusters( + resourceGroupName, + organizationName, + environmentId, + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + organizationListSchemaRegistryClusters(); +} + +main().catch(console.error); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts index 19a195322d40..2f956546ac1d 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationOperationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to List all operations provided by Microsoft.Confluent. * * @summary List all operations provided by Microsoft.Confluent. - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/OrganizationOperations_List.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/OrganizationOperations_List.json */ async function organizationOperationsList() { const credential = new DefaultAzureCredential(); diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts index eb9f194ed417..c9aef3ca73cb 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/organizationUpdateSample.ts @@ -11,7 +11,7 @@ import { OrganizationResourceUpdate, OrganizationUpdateOptionalParams, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -22,7 +22,7 @@ dotenv.config(); * This sample demonstrates how to Update Organization resource * * @summary Update Organization resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Organization_Update.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json */ async function confluentUpdate() { const subscriptionId = @@ -32,7 +32,7 @@ async function confluentUpdate() { process.env["CONFLUENT_RESOURCE_GROUP"] || "myResourceGroup"; const organizationName = "myOrganization"; const body: OrganizationResourceUpdate = { - tags: { client: "dev-client", env: "dev" } + tags: { client: "dev-client", env: "dev" }, }; const options: OrganizationUpdateOptionalParams = { body }; const credential = new DefaultAzureCredential(); @@ -40,7 +40,7 @@ async function confluentUpdate() { const result = await client.organization.update( resourceGroupName, organizationName, - options + options, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts index 589cf820839a..a0e676cae85d 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrganizationResource, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizations.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -39,7 +39,7 @@ async function validationsValidateOrganizations() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -47,15 +47,15 @@ async function validationsValidateOrganizations() { emailAddress: "abc@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "abc@microsoft.com" - } + userPrincipalName: "abc@microsoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.validations.validateOrganization( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationV2Sample.ts b/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationV2Sample.ts index a9d6c32e6bda..017ceb059578 100644 --- a/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationV2Sample.ts +++ b/sdk/confluent/arm-confluent/samples/v3/typescript/src/validationsValidateOrganizationV2Sample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { OrganizationResource, - ConfluentManagementClient + ConfluentManagementClient, } from "@azure/arm-confluent"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Organization Validate proxy resource * * @summary Organization Validate proxy resource - * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2023-08-22/examples/Validations_ValidateOrganizationsV2.json + * x-ms-original-file: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json */ async function validationsValidateOrganizations() { const subscriptionId = @@ -39,7 +39,7 @@ async function validationsValidateOrganizations() { privateOfferId: "string", privateOfferIds: ["string"], publisherId: "string", - termUnit: "string" + termUnit: "string", }, tags: { environment: "Dev" }, userDetail: { @@ -47,15 +47,15 @@ async function validationsValidateOrganizations() { emailAddress: "abc@microsoft.com", firstName: "string", lastName: "string", - userPrincipalName: "abc@microsoft.com" - } + userPrincipalName: "abc@microsoft.com", + }, }; const credential = new DefaultAzureCredential(); const client = new ConfluentManagementClient(credential, subscriptionId); const result = await client.validations.validateOrganizationV2( resourceGroupName, organizationName, - body + body, ); console.log(result); } diff --git a/sdk/confluent/arm-confluent/src/confluentManagementClient.ts b/sdk/confluent/arm-confluent/src/confluentManagementClient.ts index 32ac598b7030..09d848fa33ef 100644 --- a/sdk/confluent/arm-confluent/src/confluentManagementClient.ts +++ b/sdk/confluent/arm-confluent/src/confluentManagementClient.ts @@ -11,7 +11,7 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { @@ -19,14 +19,14 @@ import { OrganizationOperationsImpl, OrganizationImpl, ValidationsImpl, - AccessImpl + AccessImpl, } from "./operations"; import { MarketplaceAgreements, OrganizationOperations, Organization, Validations, - Access + Access, } from "./operationsInterfaces"; import { ConfluentManagementClientOptionalParams } from "./models"; @@ -38,22 +38,22 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the ConfluentManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The ID of the target subscription. The value must be an UUID. + * @param subscriptionId Microsoft Azure subscription id * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: ConfluentManagementClientOptionalParams + options?: ConfluentManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, - options?: ConfluentManagementClientOptionalParams + options?: ConfluentManagementClientOptionalParams, ); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: ConfluentManagementClientOptionalParams | string, - options?: ConfluentManagementClientOptionalParams + options?: ConfluentManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -73,10 +73,10 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { } const defaults: ConfluentManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-confluent/3.0.1`; + const packageDetails = `azsdk-js-arm-confluent/3.1.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -86,20 +86,21 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -109,7 +110,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -119,9 +120,9 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -129,7 +130,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-08-22"; + this.apiVersion = options.apiVersion || "2024-02-13"; this.marketplaceAgreements = new MarketplaceAgreementsImpl(this); this.organizationOperations = new OrganizationOperationsImpl(this); this.organization = new OrganizationImpl(this); @@ -147,7 +148,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -161,7 +162,7 @@ export class ConfluentManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/confluent/arm-confluent/src/lroImpl.ts b/sdk/confluent/arm-confluent/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/confluent/arm-confluent/src/lroImpl.ts +++ b/sdk/confluent/arm-confluent/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/confluent/arm-confluent/src/models/index.ts b/sdk/confluent/arm-confluent/src/models/index.ts index fd7750cf9700..0e669c7d40af 100644 --- a/sdk/confluent/arm-confluent/src/models/index.ts +++ b/sdk/confluent/arm-confluent/src/models/index.ts @@ -385,17 +385,17 @@ export interface AccessInvitedUserDetails { authType?: string; } -/** List environments success response */ +/** Details of the environments returned on successful response */ export interface AccessListEnvironmentsSuccessResponse { /** Type of response */ kind?: string; - /** Metadata of the list */ + /** Metadata of the environment list */ metadata?: ConfluentListMetadata; - /** Data of the environments list */ + /** Environment list data */ data?: EnvironmentRecord[]; } -/** Record of the environment */ +/** Details about environment name, metadata and environment id of an environment */ export interface EnvironmentRecord { /** Type of environment */ kind?: string; @@ -407,25 +407,25 @@ export interface EnvironmentRecord { displayName?: string; } -/** List cluster success response */ +/** Details of the clusters returned on successful response */ export interface AccessListClusterSuccessResponse { /** Type of response */ kind?: string; /** Metadata of the list */ metadata?: ConfluentListMetadata; - /** Data of the environments list */ + /** List of clusters */ data?: ClusterRecord[]; } -/** Record of the environment */ +/** Details of cluster record */ export interface ClusterRecord { - /** Type of environment */ + /** Type of cluster */ kind?: string; - /** Id of the environment */ + /** Id of the cluster */ id?: string; /** Metadata of the record */ metadata?: MetadataEntity; - /** Display name of the user */ + /** Display name of the cluster */ displayName?: string; /** Specification of the cluster */ spec?: ClusterSpecEntity; @@ -509,21 +509,21 @@ export interface ClusterStatusEntity { cku?: number; } -/** List cluster success response */ +/** Details of the role bindings returned on successful response */ export interface AccessListRoleBindingsSuccessResponse { /** Type of response */ kind?: string; /** Metadata of the list */ metadata?: ConfluentListMetadata; - /** Data of the environments list */ + /** List of role binding */ data?: RoleBindingRecord[]; } -/** Record of the environment */ +/** Details on principal, role name and crn pattern of a role binding */ export interface RoleBindingRecord { /** The type of the resource. */ kind?: string; - /** Id of the role */ + /** Id of the role binding */ id?: string; /** Metadata of the record */ metadata?: MetadataEntity; @@ -535,6 +535,291 @@ export interface RoleBindingRecord { crnPattern?: string; } +/** Create role binding request model */ +export interface AccessCreateRoleBindingRequestModel { + /** The principal User or Group to bind the role to */ + principal?: string; + /** The name of the role to bind to the principal */ + roleName?: string; + /** A CRN that specifies the scope and resource patterns necessary for the role to bind */ + crnPattern?: string; +} + +/** Details of the role binding names returned on successful response */ +export interface AccessRoleBindingNameListSuccessResponse { + /** Type of response */ + kind?: string; + /** Metadata of the list */ + metadata?: ConfluentListMetadata; + /** List of role binding names */ + data?: string[]; +} + +/** Result of GET request to list Confluent operations. */ +export interface GetEnvironmentsResponse { + /** List of environments in a confluent organization */ + value?: SCEnvironmentRecord[]; + /** URL to get the next set of environment records if there are any. */ + nextLink?: string; +} + +/** Details about environment name, metadata and environment id of an environment */ +export interface SCEnvironmentRecord { + /** Type of environment */ + kind?: string; + /** Id of the environment */ + id?: string; + /** Display name of the environment */ + name?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; +} + +/** Metadata of the data record */ +export interface SCMetadataEntity { + /** Self lookup url */ + self?: string; + /** Resource name of the record */ + resourceName?: string; + /** Created Date Time */ + createdTimestamp?: string; + /** Updated Date time */ + updatedTimestamp?: string; + /** Deleted Date time */ + deletedTimestamp?: string; +} + +/** Result of GET request to list clusters in the environment of a confluent organization */ +export interface ListClustersSuccessResponse { + /** List of clusters in an environment of a confluent organization */ + value?: SCClusterRecord[]; + /** URL to get the next set of cluster records if there are any. */ + nextLink?: string; +} + +/** Details of cluster record */ +export interface SCClusterRecord { + /** Type of cluster */ + kind?: string; + /** Id of the cluster */ + id?: string; + /** Display name of the cluster */ + name?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; + /** Specification of the cluster */ + spec?: SCClusterSpecEntity; + /** Specification of the cluster status */ + status?: ClusterStatusEntity; +} + +/** Spec of the cluster record */ +export interface SCClusterSpecEntity { + /** The name of the cluster */ + name?: string; + /** The availability zone configuration of the cluster */ + availability?: string; + /** The cloud service provider */ + cloud?: string; + /** type of zone availability */ + zone?: string; + /** The cloud service provider region */ + region?: string; + /** The bootstrap endpoint used by Kafka clients to connect to the cluster */ + kafkaBootstrapEndpoint?: string; + /** The cluster HTTP request URL. */ + httpEndpoint?: string; + /** The Kafka API cluster endpoint */ + apiEndpoint?: string; + /** Specification of the cluster configuration */ + config?: ClusterConfigEntity; + /** Specification of the cluster environment */ + environment?: SCClusterNetworkEnvironmentEntity; + /** Specification of the cluster network */ + network?: SCClusterNetworkEnvironmentEntity; + /** Specification of the cluster byok */ + byok?: SCClusterByokEntity; +} + +/** The environment or the network to which cluster belongs */ +export interface SCClusterNetworkEnvironmentEntity { + /** ID of the referred resource */ + id?: string; + /** Environment of the referred resource */ + environment?: string; + /** API URL for accessing or modifying the referred object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; +} + +/** The network associated with this object */ +export interface SCClusterByokEntity { + /** ID of the referred resource */ + id?: string; + /** API URL for accessing or modifying the referred object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; +} + +/** Result of GET request to list schema registry clusters in the environment of a confluent organization */ +export interface ListSchemaRegistryClustersResponse { + /** List of schema registry clusters in an environment of a confluent organization */ + value?: SchemaRegistryClusterRecord[]; + /** URL to get the next set of schema registry cluster records if there are any. */ + nextLink?: string; +} + +/** Details of schema registry cluster record */ +export interface SchemaRegistryClusterRecord { + /** Kind of the cluster */ + kind?: string; + /** Id of the cluster */ + id?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; + /** Specification of the schema registry cluster */ + spec?: SchemaRegistryClusterSpecEntity; + /** Specification of the cluster status */ + status?: SchemaRegistryClusterStatusEntity; +} + +/** Details of schema registry cluster spec */ +export interface SchemaRegistryClusterSpecEntity { + /** Name of the schema registry cluster */ + name?: string; + /** Http endpoint of the cluster */ + httpEndpoint?: string; + /** Type of the cluster package Advanced, essentials */ + package?: string; + /** Region details of the schema registry cluster */ + region?: SchemaRegistryClusterEnvironmentRegionEntity; + /** Environment details of the schema registry cluster */ + environment?: SchemaRegistryClusterEnvironmentRegionEntity; + /** The cloud service provider */ + cloud?: string; +} + +/** The environment associated with this object */ +export interface SchemaRegistryClusterEnvironmentRegionEntity { + /** ID of the referred resource */ + id?: string; + /** API URL for accessing or modifying the referred object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; +} + +/** Status of the schema registry cluster record */ +export interface SchemaRegistryClusterStatusEntity { + /** The lifecycle phase of the cluster */ + phase?: string; +} + +/** Result of POST request to list regions supported by confluent */ +export interface ListRegionsSuccessResponse { + /** List of regions supported by confluent */ + data?: RegionRecord[]; +} + +/** Details of region record */ +export interface RegionRecord { + /** Kind of the cluster */ + kind?: string; + /** Id of the cluster */ + id?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; + /** Specification of the region */ + spec?: RegionSpecEntity; +} + +/** Region spec details */ +export interface RegionSpecEntity { + /** Display Name of the region */ + name?: string; + /** Cloud provider name */ + cloud?: string; + /** Region name */ + regionName?: string; + packages?: string[]; +} + +/** Create API Key model */ +export interface CreateAPIKeyModel { + /** Name of the API Key */ + name?: string; + /** Description of the API Key */ + description?: string; +} + +/** Details API key */ +export interface APIKeyRecord { + /** Type of api key */ + kind?: string; + /** Id of the api key */ + id?: string; + /** Metadata of the record */ + metadata?: SCMetadataEntity; + /** Specification of the API Key */ + spec?: APIKeySpecEntity; +} + +/** Spec of the API Key record */ +export interface APIKeySpecEntity { + /** The description of the API Key */ + description?: string; + /** The name of the API Key */ + name?: string; + /** API Key Secret */ + secret?: string; + /** Specification of the cluster */ + resource?: APIKeyResourceEntity; + /** Specification of the cluster */ + owner?: APIKeyOwnerEntity; +} + +/** API Key Resource details which can be kafka cluster or schema registry cluster */ +export interface APIKeyResourceEntity { + /** Id of the resource */ + id?: string; + /** The environment of the api key */ + environment?: string; + /** API URL for accessing or modifying the api key resource object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; + /** Type of the owner which can be service or user account */ + kind?: string; +} + +/** API Key Owner details which can be a user or service account */ +export interface APIKeyOwnerEntity { + /** API Key owner id */ + id?: string; + /** API URL for accessing or modifying the referred object */ + related?: string; + /** CRN reference to the referred resource */ + resourceName?: string; + /** Type of the owner service or user account */ + kind?: string; +} + +/** Metadata of the list */ +export interface SCConfluentListMetadata { + /** First page of the list */ + first?: string; + /** Last page of the list */ + last?: string; + /** Previous page of the list */ + prev?: string; + /** Next page of the list */ + next?: string; + /** Total size of the list */ + totalSize?: number; +} + /** Known values of {@link CreatedByType} that the service accepts. */ export enum KnownCreatedByType { /** User */ @@ -544,7 +829,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -578,7 +863,7 @@ export enum KnownProvisionState { /** Deleted */ Deleted = "Deleted", /** NotSpecified */ - NotSpecified = "NotSpecified" + NotSpecified = "NotSpecified", } /** @@ -619,7 +904,7 @@ export enum KnownSaaSOfferStatus { /** Unsubscribed */ Unsubscribed = "Unsubscribed", /** Updating */ - Updating = "Updating" + Updating = "Updating", } /** @@ -645,7 +930,8 @@ export interface MarketplaceAgreementsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type MarketplaceAgreementsListResponse = ConfluentAgreementResourceListResponse; +export type MarketplaceAgreementsListResponse = + ConfluentAgreementResourceListResponse; /** Optional parameters. */ export interface MarketplaceAgreementsCreateOptionalParams @@ -662,7 +948,8 @@ export interface MarketplaceAgreementsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type MarketplaceAgreementsListNextResponse = ConfluentAgreementResourceListResponse; +export type MarketplaceAgreementsListNextResponse = + ConfluentAgreementResourceListResponse; /** Optional parameters. */ export interface OrganizationOperationsListOptionalParams @@ -683,14 +970,16 @@ export interface OrganizationListBySubscriptionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscription operation. */ -export type OrganizationListBySubscriptionResponse = OrganizationResourceListResult; +export type OrganizationListBySubscriptionResponse = + OrganizationResourceListResult; /** Optional parameters. */ export interface OrganizationListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type OrganizationListByResourceGroupResponse = OrganizationResourceListResult; +export type OrganizationListByResourceGroupResponse = + OrganizationResourceListResult; /** Optional parameters. */ export interface OrganizationGetOptionalParams @@ -732,19 +1021,127 @@ export interface OrganizationDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface OrganizationListEnvironmentsOptionalParams + extends coreClient.OperationOptions { + /** Pagination size */ + pageSize?: number; + /** An opaque pagination token to fetch the next set of records */ + pageToken?: string; +} + +/** Contains response data for the listEnvironments operation. */ +export type OrganizationListEnvironmentsResponse = GetEnvironmentsResponse; + +/** Optional parameters. */ +export interface OrganizationGetEnvironmentByIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getEnvironmentById operation. */ +export type OrganizationGetEnvironmentByIdResponse = SCEnvironmentRecord; + +/** Optional parameters. */ +export interface OrganizationListClustersOptionalParams + extends coreClient.OperationOptions { + /** Pagination size */ + pageSize?: number; + /** An opaque pagination token to fetch the next set of records */ + pageToken?: string; +} + +/** Contains response data for the listClusters operation. */ +export type OrganizationListClustersResponse = ListClustersSuccessResponse; + +/** Optional parameters. */ +export interface OrganizationListSchemaRegistryClustersOptionalParams + extends coreClient.OperationOptions { + /** Pagination size */ + pageSize?: number; + /** An opaque pagination token to fetch the next set of records */ + pageToken?: string; +} + +/** Contains response data for the listSchemaRegistryClusters operation. */ +export type OrganizationListSchemaRegistryClustersResponse = + ListSchemaRegistryClustersResponse; + +/** Optional parameters. */ +export interface OrganizationListRegionsOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listRegions operation. */ +export type OrganizationListRegionsResponse = ListRegionsSuccessResponse; + +/** Optional parameters. */ +export interface OrganizationCreateAPIKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createAPIKey operation. */ +export type OrganizationCreateAPIKeyResponse = APIKeyRecord; + +/** Optional parameters. */ +export interface OrganizationDeleteClusterAPIKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface OrganizationGetClusterAPIKeyOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getClusterAPIKey operation. */ +export type OrganizationGetClusterAPIKeyResponse = APIKeyRecord; + +/** Optional parameters. */ +export interface OrganizationGetSchemaRegistryClusterByIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getSchemaRegistryClusterById operation. */ +export type OrganizationGetSchemaRegistryClusterByIdResponse = + SchemaRegistryClusterRecord; + +/** Optional parameters. */ +export interface OrganizationGetClusterByIdOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the getClusterById operation. */ +export type OrganizationGetClusterByIdResponse = SCClusterRecord; + /** Optional parameters. */ export interface OrganizationListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listBySubscriptionNext operation. */ -export type OrganizationListBySubscriptionNextResponse = OrganizationResourceListResult; +export type OrganizationListBySubscriptionNextResponse = + OrganizationResourceListResult; /** Optional parameters. */ export interface OrganizationListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type OrganizationListByResourceGroupNextResponse = OrganizationResourceListResult; +export type OrganizationListByResourceGroupNextResponse = + OrganizationResourceListResult; + +/** Optional parameters. */ +export interface OrganizationListEnvironmentsNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listEnvironmentsNext operation. */ +export type OrganizationListEnvironmentsNextResponse = GetEnvironmentsResponse; + +/** Optional parameters. */ +export interface OrganizationListClustersNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listClustersNext operation. */ +export type OrganizationListClustersNextResponse = ListClustersSuccessResponse; + +/** Optional parameters. */ +export interface OrganizationListSchemaRegistryClustersNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listSchemaRegistryClustersNext operation. */ +export type OrganizationListSchemaRegistryClustersNextResponse = + ListSchemaRegistryClustersResponse; /** Optional parameters. */ export interface ValidationsValidateOrganizationOptionalParams @@ -772,14 +1169,16 @@ export interface AccessListServiceAccountsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listServiceAccounts operation. */ -export type AccessListServiceAccountsResponse = AccessListServiceAccountsSuccessResponse; +export type AccessListServiceAccountsResponse = + AccessListServiceAccountsSuccessResponse; /** Optional parameters. */ export interface AccessListInvitationsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listInvitations operation. */ -export type AccessListInvitationsResponse = AccessListInvitationsSuccessResponse; +export type AccessListInvitationsResponse = + AccessListInvitationsSuccessResponse; /** Optional parameters. */ export interface AccessInviteUserOptionalParams @@ -793,7 +1192,8 @@ export interface AccessListEnvironmentsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listEnvironments operation. */ -export type AccessListEnvironmentsResponse = AccessListEnvironmentsSuccessResponse; +export type AccessListEnvironmentsResponse = + AccessListEnvironmentsSuccessResponse; /** Optional parameters. */ export interface AccessListClustersOptionalParams @@ -807,7 +1207,27 @@ export interface AccessListRoleBindingsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listRoleBindings operation. */ -export type AccessListRoleBindingsResponse = AccessListRoleBindingsSuccessResponse; +export type AccessListRoleBindingsResponse = + AccessListRoleBindingsSuccessResponse; + +/** Optional parameters. */ +export interface AccessCreateRoleBindingOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createRoleBinding operation. */ +export type AccessCreateRoleBindingResponse = RoleBindingRecord; + +/** Optional parameters. */ +export interface AccessDeleteRoleBindingOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AccessListRoleBindingNameListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listRoleBindingNameList operation. */ +export type AccessListRoleBindingNameListResponse = + AccessRoleBindingNameListSuccessResponse; /** Optional parameters. */ export interface ConfluentManagementClientOptionalParams diff --git a/sdk/confluent/arm-confluent/src/models/mappers.ts b/sdk/confluent/arm-confluent/src/models/mappers.ts index 4991f3974b05..b2a950b00d89 100644 --- a/sdk/confluent/arm-confluent/src/models/mappers.ts +++ b/sdk/confluent/arm-confluent/src/models/mappers.ts @@ -8,32 +8,33 @@ import * as coreClient from "@azure/core-client"; -export const ConfluentAgreementResourceListResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConfluentAgreementResourceListResponse", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConfluentAgreementResource" - } - } - } +export const ConfluentAgreementResourceListResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ConfluentAgreementResourceListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConfluentAgreementResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const ConfluentAgreementResource: coreClient.CompositeMapper = { type: { @@ -44,80 +45,80 @@ export const ConfluentAgreementResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, publisher: { serializedName: "properties.publisher", type: { - name: "String" - } + name: "String", + }, }, product: { serializedName: "properties.product", type: { - name: "String" - } + name: "String", + }, }, plan: { serializedName: "properties.plan", type: { - name: "String" - } + name: "String", + }, }, licenseTextLink: { serializedName: "properties.licenseTextLink", type: { - name: "String" - } + name: "String", + }, }, privacyPolicyLink: { serializedName: "properties.privacyPolicyLink", type: { - name: "String" - } + name: "String", + }, }, retrieveDatetime: { serializedName: "properties.retrieveDatetime", type: { - name: "DateTime" - } + name: "DateTime", + }, }, signature: { serializedName: "properties.signature", type: { - name: "String" - } + name: "String", + }, }, accepted: { serializedName: "properties.accepted", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -128,58 +129,59 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceProviderDefaultErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } - } - } - } -}; +export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ResourceProviderDefaultErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorResponseBody", + }, + }, + }, + }, + }; export const ErrorResponseBody: coreClient.CompositeMapper = { type: { @@ -190,22 +192,22 @@ export const ErrorResponseBody: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -215,13 +217,13 @@ export const ErrorResponseBody: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorResponseBody" - } - } - } - } - } - } + className: "ErrorResponseBody", + }, + }, + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -236,19 +238,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationResult" - } - } - } + className: "OperationResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationResult: coreClient.CompositeMapper = { @@ -259,24 +261,24 @@ export const OperationResult: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -287,29 +289,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OrganizationResourceListResult: coreClient.CompositeMapper = { @@ -324,19 +326,19 @@ export const OrganizationResourceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OrganizationResource" - } - } - } + className: "OrganizationResource", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OrganizationResource: coreClient.CompositeMapper = { @@ -348,94 +350,94 @@ export const OrganizationResource: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } + className: "SystemData", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, createdTime: { serializedName: "properties.createdTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, provisioningState: { serializedName: "properties.provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, organizationId: { serializedName: "properties.organizationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, ssoUrl: { serializedName: "properties.ssoUrl", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, offerDetail: { serializedName: "properties.offerDetail", type: { name: "Composite", - className: "OfferDetail" - } + className: "OfferDetail", + }, }, userDetail: { serializedName: "properties.userDetail", type: { name: "Composite", - className: "UserDetail" - } + className: "UserDetail", + }, }, linkOrganization: { serializedName: "properties.linkOrganization", type: { name: "Composite", - className: "LinkOrganization" - } - } - } - } + className: "LinkOrganization", + }, + }, + }, + }, }; export const OfferDetail: coreClient.CompositeMapper = { @@ -445,71 +447,71 @@ export const OfferDetail: coreClient.CompositeMapper = { modelProperties: { publisherId: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "publisherId", required: true, type: { - name: "String" - } + name: "String", + }, }, id: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "id", required: true, type: { - name: "String" - } + name: "String", + }, }, planId: { constraints: { - MaxLength: 200 + MaxLength: 200, }, serializedName: "planId", required: true, type: { - name: "String" - } + name: "String", + }, }, planName: { constraints: { - MaxLength: 200 + MaxLength: 200, }, serializedName: "planName", required: true, type: { - name: "String" - } + name: "String", + }, }, termUnit: { constraints: { - MaxLength: 25 + MaxLength: 25, }, serializedName: "termUnit", required: true, type: { - name: "String" - } + name: "String", + }, }, termId: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "termId", type: { - name: "String" - } + name: "String", + }, }, privateOfferId: { constraints: { - MaxLength: 255 + MaxLength: 255, }, serializedName: "privateOfferId", type: { - name: "String" - } + name: "String", + }, }, privateOfferIds: { serializedName: "privateOfferIds", @@ -517,19 +519,19 @@ export const OfferDetail: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, status: { serializedName: "status", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const UserDetail: coreClient.CompositeMapper = { @@ -539,46 +541,46 @@ export const UserDetail: coreClient.CompositeMapper = { modelProperties: { firstName: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "firstName", type: { - name: "String" - } + name: "String", + }, }, lastName: { constraints: { - MaxLength: 50 + MaxLength: 50, }, serializedName: "lastName", type: { - name: "String" - } + name: "String", + }, }, emailAddress: { constraints: { - Pattern: new RegExp("^\\S+@\\S+\\.\\S+$") + Pattern: new RegExp("^\\S+@\\S+\\.\\S+$"), }, serializedName: "emailAddress", required: true, type: { - name: "String" - } + name: "String", + }, }, userPrincipalName: { serializedName: "userPrincipalName", type: { - name: "String" - } + name: "String", + }, }, aadEmail: { serializedName: "aadEmail", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LinkOrganization: coreClient.CompositeMapper = { @@ -590,11 +592,11 @@ export const LinkOrganization: coreClient.CompositeMapper = { serializedName: "token", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OrganizationResourceUpdate: coreClient.CompositeMapper = { @@ -606,11 +608,11 @@ export const OrganizationResourceUpdate: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ValidationResponse: coreClient.CompositeMapper = { @@ -622,11 +624,11 @@ export const ValidationResponse: coreClient.CompositeMapper = { serializedName: "info", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const ListAccessRequestModel: coreClient.CompositeMapper = { @@ -638,11 +640,11 @@ export const ListAccessRequestModel: coreClient.CompositeMapper = { serializedName: "searchFilters", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const AccessListUsersSuccessResponse: coreClient.CompositeMapper = { @@ -653,15 +655,15 @@ export const AccessListUsersSuccessResponse: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "ConfluentListMetadata" - } + className: "ConfluentListMetadata", + }, }, data: { serializedName: "data", @@ -670,13 +672,13 @@ export const AccessListUsersSuccessResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "UserRecord" - } - } - } - } - } - } + className: "UserRecord", + }, + }, + }, + }, + }, + }, }; export const ConfluentListMetadata: coreClient.CompositeMapper = { @@ -687,35 +689,35 @@ export const ConfluentListMetadata: coreClient.CompositeMapper = { first: { serializedName: "first", type: { - name: "String" - } + name: "String", + }, }, last: { serializedName: "last", type: { - name: "String" - } + name: "String", + }, }, prev: { serializedName: "prev", type: { - name: "String" - } + name: "String", + }, }, next: { serializedName: "next", type: { - name: "String" - } + name: "String", + }, }, totalSize: { serializedName: "total_size", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const UserRecord: coreClient.CompositeMapper = { @@ -726,42 +728,42 @@ export const UserRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, email: { serializedName: "email", type: { - name: "String" - } + name: "String", + }, }, fullName: { serializedName: "full_name", type: { - name: "String" - } + name: "String", + }, }, authType: { serializedName: "auth_type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const MetadataEntity: coreClient.CompositeMapper = { @@ -772,70 +774,71 @@ export const MetadataEntity: coreClient.CompositeMapper = { self: { serializedName: "self", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resource_name", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "created_at", type: { - name: "String" - } + name: "String", + }, }, updatedAt: { serializedName: "updated_at", type: { - name: "String" - } + name: "String", + }, }, deletedAt: { serializedName: "deleted_at", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessListServiceAccountsSuccessResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessListServiceAccountsSuccessResponse", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "ConfluentListMetadata" - } +export const AccessListServiceAccountsSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessListServiceAccountsSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServiceAccountRecord", + }, + }, + }, + }, }, - data: { - serializedName: "data", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServiceAccountRecord" - } - } - } - } - } - } -}; + }, + }; export const ServiceAccountRecord: coreClient.CompositeMapper = { type: { @@ -845,71 +848,72 @@ export const ServiceAccountRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, displayName: { serializedName: "display_name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessListInvitationsSuccessResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessListInvitationsSuccessResponse", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "ConfluentListMetadata" - } +export const AccessListInvitationsSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessListInvitationsSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InvitationRecord", + }, + }, + }, + }, }, - data: { - serializedName: "data", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InvitationRecord" - } - } - } - } - } - } -}; + }, + }; export const InvitationRecord: coreClient.CompositeMapper = { type: { @@ -919,54 +923,54 @@ export const InvitationRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, email: { serializedName: "email", type: { - name: "String" - } + name: "String", + }, }, authType: { serializedName: "auth_type", type: { - name: "String" - } + name: "String", + }, }, status: { serializedName: "status", type: { - name: "String" - } + name: "String", + }, }, acceptedAt: { serializedName: "accepted_at", type: { - name: "String" - } + name: "String", + }, }, expiresAt: { serializedName: "expires_at", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessInviteUserAccountModel: coreClient.CompositeMapper = { @@ -977,30 +981,30 @@ export const AccessInviteUserAccountModel: coreClient.CompositeMapper = { organizationId: { serializedName: "organizationId", type: { - name: "String" - } + name: "String", + }, }, email: { serializedName: "email", type: { - name: "String" - } + name: "String", + }, }, upn: { serializedName: "upn", type: { - name: "String" - } + name: "String", + }, }, invitedUserDetails: { serializedName: "invitedUserDetails", type: { name: "Composite", - className: "AccessInvitedUserDetails" - } - } - } - } + className: "AccessInvitedUserDetails", + }, + }, + }, + }, }; export const AccessInvitedUserDetails: coreClient.CompositeMapper = { @@ -1011,52 +1015,53 @@ export const AccessInvitedUserDetails: coreClient.CompositeMapper = { invitedEmail: { serializedName: "invitedEmail", type: { - name: "String" - } + name: "String", + }, }, authType: { serializedName: "auth_type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const AccessListEnvironmentsSuccessResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AccessListEnvironmentsSuccessResponse", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String" - } - }, - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "ConfluentListMetadata" - } +export const AccessListEnvironmentsSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessListEnvironmentsSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "EnvironmentRecord", + }, + }, + }, + }, }, - data: { - serializedName: "data", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EnvironmentRecord" - } - } - } - } - } - } -}; + }, + }; export const EnvironmentRecord: coreClient.CompositeMapper = { type: { @@ -1066,30 +1071,30 @@ export const EnvironmentRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, displayName: { serializedName: "display_name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AccessListClusterSuccessResponse: coreClient.CompositeMapper = { @@ -1100,15 +1105,15 @@ export const AccessListClusterSuccessResponse: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "ConfluentListMetadata" - } + className: "ConfluentListMetadata", + }, }, data: { serializedName: "data", @@ -1117,13 +1122,13 @@ export const AccessListClusterSuccessResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ClusterRecord" - } - } - } - } - } - } + className: "ClusterRecord", + }, + }, + }, + }, + }, + }, }; export const ClusterRecord: coreClient.CompositeMapper = { @@ -1134,44 +1139,44 @@ export const ClusterRecord: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "MetadataEntity", + }, }, displayName: { serializedName: "display_name", type: { - name: "String" - } + name: "String", + }, }, spec: { serializedName: "spec", type: { name: "Composite", - className: "ClusterSpecEntity" - } + className: "ClusterSpecEntity", + }, }, status: { serializedName: "status", type: { name: "Composite", - className: "ClusterStatusEntity" - } - } - } - } + className: "ClusterStatusEntity", + }, + }, + }, + }, }; export const ClusterSpecEntity: coreClient.CompositeMapper = { @@ -1182,81 +1187,81 @@ export const ClusterSpecEntity: coreClient.CompositeMapper = { displayName: { serializedName: "display_name", type: { - name: "String" - } + name: "String", + }, }, availability: { serializedName: "availability", type: { - name: "String" - } + name: "String", + }, }, cloud: { serializedName: "cloud", type: { - name: "String" - } + name: "String", + }, }, zone: { serializedName: "zone", type: { - name: "String" - } + name: "String", + }, }, region: { serializedName: "region", type: { - name: "String" - } + name: "String", + }, }, kafkaBootstrapEndpoint: { serializedName: "kafka_bootstrap_endpoint", type: { - name: "String" - } + name: "String", + }, }, httpEndpoint: { serializedName: "http_endpoint", type: { - name: "String" - } + name: "String", + }, }, apiEndpoint: { serializedName: "api_endpoint", type: { - name: "String" - } + name: "String", + }, }, config: { serializedName: "config", type: { name: "Composite", - className: "ClusterConfigEntity" - } + className: "ClusterConfigEntity", + }, }, environment: { serializedName: "environment", type: { name: "Composite", - className: "ClusterEnvironmentEntity" - } + className: "ClusterEnvironmentEntity", + }, }, network: { serializedName: "network", type: { name: "Composite", - className: "ClusterNetworkEntity" - } + className: "ClusterNetworkEntity", + }, }, byok: { serializedName: "byok", type: { name: "Composite", - className: "ClusterByokEntity" - } - } - } - } + className: "ClusterByokEntity", + }, + }, + }, + }, }; export const ClusterConfigEntity: coreClient.CompositeMapper = { @@ -1267,11 +1272,11 @@ export const ClusterConfigEntity: coreClient.CompositeMapper = { kind: { serializedName: "kind", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterEnvironmentEntity: coreClient.CompositeMapper = { @@ -1282,29 +1287,29 @@ export const ClusterEnvironmentEntity: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, environment: { serializedName: "environment", type: { - name: "String" - } + name: "String", + }, }, related: { serializedName: "related", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resource_name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterNetworkEntity: coreClient.CompositeMapper = { @@ -1315,29 +1320,29 @@ export const ClusterNetworkEntity: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, environment: { serializedName: "environment", type: { - name: "String" - } + name: "String", + }, }, related: { serializedName: "related", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resource_name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterByokEntity: coreClient.CompositeMapper = { @@ -1348,23 +1353,23 @@ export const ClusterByokEntity: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, related: { serializedName: "related", type: { - name: "String" - } + name: "String", + }, }, resourceName: { serializedName: "resource_name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ClusterStatusEntity: coreClient.CompositeMapper = { @@ -1375,95 +1380,938 @@ export const ClusterStatusEntity: coreClient.CompositeMapper = { phase: { serializedName: "phase", type: { - name: "String" - } + name: "String", + }, }, cku: { serializedName: "cku", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const AccessListRoleBindingsSuccessResponse: coreClient.CompositeMapper = { +export const AccessListRoleBindingsSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessListRoleBindingsSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RoleBindingRecord", + }, + }, + }, + }, + }, + }, + }; + +export const RoleBindingRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AccessListRoleBindingsSuccessResponse", + className: "RoleBindingRecord", modelProperties: { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, }, metadata: { serializedName: "metadata", type: { name: "Composite", - className: "ConfluentListMetadata" - } + className: "MetadataEntity", + }, }, - data: { - serializedName: "data", + principal: { + serializedName: "principal", + type: { + name: "String", + }, + }, + roleName: { + serializedName: "role_name", + type: { + name: "String", + }, + }, + crnPattern: { + serializedName: "crn_pattern", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccessCreateRoleBindingRequestModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AccessCreateRoleBindingRequestModel", + modelProperties: { + principal: { + serializedName: "principal", + type: { + name: "String", + }, + }, + roleName: { + serializedName: "role_name", + type: { + name: "String", + }, + }, + crnPattern: { + serializedName: "crn_pattern", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AccessRoleBindingNameListSuccessResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AccessRoleBindingNameListSuccessResponse", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "ConfluentListMetadata", + }, + }, + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, + }; + +export const GetEnvironmentsResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetEnvironmentsResponse", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "RoleBindingRecord" - } - } - } - } - } - } + className: "SCEnvironmentRecord", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, }; -export const RoleBindingRecord: coreClient.CompositeMapper = { +export const SCEnvironmentRecord: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RoleBindingRecord", + className: "SCEnvironmentRecord", modelProperties: { kind: { serializedName: "kind", type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, }, metadata: { - serializedName: "metadata", + serializedName: "properties.metadata", type: { name: "Composite", - className: "MetadataEntity" - } + className: "SCMetadataEntity", + }, }, - principal: { - serializedName: "principal", + }, + }, +}; + +export const SCMetadataEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCMetadataEntity", + modelProperties: { + self: { + serializedName: "self", type: { - name: "String" - } + name: "String", + }, }, - roleName: { - serializedName: "role_name", + resourceName: { + serializedName: "resourceName", type: { - name: "String" - } + name: "String", + }, }, - crnPattern: { - serializedName: "crn_pattern", + createdTimestamp: { + serializedName: "createdTimestamp", + type: { + name: "String", + }, + }, + updatedTimestamp: { + serializedName: "updatedTimestamp", + type: { + name: "String", + }, + }, + deletedTimestamp: { + serializedName: "deletedTimestamp", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ListClustersSuccessResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListClustersSuccessResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SCClusterRecord", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const SCClusterRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCClusterRecord", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SCMetadataEntity", + }, + }, + spec: { + serializedName: "properties.spec", + type: { + name: "Composite", + className: "SCClusterSpecEntity", + }, + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "ClusterStatusEntity", + }, + }, + }, + }, +}; + +export const SCClusterSpecEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCClusterSpecEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + availability: { + serializedName: "availability", + type: { + name: "String", + }, + }, + cloud: { + serializedName: "cloud", + type: { + name: "String", + }, + }, + zone: { + serializedName: "zone", + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + type: { + name: "String", + }, + }, + kafkaBootstrapEndpoint: { + serializedName: "kafkaBootstrapEndpoint", + type: { + name: "String", + }, + }, + httpEndpoint: { + serializedName: "httpEndpoint", + type: { + name: "String", + }, + }, + apiEndpoint: { + serializedName: "apiEndpoint", + type: { + name: "String", + }, + }, + config: { + serializedName: "config", + type: { + name: "Composite", + className: "ClusterConfigEntity", + }, + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "SCClusterNetworkEnvironmentEntity", + }, + }, + network: { + serializedName: "network", + type: { + name: "Composite", + className: "SCClusterNetworkEnvironmentEntity", + }, + }, + byok: { + serializedName: "byok", + type: { + name: "Composite", + className: "SCClusterByokEntity", + }, + }, + }, + }, +}; + +export const SCClusterNetworkEnvironmentEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCClusterNetworkEnvironmentEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + environment: { + serializedName: "environment", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SCClusterByokEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCClusterByokEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ListSchemaRegistryClustersResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListSchemaRegistryClustersResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SchemaRegistryClusterRecord", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SchemaRegistryClusterRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchemaRegistryClusterRecord", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SCMetadataEntity", + }, + }, + spec: { + serializedName: "properties.spec", + type: { + name: "Composite", + className: "SchemaRegistryClusterSpecEntity", + }, + }, + status: { + serializedName: "properties.status", + type: { + name: "Composite", + className: "SchemaRegistryClusterStatusEntity", + }, + }, + }, + }, +}; + +export const SchemaRegistryClusterSpecEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchemaRegistryClusterSpecEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + httpEndpoint: { + serializedName: "httpEndpoint", + type: { + name: "String", + }, + }, + package: { + serializedName: "package", + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + type: { + name: "Composite", + className: "SchemaRegistryClusterEnvironmentRegionEntity", + }, + }, + environment: { + serializedName: "environment", + type: { + name: "Composite", + className: "SchemaRegistryClusterEnvironmentRegionEntity", + }, + }, + cloud: { + serializedName: "cloud", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SchemaRegistryClusterEnvironmentRegionEntity: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SchemaRegistryClusterEnvironmentRegionEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const SchemaRegistryClusterStatusEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SchemaRegistryClusterStatusEntity", + modelProperties: { + phase: { + serializedName: "phase", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ListRegionsSuccessResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListRegionsSuccessResponse", + modelProperties: { + data: { + serializedName: "data", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegionRecord", + }, + }, + }, + }, + }, + }, +}; + +export const RegionRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegionRecord", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SCMetadataEntity", + }, + }, + spec: { + serializedName: "properties.spec", + type: { + name: "Composite", + className: "RegionSpecEntity", + }, + }, + }, + }, +}; + +export const RegionSpecEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RegionSpecEntity", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + cloud: { + serializedName: "cloud", + type: { + name: "String", + }, + }, + regionName: { + serializedName: "regionName", + type: { + name: "String", + }, + }, + packages: { + serializedName: "packages", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const CreateAPIKeyModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CreateAPIKeyModel", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const APIKeyRecord: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeyRecord", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SCMetadataEntity", + }, + }, + spec: { + serializedName: "properties.spec", + type: { + name: "Composite", + className: "APIKeySpecEntity", + }, + }, + }, + }, +}; + +export const APIKeySpecEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeySpecEntity", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + secret: { + serializedName: "secret", + type: { + name: "String", + }, + }, + resource: { + serializedName: "resource", + type: { + name: "Composite", + className: "APIKeyResourceEntity", + }, + }, + owner: { + serializedName: "owner", + type: { + name: "Composite", + className: "APIKeyOwnerEntity", + }, + }, + }, + }, +}; + +export const APIKeyResourceEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeyResourceEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + environment: { + serializedName: "environment", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const APIKeyOwnerEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeyOwnerEntity", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + related: { + serializedName: "related", + type: { + name: "String", + }, + }, + resourceName: { + serializedName: "resourceName", + type: { + name: "String", + }, + }, + kind: { + serializedName: "kind", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SCConfluentListMetadata: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SCConfluentListMetadata", + modelProperties: { + first: { + serializedName: "first", + type: { + name: "String", + }, + }, + last: { + serializedName: "last", + type: { + name: "String", + }, + }, + prev: { + serializedName: "prev", + type: { + name: "String", + }, + }, + next: { + serializedName: "next", + type: { + name: "String", + }, + }, + totalSize: { + serializedName: "totalSize", + type: { + name: "Number", + }, + }, + }, + }, }; diff --git a/sdk/confluent/arm-confluent/src/models/parameters.ts b/sdk/confluent/arm-confluent/src/models/parameters.ts index 38231f6ffded..9593b186b4b5 100644 --- a/sdk/confluent/arm-confluent/src/models/parameters.ts +++ b/sdk/confluent/arm-confluent/src/models/parameters.ts @@ -9,14 +9,16 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { ConfluentAgreementResource as ConfluentAgreementResourceMapper, OrganizationResource as OrganizationResourceMapper, OrganizationResourceUpdate as OrganizationResourceUpdateMapper, ListAccessRequestModel as ListAccessRequestModelMapper, - AccessInviteUserAccountModel as AccessInviteUserAccountModelMapper + CreateAPIKeyModel as CreateAPIKeyModelMapper, + AccessInviteUserAccountModel as AccessInviteUserAccountModelMapper, + AccessCreateRoleBindingRequestModel as AccessCreateRoleBindingRequestModelMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -26,9 +28,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -37,22 +39,22 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-08-22", + defaultValue: "2024-02-13", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -61,9 +63,9 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "Uuid" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -73,14 +75,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body: OperationParameter = { parameterPath: ["options", "body"], - mapper: ConfluentAgreementResourceMapper + mapper: ConfluentAgreementResourceMapper, }; export const nextLink: OperationURLParameter = { @@ -89,25 +91,21 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { - constraints: { - MaxLength: 90, - MinLength: 1 - }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const organizationName: OperationURLParameter = { @@ -116,32 +114,121 @@ export const organizationName: OperationURLParameter = { serializedName: "organizationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body1: OperationParameter = { parameterPath: ["options", "body"], - mapper: OrganizationResourceMapper + mapper: OrganizationResourceMapper, }; export const body2: OperationParameter = { parameterPath: ["options", "body"], - mapper: OrganizationResourceUpdateMapper + mapper: OrganizationResourceUpdateMapper, +}; + +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const pageSize: OperationQueryParameter = { + parameterPath: ["options", "pageSize"], + mapper: { + serializedName: "pageSize", + type: { + name: "Number", + }, + }, +}; + +export const pageToken: OperationQueryParameter = { + parameterPath: ["options", "pageToken"], + mapper: { + serializedName: "pageToken", + type: { + name: "String", + }, + }, +}; + +export const environmentId: OperationURLParameter = { + parameterPath: "environmentId", + mapper: { + serializedName: "environmentId", + required: true, + type: { + name: "String", + }, + }, }; export const body3: OperationParameter = { parameterPath: "body", - mapper: OrganizationResourceMapper + mapper: ListAccessRequestModelMapper, }; export const body4: OperationParameter = { parameterPath: "body", - mapper: ListAccessRequestModelMapper + mapper: CreateAPIKeyModelMapper, +}; + +export const clusterId: OperationURLParameter = { + parameterPath: "clusterId", + mapper: { + serializedName: "clusterId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const apiKeyId: OperationURLParameter = { + parameterPath: "apiKeyId", + mapper: { + serializedName: "apiKeyId", + required: true, + type: { + name: "String", + }, + }, }; export const body5: OperationParameter = { parameterPath: "body", - mapper: AccessInviteUserAccountModelMapper + mapper: OrganizationResourceMapper, +}; + +export const body6: OperationParameter = { + parameterPath: "body", + mapper: AccessInviteUserAccountModelMapper, +}; + +export const body7: OperationParameter = { + parameterPath: "body", + mapper: AccessCreateRoleBindingRequestModelMapper, +}; + +export const roleBindingId: OperationURLParameter = { + parameterPath: "roleBindingId", + mapper: { + serializedName: "roleBindingId", + required: true, + type: { + name: "String", + }, + }, }; diff --git a/sdk/confluent/arm-confluent/src/operations/access.ts b/sdk/confluent/arm-confluent/src/operations/access.ts index b2b4e6febdd9..05d2d0ea6e6c 100644 --- a/sdk/confluent/arm-confluent/src/operations/access.ts +++ b/sdk/confluent/arm-confluent/src/operations/access.ts @@ -27,7 +27,13 @@ import { AccessListClustersOptionalParams, AccessListClustersResponse, AccessListRoleBindingsOptionalParams, - AccessListRoleBindingsResponse + AccessListRoleBindingsResponse, + AccessCreateRoleBindingRequestModel, + AccessCreateRoleBindingOptionalParams, + AccessCreateRoleBindingResponse, + AccessDeleteRoleBindingOptionalParams, + AccessListRoleBindingNameListOptionalParams, + AccessListRoleBindingNameListResponse, } from "../models"; /** Class containing Access operations. */ @@ -44,7 +50,7 @@ export class AccessImpl implements Access { /** * Organization users details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -53,17 +59,17 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListUsersOptionalParams + options?: AccessListUsersOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listUsersOperationSpec + listUsersOperationSpec, ); } /** * Organization service accounts details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -72,17 +78,17 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListServiceAccountsOptionalParams + options?: AccessListServiceAccountsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listServiceAccountsOperationSpec + listServiceAccountsOperationSpec, ); } /** * Organization accounts invitation details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -91,17 +97,17 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListInvitationsOptionalParams + options?: AccessListInvitationsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listInvitationsOperationSpec + listInvitationsOperationSpec, ); } /** * Invite user to the organization - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Invite user account model * @param options The options parameters. @@ -110,11 +116,11 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: AccessInviteUserAccountModel, - options?: AccessInviteUserOptionalParams + options?: AccessInviteUserOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - inviteUserOperationSpec + inviteUserOperationSpec, ); } @@ -129,11 +135,11 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListEnvironmentsOptionalParams + options?: AccessListEnvironmentsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listEnvironmentsOperationSpec + listEnvironmentsOperationSpec, ); } @@ -148,11 +154,11 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListClustersOptionalParams + options?: AccessListClustersOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listClustersOperationSpec + listClustersOperationSpec, ); } @@ -167,11 +173,68 @@ export class AccessImpl implements Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListRoleBindingsOptionalParams + options?: AccessListRoleBindingsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - listRoleBindingsOperationSpec + listRoleBindingsOperationSpec, + ); + } + + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body Create role binding Request Model + * @param options The options parameters. + */ + createRoleBinding( + resourceGroupName: string, + organizationName: string, + body: AccessCreateRoleBindingRequestModel, + options?: AccessCreateRoleBindingOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, body, options }, + createRoleBindingOperationSpec, + ); + } + + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param roleBindingId Confluent Role binding id + * @param options The options parameters. + */ + deleteRoleBinding( + resourceGroupName: string, + organizationName: string, + roleBindingId: string, + options?: AccessDeleteRoleBindingOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, roleBindingId, options }, + deleteRoleBindingOperationSpec, + ); + } + + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body List Access Request Model + * @param options The options parameters. + */ + listRoleBindingNameList( + resourceGroupName: string, + organizationName: string, + body: ListAccessRequestModel, + options?: AccessListRoleBindingNameListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, body, options }, + listRoleBindingNameListOperationSpec, ); } } @@ -179,170 +242,230 @@ export class AccessImpl implements Access { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listUsersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listUsers", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listUsers", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListUsersSuccessResponse + bodyMapper: Mappers.AccessListUsersSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listServiceAccountsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listServiceAccounts", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listServiceAccounts", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListServiceAccountsSuccessResponse + bodyMapper: Mappers.AccessListServiceAccountsSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listInvitationsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listInvitations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listInvitations", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListInvitationsSuccessResponse + bodyMapper: Mappers.AccessListInvitationsSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const inviteUserOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/createInvitation", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/createInvitation", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.InvitationRecord + bodyMapper: Mappers.InvitationRecord, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body5, + requestBody: Parameters.body6, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listEnvironmentsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listEnvironments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listEnvironments", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListEnvironmentsSuccessResponse + bodyMapper: Mappers.AccessListEnvironmentsSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listClustersOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listClusters", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listClusters", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListClusterSuccessResponse + bodyMapper: Mappers.AccessListClusterSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listRoleBindingsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listRoleBindings", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listRoleBindings", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AccessListRoleBindingsSuccessResponse + bodyMapper: Mappers.AccessListRoleBindingsSuccessResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const createRoleBindingOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/createRoleBinding", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.RoleBindingRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body7, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteRoleBindingOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/deleteRoleBinding/{roleBindingId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.roleBindingId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listRoleBindingNameListOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/access/default/listRoleBindingNameList", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AccessRoleBindingNameListSuccessResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts b/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts index 46c19792efda..16a2a9f9f2f4 100644 --- a/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts +++ b/sdk/confluent/arm-confluent/src/operations/marketplaceAgreements.ts @@ -20,7 +20,7 @@ import { MarketplaceAgreementsListResponse, MarketplaceAgreementsCreateOptionalParams, MarketplaceAgreementsCreateResponse, - MarketplaceAgreementsListNextResponse + MarketplaceAgreementsListNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { * @param options The options parameters. */ public list( - options?: MarketplaceAgreementsListOptionalParams + options?: MarketplaceAgreementsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -56,13 +56,13 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: MarketplaceAgreementsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: MarketplaceAgreementsListResponse; let continuationToken = settings?.continuationToken; @@ -83,7 +83,7 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { } private async *listPagingAll( - options?: MarketplaceAgreementsListOptionalParams + options?: MarketplaceAgreementsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -95,7 +95,7 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { * @param options The options parameters. */ private _list( - options?: MarketplaceAgreementsListOptionalParams + options?: MarketplaceAgreementsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,7 +105,7 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { * @param options The options parameters. */ create( - options?: MarketplaceAgreementsCreateOptionalParams + options?: MarketplaceAgreementsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, createOperationSpec); } @@ -117,11 +117,11 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { */ private _listNext( nextLink: string, - options?: MarketplaceAgreementsListNextOptionalParams + options?: MarketplaceAgreementsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -129,57 +129,55 @@ export class MarketplaceAgreementsImpl implements MarketplaceAgreements { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfluentAgreementResourceListResponse + bodyMapper: Mappers.ConfluentAgreementResourceListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/agreements/default", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.ConfluentAgreementResource + bodyMapper: Mappers.ConfluentAgreementResource, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ConfluentAgreementResourceListResponse + bodyMapper: Mappers.ConfluentAgreementResourceListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operations/organization.ts b/sdk/confluent/arm-confluent/src/operations/organization.ts index 6b33d189256a..6516a46b7943 100644 --- a/sdk/confluent/arm-confluent/src/operations/organization.ts +++ b/sdk/confluent/arm-confluent/src/operations/organization.ts @@ -16,7 +16,7 @@ import { ConfluentManagementClient } from "../confluentManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -27,6 +27,18 @@ import { OrganizationListByResourceGroupNextOptionalParams, OrganizationListByResourceGroupOptionalParams, OrganizationListByResourceGroupResponse, + SCEnvironmentRecord, + OrganizationListEnvironmentsNextOptionalParams, + OrganizationListEnvironmentsOptionalParams, + OrganizationListEnvironmentsResponse, + SCClusterRecord, + OrganizationListClustersNextOptionalParams, + OrganizationListClustersOptionalParams, + OrganizationListClustersResponse, + SchemaRegistryClusterRecord, + OrganizationListSchemaRegistryClustersNextOptionalParams, + OrganizationListSchemaRegistryClustersOptionalParams, + OrganizationListSchemaRegistryClustersResponse, OrganizationGetOptionalParams, OrganizationGetResponse, OrganizationCreateOptionalParams, @@ -34,8 +46,26 @@ import { OrganizationUpdateOptionalParams, OrganizationUpdateResponse, OrganizationDeleteOptionalParams, + OrganizationGetEnvironmentByIdOptionalParams, + OrganizationGetEnvironmentByIdResponse, + ListAccessRequestModel, + OrganizationListRegionsOptionalParams, + OrganizationListRegionsResponse, + CreateAPIKeyModel, + OrganizationCreateAPIKeyOptionalParams, + OrganizationCreateAPIKeyResponse, + OrganizationDeleteClusterAPIKeyOptionalParams, + OrganizationGetClusterAPIKeyOptionalParams, + OrganizationGetClusterAPIKeyResponse, + OrganizationGetSchemaRegistryClusterByIdOptionalParams, + OrganizationGetSchemaRegistryClusterByIdResponse, + OrganizationGetClusterByIdOptionalParams, + OrganizationGetClusterByIdResponse, OrganizationListBySubscriptionNextResponse, - OrganizationListByResourceGroupNextResponse + OrganizationListByResourceGroupNextResponse, + OrganizationListEnvironmentsNextResponse, + OrganizationListClustersNextResponse, + OrganizationListSchemaRegistryClustersNextResponse, } from "../models"; /// @@ -56,7 +86,7 @@ export class OrganizationImpl implements Organization { * @param options The options parameters. */ public listBySubscription( - options?: OrganizationListBySubscriptionOptionalParams + options?: OrganizationListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -71,13 +101,13 @@ export class OrganizationImpl implements Organization { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: OrganizationListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OrganizationListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +128,7 @@ export class OrganizationImpl implements Organization { } private async *listBySubscriptionPagingAll( - options?: OrganizationListBySubscriptionOptionalParams + options?: OrganizationListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -107,12 +137,12 @@ export class OrganizationImpl implements Organization { /** * List all Organizations under the specified resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param options The options parameters. */ public listByResourceGroup( resourceGroupName: string, - options?: OrganizationListByResourceGroupOptionalParams + options?: OrganizationListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +159,16 @@ export class OrganizationImpl implements Organization { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: OrganizationListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OrganizationListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +183,7 @@ export class OrganizationImpl implements Organization { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +194,281 @@ export class OrganizationImpl implements Organization { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: OrganizationListByResourceGroupOptionalParams + options?: OrganizationListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, + )) { + yield* page; + } + } + + /** + * Lists of all the environments in a organization + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param options The options parameters. + */ + public listEnvironments( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listEnvironmentsPagingAll( + resourceGroupName, + organizationName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listEnvironmentsPagingPage( + resourceGroupName, + organizationName, + options, + settings, + ); + }, + }; + } + + private async *listEnvironmentsPagingPage( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: OrganizationListEnvironmentsResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listEnvironments( + resourceGroupName, + organizationName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listEnvironmentsNext( + resourceGroupName, + organizationName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listEnvironmentsPagingAll( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listEnvironmentsPagingPage( + resourceGroupName, + organizationName, + options, + )) { + yield* page; + } + } + + /** + * Lists of all the clusters in a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + public listClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listClustersPagingAll( + resourceGroupName, + organizationName, + environmentId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listClustersPagingPage( + resourceGroupName, + organizationName, + environmentId, + options, + settings, + ); + }, + }; + } + + private async *listClustersPagingPage( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: OrganizationListClustersResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listClusters( + resourceGroupName, + organizationName, + environmentId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listClustersNext( + resourceGroupName, + organizationName, + environmentId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listClustersPagingAll( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listClustersPagingPage( + resourceGroupName, + organizationName, + environmentId, + options, + )) { + yield* page; + } + } + + /** + * Get schema registry clusters + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + public listSchemaRegistryClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listSchemaRegistryClustersPagingAll( + resourceGroupName, + organizationName, + environmentId, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listSchemaRegistryClustersPagingPage( + resourceGroupName, + organizationName, + environmentId, + options, + settings, + ); + }, + }; + } + + private async *listSchemaRegistryClustersPagingPage( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: OrganizationListSchemaRegistryClustersResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listSchemaRegistryClusters( + resourceGroupName, + organizationName, + environmentId, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listSchemaRegistryClustersNext( + resourceGroupName, + organizationName, + environmentId, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listSchemaRegistryClustersPagingAll( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listSchemaRegistryClustersPagingPage( + resourceGroupName, + organizationName, + environmentId, + options, )) { yield* page; } @@ -179,56 +479,56 @@ export class OrganizationImpl implements Organization { * @param options The options parameters. */ private _listBySubscription( - options?: OrganizationListBySubscriptionOptionalParams + options?: OrganizationListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } /** * List all Organizations under the specified resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param options The options parameters. */ private _listByResourceGroup( resourceGroupName: string, - options?: OrganizationListByResourceGroupOptionalParams + options?: OrganizationListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } /** * Get the properties of a specific Organization resource. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ get( resourceGroupName: string, organizationName: string, - options?: OrganizationGetOptionalParams + options?: OrganizationGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, options }, - getOperationSpec + getOperationSpec, ); } /** * Create Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ async beginCreate( resourceGroupName: string, organizationName: string, - options?: OrganizationCreateOptionalParams + options?: OrganizationCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -237,21 +537,20 @@ export class OrganizationImpl implements Organization { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -260,8 +559,8 @@ export class OrganizationImpl implements Organization { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -269,15 +568,15 @@ export class OrganizationImpl implements Organization { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, organizationName, options }, - spec: createOperationSpec + spec: createOperationSpec, }); const poller = await createHttpPoller< OrganizationCreateResponse, @@ -285,7 +584,7 @@ export class OrganizationImpl implements Organization { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -293,68 +592,67 @@ export class OrganizationImpl implements Organization { /** * Create Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ async beginCreateAndWait( resourceGroupName: string, organizationName: string, - options?: OrganizationCreateOptionalParams + options?: OrganizationCreateOptionalParams, ): Promise { const poller = await this.beginCreate( resourceGroupName, organizationName, - options + options, ); return poller.pollUntilDone(); } /** * Update Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ update( resourceGroupName: string, organizationName: string, - options?: OrganizationUpdateOptionalParams + options?: OrganizationUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, options }, - updateOperationSpec + updateOperationSpec, ); } /** * Delete Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ async beginDelete( resourceGroupName: string, organizationName: string, - options?: OrganizationDeleteOptionalParams + options?: OrganizationDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -363,8 +661,8 @@ export class OrganizationImpl implements Organization { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -372,20 +670,20 @@ export class OrganizationImpl implements Organization { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, organizationName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "location" + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -393,138 +691,412 @@ export class OrganizationImpl implements Organization { /** * Delete Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, organizationName: string, - options?: OrganizationDeleteOptionalParams + options?: OrganizationDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, organizationName, - options + options, ); return poller.pollUntilDone(); } /** - * ListBySubscriptionNext - * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * Lists of all the environments in a organization + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name * @param options The options parameters. */ - private _listBySubscriptionNext( - nextLink: string, - options?: OrganizationListBySubscriptionNextOptionalParams - ): Promise { + private _listEnvironments( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { nextLink, options }, - listBySubscriptionNextOperationSpec + { resourceGroupName, organizationName, options }, + listEnvironmentsOperationSpec, ); } /** - * ListByResourceGroupNext + * Get Environment details by environment Id * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id * @param options The options parameters. */ - private _listByResourceGroupNext( + getEnvironmentById( resourceGroupName: string, - nextLink: string, - options?: OrganizationListByResourceGroupNextOptionalParams - ): Promise { + organizationName: string, + environmentId: string, + options?: OrganizationGetEnvironmentByIdOptionalParams, + ): Promise { return this.client.sendOperationRequest( - { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + { resourceGroupName, organizationName, environmentId, options }, + getEnvironmentByIdOperationSpec, ); } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/organizations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OrganizationResourceListResult - }, - default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer -}; -const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OrganizationResourceListResult - }, - default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - headerParameters: [Parameters.accept], - serializer -}; -const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.OrganizationResource - }, - default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } - }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ + /** + * Lists of all the clusters in a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + private _listClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, environmentId, options }, + listClustersOperationSpec, + ); + } + + /** + * Get schema registry clusters + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + private _listSchemaRegistryClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, environmentId, options }, + listSchemaRegistryClustersOperationSpec, + ); + } + + /** + * cloud provider regions available for creating Schema Registry clusters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body List Access Request Model + * @param options The options parameters. + */ + listRegions( + resourceGroupName: string, + organizationName: string, + body: ListAccessRequestModel, + options?: OrganizationListRegionsOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, body, options }, + listRegionsOperationSpec, + ); + } + + /** + * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster + * ID under a environment + * @param options The options parameters. + */ + createAPIKey( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + body: CreateAPIKeyModel, + options?: OrganizationCreateAPIKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + organizationName, + environmentId, + clusterId, + body, + options, + }, + createAPIKeyOperationSpec, + ); + } + + /** + * Deletes API key of a kafka or schema registry cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param apiKeyId Confluent API Key id + * @param options The options parameters. + */ + deleteClusterAPIKey( + resourceGroupName: string, + organizationName: string, + apiKeyId: string, + options?: OrganizationDeleteClusterAPIKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, apiKeyId, options }, + deleteClusterAPIKeyOperationSpec, + ); + } + + /** + * Get API key details of a kafka or schema registry cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param apiKeyId Confluent API Key id + * @param options The options parameters. + */ + getClusterAPIKey( + resourceGroupName: string, + organizationName: string, + apiKeyId: string, + options?: OrganizationGetClusterAPIKeyOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, apiKeyId, options }, + getClusterAPIKeyOperationSpec, + ); + } + + /** + * Get schema registry cluster by Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param options The options parameters. + */ + getSchemaRegistryClusterById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + options?: OrganizationGetSchemaRegistryClusterByIdOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + organizationName, + environmentId, + clusterId, + options, + }, + getSchemaRegistryClusterByIdOperationSpec, + ); + } + + /** + * Get cluster by Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param options The options parameters. + */ + getClusterById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + options?: OrganizationGetClusterByIdOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + organizationName, + environmentId, + clusterId, + options, + }, + getClusterByIdOperationSpec, + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: OrganizationListBySubscriptionNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec, + ); + } + + /** + * ListByResourceGroupNext + * @param resourceGroupName Resource group name + * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. + * @param options The options parameters. + */ + private _listByResourceGroupNext( + resourceGroupName: string, + nextLink: string, + options?: OrganizationListByResourceGroupNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, nextLink, options }, + listByResourceGroupNextOperationSpec, + ); + } + + /** + * ListEnvironmentsNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param nextLink The nextLink from the previous successful call to the ListEnvironments method. + * @param options The options parameters. + */ + private _listEnvironmentsNext( + resourceGroupName: string, + organizationName: string, + nextLink: string, + options?: OrganizationListEnvironmentsNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, nextLink, options }, + listEnvironmentsNextOperationSpec, + ); + } + + /** + * ListClustersNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param nextLink The nextLink from the previous successful call to the ListClusters method. + * @param options The options parameters. + */ + private _listClustersNext( + resourceGroupName: string, + organizationName: string, + environmentId: string, + nextLink: string, + options?: OrganizationListClustersNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, environmentId, nextLink, options }, + listClustersNextOperationSpec, + ); + } + + /** + * ListSchemaRegistryClustersNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param nextLink The nextLink from the previous successful call to the ListSchemaRegistryClusters + * method. + * @param options The options parameters. + */ + private _listSchemaRegistryClustersNext( + resourceGroupName: string, + organizationName: string, + environmentId: string, + nextLink: string, + options?: OrganizationListSchemaRegistryClustersNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, organizationName, environmentId, nextLink, options }, + listSchemaRegistryClustersNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Confluent/organizations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OrganizationResourceListResult, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OrganizationResourceListResult, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OrganizationResource, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, 201: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, 202: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, 204: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body1, queryParameters: [Parameters.apiVersion], @@ -532,23 +1104,22 @@ const createOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion], @@ -556,15 +1127,14 @@ const updateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -572,55 +1142,356 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listEnvironmentsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetEnvironmentsResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.pageToken, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getEnvironmentByIdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SCEnvironmentRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listClustersOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListClustersSuccessResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.pageToken, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listSchemaRegistryClustersOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListSchemaRegistryClustersResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [ + Parameters.apiVersion, + Parameters.pageSize, + Parameters.pageToken, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listRegionsOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/listRegions", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListRegionsSuccessResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body3, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const createAPIKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/createAPIKey", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.APIKeyRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body4, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + Parameters.clusterId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteClusterAPIKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/apiKeys/{apiKeyId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.apiKeyId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getClusterAPIKeyOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/apiKeys/{apiKeyId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.APIKeyRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.apiKeyId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getSchemaRegistryClusterByIdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters/{clusterId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SchemaRegistryClusterRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + Parameters.clusterId, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const getClusterByIdOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SCClusterRecord, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + Parameters.clusterId, + ], + headerParameters: [Parameters.accept], + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OrganizationResourceListResult + bodyMapper: Mappers.OrganizationResourceListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OrganizationResourceListResult + bodyMapper: Mappers.OrganizationResourceListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listEnvironmentsNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetEnvironmentsResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.organizationName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listClustersNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListClustersSuccessResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listSchemaRegistryClustersNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ListSchemaRegistryClustersResponse, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.resourceGroupName + Parameters.organizationName, + Parameters.resourceGroupName1, + Parameters.environmentId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts b/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts index c08118fd9537..31d44497c459 100644 --- a/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts +++ b/sdk/confluent/arm-confluent/src/operations/organizationOperations.ts @@ -18,7 +18,7 @@ import { OrganizationOperationsListNextOptionalParams, OrganizationOperationsListOptionalParams, OrganizationOperationsListResponse, - OrganizationOperationsListNextResponse + OrganizationOperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OrganizationOperationsImpl implements OrganizationOperations { * @param options The options parameters. */ public list( - options?: OrganizationOperationsListOptionalParams + options?: OrganizationOperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OrganizationOperationsImpl implements OrganizationOperations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OrganizationOperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OrganizationOperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OrganizationOperationsImpl implements OrganizationOperations { } private async *listPagingAll( - options?: OrganizationOperationsListOptionalParams + options?: OrganizationOperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OrganizationOperationsImpl implements OrganizationOperations { * @param options The options parameters. */ private _list( - options?: OrganizationOperationsListOptionalParams + options?: OrganizationOperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OrganizationOperationsImpl implements OrganizationOperations { */ private _listNext( nextLink: string, - options?: OrganizationOperationsListNextOptionalParams + options?: OrganizationOperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operations/validations.ts b/sdk/confluent/arm-confluent/src/operations/validations.ts index 981bbeecc9eb..d8fcf37f73f1 100644 --- a/sdk/confluent/arm-confluent/src/operations/validations.ts +++ b/sdk/confluent/arm-confluent/src/operations/validations.ts @@ -16,7 +16,7 @@ import { ValidationsValidateOrganizationOptionalParams, ValidationsValidateOrganizationResponse, ValidationsValidateOrganizationV2OptionalParams, - ValidationsValidateOrganizationV2Response + ValidationsValidateOrganizationV2Response, } from "../models"; /** Class containing Validations operations. */ @@ -33,7 +33,7 @@ export class ValidationsImpl implements Validations { /** * Organization Validate proxy resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model * @param options The options parameters. @@ -42,17 +42,17 @@ export class ValidationsImpl implements Validations { resourceGroupName: string, organizationName: string, body: OrganizationResource, - options?: ValidationsValidateOrganizationOptionalParams + options?: ValidationsValidateOrganizationOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - validateOrganizationOperationSpec + validateOrganizationOperationSpec, ); } /** * Organization Validate proxy resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model * @param options The options parameters. @@ -61,11 +61,11 @@ export class ValidationsImpl implements Validations { resourceGroupName: string, organizationName: string, body: OrganizationResource, - options?: ValidationsValidateOrganizationV2OptionalParams + options?: ValidationsValidateOrganizationV2OptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, organizationName, body, options }, - validateOrganizationV2OperationSpec + validateOrganizationV2OperationSpec, ); } } @@ -73,50 +73,48 @@ export class ValidationsImpl implements Validations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const validateOrganizationOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidate", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.OrganizationResource + bodyMapper: Mappers.OrganizationResource, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body3, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const validateOrganizationV2OperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidateV2", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/validations/{organizationName}/orgvalidateV2", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.ValidationResponse + bodyMapper: Mappers.ValidationResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body3, + requestBody: Parameters.body5, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.organizationName + Parameters.organizationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/access.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/access.ts index f1f8c4dd11cb..fc73c7691c87 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/access.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/access.ts @@ -22,14 +22,20 @@ import { AccessListClustersOptionalParams, AccessListClustersResponse, AccessListRoleBindingsOptionalParams, - AccessListRoleBindingsResponse + AccessListRoleBindingsResponse, + AccessCreateRoleBindingRequestModel, + AccessCreateRoleBindingOptionalParams, + AccessCreateRoleBindingResponse, + AccessDeleteRoleBindingOptionalParams, + AccessListRoleBindingNameListOptionalParams, + AccessListRoleBindingNameListResponse, } from "../models"; /** Interface representing a Access. */ export interface Access { /** * Organization users details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -38,11 +44,11 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListUsersOptionalParams + options?: AccessListUsersOptionalParams, ): Promise; /** * Organization service accounts details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -51,11 +57,11 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListServiceAccountsOptionalParams + options?: AccessListServiceAccountsOptionalParams, ): Promise; /** * Organization accounts invitation details - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body List Access Request Model * @param options The options parameters. @@ -64,11 +70,11 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListInvitationsOptionalParams + options?: AccessListInvitationsOptionalParams, ): Promise; /** * Invite user to the organization - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Invite user account model * @param options The options parameters. @@ -77,7 +83,7 @@ export interface Access { resourceGroupName: string, organizationName: string, body: AccessInviteUserAccountModel, - options?: AccessInviteUserOptionalParams + options?: AccessInviteUserOptionalParams, ): Promise; /** * Environment list of an organization @@ -90,7 +96,7 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListEnvironmentsOptionalParams + options?: AccessListEnvironmentsOptionalParams, ): Promise; /** * Cluster details @@ -103,7 +109,7 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListClustersOptionalParams + options?: AccessListClustersOptionalParams, ): Promise; /** * Organization role bindings @@ -116,6 +122,45 @@ export interface Access { resourceGroupName: string, organizationName: string, body: ListAccessRequestModel, - options?: AccessListRoleBindingsOptionalParams + options?: AccessListRoleBindingsOptionalParams, ): Promise; + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body Create role binding Request Model + * @param options The options parameters. + */ + createRoleBinding( + resourceGroupName: string, + organizationName: string, + body: AccessCreateRoleBindingRequestModel, + options?: AccessCreateRoleBindingOptionalParams, + ): Promise; + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param roleBindingId Confluent Role binding id + * @param options The options parameters. + */ + deleteRoleBinding( + resourceGroupName: string, + organizationName: string, + roleBindingId: string, + options?: AccessDeleteRoleBindingOptionalParams, + ): Promise; + /** + * Organization role bindings + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body List Access Request Model + * @param options The options parameters. + */ + listRoleBindingNameList( + resourceGroupName: string, + organizationName: string, + body: ListAccessRequestModel, + options?: AccessListRoleBindingNameListOptionalParams, + ): Promise; } diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts index 8a1c45da778c..18f64ec69431 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/marketplaceAgreements.ts @@ -11,7 +11,7 @@ import { ConfluentAgreementResource, MarketplaceAgreementsListOptionalParams, MarketplaceAgreementsCreateOptionalParams, - MarketplaceAgreementsCreateResponse + MarketplaceAgreementsCreateResponse, } from "../models"; /// @@ -22,13 +22,13 @@ export interface MarketplaceAgreements { * @param options The options parameters. */ list( - options?: MarketplaceAgreementsListOptionalParams + options?: MarketplaceAgreementsListOptionalParams, ): PagedAsyncIterableIterator; /** * Create Confluent Marketplace agreement in the subscription. * @param options The options parameters. */ create( - options?: MarketplaceAgreementsCreateOptionalParams + options?: MarketplaceAgreementsCreateOptionalParams, ): Promise; } diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts index c7dca9180a76..3ad80109bea1 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/organization.ts @@ -12,13 +12,34 @@ import { OrganizationResource, OrganizationListBySubscriptionOptionalParams, OrganizationListByResourceGroupOptionalParams, + SCEnvironmentRecord, + OrganizationListEnvironmentsOptionalParams, + SCClusterRecord, + OrganizationListClustersOptionalParams, + SchemaRegistryClusterRecord, + OrganizationListSchemaRegistryClustersOptionalParams, OrganizationGetOptionalParams, OrganizationGetResponse, OrganizationCreateOptionalParams, OrganizationCreateResponse, OrganizationUpdateOptionalParams, OrganizationUpdateResponse, - OrganizationDeleteOptionalParams + OrganizationDeleteOptionalParams, + OrganizationGetEnvironmentByIdOptionalParams, + OrganizationGetEnvironmentByIdResponse, + ListAccessRequestModel, + OrganizationListRegionsOptionalParams, + OrganizationListRegionsResponse, + CreateAPIKeyModel, + OrganizationCreateAPIKeyOptionalParams, + OrganizationCreateAPIKeyResponse, + OrganizationDeleteClusterAPIKeyOptionalParams, + OrganizationGetClusterAPIKeyOptionalParams, + OrganizationGetClusterAPIKeyResponse, + OrganizationGetSchemaRegistryClusterByIdOptionalParams, + OrganizationGetSchemaRegistryClusterByIdResponse, + OrganizationGetClusterByIdOptionalParams, + OrganizationGetClusterByIdResponse, } from "../models"; /// @@ -29,38 +50,75 @@ export interface Organization { * @param options The options parameters. */ listBySubscription( - options?: OrganizationListBySubscriptionOptionalParams + options?: OrganizationListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * List all Organizations under the specified resource group. - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param options The options parameters. */ listByResourceGroup( resourceGroupName: string, - options?: OrganizationListByResourceGroupOptionalParams + options?: OrganizationListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** - * Get the properties of a specific Organization resource. + * Lists of all the environments in a organization + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param options The options parameters. + */ + listEnvironments( + resourceGroupName: string, + organizationName: string, + options?: OrganizationListEnvironmentsOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Lists of all the clusters in a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + listClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListClustersOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get schema registry clusters * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + listSchemaRegistryClusters( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationListSchemaRegistryClustersOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get the properties of a specific Organization resource. + * @param resourceGroupName Resource group name + * @param organizationName Organization resource name * @param options The options parameters. */ get( resourceGroupName: string, organizationName: string, - options?: OrganizationGetOptionalParams + options?: OrganizationGetOptionalParams, ): Promise; /** * Create Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ beginCreate( resourceGroupName: string, organizationName: string, - options?: OrganizationCreateOptionalParams + options?: OrganizationCreateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -69,46 +127,146 @@ export interface Organization { >; /** * Create Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ beginCreateAndWait( resourceGroupName: string, organizationName: string, - options?: OrganizationCreateOptionalParams + options?: OrganizationCreateOptionalParams, ): Promise; /** * Update Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ update( resourceGroupName: string, organizationName: string, - options?: OrganizationUpdateOptionalParams + options?: OrganizationUpdateOptionalParams, ): Promise; /** * Delete Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ beginDelete( resourceGroupName: string, organizationName: string, - options?: OrganizationDeleteOptionalParams + options?: OrganizationDeleteOptionalParams, ): Promise, void>>; /** * Delete Organization resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, organizationName: string, - options?: OrganizationDeleteOptionalParams + options?: OrganizationDeleteOptionalParams, + ): Promise; + /** + * Get Environment details by environment Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param options The options parameters. + */ + getEnvironmentById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + options?: OrganizationGetEnvironmentByIdOptionalParams, + ): Promise; + /** + * cloud provider regions available for creating Schema Registry clusters. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param body List Access Request Model + * @param options The options parameters. + */ + listRegions( + resourceGroupName: string, + organizationName: string, + body: ListAccessRequestModel, + options?: OrganizationListRegionsOptionalParams, + ): Promise; + /** + * Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param body Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster + * ID under a environment + * @param options The options parameters. + */ + createAPIKey( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + body: CreateAPIKeyModel, + options?: OrganizationCreateAPIKeyOptionalParams, + ): Promise; + /** + * Deletes API key of a kafka or schema registry cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param apiKeyId Confluent API Key id + * @param options The options parameters. + */ + deleteClusterAPIKey( + resourceGroupName: string, + organizationName: string, + apiKeyId: string, + options?: OrganizationDeleteClusterAPIKeyOptionalParams, ): Promise; + /** + * Get API key details of a kafka or schema registry cluster + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param apiKeyId Confluent API Key id + * @param options The options parameters. + */ + getClusterAPIKey( + resourceGroupName: string, + organizationName: string, + apiKeyId: string, + options?: OrganizationGetClusterAPIKeyOptionalParams, + ): Promise; + /** + * Get schema registry cluster by Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param options The options parameters. + */ + getSchemaRegistryClusterById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + options?: OrganizationGetSchemaRegistryClusterByIdOptionalParams, + ): Promise; + /** + * Get cluster by Id + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param organizationName Organization resource name + * @param environmentId Confluent environment id + * @param clusterId Confluent kafka or schema registry cluster id + * @param options The options parameters. + */ + getClusterById( + resourceGroupName: string, + organizationName: string, + environmentId: string, + clusterId: string, + options?: OrganizationGetClusterByIdOptionalParams, + ): Promise; } diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts index 40d4e1173bfc..0e09c8177326 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/organizationOperations.ts @@ -9,7 +9,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { OperationResult, - OrganizationOperationsListOptionalParams + OrganizationOperationsListOptionalParams, } from "../models"; /// @@ -20,6 +20,6 @@ export interface OrganizationOperations { * @param options The options parameters. */ list( - options?: OrganizationOperationsListOptionalParams + options?: OrganizationOperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts b/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts index 1ec5eb5dac91..5a6a5f548bd2 100644 --- a/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts +++ b/sdk/confluent/arm-confluent/src/operationsInterfaces/validations.ts @@ -11,14 +11,14 @@ import { ValidationsValidateOrganizationOptionalParams, ValidationsValidateOrganizationResponse, ValidationsValidateOrganizationV2OptionalParams, - ValidationsValidateOrganizationV2Response + ValidationsValidateOrganizationV2Response, } from "../models"; /** Interface representing a Validations. */ export interface Validations { /** * Organization Validate proxy resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model * @param options The options parameters. @@ -27,11 +27,11 @@ export interface Validations { resourceGroupName: string, organizationName: string, body: OrganizationResource, - options?: ValidationsValidateOrganizationOptionalParams + options?: ValidationsValidateOrganizationOptionalParams, ): Promise; /** * Organization Validate proxy resource - * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceGroupName Resource group name * @param organizationName Organization resource name * @param body Organization resource model * @param options The options parameters. @@ -40,6 +40,6 @@ export interface Validations { resourceGroupName: string, organizationName: string, body: OrganizationResource, - options?: ValidationsValidateOrganizationV2OptionalParams + options?: ValidationsValidateOrganizationV2OptionalParams, ): Promise; } diff --git a/sdk/confluent/arm-confluent/src/pagingHelper.ts b/sdk/confluent/arm-confluent/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/confluent/arm-confluent/src/pagingHelper.ts +++ b/sdk/confluent/arm-confluent/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; From d2dccfaf1d38ba383acbfa712a7e12ddc5eaf184 Mon Sep 17 00:00:00 2001 From: Jackson Weber <47067795+JacksonWeber@users.noreply.github.com> Date: Fri, 15 Mar 2024 11:38:31 -0700 Subject: [PATCH 53/57] [Azure Monitor OpenTelemetry] Update 1.3.0 CHANGELOG (#28942) ### Packages impacted by this PR @azure/monitor-opentelemetry ### Checklists - [x] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [x] Added a changelog (if necessary) --- .../monitor-opentelemetry/CHANGELOG.md | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/sdk/monitor/monitor-opentelemetry/CHANGELOG.md b/sdk/monitor/monitor-opentelemetry/CHANGELOG.md index e0a4047977be..ec99ba41490a 100644 --- a/sdk/monitor/monitor-opentelemetry/CHANGELOG.md +++ b/sdk/monitor/monitor-opentelemetry/CHANGELOG.md @@ -2,10 +2,6 @@ ## Unreleased () -### Other Changes - -- Updated the @microsoft/applicationinsights-web-snippet to v1.1.2. - ## 1.3.0 (2024-02-13) ### Features Added @@ -14,15 +10,23 @@ ### Bugs Fixed -- Detecting Azure Functions and Azure App Service RPs incorrectly in the browser SDK loader. +- Fix detecting Azure Functions and Azure App Service RPs incorrectly in the browser SDK loader. - Fix OpenTelemetry Resource type being used when resource is set on the AzureMonitorOpenTelemetryOptions by resource detector. - Fix Resource typing on the Azure Monitor config. +- Fix document duration, dependency duration metric, and default quickpulse endpoint. +- Fix issue with miscalculation of Live Metrics request/depdendency duration. ### Other Changes - Updated Quickpulse transmission time. - Update OpenTelemetry depdendencies. - Add SDK prefix including attach type in both manual and auto-attach scenarios. +- Updated the @microsoft/applicationinsights-web-snippet to version 1.1.2. +- Update swagger definition file for Quickpulse. +- Updated to use exporter version 1.0.0-beta.21. +- Update standard metric names. +- Update to use dev-tool to run tests. +- Add properties in Live Metrics Documents. ## 1.2.0 (2024-01-23) @@ -48,6 +52,7 @@ - Handle issue of custom MeterReaders not being able to collect metrics for instrumentations. ### Other Changes + - Update OpenTelemetry dependencies. - Change JSON config values precedence. - Fix broken link in README. @@ -55,11 +60,13 @@ ## 1.1.0 (2023-10-09) ### Bugs Fixed + - Fix precedence of JSON config value changes over defaults. - Fix custom MeterReaders not being able to collect metrics for instrumentations. - Fix values for Statsbeat Features and Instrumentations. ### Other Changes + - Fix lint issues. ## 1.0.0 (2023-09-20) @@ -69,17 +76,18 @@ - Add support for Azure Functions programming model v4. ### Bugs Fixed + - Avoid dependency telemetry for ingestion endpoint calls. - Add custom AI Sampler to maintain data reliability in Standard Metrics. - Fix issues with SDK version not propagating correctly. ### Other Changes + - Update to latest OpenTelemetry dependencies. - Rename azureMonitorExporterConfig. - Remove singleton in handlers. - Adding Functional Tests. - ## 1.0.0-beta.3 (2023-08-30) ### Features Added From 0108b2ba808aa4e0308d350205c920d0dda37334 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Fri, 15 Mar 2024 17:23:56 -0400 Subject: [PATCH 54/57] Sync eng/common directory with azure-sdk-tools for PR 7892 (#28944) Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/7892 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: Ben Broderick Phillips --- .../templates/steps/bypass-local-dns.yml | 2 +- .../templates/steps/git-push-changes.yml | 23 +++++-------------- eng/common/scripts/check-for-git-changes.ps1 | 14 +++++++++++ eng/common/testproxy/publish-proxy-logs.yml | 7 +++--- 4 files changed, 25 insertions(+), 21 deletions(-) create mode 100644 eng/common/scripts/check-for-git-changes.ps1 diff --git a/eng/common/pipelines/templates/steps/bypass-local-dns.yml b/eng/common/pipelines/templates/steps/bypass-local-dns.yml index 922f58a8286c..6e30c91fd258 100644 --- a/eng/common/pipelines/templates/steps/bypass-local-dns.yml +++ b/eng/common/pipelines/templates/steps/bypass-local-dns.yml @@ -6,6 +6,6 @@ steps: condition: | and( succeededOrFailed(), - contains(variables['OSVmImage'], 'ubuntu'), + or(contains(variables['OSVmImage'], 'ubuntu'),contains(variables['OSVmImage'], 'linux')), eq(variables['Container'], '') ) diff --git a/eng/common/pipelines/templates/steps/git-push-changes.yml b/eng/common/pipelines/templates/steps/git-push-changes.yml index a922b203a9b1..c8fbeaa9769c 100644 --- a/eng/common/pipelines/templates/steps/git-push-changes.yml +++ b/eng/common/pipelines/templates/steps/git-push-changes.yml @@ -10,25 +10,14 @@ parameters: SkipCheckingForChanges: false steps: -- pwsh: | - echo "git add -A" - git add -A - - echo "git diff --name-status --cached --exit-code" - git diff --name-status --cached --exit-code - - if ($LastExitCode -ne 0) { - echo "##vso[task.setvariable variable=HasChanges]$true" - echo "Changes detected so setting HasChanges=true" - } - else { - echo "##vso[task.setvariable variable=HasChanges]$false" - echo "No changes so skipping code push" - } +- task: PowerShell@2 displayName: Check for changes condition: and(succeeded(), eq(${{ parameters.SkipCheckingForChanges }}, false)) - workingDirectory: ${{ parameters.WorkingDirectory }} - ignoreLASTEXITCODE: true + inputs: + pwsh: true + workingDirectory: ${{ parameters.WorkingDirectory }} + filePath: ${{ parameters.ScriptDirectory }}/check-for-git-changes.ps1 + ignoreLASTEXITCODE: true - pwsh: | # Remove the repo owner from the front of the repo name if it exists there diff --git a/eng/common/scripts/check-for-git-changes.ps1 b/eng/common/scripts/check-for-git-changes.ps1 new file mode 100644 index 000000000000..2c1186ab0b3f --- /dev/null +++ b/eng/common/scripts/check-for-git-changes.ps1 @@ -0,0 +1,14 @@ +echo "git add -A" +git add -A + +echo "git diff --name-status --cached --exit-code" +git diff --name-status --cached --exit-code + +if ($LastExitCode -ne 0) { + echo "##vso[task.setvariable variable=HasChanges]$true" + echo "Changes detected so setting HasChanges=true" +} +else { + echo "##vso[task.setvariable variable=HasChanges]$false" + echo "No changes so skipping code push" +} diff --git a/eng/common/testproxy/publish-proxy-logs.yml b/eng/common/testproxy/publish-proxy-logs.yml index 543186edd353..4f4d3d7f548f 100644 --- a/eng/common/testproxy/publish-proxy-logs.yml +++ b/eng/common/testproxy/publish-proxy-logs.yml @@ -3,16 +3,17 @@ parameters: steps: - pwsh: | - Copy-Item -Path "${{ parameters.rootFolder }}/test-proxy.log" -Destination "${{ parameters.rootFolder }}/proxy.log" + New-Item -ItemType Directory -Force "${{ parameters.rootFolder }}/proxy-logs" + Copy-Item -Path "${{ parameters.rootFolder }}/test-proxy.log" -Destination "${{ parameters.rootFolder }}/proxy-logs/proxy.log" displayName: Copy Log File condition: succeededOrFailed() - template: ../pipelines/templates/steps/publish-artifact.yml parameters: ArtifactName: "$(System.StageName)-$(System.JobName)-$(System.JobAttempt)-proxy-logs" - ArtifactPath: "${{ parameters.rootFolder }}/proxy.log" + ArtifactPath: "${{ parameters.rootFolder }}/proxy-logs" - pwsh: | - Remove-Item -Force ${{ parameters.rootFolder }}/proxy.log + Remove-Item -Force ${{ parameters.rootFolder }}/proxy-logs/proxy.log displayName: Cleanup Copied Log File condition: succeededOrFailed() From d738efb7e2f6da7b3cae4df94fa75582ebb96161 Mon Sep 17 00:00:00 2001 From: Daniel Getu Date: Sat, 16 Mar 2024 23:59:30 -0700 Subject: [PATCH 55/57] [Search] Regenerate with 2024-03-01-Preview spec (#28576) --- .vscode/cspell.json | 499 +- .../perf-tests/search-documents/package.json | 2 +- sdk/search/search-documents/.eslintrc.json | 14 + .../search-documents/.vscode/settings.json | 3 - sdk/search/search-documents/CHANGELOG.md | 92 + sdk/search/search-documents/README.md | 6 +- .../search-documents/api-extractor.json | 14 +- sdk/search/search-documents/assets.json | 2 +- sdk/search/search-documents/openai-patch.diff | 4 - sdk/search/search-documents/package.json | 65 +- .../review/search-documents.api.md | 1037 ++-- sdk/search/search-documents/sample.env | 6 +- .../bufferedSenderAutoFlushSize.ts | 13 +- .../bufferedSenderAutoFlushTimer.ts | 13 +- .../samples-dev/bufferedSenderManualFlush.ts | 8 +- .../dataSourceConnectionOperations.ts | 22 +- .../samples-dev/indexOperations.ts | 26 +- .../samples-dev/indexerOperations.ts | 35 +- .../samples-dev/interfaces.ts | 8 +- .../samples-dev/searchClientOperations.ts | 6 +- .../search-documents/samples-dev/setup.ts | 16 +- .../samples-dev/skillSetOperations.ts | 31 +- .../samples-dev/stickySession.ts | 84 + .../samples-dev/synonymMapOperations.ts | 27 +- .../samples-dev/vectorSearch.ts | 56 +- .../samples/v12-beta/javascript/README.md | 26 +- .../javascript/bufferedSenderAutoFlushSize.js | 11 +- .../bufferedSenderAutoFlushTimer.js | 11 +- .../javascript/bufferedSenderManualFlush.js | 6 +- .../dataSourceConnectionOperations.js | 12 +- .../v12-beta/javascript/indexOperations.js | 16 +- .../v12-beta/javascript/indexerOperations.js | 18 +- .../samples/v12-beta/javascript/sample.env | 4 +- .../javascript/searchClientOperations.js | 4 +- .../samples/v12-beta/javascript/setup.js | 10 +- .../v12-beta/javascript/skillSetOperations.js | 18 +- .../v12-beta/javascript/stickySession.js | 77 + .../javascript/synonymMapOperations.js | 14 +- .../v12-beta/javascript/vectorSearch.js | 54 +- .../samples/v12-beta/typescript/README.md | 26 +- .../samples/v12-beta/typescript/sample.env | 4 +- .../src/bufferedSenderAutoFlushSize.ts | 17 +- .../src/bufferedSenderAutoFlushTimer.ts | 17 +- .../src/bufferedSenderManualFlush.ts | 12 +- .../src/dataSourceConnectionOperations.ts | 33 +- .../typescript/src/indexOperations.ts | 30 +- .../typescript/src/indexerOperations.ts | 37 +- .../v12-beta/typescript/src/interfaces.ts | 8 +- .../typescript/src/searchClientOperations.ts | 8 +- .../samples/v12-beta/typescript/src/setup.ts | 14 +- .../typescript/src/skillSetOperations.ts | 31 +- .../v12-beta/typescript/src/stickySession.ts | 84 + .../typescript/src/synonymMapOperations.ts | 27 +- .../v12-beta/typescript/src/vectorSearch.ts | 58 +- .../samples/v12/javascript/sample.env | 4 +- .../samples/v12/typescript/sample.env | 4 +- .../scripts/generateSampleEmbeddings.ts | 6 +- sdk/search/search-documents/src/constants.ts | 2 +- .../search-documents/src/errorModels.ts | 54 + .../src/generated/data/models/index.ts | 248 +- .../src/generated/data/models/mappers.ts | 735 +-- .../src/generated/data/models/parameters.ts | 392 +- .../generated/data/operations/documents.ts | 116 +- .../data/operationsInterfaces/documents.ts | 20 +- .../src/generated/data/searchClient.ts | 54 +- .../src/generated/service/models/index.ts | 905 ++-- .../src/generated/service/models/mappers.ts | 4254 +++++++++-------- .../generated/service/models/parameters.ts | 143 +- .../generated/service/operations/aliases.ts | 62 +- .../service/operations/dataSources.ts | 66 +- .../generated/service/operations/indexers.ts | 104 +- .../generated/service/operations/indexes.ts | 86 +- .../generated/service/operations/skillsets.ts | 74 +- .../service/operations/synonymMaps.ts | 64 +- .../service/operationsInterfaces/aliases.ts | 10 +- .../operationsInterfaces/dataSources.ts | 12 +- .../service/operationsInterfaces/indexers.ts | 16 +- .../service/operationsInterfaces/indexes.ts | 14 +- .../service/operationsInterfaces/skillsets.ts | 12 +- .../operationsInterfaces/synonymMaps.ts | 12 +- .../generated/service/searchServiceClient.ts | 68 +- .../src/generatedStringLiteralUnions.ts | 458 ++ sdk/search/search-documents/src/index.ts | 694 +-- .../src/indexDocumentsBatch.ts | 36 +- .../search-documents/src/indexModels.ts | 440 +- .../src/odataMetadataPolicy.ts | 2 +- .../search-documents/src/searchClient.ts | 157 +- .../search-documents/src/searchIndexClient.ts | 37 +- .../src/searchIndexerClient.ts | 32 +- .../src/searchIndexingBufferedSender.ts | 21 +- .../search-documents/src/serviceModels.ts | 357 +- .../search-documents/src/serviceUtils.ts | 295 +- .../search-documents/src/synonymMapHelper.ts | 4 +- sdk/search/search-documents/src/tracing.ts | 2 +- sdk/search/search-documents/swagger/Data.md | 40 +- .../search-documents/swagger/Service.md | 94 +- .../test/compressionDisabled.ts | 4 + .../test/internal/serialization.spec.ts | 2 +- .../test/internal/serviceUtils.spec.ts | 68 +- .../search-documents/test/narrowedTypes.ts | 10 +- .../test/public/generated/typeDefinitions.ts | 157 + .../test/public/node/searchClient.spec.ts | 151 +- .../public/node/searchIndexClient.spec.ts | 27 +- .../test/public/typeDefinitions.ts | 76 +- .../test/public/utils/interfaces.ts | 1 + .../test/public/utils/recordedClient.ts | 120 +- .../test/public/utils/setup.ts | 148 +- sdk/search/search-documents/tsconfig.json | 4 +- 108 files changed, 7835 insertions(+), 5915 deletions(-) create mode 100644 sdk/search/search-documents/.eslintrc.json delete mode 100644 sdk/search/search-documents/.vscode/settings.json delete mode 100644 sdk/search/search-documents/openai-patch.diff create mode 100644 sdk/search/search-documents/samples-dev/stickySession.ts create mode 100644 sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js create mode 100644 sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts create mode 100644 sdk/search/search-documents/src/errorModels.ts create mode 100644 sdk/search/search-documents/src/generatedStringLiteralUnions.ts create mode 100644 sdk/search/search-documents/test/compressionDisabled.ts create mode 100755 sdk/search/search-documents/test/public/generated/typeDefinitions.ts diff --git a/.vscode/cspell.json b/.vscode/cspell.json index f5062300844a..2b55b1a3ea11 100644 --- a/.vscode/cspell.json +++ b/.vscode/cspell.json @@ -2,61 +2,99 @@ "version": "0.2", "language": "en", "languageId": "typescript,javascript", - "dictionaries": [ - "powershell", - "typescript", - "node" - ], + "dictionaries": ["node", "powershell", "typescript"], "ignorePaths": [ + "**/*-lintReport.html", "**/node_modules/**", - "**/recordings/**", "**/pnpm-lock.yaml", - "common/temp/**", - "**/*-lintReport.html", + "**/recordings/**", "*.avro", - "*.tgz", - "*.png", + "*.crt", "*.jpg", + "*.key", "*.pdf", - "*.tiff", + "*.png", "*.svg", - "*.crt", - "*.key", - ".vscode/cspell.json", + "*.tgz", + "*.tiff", ".github/CODEOWNERS", + ".vscode/cspell.json", + "common/temp/**", "sdk/**/arm-*/**", - "sdk/test-utils/**", "sdk/agrifood/agrifood-farming-rest/review/*.md", "sdk/confidentialledger/confidential-ledger-rest/review/*.md", "sdk/core/core-client-lro-rest/review/*.md", "sdk/core/core-client-paging-rest/review/*.md", "sdk/core/core-client-rest/review/*.md", "sdk/documenttranslator/ai-document-translator-rest/review/*.md", + "sdk/openai/openai-rest/review/*.md", + "sdk/openai/openai/review/*.md", "sdk/purview/purview-account-rest/review/*.md", "sdk/purview/purview-administration-rest/review/*.md", "sdk/purview/purview-catalog-rest/review/*.md", "sdk/purview/purview-scanning-rest/review/*.md", "sdk/purview/purview-sharing-rest/review/*.md", "sdk/quantum/quantum-jobs/review/*.md", - "sdk/synapse/synapse-access-control/review/*.md", "sdk/synapse/synapse-access-control-rest/review/*.md", + "sdk/synapse/synapse-access-control/review/*.md", "sdk/synapse/synapse-artifacts/review/*.md", "sdk/synapse/synapse-managed-private-endpoints/review/*.md", "sdk/synapse/synapse-monitoring/review/*.md", "sdk/synapse/synapse-spark/review/*.md", - "sdk/translation/ai-translation-text-rest/review/*.md", - "sdk/openai/openai/review/*.md", - "sdk/openai/openai-rest/review/*.md" + "sdk/test-utils/**", + "sdk/translation/ai-translation-text-rest/review/*.md" ], "words": [ + "AMQP", + "BRCPF", + "Brcpf", + "CONTOSO", + "DTDL", + "ECONNRESET", + "ESDNI", + "EUGPS", + "Eloqua", + "Esdni", + "Eugps", + "Fhir", + "Fnhr", + "Guids", + "Hana", + "IDRG", + "IMDS", + "Idrg", + "Kubernetes", + "Localizable", + "Lucene", + "MPNS", + "MSRC", + "Mibps", + "ODATA", + "OTLP", + "Odbc", + "Onco", + "PLREGON", + "Personalizer", + "Petabit", + "Picometer", + "Plregon", + "Rasterize", + "Resourceid", + "Rollup", + "Rtsp", + "Sybase", + "Teradata", + "USUK", + "Uncapitalize", + "Unencrypted", + "Unprocessable", + "Usuk", + "Vertica", + "Xiaomi", "adfs", "agrifood", - "AMQP", "azsdk", - "Brcpf", - "BRCPF", "centralus", - "CONTOSO", "deps", "deserialization", "deserializers", @@ -65,184 +103,113 @@ "devdeps", "dicom", "dotenv", - "DTDL", "dtmi", "dtmis", "eastus", - "ECONNRESET", - "Eloqua", "entra", - "Esdni", - "ESDNI", "etags", - "Eugps", - "EUGPS", - "Fhir", - "Fnhr", - "Guids", - "Hana", "hnsw", - "Idrg", - "IDRG", - "IMDS", - "OTLP", - "Kubernetes", "kusto", "lcov", "lcovonly", - "Localizable", "loinc", - "Lucene", - "Mibps", "mkdir", "mkdirp", "mongodb", - "MPNS", "msal", - "MSRC", "nise", "northcentralus", "npmjs", - "ODATA", - "Odbc", - "Onco", "oncophenotype", "openai", "perfstress", "personalizer", - "Personalizer", - "Petabit", - "Picometer", - "Plregon", - "PLREGON", "pnpm", "prettierrc", "pstn", "pwsh", - "Rasterize", "reoffer", - "Resourceid", - "Rollup", "rrggbb", - "Rtsp", - "reoffer", "rushx", "soundex", "southcentralus", "struct", "structdef", - "Sybase", - "Teradata", "tmpdir", "tshy", "uaecentral", "uksouth", "ukwest", "unassignment", - "Uncapitalize", "undelete", - "Unencrypted", "unpartitioned", - "Unprocessable", "unref", "usdodcentral", "usdodeast", "usgovarizona", "usgovtexas", "usgovvirginia", - "Usuk", - "USUK", - "Vertica", - "westus", - "Xiaomi" + "vectorizer", + "westus" ], "allowCompoundWords": true, "overrides": [ { "filename": "eng/pipelines", - "words": [ - "azuresdkartifacts", - "policheck", - "gdnbaselines" - ] + "words": ["azuresdkartifacts", "gdnbaselines", "policheck"] }, { - "filename": "sdk/videoanalyzer/video-analyzer-edge/review/**/*.md", - "words": [ - "abgr", - "Abgr", - "argb", - "Argb", - "bgra", - "Bgra", - "Grpc", - "onvif", - "Onvif" - ] + "filename": "sdk/apimanagement/api-management-custom-widgets-scaffolder/review/api-management-custom-widgets-scaffolder.api.md", + "words": ["APIM", "scaffolder"] }, { - "filename": "sdk/storage/storage-blob/review/**/*.md", - "words": [ - "RAGRS" - ] + "filename": "sdk/apimanagement/api-management-custom-widgets-tools/review/api-management-custom-widgets-tools.api.md", + "words": ["APIM", "MSAPIM"] }, { - "filename": "sdk/search/search-documents/review/**/*.md", + "filename": "sdk/attestation/attestation/review/**/*.md", "words": [ - "Adls", - "adlsgen", - "bangla", - "beider", - "Bokmaal", - "Decompounder", - "haase", - "koelner", - "kstem", - "kstem", - "lovins", - "nysiis", - "odatatype", - "Phonetik", - "Piqd", - "reranker", - "Rslp", - "sorani", - "Sorani", - "Vectorizable", - "vectorizer", - "vectorizers" + "qeidcertshash", + "qeidcrlhash", + "qeidhash", + "tcbinfocertshash", + "tcbinfocrlhash", + "tcbinfohash" ] }, { - "filename": "sdk/keyvault/keyvault-keys/review/**/*.md", + "filename": "sdk/communication/communication-call-automation/review/**/*.md", "words": [ - "ECHSM", - "OKPHSM", - "RSAHSM", - "RSNULL", - "Rsnull" + "Ssml", + "answeredby", + "playsourcacheid", + "playsourcecacheid", + "sipuui", + "sipx", + "ssml" ] }, { - "filename": "sdk/keyvault/keyvault-certificates/review/**/*.md", - "words": [ - "ECHSM", - "ekus", - "RSAHSM", - "upns" - ] + "filename": "sdk/communication/communication-common/review/**/*.md", + "words": ["gcch"] }, { - "filename": "sdk/digitaltwins/digital-twins-core/review/**/*.md", - "words": [ - "dtdl" - ] + "filename": "sdk/communication/communication-email/review/**/*.md", + "words": ["rpmsg", "xlsb"] + }, + { + "filename": "sdk/containerregistry/container-registry/review/**/*.md", + "words": ["Illumos", "illumos", "mipsle", "riscv"] + }, + { + "filename": "sdk/core/core-amqp/review/**/*.md", + "words": ["EHOSTDOWN", "ENONET", "sastoken"] }, { "filename": "sdk/cosmosdb/cosmos/review/**/*.md", "words": [ - "colls", "Parition", + "colls", "pkranges", "sproc", "sprocs", @@ -254,233 +221,181 @@ ] }, { - "filename": "sdk/attestation/attestation/review/**/*.md", - "words": [ - "qeidcertshash", - "qeidcrlhash", - "qeidhash", - "tcbinfocertshash", - "tcbinfocrlhash", - "tcbinfohash" - ] + "filename": "sdk/cosmosdb/cosmos/review/cosmos.api.md", + "words": ["Funtion"] }, { - "filename": "sdk/formrecognizer/ai-form-recognizer/README.md", - "words": [ - "iddocument" - ] + "filename": "sdk/digitaltwins/digital-twins-core/review/**/*.md", + "words": ["dtdl"] }, { - "filename": "sdk/formrecognizer/ai-form-recognizer/review/**/*.md", - "words": [ - "WDLABCD", - "presentationml", - "spreadsheetml", - "wordprocessingml", - "heif", - "copays", - "Upca", - "Upce" - ] + "filename": "sdk/digitaltwins/digital-twins-core/review/digital-twins-core.api.md", + "words": ["dependecies"] }, { - "filename": "sdk/core/core-amqp/review/**/*.md", - "words": [ - "EHOSTDOWN", - "ENONET", - "sastoken" - ] + "filename": "sdk/documentintelligence/ai-document-intelligence-rest/review/ai-document-intelligence.api.md", + "words": ["presentationml", "spreadsheetml", "wordprocessingml"] }, { - "filename": "sdk/containerregistry/container-registry/review/**/*.md", + "filename": "sdk/easm/defender-easm-rest/review/defender-easm.api.md", "words": [ - "illumos", - "Illumos", - "mipsle", - "riscv" + "Alexa", + "Asns", + "Easm", + "Whois", + "alexa", + "asns", + "cnames", + "easm", + "nxdomain", + "whois" ] }, { - "filename": "sdk/communication/communication-call-automation/review/**/*.md", - "words": [ - "ssml", - "Ssml", - "answeredby", - "playsourcacheid", - "playsourcecacheid", - "sipx", - "sipuui" - ] + "filename": "sdk/eventgrid/eventgrid/review/**/*.md", + "words": ["Dicom", "Gcch", "gcch"] }, { - "filename": "sdk/communication/communication-common/review/**/*.md", - "words": [ - "gcch" - ] + "filename": "sdk/formrecognizer/ai-form-recognizer/README.md", + "words": ["iddocument"] }, { - "filename": "sdk/communication/communication-email/review/**/*.md", + "filename": "sdk/formrecognizer/ai-form-recognizer/review/**/*.md", "words": [ - "rpmsg", - "xlsb" + "Upca", + "Upce", + "WDLABCD", + "copays", + "heif", + "presentationml", + "spreadsheetml", + "wordprocessingml" ] }, { - "filename": "sdk/eventgrid/eventgrid/review/**/*.md", - "words": [ - "Dicom", - "Gcch", - "gcch" - ] + "filename": "sdk/healthinsights/azure-healthinsights-radiologyinsights/**", + "words": ["ctxt", "mros", "nify"] }, { "filename": "sdk/identity/**/*.md", - "words": [ - "MSAL", - "PKCE" - ] + "words": ["MSAL", "PKCE"] }, { "filename": "sdk/iot/iot-modelsrepository/review/**/*.md", - "words": [ - "Dtmi", - "dtmis" - ] - }, - { - "filename": "sdk/storage/storage-blob/review/storage-blob.api.md", - "words": [ - "Uncommited" - ] + "words": ["Dtmi", "dtmis"] }, { - "filename": "sdk/search/search-documents/review/search-documents.api.md", - "words": [ - "Createor" - ] - }, - { - "filename": "sdk/monitor/monitor-query/review/monitor-query.api.md", - "words": [ - "fourty", - "Milli" - ] + "filename": "sdk/keyvault/keyvault-certificates/review/**/*.md", + "words": ["ECHSM", "RSAHSM", "ekus", "upns"] }, { - "filename": "sdk/digitaltwins/digital-twins-core/review/digital-twins-core.api.md", - "words": [ - "dependecies" - ] + "filename": "sdk/keyvault/keyvault-keys/review/**/*.md", + "words": ["ECHSM", "OKPHSM", "RSAHSM", "RSNULL", "Rsnull"] }, { - "filename": "sdk/cosmosdb/cosmos/review/cosmos.api.md", - "words": [ - "Funtion" - ] + "filename": "sdk/loadtestservice/load-testing-rest/review/load-testing.api.md", + "words": ["vusers"] }, { - "filename": "sdk/apimanagement/api-management-custom-widgets-scaffolder/review/api-management-custom-widgets-scaffolder.api.md", - "words": [ - "scaffolder", - "APIM" - ] + "filename": "sdk/maps/maps-common/review/maps-common.api.md", + "words": ["bbox"] }, { - "filename": "sdk/apimanagement/api-management-custom-widgets-tools/review/api-management-custom-widgets-tools.api.md", - "words": [ - "MSAPIM", - "APIM" - ] + "filename": "sdk/maps/maps-render-rest/review/maps-render.api.md", + "words": ["bbox"] }, { - "filename": "sdk/maps/maps-common/review/maps-common.api.md", - "words": [ - "bbox" - ] + "filename": "sdk/maps/maps-route-rest/review/maps-route.api.md", + "words": ["Hundredkm", "UTURN", "bbox"] }, { - "filename": "sdk/maps/maps-route-rest/review/maps-route.api.md", - "words": [ - "bbox", - "UTURN", - "Hundredkm" - ] + "filename": "sdk/maps/maps-search-rest/review/maps-search.api.md", + "words": ["Neighbourhood", "Xstr", "bbox"] }, { - "filename": "sdk/maps/maps-render-rest/review/maps-render.api.md", - "words": [ - "bbox" - ] + "filename": "sdk/monitor/monitor-query/review/monitor-query.api.md", + "words": ["Milli", "fourty"] }, { - "filename": "sdk/maps/maps-search-rest/review/maps-search.api.md", - "words": [ - "Neighbourhood", - "Xstr", - "bbox" - ] + "filename": "sdk/notificationhubs/notification-hubs/review/notification-hubs.api.md", + "words": ["fcmv"] }, { - "filename": "sdk/apimanagement/api-management-custom-widgets-scaffolder/review/api-management-custom-widgets-scaffolder.api.md", + "filename": "sdk/search/search-documents/review/**/*.md", "words": [ - "scaffolder", - "APIM" + "Adls", + "Bokmaal", + "Decompounder", + "Phonetik", + "Piqd", + "Rslp", + "Sorani", + "Vectorizable", + "adlsgen", + "bangla", + "beider", + "haase", + "koelner", + "kstem", + "lovins", + "nysiis", + "odatatype", + "rerank", + "reranker", + "sorani", + "vectorizer", + "vectorizers" ] }, { - "filename": "sdk/loadtestservice/load-testing-rest/review/load-testing.api.md", + "filename": "sdk/search/search-documents/review/**/*.md", "words": [ - "vusers" + "Adls", + "Bokmaal", + "Decompounder", + "Phonetik", + "Piqd", + "Rslp", + "Sorani", + "Vectorizable", + "adlsgen", + "bangla", + "beider", + "haase", + "koelner", + "kstem", + "lovins", + "nysiis", + "odatatype", + "reranker", + "sorani", + "vectorizer", + "vectorizers" ] }, { - "filename": "sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md", - "words": [ - "protobuf" - ] + "filename": "sdk/search/search-documents/review/search-documents.api.md", + "words": ["Createor"] }, { - "filename": "sdk/web-pubsub/web-pubsub-client-protobuf/review/web-pubsub-client-protobuf.api.md", - "words": [ - "protobuf" - ] + "filename": "sdk/storage/storage-blob/review/**/*.md", + "words": ["RAGRS"] }, { - "filename": "sdk/easm/defender-easm-rest/review/defender-easm.api.md", - "words": [ - "Alexa", - "alexa", - "Asns", - "asns", - "cnames", - "Easm", - "easm", - "nxdomain", - "Whois", - "whois" - ] + "filename": "sdk/storage/storage-blob/review/storage-blob.api.md", + "words": ["Uncommited"] }, { - "filename": "sdk/documentintelligence/ai-document-intelligence-rest/review/ai-document-intelligence.api.md", - "words": [ - "wordprocessingml", - "spreadsheetml", - "presentationml" - ] + "filename": "sdk/videoanalyzer/video-analyzer-edge/review/**/*.md", + "words": ["Abgr", "Argb", "Bgra", "Grpc", "Onvif", "abgr", "argb", "bgra", "onvif"] }, { - "filename": "sdk/healthinsights/azure-healthinsights-radiologyinsights/**", - "words": [ - "ctxt", - "mros", - "nify" - ] + "filename": "sdk/web-pubsub/web-pubsub-client-protobuf/review/web-pubsub-client-protobuf.api.md", + "words": ["protobuf"] }, { - "filename": "sdk/notificationhubs/notification-hubs/review/notification-hubs.api.md", - "words": [ - "fcmv" - ] + "filename": "sdk/web-pubsub/web-pubsub-client/review/web-pubsub-client.api.md", + "words": ["protobuf"] } ] } diff --git a/sdk/search/perf-tests/search-documents/package.json b/sdk/search/perf-tests/search-documents/package.json index 0a4ae52496eb..bac570a8227d 100644 --- a/sdk/search/perf-tests/search-documents/package.json +++ b/sdk/search/perf-tests/search-documents/package.json @@ -9,7 +9,7 @@ "license": "ISC", "dependencies": { "@azure/identity": "^4.0.1", - "@azure/search-documents": "12.0.0-beta.4", + "@azure/search-documents": "12.1.0-beta.1", "@azure/test-utils-perf": "^1.0.0", "dotenv": "^16.0.0" }, diff --git a/sdk/search/search-documents/.eslintrc.json b/sdk/search/search-documents/.eslintrc.json new file mode 100644 index 000000000000..0149781a33a9 --- /dev/null +++ b/sdk/search/search-documents/.eslintrc.json @@ -0,0 +1,14 @@ +{ + "overrides": [ + { + "files": ["samples-dev/**.ts"], + "rules": { + // Suppresses errors for the custom TSDoc syntax we use for docs + "tsdoc/syntax": "off", + // Suppresses spurious missing dependency error as ESLint thinks the sample's runtime deps + // should be runtime deps for us too + "import/no-extraneous-dependencies": "off" + } + } + ] +} diff --git a/sdk/search/search-documents/.vscode/settings.json b/sdk/search/search-documents/.vscode/settings.json deleted file mode 100644 index 0d6ed784aae2..000000000000 --- a/sdk/search/search-documents/.vscode/settings.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "cSpell.words": ["hnsw", "openai"] -} diff --git a/sdk/search/search-documents/CHANGELOG.md b/sdk/search/search-documents/CHANGELOG.md index 6bfd637e16b7..f8395e4fdb7b 100644 --- a/sdk/search/search-documents/CHANGELOG.md +++ b/sdk/search/search-documents/CHANGELOG.md @@ -1,5 +1,97 @@ # Release History +## 12.1.0-beta.1 (2024-02-06) + +### Breaking Changes + +- Refactor in alignment with v12 [#28576](https://github.com/Azure/azure-sdk-for-js/pull/28576) + - Replace or replace the following types/properties + - Use `ExhaustiveKnnAlgorithmConfiguration` in place of + - `ExhaustiveKnnVectorSearchAlgorithmConfiguration` + - Use `HnswAlgorithmConfiguration` in place of + - `HnswVectorSearchAlgorithmConfiguration` + - Use `PIIDetectionSkill.categories` in place of + - `PIIDetectionSkill.piiCategories` + - Use `QueryAnswer` in place of + - `Answers` + - `AnswersOption` + - `QueryAnswerType` + - Use `QueryAnswerResult` in place of + - `AnswerResult` + - Use `QueryCaption` in place of + - `Captions` + - `QueryCaptionType` + - Use `QueryCaptionResult` in place of + - `CaptionResult` + - Use `SearchRequestOptions.VectorSearchOptions.filterMode` in place of + - `SearchRequestOptions.vectorFilterMode` + - Use `SearchRequestOptions.VectorSearchOptions.queries` in place of + - `SearchRequestOptions.vectorQueries` + - Use `SearchRequestOptions.semanticSearchOptions.answers` in place of + - `SearchRequestOptions.answers` + - Use `SearchRequestOptions.semanticSearchOptions.captions` in place of + - `SearchRequestOptions.captions` + - Use `SearchRequestOptions.semanticSearchOptions.configurationName` in place of + - `SearchRequestOptions.semanticConfiguration` + - Use `SearchRequestOptions.semanticSearchOptions.debugMode` in place of + - `SearchRequestOptions.debugMode` + - Use `SearchRequestOptions.semanticSearchOptions.errorMode` in place of + - `SearchRequestOptions.semanticErrorHandlingMode` + - Use `SearchRequestOptions.semanticSearchOptions.maxWaitInMilliseconds` in place of + - `SearchRequestOptions.semanticMaxWaitInMilliseconds` + - Use `SearchRequestOptions.semanticSearchOptions.semanticFields` in place of + - `SearchRequestOptions.semanticFields` + - Use `SearchRequestOptions.semanticSearchOptions.semanticQuery` in place of + - `SearchRequestOptions.semanticQuery` + - Use `SemanticErrorMode` in place of + - `SemanticErrorHandlingMode` + - Use `SemanticErrorReason` in place of + - `SemanticPartialResponseReason` + - Use `SemanticPrioritizedFields` in place of + - `PrioritizedFields` + - Use `SemanticSearch` in place of + - `SemanticSettings` + - Use `SemanticSearchResultsType` in place of + - `SemanticPartialResponseType` + - Use `SimpleField.vectorSearchProfileName` in place of + - `SimpleField.vectorSearchProfile` + - Use `VectorSearchProfile.algorithmConfigurationName` in place of + - `VectorSearchProfile.algorithm` + - Narrow some enum property types to the respective string literal union + - `BlobIndexerDataToExtract` + - `BlobIndexerImageAction` + - `BlobIndexerParsingMode` + - `BlobIndexerPDFTextRotationAlgorithm` + - `CustomEntityLookupSkillLanguage` + - `EntityCategory` + - `EntityRecognitionSkillLanguage` + - `ImageAnalysisSkillLanguage` + - `ImageDetail` + - `IndexerExecutionEnvironment` + - `KeyPhraseExtractionSkillLanguage` + - `OcrSkillLanguage` + - `RegexFlags` + - `SearchIndexerDataSourceType` + - `SentimentSkillLanguage` + - `SplitSkillLanguage` + - `TextSplitMode` + - `TextTranslationSkillLanguage` + - `VisualFeature` + - Remove `KnownLexicalAnalyzerName` as a duplicate of `KnownAnalyzerNames` + - Remove `KnownCharFilterName` as a duplicate of `KnownCharFilterNames` + - Remove `KnownTokenFilterName` as a duplicate of `KnownTokenFilterNames` + - Remove `SearchRequest` as a duplicate of `SearchRequestOptions` + +### Features Added + +- Add vector compression [#28772](https://github.com/Azure/azure-sdk-for-js/pull/28772) + - Service-side scalar quantization of your vector data + - Optional reranking with full-precision vectors + - Optional oversampling of documents when reranking compressed vectors +- Add `Edm.Half`, `Edm.Int16`, and `Edm.SByte` vector spaces [#28772](https://github.com/Azure/azure-sdk-for-js/pull/28772) +- Add non-persistent vector usage through `SimpleField.stored` [#28772](https://github.com/Azure/azure-sdk-for-js/pull/28772) +- Expose the internal HTTP pipeline to allow users to send raw requests with it + ## 12.0.0-beta.4 (2023-10-11) ### Features Added diff --git a/sdk/search/search-documents/README.md b/sdk/search/search-documents/README.md index ea4102243066..1205f66565a3 100644 --- a/sdk/search/search-documents/README.md +++ b/sdk/search/search-documents/README.md @@ -17,7 +17,7 @@ The Azure AI Search service is well suited for the following application scenari * In a search client application, implement query logic and user experiences similar to commercial web search engines and chat-style apps. -Use the Azure.Search.Documents client library to: +Use the @azure/search-documents client library to: * Submit queries using vector, keyword, and hybrid query forms. * Implement filtered queries for metadata, geospatial search, faceted navigation, @@ -349,14 +349,14 @@ interface Hotel { hotelId?: string; hotelName?: string | null; description?: string | null; - descriptionVector?: Array | null; + descriptionVector?: Array; parkingIncluded?: boolean | null; lastRenovationDate?: Date | null; rating?: number | null; rooms?: Array<{ beds?: number | null; description?: string | null; - } | null>; + }>; } const client = new SearchClient( diff --git a/sdk/search/search-documents/api-extractor.json b/sdk/search/search-documents/api-extractor.json index 5f593659b1e3..b8a764c0c59a 100644 --- a/sdk/search/search-documents/api-extractor.json +++ b/sdk/search/search-documents/api-extractor.json @@ -10,15 +10,10 @@ }, "dtsRollup": { "enabled": true, - "untrimmedFilePath": "", - "publicTrimmedFilePath": "./types/search-documents.d.ts" + "publicTrimmedFilePath": "./types/search-documents.d.ts", + "untrimmedFilePath": "" }, "messages": { - "tsdocMessageReporting": { - "default": { - "logLevel": "none" - } - }, "extractorMessageReporting": { "ae-missing-release-tag": { "logLevel": "none" @@ -26,6 +21,11 @@ "ae-unresolved-link": { "logLevel": "none" } + }, + "tsdocMessageReporting": { + "default": { + "logLevel": "none" + } } } } diff --git a/sdk/search/search-documents/assets.json b/sdk/search/search-documents/assets.json index e373b7adce0d..27cf47b60609 100644 --- a/sdk/search/search-documents/assets.json +++ b/sdk/search/search-documents/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/search/search-documents", - "Tag": "js/search/search-documents_f8e9f163e2" + "Tag": "js/search/search-documents_b75f2ec5af" } diff --git a/sdk/search/search-documents/openai-patch.diff b/sdk/search/search-documents/openai-patch.diff deleted file mode 100644 index cfc7beb7faf2..000000000000 --- a/sdk/search/search-documents/openai-patch.diff +++ /dev/null @@ -1,4 +0,0 @@ -6c6 -< "main": "dist/index.js", ---- -> "main": "dist/index.cjs", diff --git a/sdk/search/search-documents/package.json b/sdk/search/search-documents/package.json index 1ad535945142..20dcc97af993 100644 --- a/sdk/search/search-documents/package.json +++ b/sdk/search/search-documents/package.json @@ -1,6 +1,6 @@ { "name": "@azure/search-documents", - "version": "12.0.0-beta.4", + "version": "12.1.0-beta.1", "description": "Azure client library to use Cognitive Search for node.js and browser.", "sdk-type": "client", "main": "dist/index.js", @@ -8,37 +8,37 @@ "types": "types/search-documents.d.ts", "scripts": { "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit", + "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "build:browser": "tsc -p . && dev-tool run bundle", "build:node": "tsc -p . && dev-tool run bundle", "build:samples": "echo Obsolete.", - "execute:samples": "dev-tool samples run samples-dev", "build:test": "tsc -p . && dev-tool run bundle", - "build": "npm run clean && tsc -p . && dev-tool run bundle && api-extractor run --local", "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "clean": "rimraf --glob dist dist-* temp types *.tgz *.log", + "execute:samples": "dev-tool samples run samples-dev", "extract-api": "tsc -p . && api-extractor run --local", "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"samples-dev/**/*.ts\" \"*.{js,json}\"", "generate:client": "autorest --typescript swagger/Service.md & autorest --typescript swagger/Data.md & wait", "generate:embeddings": "ts-node scripts/generateSampleEmbeddings.ts", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", "integration-test:browser": "dev-tool run test:browser", "integration-test:node": "dev-tool run test:node-js-input -- --timeout 5000000 'dist-esm/test/**/*.spec.js'", - "integration-test": "npm run integration-test:node && npm run integration-test:browser", - "lint:fix": "eslint package.json api-extractor.json src test --ext .ts --fix --fix-type [problem,suggestion]", - "lint": "eslint package.json api-extractor.json src test --ext .ts", + "lint": "eslint package.json api-extractor.json src test samples-dev --ext .ts", + "lint:fix": "eslint package.json api-extractor.json src test samples-dev --ext .ts --fix --fix-type [problem,suggestion]", "pack": "npm pack 2>&1", + "test": "npm run build:test && npm run unit-test", "test:browser": "npm run build:test && npm run unit-test:browser", "test:node": "npm run build:test && npm run unit-test:node", - "test": "npm run build:test && npm run unit-test", + "unit-test": "npm run unit-test:node && npm run unit-test:browser", "unit-test:browser": "dev-tool run test:browser", - "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 \"test/**/*.spec.ts\" \"test/**/**/*.spec.ts\"", - "unit-test": "npm run unit-test:node && npm run unit-test:browser" + "unit-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 \"test/**/*.spec.ts\" \"test/**/**/*.spec.ts\"" }, "files": [ - "dist/", - "dist-esm/src/", - "types/search-documents.d.ts", + "LICENSE", "README.md", - "LICENSE" + "dist-esm/src/", + "dist/", + "types/search-documents.d.ts" ], "browser": { "./dist-esm/src/base64.js": "./dist-esm/src/base64.browser.js", @@ -47,12 +47,8 @@ "//metadata": { "constantPaths": [ { - "path": "swagger/Service.md", - "prefix": "package-version" - }, - { - "path": "swagger/Data.md", - "prefix": "package-version" + "path": "src/constants.ts", + "prefix": "SDK_VERSION" }, { "path": "src/generated/data/searchClient.ts", @@ -63,8 +59,12 @@ "prefix": "packageDetails" }, { - "path": "src/constants.ts", - "prefix": "SDK_VERSION" + "path": "swagger/Data.md", + "prefix": "package-version" + }, + { + "path": "swagger/Service.md", + "prefix": "package-version" } ] }, @@ -84,31 +84,34 @@ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/search/search-documents/", "sideEffects": false, "dependencies": { - "@azure/core-client": "^1.3.0", "@azure/core-auth": "^1.3.0", + "@azure/core-client": "^1.3.0", + "@azure/core-http-compat": "^2.0.1", "@azure/core-paging": "^1.1.1", - "@azure/core-tracing": "^1.0.0", "@azure/core-rest-pipeline": "^1.3.0", - "@azure/core-http-compat": "^2.0.1", + "@azure/core-tracing": "^1.0.0", "@azure/logger": "^1.0.0", - "tslib": "^2.2.0", - "events": "^3.0.0" + "events": "^3.0.0", + "tslib": "^2.2.0" }, "devDependencies": { - "@azure/openai": "1.0.0-beta.12", - "@azure/test-utils": "^1.0.0", + "@azure-tools/test-recorder": "^3.0.0", + "@azure/core-util": "^1.6.1", "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure-tools/test-recorder": "^3.0.0", + "@azure/openai": "1.0.0-beta.12", + "@azure/test-utils": "^1.0.0", "@microsoft/api-extractor": "^7.31.1", "@types/chai": "^4.1.6", "@types/mocha": "^10.0.0", "@types/node": "^18.0.0", "@types/sinon": "^17.0.0", + "c8": "^8.0.0", "chai": "^4.2.0", "cross-env": "^7.0.2", "dotenv": "^16.0.0", "eslint": "^8.0.0", + "esm": "^3.2.18", "inherits": "^2.0.3", "karma": "^6.2.0", "karma-chrome-launcher": "^3.0.0", @@ -122,13 +125,11 @@ "karma-mocha-reporter": "^2.2.5", "karma-sourcemap-loader": "^0.3.8", "mocha": "^10.0.0", - "c8": "^8.0.0", "rimraf": "^5.0.5", "sinon": "^17.0.0", "ts-node": "^10.0.0", "typescript": "~5.3.3", - "util": "^0.12.1", - "esm": "^3.2.18" + "util": "^0.12.1" }, "//sampleConfiguration": { "productName": "Azure Search Documents", diff --git a/sdk/search/search-documents/review/search-documents.api.md b/sdk/search/search-documents/review/search-documents.api.md index 5621ebf3918c..556eb019c8a4 100644 --- a/sdk/search/search-documents/review/search-documents.api.md +++ b/sdk/search/search-documents/review/search-documents.api.md @@ -11,6 +11,7 @@ import { ExtendedCommonClientOptions } from '@azure/core-http-compat'; import { KeyCredential } from '@azure/core-auth'; import { OperationOptions } from '@azure/core-client'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; +import { Pipeline } from '@azure/core-rest-pipeline'; import { RestError } from '@azure/core-rest-pipeline'; import { TokenCredential } from '@azure/core-auth'; @@ -27,12 +28,12 @@ export interface AnalyzedTokenInfo { // @public export interface AnalyzeRequest { - analyzerName?: string; - charFilters?: string[]; + analyzerName?: LexicalAnalyzerName; + charFilters?: CharFilterName[]; normalizerName?: LexicalNormalizerName; text: string; - tokenFilters?: string[]; - tokenizerName?: string; + tokenFilters?: TokenFilterName[]; + tokenizerName?: LexicalTokenizerName; } // @public @@ -44,31 +45,10 @@ export interface AnalyzeResult { export type AnalyzeTextOptions = OperationOptions & AnalyzeRequest; // @public -export interface AnswerResult { - [property: string]: any; - readonly highlights?: string; - readonly key: string; - readonly score: number; - readonly text: string; -} - -// @public -export type Answers = string; - -// @public -export type AnswersOptions = { - answers: "extractive"; - count?: number; - threshold?: number; -} | { - answers: "none"; -}; - -// @public -export type AsciiFoldingTokenFilter = BaseTokenFilter & { +export interface AsciiFoldingTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.AsciiFoldingTokenFilter"; preserveOriginal?: boolean; -}; +} // @public export interface AutocompleteItem { @@ -109,15 +89,15 @@ export interface AzureActiveDirectoryApplicationCredentials { export { AzureKeyCredential } // @public -export type AzureMachineLearningSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Custom.AmlSkill"; - scoringUri?: string; +export interface AzureMachineLearningSkill extends BaseSearchIndexerSkill { authenticationKey?: string; + degreeOfParallelism?: number; + odatatype: "#Microsoft.Skills.Custom.AmlSkill"; + region?: string; resourceId?: string; + scoringUri?: string; timeout?: string; - region?: string; - degreeOfParallelism?: number; -}; +} // @public export interface AzureOpenAIEmbeddingSkill extends BaseSearchIndexerSkill { @@ -205,6 +185,31 @@ export interface BaseSearchIndexerSkill { outputs: OutputFieldMappingEntry[]; } +// @public +export interface BaseSearchRequestOptions = SelectFields> { + facets?: string[]; + filter?: string; + highlightFields?: string; + highlightPostTag?: string; + highlightPreTag?: string; + includeTotalCount?: boolean; + minimumCoverage?: number; + orderBy?: string[]; + queryLanguage?: QueryLanguage; + queryType?: QueryType; + scoringParameters?: string[]; + scoringProfile?: string; + scoringStatistics?: ScoringStatistics; + searchFields?: SearchFieldArray; + searchMode?: SearchMode; + select?: SelectArray; + sessionId?: string; + skip?: number; + speller?: Speller; + top?: number; + vectorSearchOptions?: VectorSearchOptions; +} + // @public export interface BaseTokenFilter { name: string; @@ -217,6 +222,7 @@ export interface BaseVectorQuery { fields?: SearchFieldArray; kind: VectorQueryKind; kNearestNeighborsCount?: number; + oversampling?: number; } // @public @@ -225,41 +231,39 @@ export interface BaseVectorSearchAlgorithmConfiguration { name: string; } +// @public +export interface BaseVectorSearchCompressionConfiguration { + defaultOversampling?: number; + kind: "scalarQuantization"; + name: string; + rerankWithOriginalVectors?: boolean; +} + // @public export interface BaseVectorSearchVectorizer { kind: VectorSearchVectorizerKind; name: string; } -// @public -export type BlobIndexerDataToExtract = string; +// @public (undocumented) +export type BlobIndexerDataToExtract = "storageMetadata" | "allMetadata" | "contentAndMetadata"; -// @public -export type BlobIndexerImageAction = string; +// @public (undocumented) +export type BlobIndexerImageAction = "none" | "generateNormalizedImages" | "generateNormalizedImagePerPage"; -// @public -export type BlobIndexerParsingMode = string; +// @public (undocumented) +export type BlobIndexerParsingMode = "default" | "text" | "delimitedText" | "json" | "jsonArray" | "jsonLines"; -// @public -export type BlobIndexerPDFTextRotationAlgorithm = string; +// @public (undocumented) +export type BlobIndexerPDFTextRotationAlgorithm = "none" | "detectAngles"; // @public -export type BM25Similarity = Similarity & { - odatatype: "#Microsoft.Azure.Search.BM25Similarity"; - k1?: number; +export interface BM25Similarity extends Similarity { b?: number; -}; - -// @public -export interface CaptionResult { - [property: string]: any; - readonly highlights?: string; - readonly text?: string; + k1?: number; + odatatype: "#Microsoft.Azure.Search.BM25Similarity"; } -// @public -export type Captions = string; - // @public export type CharFilter = MappingCharFilter | PatternReplaceCharFilter; @@ -267,42 +271,42 @@ export type CharFilter = MappingCharFilter | PatternReplaceCharFilter; export type CharFilterName = string; // @public -export type CjkBigramTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.CjkBigramTokenFilter"; +export interface CjkBigramTokenFilter extends BaseTokenFilter { ignoreScripts?: CjkBigramTokenFilterScripts[]; + odatatype: "#Microsoft.Azure.Search.CjkBigramTokenFilter"; outputUnigrams?: boolean; -}; +} // @public export type CjkBigramTokenFilterScripts = "han" | "hiragana" | "katakana" | "hangul"; // @public -export type ClassicSimilarity = Similarity & { +export interface ClassicSimilarity extends Similarity { odatatype: "#Microsoft.Azure.Search.ClassicSimilarity"; -}; +} // @public -export type ClassicTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.ClassicTokenizer"; +export interface ClassicTokenizer extends BaseLexicalTokenizer { maxTokenLength?: number; -}; + odatatype: "#Microsoft.Azure.Search.ClassicTokenizer"; +} // @public export type CognitiveServicesAccount = DefaultCognitiveServicesAccount | CognitiveServicesAccountKey; // @public -export type CognitiveServicesAccountKey = BaseCognitiveServicesAccount & { - odatatype: "#Microsoft.Azure.Search.CognitiveServicesByKey"; +export interface CognitiveServicesAccountKey extends BaseCognitiveServicesAccount { key: string; -}; + odatatype: "#Microsoft.Azure.Search.CognitiveServicesByKey"; +} // @public -export type CommonGramTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.CommonGramTokenFilter"; +export interface CommonGramTokenFilter extends BaseTokenFilter { commonWords: string[]; ignoreCase?: boolean; + odatatype: "#Microsoft.Azure.Search.CommonGramTokenFilter"; useQueryMode?: boolean; -}; +} // @public export type ComplexDataType = "Edm.ComplexType" | "Collection(Edm.ComplexType)"; @@ -315,9 +319,9 @@ export interface ComplexField { } // @public -export type ConditionalSkill = BaseSearchIndexerSkill & { +export interface ConditionalSkill extends BaseSearchIndexerSkill { odatatype: "#Microsoft.Skills.Util.ConditionalSkill"; -}; +} // @public export interface CorsOptions { @@ -387,11 +391,11 @@ export type CreateSynonymMapOptions = OperationOptions; // @public export interface CustomAnalyzer { - charFilters?: string[]; + charFilters?: CharFilterName[]; name: string; odatatype: "#Microsoft.Azure.Search.CustomAnalyzer"; - tokenFilters?: string[]; - tokenizerName: string; + tokenFilters?: TokenFilterName[]; + tokenizerName: LexicalTokenizerName; } // @public @@ -419,25 +423,25 @@ export interface CustomEntityAlias { } // @public -export type CustomEntityLookupSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.CustomEntityLookupSkill"; +export interface CustomEntityLookupSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: CustomEntityLookupSkillLanguage; entitiesDefinitionUri?: string; - inlineEntitiesDefinition?: CustomEntity[]; - globalDefaultCaseSensitive?: boolean; globalDefaultAccentSensitive?: boolean; + globalDefaultCaseSensitive?: boolean; globalDefaultFuzzyEditDistance?: number; -}; + inlineEntitiesDefinition?: CustomEntity[]; + odatatype: "#Microsoft.Skills.Text.CustomEntityLookupSkill"; +} -// @public -export type CustomEntityLookupSkillLanguage = string; +// @public (undocumented) +export type CustomEntityLookupSkillLanguage = "da" | "de" | "en" | "es" | "fi" | "fr" | "it" | "ko" | "pt"; // @public -export type CustomNormalizer = BaseLexicalNormalizer & { +export interface CustomNormalizer extends BaseLexicalNormalizer { + charFilters?: CharFilterName[]; odatatype: "#Microsoft.Azure.Search.CustomNormalizer"; tokenFilters?: TokenFilterName[]; - charFilters?: CharFilterName[]; -}; +} // @public export type CustomVectorizer = BaseVectorSearchVectorizer & { @@ -471,9 +475,9 @@ export const DEFAULT_FLUSH_WINDOW: number; export const DEFAULT_RETRY_COUNT: number; // @public -export type DefaultCognitiveServicesAccount = BaseCognitiveServicesAccount & { +export interface DefaultCognitiveServicesAccount extends BaseCognitiveServicesAccount { odatatype: "#Microsoft.Azure.Search.DefaultCognitiveServices"; -}; +} // @public export interface DeleteAliasOptions extends OperationOptions { @@ -509,20 +513,20 @@ export interface DeleteSynonymMapOptions extends OperationOptions { } // @public -export type DictionaryDecompounderTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter"; - wordList: string[]; - minWordSize?: number; - minSubwordSize?: number; +export interface DictionaryDecompounderTokenFilter extends BaseTokenFilter { maxSubwordSize?: number; + minSubwordSize?: number; + minWordSize?: number; + odatatype: "#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter"; onlyLongestMatch?: boolean; -}; + wordList: string[]; +} // @public -export type DistanceScoringFunction = BaseScoringFunction & { - type: "distance"; +export interface DistanceScoringFunction extends BaseScoringFunction { parameters: DistanceScoringParameters; -}; + type: "distance"; +} // @public export interface DistanceScoringParameters { @@ -536,14 +540,14 @@ export interface DocumentDebugInfo { } // @public -export type DocumentExtractionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Util.DocumentExtractionSkill"; - parsingMode?: string; - dataToExtract?: string; +export interface DocumentExtractionSkill extends BaseSearchIndexerSkill { configuration?: { [propertyName: string]: any; }; -}; + dataToExtract?: string; + odatatype: "#Microsoft.Skills.Util.DocumentExtractionSkill"; + parsingMode?: string; +} // @public export interface EdgeNGramTokenFilter { @@ -558,70 +562,86 @@ export interface EdgeNGramTokenFilter { export type EdgeNGramTokenFilterSide = "front" | "back"; // @public -export type EdgeNGramTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenizer"; - minGram?: number; +export interface EdgeNGramTokenizer extends BaseLexicalTokenizer { maxGram?: number; + minGram?: number; + odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenizer"; tokenChars?: TokenCharacterKind[]; -}; +} // @public -export type ElisionTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.ElisionTokenFilter"; +export interface ElisionTokenFilter extends BaseTokenFilter { articles?: string[]; -}; + odatatype: "#Microsoft.Azure.Search.ElisionTokenFilter"; +} -// @public -export type EntityCategory = string; +// @public (undocumented) +export type EntityCategory = "location" | "organization" | "person" | "quantity" | "datetime" | "url" | "email"; // @public -export type EntityLinkingSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.V3.EntityLinkingSkill"; +export interface EntityLinkingSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: string; minimumPrecision?: number; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.V3.EntityLinkingSkill"; +} // @public @deprecated -export type EntityRecognitionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill"; +export interface EntityRecognitionSkill extends BaseSearchIndexerSkill { categories?: EntityCategory[]; defaultLanguageCode?: EntityRecognitionSkillLanguage; includeTypelessEntities?: boolean; minimumPrecision?: number; -}; + odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill"; +} -// @public -export type EntityRecognitionSkillLanguage = string; +// @public (undocumented) +export type EntityRecognitionSkillLanguage = "ar" | "cs" | "zh-Hans" | "zh-Hant" | "da" | "nl" | "en" | "fi" | "fr" | "de" | "el" | "hu" | "it" | "ja" | "ko" | "no" | "pl" | "pt-PT" | "pt-BR" | "ru" | "es" | "sv" | "tr"; // @public -export type EntityRecognitionSkillV3 = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.V3.EntityRecognitionSkill"; +export interface EntityRecognitionSkillV3 extends BaseSearchIndexerSkill { categories?: string[]; defaultLanguageCode?: string; minimumPrecision?: number; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.V3.EntityRecognitionSkill"; +} // @public (undocumented) export type ExcludedODataTypes = Date | GeographyPoint; // @public -export interface ExhaustiveKnnParameters { - metric?: VectorSearchAlgorithmMetric; -} - -// @public -export type ExhaustiveKnnVectorSearchAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { +export type ExhaustiveKnnAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { kind: "exhaustiveKnn"; parameters?: ExhaustiveKnnParameters; }; +// @public +export interface ExhaustiveKnnParameters { + metric?: VectorSearchAlgorithmMetric; +} + // @public (undocumented) export type ExtractDocumentKey = { [K in keyof TModel as TModel[K] extends string | undefined ? K : never]: TModel[K]; }; +// @public +export interface ExtractiveQueryAnswer { + // (undocumented) + answerType: "extractive"; + count?: number; + threshold?: number; +} + +// @public +export interface ExtractiveQueryCaption { + // (undocumented) + captionType: "extractive"; + // (undocumented) + highlight?: boolean; +} + // @public export interface FacetResult { [property: string]: any; @@ -644,10 +664,10 @@ export interface FieldMappingFunction { } // @public -export type FreshnessScoringFunction = BaseScoringFunction & { - type: "freshness"; +export interface FreshnessScoringFunction extends BaseScoringFunction { parameters: FreshnessScoringParameters; -}; + type: "freshness"; +} // @public export interface FreshnessScoringParameters { @@ -698,9 +718,15 @@ export type GetSkillSetOptions = OperationOptions; export type GetSynonymMapsOptions = OperationOptions; // @public -export type HighWaterMarkChangeDetectionPolicy = BaseDataChangeDetectionPolicy & { - odatatype: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"; +export interface HighWaterMarkChangeDetectionPolicy extends BaseDataChangeDetectionPolicy { highWaterMarkColumnName: string; + odatatype: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"; +} + +// @public +export type HnswAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { + kind: "hnsw"; + parameters?: HnswParameters; }; // @public @@ -712,47 +738,49 @@ export interface HnswParameters { } // @public -export type HnswVectorSearchAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { - kind: "hnsw"; - parameters?: HnswParameters; -}; +export interface ImageAnalysisSkill extends BaseSearchIndexerSkill { + defaultLanguageCode?: ImageAnalysisSkillLanguage; + details?: ImageDetail[]; + odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; + visualFeatures?: VisualFeature[]; +} // @public -export type ImageAnalysisSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; +export interface ImageAnalysisSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: ImageAnalysisSkillLanguage; - visualFeatures?: VisualFeature[]; details?: ImageDetail[]; -}; + odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; + visualFeatures?: VisualFeature[]; +} -// @public -export type ImageAnalysisSkillLanguage = string; +// @public (undocumented) +export type ImageAnalysisSkillLanguage = "ar" | "az" | "bg" | "bs" | "ca" | "cs" | "cy" | "da" | "de" | "el" | "en" | "es" | "et" | "eu" | "fi" | "fr" | "ga" | "gl" | "he" | "hi" | "hr" | "hu" | "id" | "it" | "ja" | "kk" | "ko" | "lt" | "lv" | "mk" | "ms" | "nb" | "nl" | "pl" | "prs" | "pt-BR" | "pt" | "pt-PT" | "ro" | "ru" | "sk" | "sl" | "sr-Cyrl" | "sr-Latn" | "sv" | "th" | "tr" | "uk" | "vi" | "zh" | "zh-Hans" | "zh-Hant"; -// @public -export type ImageDetail = string; +// @public (undocumented) +export type ImageDetail = "celebrities" | "landmarks"; // @public export type IndexActionType = "upload" | "merge" | "mergeOrUpload" | "delete"; // @public -export type IndexDocumentsAction = { +export type IndexDocumentsAction = { __actionType: IndexActionType; -} & Partial; +} & Partial; // @public -export class IndexDocumentsBatch { - constructor(actions?: IndexDocumentsAction[]); - readonly actions: IndexDocumentsAction[]; - delete(keyName: keyof T, keyValues: string[]): void; - delete(documents: T[]): void; - merge(documents: T[]): void; - mergeOrUpload(documents: T[]): void; - upload(documents: T[]): void; +export class IndexDocumentsBatch { + constructor(actions?: IndexDocumentsAction[]); + readonly actions: IndexDocumentsAction[]; + delete(keyName: keyof TModel, keyValues: string[]): void; + delete(documents: TModel[]): void; + merge(documents: TModel[]): void; + mergeOrUpload(documents: TModel[]): void; + upload(documents: TModel[]): void; } // @public -export interface IndexDocumentsClient { - indexDocuments(batch: IndexDocumentsBatch, options: IndexDocumentsOptions): Promise; +export interface IndexDocumentsClient { + indexDocuments(batch: IndexDocumentsBatch, options: IndexDocumentsOptions): Promise; } // @public @@ -765,8 +793,8 @@ export interface IndexDocumentsResult { readonly results: IndexingResult[]; } -// @public -export type IndexerExecutionEnvironment = string; +// @public (undocumented) +export type IndexerExecutionEnvironment = "standard" | "private"; // @public export interface IndexerExecutionResult { @@ -857,7 +885,7 @@ export type IndexIterator = PagedAsyncIterableIterator; // @public -export type IndexProjectionMode = "skipIndexingParentDocuments" | "includeIndexingParentDocuments"; +export type IndexProjectionMode = string; // @public export interface InputFieldMappingEntry { @@ -868,29 +896,29 @@ export interface InputFieldMappingEntry { } // @public -export type KeepTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.KeepTokenFilter"; +export interface KeepTokenFilter extends BaseTokenFilter { keepWords: string[]; lowerCaseKeepWords?: boolean; -}; + odatatype: "#Microsoft.Azure.Search.KeepTokenFilter"; +} // @public -export type KeyPhraseExtractionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill"; +export interface KeyPhraseExtractionSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: KeyPhraseExtractionSkillLanguage; maxKeyPhraseCount?: number; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill"; +} -// @public -export type KeyPhraseExtractionSkillLanguage = string; +// @public (undocumented) +export type KeyPhraseExtractionSkillLanguage = "da" | "nl" | "en" | "fi" | "fr" | "de" | "it" | "ja" | "ko" | "no" | "pl" | "pt-PT" | "pt-BR" | "ru" | "es" | "sv"; // @public -export type KeywordMarkerTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.KeywordMarkerTokenFilter"; - keywords: string[]; +export interface KeywordMarkerTokenFilter extends BaseTokenFilter { ignoreCase?: boolean; -}; + keywords: string[]; + odatatype: "#Microsoft.Azure.Search.KeywordMarkerTokenFilter"; +} // @public export interface KeywordTokenizer { @@ -996,12 +1024,6 @@ export enum KnownAnalyzerNames { ZhHantMicrosoft = "zh-Hant.microsoft" } -// @public -export enum KnownAnswers { - Extractive = "extractive", - None = "none" -} - // @public export enum KnownBlobIndexerDataToExtract { AllMetadata = "allMetadata", @@ -1155,6 +1177,12 @@ export enum KnownImageDetail { Landmarks = "landmarks" } +// @public +export enum KnownIndexerExecutionEnvironment { + Private = "private", + Standard = "standard" +} + // @public export enum KnownIndexerExecutionStatusDetail { ResetDocs = "resetDocs" @@ -1166,6 +1194,12 @@ export enum KnownIndexingMode { IndexingResetDocs = "indexingResetDocs" } +// @public +export enum KnownIndexProjectionMode { + IncludeIndexingParentDocuments = "includeIndexingParentDocuments", + SkipIndexingParentDocuments = "skipIndexingParentDocuments" +} + // @public export enum KnownKeyPhraseExtractionSkillLanguage { Da = "da", @@ -1284,29 +1318,48 @@ export enum KnownLexicalAnalyzerName { } // @public -export enum KnownLexicalNormalizerName { +enum KnownLexicalNormalizerName { AsciiFolding = "asciifolding", Elision = "elision", Lowercase = "lowercase", Standard = "standard", Uppercase = "uppercase" } +export { KnownLexicalNormalizerName } +export { KnownLexicalNormalizerName as KnownNormalizerNames } // @public -export enum KnownLineEnding { - CarriageReturn = "carriageReturn", - CarriageReturnLineFeed = "carriageReturnLineFeed", - LineFeed = "lineFeed", - Space = "space" -} - -// @public -export enum KnownOcrSkillLanguage { - Af = "af", - Anp = "anp", - Ar = "ar", - Ast = "ast", - Awa = "awa", +export enum KnownLexicalTokenizerName { + Classic = "classic", + EdgeNGram = "edgeNGram", + Keyword = "keyword_v2", + Letter = "letter", + Lowercase = "lowercase", + MicrosoftLanguageStemmingTokenizer = "microsoft_language_stemming_tokenizer", + MicrosoftLanguageTokenizer = "microsoft_language_tokenizer", + NGram = "nGram", + PathHierarchy = "path_hierarchy_v2", + Pattern = "pattern", + Standard = "standard_v2", + UaxUrlEmail = "uax_url_email", + Whitespace = "whitespace" +} + +// @public +export enum KnownLineEnding { + CarriageReturn = "carriageReturn", + CarriageReturnLineFeed = "carriageReturnLineFeed", + LineFeed = "lineFeed", + Space = "space" +} + +// @public +export enum KnownOcrSkillLanguage { + Af = "af", + Anp = "anp", + Ar = "ar", + Ast = "ast", + Awa = "awa", Az = "az", Be = "be", BeCyrl = "be-cyrl", @@ -1481,15 +1534,9 @@ export enum KnownPIIDetectionSkillMaskingMode { } // @public -export enum KnownQueryAnswerType { - Extractive = "extractive", - None = "none" -} - -// @public -export enum KnownQueryCaptionType { - Extractive = "extractive", - None = "none" +export enum KnownQueryDebugMode { + Disabled = "disabled", + Semantic = "semantic" } // @public @@ -1603,6 +1650,32 @@ export enum KnownSearchIndexerDataSourceType { MySql = "mysql" } +// @public +export enum KnownSemanticErrorMode { + Fail = "fail", + Partial = "partial" +} + +// @public +export enum KnownSemanticErrorReason { + CapacityOverloaded = "capacityOverloaded", + MaxWaitExceeded = "maxWaitExceeded", + Transient = "transient" +} + +// @public +export enum KnownSemanticFieldState { + Partial = "partial", + Unused = "unused", + Used = "used" +} + +// @public +export enum KnownSemanticSearchResultsType { + BaseResults = "baseResults", + RerankedResults = "rerankedResults" +} + // @public export enum KnownSentimentSkillLanguage { Da = "da", @@ -1630,15 +1703,39 @@ export enum KnownSpeller { // @public export enum KnownSplitSkillLanguage { + Am = "am", + Bs = "bs", + Cs = "cs", Da = "da", De = "de", En = "en", Es = "es", + Et = "et", Fi = "fi", Fr = "fr", + He = "he", + Hi = "hi", + Hr = "hr", + Hu = "hu", + Id = "id", + Is = "is", It = "it", + Ja = "ja", Ko = "ko", - Pt = "pt" + Lv = "lv", + Nb = "nb", + Nl = "nl", + Pl = "pl", + Pt = "pt", + PtBr = "pt-br", + Ru = "ru", + Sk = "sk", + Sl = "sl", + Sr = "sr", + Sv = "sv", + Tr = "tr", + Ur = "ur", + Zh = "zh" } // @public @@ -1816,6 +1913,28 @@ export enum KnownTokenizerNames { Whitespace = "whitespace" } +// @public +export enum KnownVectorQueryKind { + $DO_NOT_NORMALIZE$_text = "text", + Vector = "vector" +} + +// @public +export enum KnownVectorSearchCompressionKind { + ScalarQuantization = "scalarQuantization" +} + +// @public +export enum KnownVectorSearchCompressionTargetDataType { + Int8 = "int8" +} + +// @public +export enum KnownVectorSearchVectorizerKind { + AzureOpenAI = "azureOpenAI", + CustomWebApi = "customWebApi" +} + // @public export enum KnownVisualFeature { Adult = "adult", @@ -1828,18 +1947,18 @@ export enum KnownVisualFeature { } // @public -export type LanguageDetectionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.LanguageDetectionSkill"; +export interface LanguageDetectionSkill extends BaseSearchIndexerSkill { defaultCountryHint?: string; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.LanguageDetectionSkill"; +} // @public -export type LengthTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.LengthTokenFilter"; - minLength?: number; +export interface LengthTokenFilter extends BaseTokenFilter { maxLength?: number; -}; + minLength?: number; + odatatype: "#Microsoft.Azure.Search.LengthTokenFilter"; +} // @public export type LexicalAnalyzer = CustomAnalyzer | PatternAnalyzer | LuceneStandardAnalyzer | StopAnalyzer; @@ -1857,11 +1976,14 @@ export type LexicalNormalizerName = string; export type LexicalTokenizer = ClassicTokenizer | EdgeNGramTokenizer | KeywordTokenizer | MicrosoftLanguageTokenizer | MicrosoftLanguageStemmingTokenizer | NGramTokenizer | PathHierarchyTokenizer | PatternTokenizer | LuceneStandardTokenizer | UaxUrlEmailTokenizer; // @public -export type LimitTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.LimitTokenFilter"; - maxTokenCount?: number; +export type LexicalTokenizerName = string; + +// @public +export interface LimitTokenFilter extends BaseTokenFilter { consumeAllTokens?: boolean; -}; + maxTokenCount?: number; + odatatype: "#Microsoft.Azure.Search.LimitTokenFilter"; +} // @public export type LineEnding = string; @@ -1890,11 +2012,11 @@ export type ListSkillsetsOptions = OperationOptions; export type ListSynonymMapsOptions = OperationOptions; // @public -export type LuceneStandardAnalyzer = BaseLexicalAnalyzer & { - odatatype: "#Microsoft.Azure.Search.StandardAnalyzer"; +export interface LuceneStandardAnalyzer extends BaseLexicalAnalyzer { maxTokenLength?: number; + odatatype: "#Microsoft.Azure.Search.StandardAnalyzer"; stopwords?: string[]; -}; +} // @public export interface LuceneStandardTokenizer { @@ -1904,10 +2026,10 @@ export interface LuceneStandardTokenizer { } // @public -export type MagnitudeScoringFunction = BaseScoringFunction & { - type: "magnitude"; +export interface MagnitudeScoringFunction extends BaseScoringFunction { parameters: MagnitudeScoringParameters; -}; + type: "magnitude"; +} // @public export interface MagnitudeScoringParameters { @@ -1917,10 +2039,10 @@ export interface MagnitudeScoringParameters { } // @public -export type MappingCharFilter = BaseCharFilter & { - odatatype: "#Microsoft.Azure.Search.MappingCharFilter"; +export interface MappingCharFilter extends BaseCharFilter { mappings: string[]; -}; + odatatype: "#Microsoft.Azure.Search.MappingCharFilter"; +} // @public export type MergeDocumentsOptions = IndexDocumentsOptions; @@ -1929,27 +2051,27 @@ export type MergeDocumentsOptions = IndexDocumentsOptions; export type MergeOrUploadDocumentsOptions = IndexDocumentsOptions; // @public -export type MergeSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.MergeSkill"; - insertPreTag?: string; +export interface MergeSkill extends BaseSearchIndexerSkill { insertPostTag?: string; -}; + insertPreTag?: string; + odatatype: "#Microsoft.Skills.Text.MergeSkill"; +} // @public -export type MicrosoftLanguageStemmingTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer"; - maxTokenLength?: number; +export interface MicrosoftLanguageStemmingTokenizer extends BaseLexicalTokenizer { isSearchTokenizer?: boolean; language?: MicrosoftStemmingTokenizerLanguage; -}; + maxTokenLength?: number; + odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer"; +} // @public -export type MicrosoftLanguageTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageTokenizer"; - maxTokenLength?: number; +export interface MicrosoftLanguageTokenizer extends BaseLexicalTokenizer { isSearchTokenizer?: boolean; language?: MicrosoftTokenizerLanguage; -}; + maxTokenLength?: number; + odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageTokenizer"; +} // @public export type MicrosoftStemmingTokenizerLanguage = "arabic" | "bangla" | "bulgarian" | "catalan" | "croatian" | "czech" | "danish" | "dutch" | "english" | "estonian" | "finnish" | "french" | "german" | "greek" | "gujarati" | "hebrew" | "hindi" | "hungarian" | "icelandic" | "indonesian" | "italian" | "kannada" | "latvian" | "lithuanian" | "malay" | "malayalam" | "marathi" | "norwegianBokmaal" | "polish" | "portuguese" | "portugueseBrazilian" | "punjabi" | "romanian" | "russian" | "serbianCyrillic" | "serbianLatin" | "slovak" | "slovenian" | "spanish" | "swedish" | "tamil" | "telugu" | "turkish" | "ukrainian" | "urdu"; @@ -1961,9 +2083,9 @@ export type MicrosoftTokenizerLanguage = "bangla" | "bulgarian" | "catalan" | "c export type NarrowedModel = SelectFields> = (() => T extends TModel ? true : false) extends () => T extends never ? true : false ? TModel : (() => T extends TModel ? true : false) extends () => T extends object ? true : false ? TModel : (() => T extends TModel ? true : false) extends () => T extends any ? true : false ? TModel : (() => T extends TModel ? true : false) extends () => T extends unknown ? true : false ? TModel : (() => T extends TFields ? true : false) extends () => T extends never ? true : false ? never : (() => T extends TFields ? true : false) extends () => T extends SelectFields ? true : false ? TModel : SearchPick; // @public -export type NativeBlobSoftDeleteDeletionDetectionPolicy = BaseDataDeletionDetectionPolicy & { +export interface NativeBlobSoftDeleteDeletionDetectionPolicy extends BaseDataDeletionDetectionPolicy { odatatype: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy"; -}; +} // @public export interface NGramTokenFilter { @@ -1974,23 +2096,22 @@ export interface NGramTokenFilter { } // @public -export type NGramTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.NGramTokenizer"; - minGram?: number; +export interface NGramTokenizer extends BaseLexicalTokenizer { maxGram?: number; + minGram?: number; + odatatype: "#Microsoft.Azure.Search.NGramTokenizer"; tokenChars?: TokenCharacterKind[]; -}; +} // @public -export type OcrSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Vision.OcrSkill"; +export interface OcrSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: OcrSkillLanguage; + odatatype: "#Microsoft.Skills.Vision.OcrSkill"; shouldDetectOrientation?: boolean; - lineEnding?: LineEnding; -}; +} -// @public -export type OcrSkillLanguage = string; +// @public (undocumented) +export type OcrSkillLanguage = "af" | "sq" | "anp" | "ar" | "ast" | "awa" | "az" | "bfy" | "eu" | "be" | "be-cyrl" | "be-latn" | "bho" | "bi" | "brx" | "bs" | "bra" | "br" | "bg" | "bns" | "bua" | "ca" | "ceb" | "rab" | "ch" | "hne" | "zh-Hans" | "zh-Hant" | "kw" | "co" | "crh" | "hr" | "cs" | "da" | "prs" | "dhi" | "doi" | "nl" | "en" | "myv" | "et" | "fo" | "fj" | "fil" | "fi" | "fr" | "fur" | "gag" | "gl" | "de" | "gil" | "gon" | "el" | "kl" | "gvr" | "ht" | "hlb" | "hni" | "bgc" | "haw" | "hi" | "mww" | "hoc" | "hu" | "is" | "smn" | "id" | "ia" | "iu" | "ga" | "it" | "ja" | "Jns" | "jv" | "kea" | "kac" | "xnr" | "krc" | "kaa-cyrl" | "kaa" | "csb" | "kk-cyrl" | "kk-latn" | "klr" | "kha" | "quc" | "ko" | "kfq" | "kpy" | "kos" | "kum" | "ku-arab" | "ku-latn" | "kru" | "ky" | "lkt" | "la" | "lt" | "dsb" | "smj" | "lb" | "bfz" | "ms" | "mt" | "kmj" | "gv" | "mi" | "mr" | "mn" | "cnr-cyrl" | "cnr-latn" | "nap" | "ne" | "niu" | "nog" | "sme" | "nb" | "no" | "oc" | "os" | "ps" | "fa" | "pl" | "pt" | "pa" | "ksh" | "ro" | "rm" | "ru" | "sck" | "sm" | "sa" | "sat" | "sco" | "gd" | "sr" | "sr-Cyrl" | "sr-Latn" | "xsr" | "srx" | "sms" | "sk" | "sl" | "so" | "sma" | "es" | "sw" | "sv" | "tg" | "tt" | "tet" | "thf" | "to" | "tr" | "tk" | "tyv" | "hsb" | "ur" | "ug" | "uz-arab" | "uz-cyrl" | "uz" | "vo" | "wae" | "cy" | "fy" | "yua" | "za" | "zu" | "unk"; // @public export function odata(strings: TemplateStringsArray, ...values: unknown[]): string; @@ -2002,14 +2123,14 @@ export interface OutputFieldMappingEntry { } // @public -export type PathHierarchyTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.PathHierarchyTokenizerV2"; +export interface PathHierarchyTokenizer extends BaseLexicalTokenizer { delimiter?: string; - replacement?: string; maxTokenLength?: number; - reverseTokenOrder?: boolean; numberOfTokensToSkip?: number; -}; + odatatype: "#Microsoft.Azure.Search.PathHierarchyTokenizerV2"; + replacement?: string; + reverseTokenOrder?: boolean; +} // @public export interface PatternAnalyzer { @@ -2022,25 +2143,25 @@ export interface PatternAnalyzer { } // @public -export type PatternCaptureTokenFilter = BaseTokenFilter & { +export interface PatternCaptureTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.PatternCaptureTokenFilter"; patterns: string[]; preserveOriginal?: boolean; -}; +} // @public -export type PatternReplaceCharFilter = BaseCharFilter & { +export interface PatternReplaceCharFilter extends BaseCharFilter { odatatype: "#Microsoft.Azure.Search.PatternReplaceCharFilter"; pattern: string; replacement: string; -}; +} // @public -export type PatternReplaceTokenFilter = BaseTokenFilter & { +export interface PatternReplaceTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.PatternReplaceTokenFilter"; pattern: string; replacement: string; -}; +} // @public export interface PatternTokenizer { @@ -2055,42 +2176,51 @@ export interface PatternTokenizer { export type PhoneticEncoder = "metaphone" | "doubleMetaphone" | "soundex" | "refinedSoundex" | "caverphone1" | "caverphone2" | "cologne" | "nysiis" | "koelnerPhonetik" | "haasePhonetik" | "beiderMorse"; // @public -export type PhoneticTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.PhoneticTokenFilter"; +export interface PhoneticTokenFilter extends BaseTokenFilter { encoder?: PhoneticEncoder; + odatatype: "#Microsoft.Azure.Search.PhoneticTokenFilter"; replaceOriginalTokens?: boolean; -}; +} // @public -export type PIIDetectionSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.PIIDetectionSkill"; +export interface PIIDetectionSkill extends BaseSearchIndexerSkill { + categories?: string[]; defaultLanguageCode?: string; - minimumPrecision?: number; - maskingMode?: PIIDetectionSkillMaskingMode; + domain?: string; maskingCharacter?: string; + maskingMode?: PIIDetectionSkillMaskingMode; + minimumPrecision?: number; modelVersion?: string; - piiCategories?: string[]; - domain?: string; -}; + odatatype: "#Microsoft.Skills.Text.PIIDetectionSkill"; +} + +// @public (undocumented) +export type PIIDetectionSkillMaskingMode = "none" | "replace"; // @public -export type PIIDetectionSkillMaskingMode = string; +export type QueryAnswer = ExtractiveQueryAnswer; // @public -export interface PrioritizedFields { - prioritizedContentFields?: SemanticField[]; - prioritizedKeywordsFields?: SemanticField[]; - titleField?: SemanticField; +export interface QueryAnswerResult { + [property: string]: any; + readonly highlights?: string; + readonly key: string; + readonly score: number; + readonly text: string; } // @public -export type QueryAnswerType = string; +export type QueryCaption = ExtractiveQueryCaption; // @public -export type QueryCaptionType = string; +export interface QueryCaptionResult { + [property: string]: any; + readonly highlights?: string; + readonly text?: string; +} // @public -export type QueryDebugMode = "disabled" | "semantic"; +export type QueryDebugMode = string; // @public export type QueryLanguage = string; @@ -2114,14 +2244,8 @@ export type QuerySpellerType = string; // @public export type QueryType = "simple" | "full" | "semantic"; -// @public -export interface RawVectorQuery extends BaseVectorQuery { - kind: "vector"; - vector?: number[]; -} - -// @public -export type RegexFlags = string; +// @public (undocumented) +export type RegexFlags = "CANON_EQ" | "CASE_INSENSITIVE" | "COMMENTS" | "DOTALL" | "LITERAL" | "MULTILINE" | "UNICODE_CASE" | "UNIX_LINES"; // @public export interface ResetDocumentsOptions extends OperationOptions { @@ -2147,6 +2271,17 @@ export interface ResourceCounter { // @public export type RunIndexerOptions = OperationOptions; +// @public +export interface ScalarQuantizationCompressionConfiguration extends BaseVectorSearchCompressionConfiguration { + kind: "scalarQuantization"; + parameters?: ScalarQuantizationParameters; +} + +// @public +export interface ScalarQuantizationParameters { + quantizedDataType?: VectorSearchCompressionTargetDataType; +} + // @public export type ScoringFunction = DistanceScoringFunction | FreshnessScoringFunction | MagnitudeScoringFunction | TagScoringFunction; @@ -2189,6 +2324,7 @@ export class SearchClient implements IndexDocumentsClient readonly indexName: string; mergeDocuments(documents: TModel[], options?: MergeDocumentsOptions): Promise; mergeOrUploadDocuments(documents: TModel[], options?: MergeOrUploadDocumentsOptions): Promise; + readonly pipeline: Pipeline; search>(searchText?: string, options?: SearchOptions): Promise>; readonly serviceVersion: string; suggest = never>(searchText: string, suggesterName: string, options?: SuggestOptions): Promise>; @@ -2216,14 +2352,14 @@ export interface SearchDocumentsResult = (() => T extends TModel ? true : false) extends () => T extends object ? true : false ? readonly string[] : readonly SelectFields[]; // @public -export type SearchFieldDataType = "Edm.String" | "Edm.Int32" | "Edm.Int64" | "Edm.Double" | "Edm.Boolean" | "Edm.DateTimeOffset" | "Edm.GeographyPoint" | "Collection(Edm.String)" | "Collection(Edm.Int32)" | "Collection(Edm.Int64)" | "Collection(Edm.Double)" | "Collection(Edm.Boolean)" | "Collection(Edm.DateTimeOffset)" | "Collection(Edm.GeographyPoint)" | "Collection(Edm.Single)"; +export type SearchFieldDataType = "Edm.String" | "Edm.Int32" | "Edm.Int64" | "Edm.Double" | "Edm.Boolean" | "Edm.DateTimeOffset" | "Edm.GeographyPoint" | "Collection(Edm.String)" | "Collection(Edm.Int32)" | "Collection(Edm.Int64)" | "Collection(Edm.Double)" | "Collection(Edm.Boolean)" | "Collection(Edm.DateTimeOffset)" | "Collection(Edm.GeographyPoint)" | "Collection(Edm.Single)" | "Collection(Edm.Half)" | "Collection(Edm.Int16)" | "Collection(Edm.SByte)"; // @public export interface SearchIndex { @@ -2247,7 +2383,7 @@ export interface SearchIndex { name: string; normalizers?: LexicalNormalizer[]; scoringProfiles?: ScoringProfile[]; - semanticSettings?: SemanticSettings; + semanticSearch?: SemanticSearch; similarity?: SimilarityAlgorithm; suggesters?: SearchSuggester[]; tokenFilters?: TokenFilter[]; @@ -2285,6 +2421,7 @@ export class SearchIndexClient { listIndexesNames(options?: ListIndexesOptions): IndexNameIterator; listSynonymMaps(options?: ListSynonymMapsOptions): Promise>; listSynonymMapsNames(options?: ListSynonymMapsOptions): Promise>; + readonly pipeline: Pipeline; readonly serviceVersion: string; } @@ -2345,6 +2482,7 @@ export class SearchIndexerClient { listIndexersNames(options?: ListIndexersOptions): Promise>; listSkillsets(options?: ListSkillsetsOptions): Promise>; listSkillsetsNames(options?: ListSkillsetsOptions): Promise>; + readonly pipeline: Pipeline; resetDocuments(indexerName: string, options?: ResetDocumentsOptions): Promise; resetIndexer(indexerName: string, options?: ResetIndexerOptions): Promise; resetSkills(skillsetName: string, options?: ResetSkillsOptions): Promise; @@ -2370,9 +2508,9 @@ export interface SearchIndexerDataContainer { export type SearchIndexerDataIdentity = SearchIndexerDataNoneIdentity | SearchIndexerDataUserAssignedIdentity; // @public -export type SearchIndexerDataNoneIdentity = BaseSearchIndexerDataIdentity & { +export interface SearchIndexerDataNoneIdentity extends BaseSearchIndexerDataIdentity { odatatype: "#Microsoft.Azure.Search.DataNoneIdentity"; -}; +} // @public export interface SearchIndexerDataSourceConnection { @@ -2388,14 +2526,14 @@ export interface SearchIndexerDataSourceConnection { type: SearchIndexerDataSourceType; } -// @public -export type SearchIndexerDataSourceType = string; +// @public (undocumented) +export type SearchIndexerDataSourceType = "azuresql" | "cosmosdb" | "azureblob" | "azuretable" | "mysql" | "adlsgen2"; // @public -export type SearchIndexerDataUserAssignedIdentity = BaseSearchIndexerDataIdentity & { +export interface SearchIndexerDataUserAssignedIdentity extends BaseSearchIndexerDataIdentity { odatatype: "#Microsoft.Azure.Search.DataUserAssignedIdentity"; userAssignedIdentity: string; -}; +} // @public export interface SearchIndexerError { @@ -2435,15 +2573,17 @@ export interface SearchIndexerKnowledgeStore { } // @public -export type SearchIndexerKnowledgeStoreBlobProjectionSelector = SearchIndexerKnowledgeStoreProjectionSelector & { +export interface SearchIndexerKnowledgeStoreBlobProjectionSelector extends SearchIndexerKnowledgeStoreProjectionSelector { storageContainer: string; -}; +} // @public -export type SearchIndexerKnowledgeStoreFileProjectionSelector = SearchIndexerKnowledgeStoreBlobProjectionSelector & {}; +export interface SearchIndexerKnowledgeStoreFileProjectionSelector extends SearchIndexerKnowledgeStoreBlobProjectionSelector { +} // @public -export type SearchIndexerKnowledgeStoreObjectProjectionSelector = SearchIndexerKnowledgeStoreBlobProjectionSelector & {}; +export interface SearchIndexerKnowledgeStoreObjectProjectionSelector extends SearchIndexerKnowledgeStoreBlobProjectionSelector { +} // @public export interface SearchIndexerKnowledgeStoreParameters { @@ -2468,9 +2608,9 @@ export interface SearchIndexerKnowledgeStoreProjectionSelector { } // @public -export type SearchIndexerKnowledgeStoreTableProjectionSelector = SearchIndexerKnowledgeStoreProjectionSelector & { +export interface SearchIndexerKnowledgeStoreTableProjectionSelector extends SearchIndexerKnowledgeStoreProjectionSelector { tableName: string; -}; +} // @public (undocumented) export interface SearchIndexerLimits { @@ -2480,7 +2620,7 @@ export interface SearchIndexerLimits { } // @public -export type SearchIndexerSkill = ConditionalSkill | KeyPhraseExtractionSkill | OcrSkill | ImageAnalysisSkill | LanguageDetectionSkill | ShaperSkill | MergeSkill | EntityRecognitionSkill | SentimentSkill | SplitSkill | PIIDetectionSkill | EntityRecognitionSkillV3 | EntityLinkingSkill | SentimentSkillV3 | CustomEntityLookupSkill | TextTranslationSkill | DocumentExtractionSkill | WebApiSkill | AzureMachineLearningSkill | AzureOpenAIEmbeddingSkill; +export type SearchIndexerSkill = AzureMachineLearningSkill | AzureOpenAIEmbeddingSkill | ConditionalSkill | CustomEntityLookupSkill | DocumentExtractionSkill | EntityLinkingSkill | EntityRecognitionSkill | EntityRecognitionSkillV3 | ImageAnalysisSkill | KeyPhraseExtractionSkill | LanguageDetectionSkill | MergeSkill | OcrSkill | PIIDetectionSkill | SentimentSkill | SentimentSkillV3 | ShaperSkill | SplitSkill | TextTranslationSkill | WebApiSkill; // @public export interface SearchIndexerSkillset { @@ -2565,7 +2705,7 @@ export type SearchIndexingBufferedSenderUploadDocumentsOptions = OperationOption export interface SearchIndexStatistics { readonly documentCount: number; readonly storageSize: number; - readonly vectorIndexSize?: number; + readonly vectorIndexSize: number; } // @public @@ -2586,73 +2726,15 @@ UnionToIntersection | Extract : never> & {}; // @public -export interface SearchRequest { - answers?: QueryAnswerType; - captions?: QueryCaptionType; - debugMode?: QueryDebugMode; - facets?: string[]; - filter?: string; - highlightFields?: string; - highlightPostTag?: string; - highlightPreTag?: string; - includeTotalCount?: boolean; - minimumCoverage?: number; - orderBy?: string; - queryLanguage?: QueryLanguage; - queryType?: QueryType; - scoringParameters?: string[]; - scoringProfile?: string; - scoringStatistics?: ScoringStatistics; - searchFields?: string; - searchMode?: SearchMode; - searchText?: string; - select?: string; - semanticConfiguration?: string; - semanticErrorHandlingMode?: SemanticErrorHandlingMode; - semanticFields?: string; - semanticMaxWaitInMilliseconds?: number; - semanticQuery?: string; - sessionId?: string; - skip?: number; - speller?: QuerySpellerType; - top?: number; - vectorFilterMode?: VectorFilterMode; - vectorQueries?: VectorQuery[]; -} +export type SearchRequestOptions = SelectFields> = BaseSearchRequestOptions & SearchRequestQueryTypeOptions; -// @public -export interface SearchRequestOptions = SelectFields> { - answers?: Answers | AnswersOptions; - captions?: Captions; - debugMode?: QueryDebugMode; - facets?: string[]; - filter?: string; - highlightFields?: string; - highlightPostTag?: string; - highlightPreTag?: string; - includeTotalCount?: boolean; - minimumCoverage?: number; - orderBy?: string[]; - queryLanguage?: QueryLanguage; - queryType?: QueryType; - scoringParameters?: string[]; - scoringProfile?: string; - scoringStatistics?: ScoringStatistics; - searchFields?: SearchFieldArray; - searchMode?: SearchMode; - select?: SelectArray; - semanticConfiguration?: string; - semanticErrorHandlingMode?: SemanticErrorHandlingMode; - semanticFields?: string[]; - semanticMaxWaitInMilliseconds?: number; - semanticQuery?: string; - sessionId?: string; - skip?: number; - speller?: Speller; - top?: number; - vectorFilterMode?: VectorFilterMode; - vectorQueries?: VectorQuery[]; -} +// @public (undocumented) +export type SearchRequestQueryTypeOptions = { + queryType: "semantic"; + semanticSearchOptions: SemanticSearchOptions; +} | { + queryType?: "simple" | "full"; +}; // @public export interface SearchResourceEncryptionKey { @@ -2671,7 +2753,7 @@ export type SearchResult]?: string[]; }; - readonly captions?: CaptionResult[]; + readonly captions?: QueryCaptionResult[]; document: NarrowedModel; readonly documentDebugInfo?: DocumentDebugInfo[]; }; @@ -2700,7 +2782,7 @@ export type SelectFields = (() => T extends TModel ? t // @public export interface SemanticConfiguration { name: string; - prioritizedFields: PrioritizedFields; + prioritizedFields: SemanticPrioritizedFields; } // @public @@ -2711,46 +2793,65 @@ export interface SemanticDebugInfo { readonly titleField?: QueryResultDocumentSemanticField; } -// @public -export type SemanticErrorHandlingMode = "partial" | "fail"; +// @public (undocumented) +export type SemanticErrorMode = "partial" | "fail"; + +// @public (undocumented) +export type SemanticErrorReason = "maxWaitExceeded" | "capacityOverloaded" | "transient"; // @public export interface SemanticField { // (undocumented) - name?: string; + name: string; } // @public -export type SemanticFieldState = "used" | "unused" | "partial"; +export type SemanticFieldState = string; // @public -export type SemanticPartialResponseReason = "maxWaitExceeded" | "capacityOverloaded" | "transient"; +export interface SemanticPrioritizedFields { + contentFields?: SemanticField[]; + keywordsFields?: SemanticField[]; + titleField?: SemanticField; +} // @public -export type SemanticPartialResponseType = "baseResults" | "rerankedResults"; +export interface SemanticSearch { + configurations?: SemanticConfiguration[]; + defaultConfigurationName?: string; +} // @public -export interface SemanticSettings { - configurations?: SemanticConfiguration[]; - defaultConfiguration?: string; +export interface SemanticSearchOptions { + answers?: QueryAnswer; + captions?: QueryCaption; + configurationName?: string; + debugMode?: QueryDebugMode; + errorMode?: SemanticErrorMode; + maxWaitInMilliseconds?: number; + semanticFields?: string[]; + semanticQuery?: string; } +// @public (undocumented) +export type SemanticSearchResultsType = "baseResults" | "rerankedResults"; + // @public @deprecated -export type SentimentSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.SentimentSkill"; +export interface SentimentSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: SentimentSkillLanguage; -}; + odatatype: "#Microsoft.Skills.Text.SentimentSkill"; +} -// @public -export type SentimentSkillLanguage = string; +// @public (undocumented) +export type SentimentSkillLanguage = "da" | "nl" | "en" | "fi" | "fr" | "de" | "el" | "it" | "no" | "pl" | "pt-PT" | "ru" | "es" | "sv" | "tr"; // @public -export type SentimentSkillV3 = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.V3.SentimentSkill"; +export interface SentimentSkillV3 extends BaseSearchIndexerSkill { defaultLanguageCode?: string; includeOpinionMining?: boolean; modelVersion?: string; -}; + odatatype: "#Microsoft.Skills.Text.V3.SentimentSkill"; +} // @public export interface ServiceCounters { @@ -2774,20 +2875,20 @@ export interface ServiceLimits { } // @public -export type ShaperSkill = BaseSearchIndexerSkill & { +export interface ShaperSkill extends BaseSearchIndexerSkill { odatatype: "#Microsoft.Skills.Util.ShaperSkill"; -}; +} // @public -export type ShingleTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.ShingleTokenFilter"; +export interface ShingleTokenFilter extends BaseTokenFilter { + filterToken?: string; maxShingleSize?: number; minShingleSize?: number; + odatatype: "#Microsoft.Azure.Search.ShingleTokenFilter"; outputUnigrams?: boolean; outputUnigramsIfNoShingles?: boolean; tokenSeparator?: string; - filterToken?: string; -}; +} // @public export interface Similarity { @@ -2810,81 +2911,80 @@ export interface SimpleField { searchable?: boolean; searchAnalyzerName?: LexicalAnalyzerName; sortable?: boolean; + stored?: boolean; synonymMapNames?: string[]; type: SearchFieldDataType; vectorSearchDimensions?: number; - vectorSearchProfile?: string; + vectorSearchProfileName?: string; } // @public -export type SnowballTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.SnowballTokenFilter"; +export interface SnowballTokenFilter extends BaseTokenFilter { language: SnowballTokenFilterLanguage; -}; + odatatype: "#Microsoft.Azure.Search.SnowballTokenFilter"; +} // @public export type SnowballTokenFilterLanguage = "armenian" | "basque" | "catalan" | "danish" | "dutch" | "english" | "finnish" | "french" | "german" | "german2" | "hungarian" | "italian" | "kp" | "lovins" | "norwegian" | "porter" | "portuguese" | "romanian" | "russian" | "spanish" | "swedish" | "turkish"; // @public -export type SoftDeleteColumnDeletionDetectionPolicy = BaseDataDeletionDetectionPolicy & { +export interface SoftDeleteColumnDeletionDetectionPolicy extends BaseDataDeletionDetectionPolicy { odatatype: "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy"; softDeleteColumnName?: string; softDeleteMarkerValue?: string; -}; +} // @public export type Speller = string; // @public -export type SplitSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.SplitSkill"; +export interface SplitSkill extends BaseSearchIndexerSkill { defaultLanguageCode?: SplitSkillLanguage; - textSplitMode?: TextSplitMode; maxPageLength?: number; - pageOverlapLength?: number; - maximumPagesToTake?: number; -}; + odatatype: "#Microsoft.Skills.Text.SplitSkill"; + textSplitMode?: TextSplitMode; +} -// @public -export type SplitSkillLanguage = string; +// @public (undocumented) +export type SplitSkillLanguage = "am" | "bs" | "cs" | "da" | "de" | "en" | "es" | "et" | "fi" | "fr" | "he" | "hi" | "hr" | "hu" | "id" | "is" | "it" | "ja" | "ko" | "lv" | "nb" | "nl" | "pl" | "pt" | "pt-br" | "ru" | "sk" | "sl" | "sr" | "sv" | "tr" | "ur" | "zh"; // @public -export type SqlIntegratedChangeTrackingPolicy = BaseDataChangeDetectionPolicy & { +export interface SqlIntegratedChangeTrackingPolicy extends BaseDataChangeDetectionPolicy { odatatype: "#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy"; -}; +} // @public -export type StemmerOverrideTokenFilter = BaseTokenFilter & { +export interface StemmerOverrideTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.StemmerOverrideTokenFilter"; rules: string[]; -}; +} // @public -export type StemmerTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.StemmerTokenFilter"; +export interface StemmerTokenFilter extends BaseTokenFilter { language: StemmerTokenFilterLanguage; -}; + odatatype: "#Microsoft.Azure.Search.StemmerTokenFilter"; +} // @public export type StemmerTokenFilterLanguage = "arabic" | "armenian" | "basque" | "brazilian" | "bulgarian" | "catalan" | "czech" | "danish" | "dutch" | "dutchKp" | "english" | "lightEnglish" | "minimalEnglish" | "possessiveEnglish" | "porter2" | "lovins" | "finnish" | "lightFinnish" | "french" | "lightFrench" | "minimalFrench" | "galician" | "minimalGalician" | "german" | "german2" | "lightGerman" | "minimalGerman" | "greek" | "hindi" | "hungarian" | "lightHungarian" | "indonesian" | "irish" | "italian" | "lightItalian" | "sorani" | "latvian" | "norwegian" | "lightNorwegian" | "minimalNorwegian" | "lightNynorsk" | "minimalNynorsk" | "portuguese" | "lightPortuguese" | "minimalPortuguese" | "portugueseRslp" | "romanian" | "russian" | "lightRussian" | "spanish" | "lightSpanish" | "swedish" | "lightSwedish" | "turkish"; // @public -export type StopAnalyzer = BaseLexicalAnalyzer & { +export interface StopAnalyzer extends BaseLexicalAnalyzer { odatatype: "#Microsoft.Azure.Search.StopAnalyzer"; stopwords?: string[]; -}; +} // @public export type StopwordsList = "arabic" | "armenian" | "basque" | "brazilian" | "bulgarian" | "catalan" | "czech" | "danish" | "dutch" | "english" | "finnish" | "french" | "galician" | "german" | "greek" | "hindi" | "hungarian" | "indonesian" | "irish" | "italian" | "latvian" | "norwegian" | "persian" | "portuguese" | "romanian" | "russian" | "sorani" | "spanish" | "swedish" | "thai" | "turkish"; // @public -export type StopwordsTokenFilter = BaseTokenFilter & { +export interface StopwordsTokenFilter extends BaseTokenFilter { + ignoreCase?: boolean; odatatype: "#Microsoft.Azure.Search.StopwordsTokenFilter"; + removeTrailingStopWords?: boolean; stopwords?: string[]; stopwordsList?: StopwordsList; - ignoreCase?: boolean; - removeTrailingStopWords?: boolean; -}; +} // @public export interface SuggestDocumentsResult = SelectFields> { @@ -2926,37 +3026,37 @@ export interface SynonymMap { } // @public -export type SynonymTokenFilter = BaseTokenFilter & { +export interface SynonymTokenFilter extends BaseTokenFilter { + expand?: boolean; + ignoreCase?: boolean; odatatype: "#Microsoft.Azure.Search.SynonymTokenFilter"; synonyms: string[]; - ignoreCase?: boolean; - expand?: boolean; -}; +} // @public -export type TagScoringFunction = BaseScoringFunction & { - type: "tag"; +export interface TagScoringFunction extends BaseScoringFunction { parameters: TagScoringParameters; -}; + type: "tag"; +} // @public export interface TagScoringParameters { tagsParameter: string; } -// @public -export type TextSplitMode = string; +// @public (undocumented) +export type TextSplitMode = "pages" | "sentences"; // @public -export type TextTranslationSkill = BaseSearchIndexerSkill & { - odatatype: "#Microsoft.Skills.Text.TranslationSkill"; - defaultToLanguageCode: TextTranslationSkillLanguage; +export interface TextTranslationSkill extends BaseSearchIndexerSkill { defaultFromLanguageCode?: TextTranslationSkillLanguage; + defaultToLanguageCode: TextTranslationSkillLanguage; + odatatype: "#Microsoft.Skills.Text.TranslationSkill"; suggestedFrom?: TextTranslationSkillLanguage; -}; +} -// @public -export type TextTranslationSkillLanguage = string; +// @public (undocumented) +export type TextTranslationSkillLanguage = "af" | "ar" | "bn" | "bs" | "bg" | "yue" | "ca" | "zh-Hans" | "zh-Hant" | "hr" | "cs" | "da" | "nl" | "en" | "et" | "fj" | "fil" | "fi" | "fr" | "de" | "el" | "ht" | "he" | "hi" | "mww" | "hu" | "is" | "id" | "it" | "ja" | "sw" | "tlh" | "tlh-Latn" | "tlh-Piqd" | "ko" | "lv" | "lt" | "mg" | "ms" | "mt" | "nb" | "fa" | "pl" | "pt" | "pt-br" | "pt-PT" | "otq" | "ro" | "ru" | "sm" | "sr-Cyrl" | "sr-Latn" | "sk" | "sl" | "es" | "sv" | "ty" | "ta" | "te" | "th" | "to" | "tr" | "uk" | "ur" | "vi" | "cy" | "yua" | "ga" | "kn" | "mi" | "ml" | "pa"; // @public export interface TextWeights { @@ -2975,30 +3075,30 @@ export type TokenFilter = AsciiFoldingTokenFilter | CjkBigramTokenFilter | Commo export type TokenFilterName = string; // @public -export type TruncateTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.TruncateTokenFilter"; +export interface TruncateTokenFilter extends BaseTokenFilter { length?: number; -}; + odatatype: "#Microsoft.Azure.Search.TruncateTokenFilter"; +} // @public -export type UaxUrlEmailTokenizer = BaseLexicalTokenizer & { - odatatype: "#Microsoft.Azure.Search.UaxUrlEmailTokenizer"; +export interface UaxUrlEmailTokenizer extends BaseLexicalTokenizer { maxTokenLength?: number; -}; + odatatype: "#Microsoft.Azure.Search.UaxUrlEmailTokenizer"; +} // @public (undocumented) export type UnionToIntersection = (Union extends unknown ? (_: Union) => unknown : never) extends (_: infer I) => unknown ? I : never; // @public -export type UniqueTokenFilter = BaseTokenFilter & { +export interface UniqueTokenFilter extends BaseTokenFilter { odatatype: "#Microsoft.Azure.Search.UniqueTokenFilter"; onlyOnSamePosition?: boolean; -}; +} // @public export type UploadDocumentsOptions = IndexDocumentsOptions; -// @public +// @public (undocumented) export type VectorFilterMode = "postFilter" | "preFilter"; // @public @@ -3008,7 +3108,13 @@ export interface VectorizableTextQuery extends BaseVector } // @public -export type VectorQuery = RawVectorQuery | VectorizableTextQuery; +export interface VectorizedQuery extends BaseVectorQuery { + kind: "vector"; + vector: number[]; +} + +// @public +export type VectorQuery = VectorizedQuery | VectorizableTextQuery; // @public (undocumented) export type VectorQueryKind = "vector" | "text"; @@ -3016,22 +3122,39 @@ export type VectorQueryKind = "vector" | "text"; // @public export interface VectorSearch { algorithms?: VectorSearchAlgorithmConfiguration[]; + compressions?: VectorSearchCompressionConfiguration[]; profiles?: VectorSearchProfile[]; vectorizers?: VectorSearchVectorizer[]; } // @public -export type VectorSearchAlgorithmConfiguration = HnswVectorSearchAlgorithmConfiguration | ExhaustiveKnnVectorSearchAlgorithmConfiguration; +export type VectorSearchAlgorithmConfiguration = HnswAlgorithmConfiguration | ExhaustiveKnnAlgorithmConfiguration; // @public (undocumented) export type VectorSearchAlgorithmKind = "hnsw" | "exhaustiveKnn"; -// @public +// @public (undocumented) export type VectorSearchAlgorithmMetric = "cosine" | "euclidean" | "dotProduct"; +// @public +export type VectorSearchCompressionConfiguration = ScalarQuantizationCompressionConfiguration; + +// @public +export type VectorSearchCompressionKind = string; + +// @public +export type VectorSearchCompressionTargetDataType = string; + +// @public +export interface VectorSearchOptions { + filterMode?: VectorFilterMode; + queries: VectorQuery[]; +} + // @public export interface VectorSearchProfile { - algorithm: string; + algorithmConfigurationName: string; + compressionConfigurationName?: string; name: string; vectorizer?: string; } @@ -3042,8 +3165,8 @@ export type VectorSearchVectorizer = AzureOpenAIVectorizer | CustomVectorizer; // @public (undocumented) export type VectorSearchVectorizerKind = "azureOpenAI" | "customWebApi"; -// @public -export type VisualFeature = string; +// @public (undocumented) +export type VisualFeature = "adult" | "brands" | "categories" | "description" | "faces" | "objects" | "tags"; // @public export interface WebApiSkill extends BaseSearchIndexerSkill { @@ -3061,19 +3184,19 @@ export interface WebApiSkill extends BaseSearchIndexerSkill { } // @public -export type WordDelimiterTokenFilter = BaseTokenFilter & { - odatatype: "#Microsoft.Azure.Search.WordDelimiterTokenFilter"; - generateWordParts?: boolean; - generateNumberParts?: boolean; - catenateWords?: boolean; - catenateNumbers?: boolean; +export interface WordDelimiterTokenFilter extends BaseTokenFilter { catenateAll?: boolean; - splitOnCaseChange?: boolean; + catenateNumbers?: boolean; + catenateWords?: boolean; + generateNumberParts?: boolean; + generateWordParts?: boolean; + odatatype: "#Microsoft.Azure.Search.WordDelimiterTokenFilter"; preserveOriginal?: boolean; + protectedWords?: string[]; + splitOnCaseChange?: boolean; splitOnNumerics?: boolean; stemEnglishPossessive?: boolean; - protectedWords?: string[]; -}; +} // (No @packageDocumentation comment for this package) diff --git a/sdk/search/search-documents/sample.env b/sdk/search/search-documents/sample.env index 7ed5a179d66e..86f0916725d2 100644 --- a/sdk/search/search-documents/sample.env +++ b/sdk/search/search-documents/sample.env @@ -8,13 +8,13 @@ SEARCH_API_ADMIN_KEY_ALT= ENDPOINT= # The endpoint for the OpenAI service. -OPENAI_ENDPOINT= +AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts index 0141cc035720..d873c2d86bf2 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushSize.ts @@ -6,14 +6,14 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -58,7 +58,7 @@ function getDocumentsArray(size: number): Hotel[] { return array; } -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -105,9 +105,9 @@ async function main() { }); const documents: Hotel[] = getDocumentsArray(1001); - bufferedClient.uploadDocuments(documents); + await bufferedClient.uploadDocuments(documents); - await WAIT_TIME; + await delay(WAIT_TIME); let count = await searchClient.getDocumentsCount(); while (count !== documents.length) { @@ -122,7 +122,6 @@ async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts index db58ae2cd0fb..9ac74a28c295 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderAutoFlushTimer.ts @@ -6,15 +6,15 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, + DEFAULT_FLUSH_WINDOW, GeographyPoint, + SearchClient, SearchIndexClient, - DEFAULT_FLUSH_WINDOW, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -30,7 +30,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-5"; -export async function main() { +export async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -76,7 +76,7 @@ export async function main() { console.log(response); }); - bufferedClient.uploadDocuments([ + await bufferedClient.uploadDocuments([ { hotelId: "1", description: @@ -112,7 +112,6 @@ export async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts b/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts index 30cdea51244b..889cd5856fe7 100644 --- a/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts +++ b/sdk/search/search-documents/samples-dev/bufferedSenderManualFlush.ts @@ -6,14 +6,14 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -27,7 +27,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-6"; -export async function main() { +export async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; diff --git a/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts b/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts index e534e770a04a..1ca1ce4d5048 100644 --- a/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts +++ b/sdk/search/search-documents/samples-dev/dataSourceConnectionOperations.ts @@ -6,8 +6,8 @@ */ import { - SearchIndexerClient, AzureKeyCredential, + SearchIndexerClient, SearchIndexerDataSourceConnection, } from "@azure/search-documents"; @@ -17,12 +17,12 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const connectionString = process.env.CONNECTION_STRING || ""; -const dataSourceConnectionName = "example-ds-connection-sample-1"; +const TEST_DATA_SOURCE_CONNECTION_NAME = "example-ds-connection-sample-1"; async function createDataSourceConnection( dataSourceConnectionName: string, client: SearchIndexerClient, -) { +): Promise { console.log(`Creating DS Connection Operation`); const dataSourceConnection: SearchIndexerDataSourceConnection = { name: dataSourceConnectionName, @@ -39,7 +39,7 @@ async function createDataSourceConnection( async function getAndUpdateDataSourceConnection( dataSourceConnectionName: string, client: SearchIndexerClient, -) { +): Promise { console.log(`Get And Update DS Connection Operation`); const ds: SearchIndexerDataSourceConnection = await client.getDataSourceConnection(dataSourceConnectionName); @@ -48,14 +48,14 @@ async function getAndUpdateDataSourceConnection( await client.createOrUpdateDataSourceConnection(ds); } -async function listDataSourceConnections(client: SearchIndexerClient) { +async function listDataSourceConnections(client: SearchIndexerClient): Promise { console.log(`List DS Connection Operation`); const listOfDataSourceConnections: Array = await client.listDataSourceConnections(); console.log(`List of Data Source Connections`); console.log(`*******************************`); - for (let ds of listOfDataSourceConnections) { + for (const ds of listOfDataSourceConnections) { console.log(`Name: ${ds.name}`); console.log(`Description: ${ds.description}`); console.log(`Connection String: ${ds.connectionString}`); @@ -72,12 +72,12 @@ async function listDataSourceConnections(client: SearchIndexerClient) { async function deleteDataSourceConnection( dataSourceConnectionName: string, client: SearchIndexerClient, -) { +): Promise { console.log(`Deleting DS Connection Operation`); await client.deleteDataSourceConnection(dataSourceConnectionName); } -async function main() { +async function main(): Promise { console.log(`Running DS Connection Operations Sample....`); if (!endpoint || !apiKey || !connectionString) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -85,11 +85,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createDataSourceConnection(dataSourceConnectionName, client); - await getAndUpdateDataSourceConnection(dataSourceConnectionName, client); + await createDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); + await getAndUpdateDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); await listDataSourceConnections(client); } finally { - await deleteDataSourceConnection(dataSourceConnectionName, client); + await deleteDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/indexOperations.ts b/sdk/search/search-documents/samples-dev/indexOperations.ts index 92d47b8680a2..7774897f3fbc 100644 --- a/sdk/search/search-documents/samples-dev/indexOperations.ts +++ b/sdk/search/search-documents/samples-dev/indexOperations.ts @@ -6,9 +6,9 @@ */ import { - SearchIndexClient, AzureKeyCredential, SearchIndex, + SearchIndexClient, SearchIndexStatistics, } from "@azure/search-documents"; @@ -17,9 +17,9 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const indexName = "example-index-sample-1"; +const TEST_INDEX_NAME = "example-index-sample-1"; -async function createIndex(indexName: string, client: SearchIndexClient) { +async function createIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Creating Index Operation`); const index: SearchIndex = { name: indexName, @@ -62,7 +62,7 @@ async function createIndex(indexName: string, client: SearchIndexClient) { await client.createIndex(index); } -async function getAndUpdateIndex(indexName: string, client: SearchIndexClient) { +async function getAndUpdateIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Get And Update Index Operation`); const index: SearchIndex = await client.getIndex(indexName); index.fields.push({ @@ -73,14 +73,14 @@ async function getAndUpdateIndex(indexName: string, client: SearchIndexClient) { await client.createOrUpdateIndex(index); } -async function getIndexStatistics(indexName: string, client: SearchIndexClient) { +async function getIndexStatistics(indexName: string, client: SearchIndexClient): Promise { console.log(`Get Index Statistics Operation`); const statistics: SearchIndexStatistics = await client.getIndexStatistics(indexName); console.log(`Document Count: ${statistics.documentCount}`); console.log(`Storage Size: ${statistics.storageSize}`); } -async function getServiceStatistics(client: SearchIndexClient) { +async function getServiceStatistics(client: SearchIndexClient): Promise { console.log(`Get Service Statistics Operation`); const { counters, limits } = await client.getServiceStatistics(); console.log(`Counters`); @@ -116,7 +116,7 @@ async function getServiceStatistics(client: SearchIndexClient) { ); } -async function listIndexes(client: SearchIndexClient) { +async function listIndexes(client: SearchIndexClient): Promise { console.log(`List Indexes Operation`); const result = await client.listIndexes(); let listOfIndexes = await result.next(); @@ -132,12 +132,12 @@ async function listIndexes(client: SearchIndexClient) { } } -async function deleteIndex(indexName: string, client: SearchIndexClient) { +async function deleteIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Deleting Index Operation`); await client.deleteIndex(indexName); } -async function main() { +async function main(): Promise { console.log(`Running Index Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -145,13 +145,13 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndex(indexName, client); - await getAndUpdateIndex(indexName, client); - await getIndexStatistics(indexName, client); + await createIndex(TEST_INDEX_NAME, client); + await getAndUpdateIndex(TEST_INDEX_NAME, client); + await getIndexStatistics(TEST_INDEX_NAME, client); await getServiceStatistics(client); await listIndexes(client); } finally { - await deleteIndex(indexName, client); + await deleteIndex(TEST_INDEX_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/indexerOperations.ts b/sdk/search/search-documents/samples-dev/indexerOperations.ts index 2ab6b5b43696..5cb8ddd8e62d 100644 --- a/sdk/search/search-documents/samples-dev/indexerOperations.ts +++ b/sdk/search/search-documents/samples-dev/indexerOperations.ts @@ -6,9 +6,9 @@ */ import { - SearchIndexerClient, AzureKeyCredential, SearchIndexer, + SearchIndexerClient, SearchIndexerStatus, } from "@azure/search-documents"; @@ -20,9 +20,9 @@ const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const dataSourceName = process.env.DATA_SOURCE_NAME || ""; const targetIndexName = process.env.TARGET_INDEX_NAME || ""; -const indexerName = "example-indexer-sample-1"; +const TEST_INDEXER_NAME = "example-indexer-sample-1"; -async function createIndexer(indexerName: string, client: SearchIndexerClient) { +async function createIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Creating Indexer Operation`); const indexer: SearchIndexer = { name: indexerName, @@ -34,7 +34,10 @@ async function createIndexer(indexerName: string, client: SearchIndexerClient) { await client.createIndexer(indexer); } -async function getAndUpdateIndexer(indexerName: string, client: SearchIndexerClient) { +async function getAndUpdateIndexer( + indexerName: string, + client: SearchIndexerClient, +): Promise { console.log(`Get And Update Indexer Operation`); const indexer: SearchIndexer = await client.getIndexer(indexerName); indexer.isDisabled = true; @@ -43,7 +46,7 @@ async function getAndUpdateIndexer(indexerName: string, client: SearchIndexerCli await client.createOrUpdateIndexer(indexer); } -async function getIndexerStatus(indexerName: string, client: SearchIndexerClient) { +async function getIndexerStatus(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Get Indexer Status Operation`); const indexerStatus: SearchIndexerStatus = await client.getIndexerStatus(indexerName); console.log(`Status: ${indexerStatus.status}`); @@ -56,7 +59,7 @@ async function getIndexerStatus(indexerName: string, client: SearchIndexerClient console.log(`MaxRunTime: ${indexerStatus.limits.maxRunTime}`); } -async function listIndexers(client: SearchIndexerClient) { +async function listIndexers(client: SearchIndexerClient): Promise { console.log(`List Indexers Operation`); const listOfIndexers: Array = await client.listIndexers(); @@ -82,22 +85,22 @@ async function listIndexers(client: SearchIndexerClient) { } } -async function resetIndexer(indexerName: string, client: SearchIndexerClient) { +async function resetIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Reset Indexer Operation`); await client.resetIndexer(indexerName); } -async function deleteIndexer(indexerName: string, client: SearchIndexerClient) { +async function deleteIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Deleting Indexer Operation`); await client.deleteIndexer(indexerName); } -async function runIndexer(indexerName: string, client: SearchIndexerClient) { +async function runIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Run Indexer Operation`); await client.runIndexer(indexerName); } -async function main() { +async function main(): Promise { console.log(`Running Indexer Operations Sample....`); if (!endpoint || !apiKey || !dataSourceName || !targetIndexName) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -105,14 +108,14 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndexer(indexerName, client); - await getAndUpdateIndexer(indexerName, client); - await getIndexerStatus(indexerName, client); + await createIndexer(TEST_INDEXER_NAME, client); + await getAndUpdateIndexer(TEST_INDEXER_NAME, client); + await getIndexerStatus(TEST_INDEXER_NAME, client); await listIndexers(client); - await resetIndexer(indexerName, client); - await runIndexer(indexerName, client); + await resetIndexer(TEST_INDEXER_NAME, client); + await runIndexer(TEST_INDEXER_NAME, client); } finally { - await deleteIndexer(indexerName, client); + await deleteIndexer(TEST_INDEXER_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/interfaces.ts b/sdk/search/search-documents/samples-dev/interfaces.ts index 9a75788ca0a2..494148e11c3c 100644 --- a/sdk/search/search-documents/samples-dev/interfaces.ts +++ b/sdk/search/search-documents/samples-dev/interfaces.ts @@ -14,11 +14,11 @@ export interface Hotel { hotelId?: string; hotelName?: string | null; description?: string | null; - descriptionVectorEn?: number[] | null; - descriptionVectorFr?: number[] | null; + descriptionVectorEn?: number[]; + descriptionVectorFr?: number[]; descriptionFr?: string | null; category?: string | null; - tags?: string[] | null; + tags?: string[]; parkingIncluded?: boolean | null; smokingAllowed?: boolean | null; lastRenovationDate?: Date | null; @@ -40,5 +40,5 @@ export interface Hotel { sleepsCount?: number | null; smokingAllowed?: boolean | null; tags?: string[] | null; - }> | null; + }>; } diff --git a/sdk/search/search-documents/samples-dev/searchClientOperations.ts b/sdk/search/search-documents/samples-dev/searchClientOperations.ts index df00cd6b8bc4..ced0541bb0fc 100644 --- a/sdk/search/search-documents/samples-dev/searchClientOperations.ts +++ b/sdk/search/search-documents/samples-dev/searchClientOperations.ts @@ -7,13 +7,13 @@ import { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, SelectFields, } from "@azure/search-documents"; -import { createIndex, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -25,7 +25,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-2"; -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; diff --git a/sdk/search/search-documents/samples-dev/setup.ts b/sdk/search/search-documents/samples-dev/setup.ts index 0cdafdf01a85..eb6322bcb704 100644 --- a/sdk/search/search-documents/samples-dev/setup.ts +++ b/sdk/search/search-documents/samples-dev/setup.ts @@ -6,9 +6,9 @@ * @azsdk-util */ -import { SearchIndexClient, SearchIndex, KnownAnalyzerNames } from "@azure/search-documents"; -import { Hotel } from "./interfaces"; +import { KnownAnalyzerNames, SearchIndex, SearchIndexClient } from "@azure/search-documents"; import { env } from "process"; +import { Hotel } from "./interfaces"; export const WAIT_TIME = 4000; @@ -55,14 +55,14 @@ export async function createIndex(client: SearchIndexClient, name: string): Prom name: "descriptionVectorEn", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Collection(Edm.Single)", name: "descriptionVectorFr", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Edm.String", @@ -255,16 +255,16 @@ export async function createIndex(client: SearchIndexClient, name: string): Prom name: "vector-search-vectorizer", kind: "azureOpenAI", azureOpenAIParameters: { - resourceUri: env.OPENAI_ENDPOINT, - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, + resourceUri: env.AZURE_OPENAI_ENDPOINT, + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, }, }, ], profiles: [ { name: "vector-search-profile", - algorithm: "vector-search-algorithm", + algorithmConfigurationName: "vector-search-algorithm", vectorizer: "vector-search-vectorizer", }, ], diff --git a/sdk/search/search-documents/samples-dev/skillSetOperations.ts b/sdk/search/search-documents/samples-dev/skillSetOperations.ts index c8fc4162aa9b..e9c5fcee5511 100644 --- a/sdk/search/search-documents/samples-dev/skillSetOperations.ts +++ b/sdk/search/search-documents/samples-dev/skillSetOperations.ts @@ -6,8 +6,8 @@ */ import { - SearchIndexerClient, AzureKeyCredential, + SearchIndexerClient, SearchIndexerSkillset, } from "@azure/search-documents"; @@ -17,9 +17,9 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const skillsetName = "example-skillset-sample-1"; +const TEST_SKILLSET_NAME = "example-skillset-sample-1"; -async function createSkillset(skillsetName: string, client: SearchIndexerClient) { +async function createSkillset(skillsetName: string, client: SearchIndexerClient): Promise { console.log(`Creating Skillset Operation`); const skillset: SearchIndexerSkillset = { name: skillsetName, @@ -57,7 +57,10 @@ async function createSkillset(skillsetName: string, client: SearchIndexerClient) await client.createSkillset(skillset); } -async function getAndUpdateSkillset(skillsetName: string, client: SearchIndexerClient) { +async function getAndUpdateSkillset( + skillsetName: string, + client: SearchIndexerClient, +): Promise { console.log(`Get And Update Skillset Operation`); const skillset: SearchIndexerSkillset = await client.getSkillset(skillsetName); @@ -75,26 +78,26 @@ async function getAndUpdateSkillset(skillsetName: string, client: SearchIndexerC await client.createOrUpdateSkillset(skillset); } -async function listSkillsets(client: SearchIndexerClient) { +async function listSkillsets(client: SearchIndexerClient): Promise { console.log(`List Skillset Operation`); const listOfSkillsets: Array = await client.listSkillsets(); console.log(`\tList of Skillsets`); console.log(`\t******************`); - for (let skillset of listOfSkillsets) { + for (const skillset of listOfSkillsets) { console.log(`Name: ${skillset.name}`); console.log(`Description: ${skillset.description}`); console.log(`Skills`); console.log(`******`); - for (let skill of skillset.skills) { + for (const skill of skillset.skills) { console.log(`ODataType: ${skill.odatatype}`); console.log(`Inputs`); - for (let input of skill.inputs) { + for (const input of skill.inputs) { console.log(`\tName: ${input.name}`); console.log(`\tSource: ${input.source}`); } console.log(`Outputs`); - for (let output of skill.outputs) { + for (const output of skill.outputs) { console.log(`\tName: ${output.name}`); console.log(`\tTarget Name: ${output.targetName}`); } @@ -102,12 +105,12 @@ async function listSkillsets(client: SearchIndexerClient) { } } -async function deleteSkillset(skillsetName: string, client: SearchIndexerClient) { +async function deleteSkillset(skillsetName: string, client: SearchIndexerClient): Promise { console.log(`Deleting Skillset Operation`); await client.deleteSkillset(skillsetName); } -async function main() { +async function main(): Promise { console.log(`Running Skillset Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -115,11 +118,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSkillset(skillsetName, client); - await getAndUpdateSkillset(skillsetName, client); + await createSkillset(TEST_SKILLSET_NAME, client); + await getAndUpdateSkillset(TEST_SKILLSET_NAME, client); await listSkillsets(client); } finally { - await deleteSkillset(skillsetName, client); + await deleteSkillset(TEST_SKILLSET_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/stickySession.ts b/sdk/search/search-documents/samples-dev/stickySession.ts new file mode 100644 index 000000000000..8f91d1a0fa97 --- /dev/null +++ b/sdk/search/search-documents/samples-dev/stickySession.ts @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * @summary Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a + * single replica. + */ + +import { + AzureKeyCredential, + odata, + SearchClient, + SearchIndexClient, +} from "@azure/search-documents"; +import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +/** + * If you're querying a replicated index, Azure AI Search may target any replica with your queries. + * As these replicas may not be in a consistent state, the service may appear to have inconsistent + * states between distinct queries. To avoid this, you can use a sticky session. A sticky session + * is used to indicate to the Azure AI Search service that you'd like all requests with the same + * `sessionId` to be directed to the same replica. The service will then make a best effort to do + * so. + * + * Please see the + * {@link https://learn.microsoft.com/en-us/azure/search/index-similarity-and-scoring#scoring-statistics-and-sticky-sessions | documentation} + * for more information. + */ +const endpoint = process.env.ENDPOINT || ""; +const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; +const TEST_INDEX_NAME = "example-index-sample-3"; + +async function main(): Promise { + if (!endpoint || !apiKey) { + console.error( + "Be sure to set valid values for `endpoint` and `apiKey` with proper authorization.", + ); + return; + } + + const credential = new AzureKeyCredential(apiKey); + const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); + const searchClient: SearchClient = indexClient.getSearchClient(TEST_INDEX_NAME); + + // The session id is defined by the user. + const sessionId = "session1"; + + try { + await createIndex(indexClient, TEST_INDEX_NAME); + await delay(WAIT_TIME); + + // The service will make a best effort attempt to direct these queries to the same replica. As + // this overrides load balancing, excessive use of the same `sessionId` may result in + // performance degradation. Be sure to use a distinct `sessionId` for each sticky session. + const ratingQueries = [2, 4]; + for (const rating of ratingQueries) { + const response = await searchClient.search("*", { + filter: odata`rating ge ${rating}`, + sessionId, + }); + + const hotelNames = []; + for await (const result of response.results) { + const hotelName = result.document.hotelName; + if (typeof hotelName === "string") { + hotelNames.push(hotelName); + } + } + + if (hotelNames.length) { + console.log(`Hotels with at least a rating of ${rating}:`); + hotelNames.forEach(console.log); + } + } + } finally { + await indexClient.deleteIndex(TEST_INDEX_NAME); + } +} + +main(); diff --git a/sdk/search/search-documents/samples-dev/synonymMapOperations.ts b/sdk/search/search-documents/samples-dev/synonymMapOperations.ts index 56bcf98f75c5..b7fbfb174a3c 100644 --- a/sdk/search/search-documents/samples-dev/synonymMapOperations.ts +++ b/sdk/search/search-documents/samples-dev/synonymMapOperations.ts @@ -5,16 +5,16 @@ * @summary Demonstrates the SynonymMap Operations. */ -import { SearchIndexClient, AzureKeyCredential, SynonymMap } from "@azure/search-documents"; +import { AzureKeyCredential, SearchIndexClient, SynonymMap } from "@azure/search-documents"; import * as dotenv from "dotenv"; dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const synonymMapName = "example-synonymmap-sample-1"; +const TEST_SYNONYM_MAP_NAME = "example-synonymmap-sample-1"; -async function createSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function createSynonymMap(synonymMapName: string, client: SearchIndexClient): Promise { console.log(`Creating SynonymMap Operation`); const sm: SynonymMap = { name: synonymMapName, @@ -23,7 +23,10 @@ async function createSynonymMap(synonymMapName: string, client: SearchIndexClien await client.createSynonymMap(sm); } -async function getAndUpdateSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function getAndUpdateSynonymMap( + synonymMapName: string, + client: SearchIndexClient, +): Promise { console.log(`Get And Update SynonymMap Operation`); const sm: SynonymMap = await client.getSynonymMap(synonymMapName); console.log(`Update synonyms Synonym Map my-synonymmap`); @@ -31,27 +34,27 @@ async function getAndUpdateSynonymMap(synonymMapName: string, client: SearchInde await client.createOrUpdateSynonymMap(sm); } -async function listSynonymMaps(client: SearchIndexClient) { +async function listSynonymMaps(client: SearchIndexClient): Promise { console.log(`List SynonymMaps Operation`); const listOfSynonymMaps: Array = await client.listSynonymMaps(); console.log(`List of SynonymMaps`); console.log(`*******************`); - for (let sm of listOfSynonymMaps) { + for (const sm of listOfSynonymMaps) { console.log(`Name: ${sm.name}`); console.log(`Synonyms`); - for (let synonym of sm.synonyms) { + for (const synonym of sm.synonyms) { console.log(synonym); } } } -async function deleteSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function deleteSynonymMap(synonymMapName: string, client: SearchIndexClient): Promise { console.log(`Deleting SynonymMap Operation`); await client.deleteSynonymMap(synonymMapName); } -async function main() { +async function main(): Promise { console.log(`Running Index Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -59,11 +62,11 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSynonymMap(synonymMapName, client); - await getAndUpdateSynonymMap(synonymMapName, client); + await createSynonymMap(TEST_SYNONYM_MAP_NAME, client); + await getAndUpdateSynonymMap(TEST_SYNONYM_MAP_NAME, client); await listSynonymMaps(client); } finally { - await deleteSynonymMap(synonymMapName, client); + await deleteSynonymMap(TEST_SYNONYM_MAP_NAME, client); } } diff --git a/sdk/search/search-documents/samples-dev/vectorSearch.ts b/sdk/search/search-documents/samples-dev/vectorSearch.ts index 1fe322bde927..c08d6831381d 100644 --- a/sdk/search/search-documents/samples-dev/vectorSearch.ts +++ b/sdk/search/search-documents/samples-dev/vectorSearch.ts @@ -7,12 +7,12 @@ import { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, } from "@azure/search-documents"; -import { createIndex, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; import { fancyStayEnVector, fancyStayFrVector, luxuryQueryVector } from "./vectors"; @@ -25,7 +25,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-7"; -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -81,30 +81,32 @@ async function main() { await delay(WAIT_TIME); const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - fields: ["descriptionVectorEn"], - kNearestNeighborsCount: 3, - // An embedding of the query "What are the most luxurious hotels?" - vector: luxuryQueryVector, - }, - // Multi-vector search is supported - { - kind: "vector", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - vector: luxuryQueryVector, - }, - // The index can be configured with a vectorizer to generate text embeddings - // from a text query - { - kind: "text", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - text: "What are the most luxurious hotels?", - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + fields: ["descriptionVectorEn"], + kNearestNeighborsCount: 3, + // An embedding of the query "What are the most luxurious hotels?" + vector: luxuryQueryVector, + }, + // Multi-vector search is supported + { + kind: "vector", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + vector: luxuryQueryVector, + }, + // The index can be configured with a vectorizer to generate text embeddings + // from a text query + { + kind: "text", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + text: "What are the most luxurious hotels?", + }, + ], + }, }); for await (const result of searchResults.results) { diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/README.md b/sdk/search/search-documents/samples/v12-beta/javascript/README.md index 167160ba32eb..0b8fcfa0bb45 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/README.md +++ b/sdk/search/search-documents/samples/v12-beta/javascript/README.md @@ -13,18 +13,19 @@ urlFragment: search-documents-javascript-beta These sample programs show how to use the JavaScript client libraries for Azure Search Documents in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| [bufferedSenderAutoFlushSize.js][bufferedsenderautoflushsize] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on size. | -| [bufferedSenderAutoFlushTimer.js][bufferedsenderautoflushtimer] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on timer. | -| [bufferedSenderManualFlush.js][bufferedsendermanualflush] | Demonstrates the SearchIndexingBufferedSender with Manual Flush. | -| [dataSourceConnectionOperations.js][datasourceconnectionoperations] | Demonstrates the DataSource Connection Operations. | -| [indexOperations.js][indexoperations] | Demonstrates the Index Operations. | -| [indexerOperations.js][indexeroperations] | Demonstrates the Indexer Operations. | -| [searchClientOperations.js][searchclientoperations] | Demonstrates the SearchClient. | -| [skillSetOperations.js][skillsetoperations] | Demonstrates the Skillset Operations. | -| [synonymMapOperations.js][synonymmapoperations] | Demonstrates the SynonymMap Operations. | -| [vectorSearch.js][vectorsearch] | Demonstrates vector search | +| **File Name** | **Description** | +| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| [bufferedSenderAutoFlushSize.js][bufferedsenderautoflushsize] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on size. | +| [bufferedSenderAutoFlushTimer.js][bufferedsenderautoflushtimer] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on timer. | +| [bufferedSenderManualFlush.js][bufferedsendermanualflush] | Demonstrates the SearchIndexingBufferedSender with Manual Flush. | +| [dataSourceConnectionOperations.js][datasourceconnectionoperations] | Demonstrates the DataSource Connection Operations. | +| [indexOperations.js][indexoperations] | Demonstrates the Index Operations. | +| [indexerOperations.js][indexeroperations] | Demonstrates the Indexer Operations. | +| [searchClientOperations.js][searchclientoperations] | Demonstrates the SearchClient. | +| [skillSetOperations.js][skillsetoperations] | Demonstrates the Skillset Operations. | +| [stickySession.js][stickysession] | Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a single replica. | +| [synonymMapOperations.js][synonymmapoperations] | Demonstrates the SynonymMap Operations. | +| [vectorSearch.js][vectorsearch] | Demonstrates vector search | ## Prerequisites @@ -74,6 +75,7 @@ Take a look at our [API Documentation][apiref] for more information about the AP [indexeroperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js [searchclientoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js [skillsetoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js +[stickysession]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js [synonymmapoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js [vectorsearch]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js [apiref]: https://docs.microsoft.com/javascript/api/@azure/search-documents diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushSize.js b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushSize.js index c3a7a3975c5a..cc9418f9c822 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushSize.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushSize.js @@ -6,13 +6,13 @@ */ const { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } = require("@azure/search-documents"); -const { createIndex, documentKeyRetriever, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, documentKeyRetriever, WAIT_TIME } = require("./setup"); require("dotenv").config(); @@ -95,9 +95,9 @@ async function main() { }); const documents = getDocumentsArray(1001); - bufferedClient.uploadDocuments(documents); + await bufferedClient.uploadDocuments(documents); - await WAIT_TIME; + await delay(WAIT_TIME); let count = await searchClient.getDocumentsCount(); while (count !== documents.length) { @@ -112,7 +112,6 @@ async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushTimer.js b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushTimer.js index 215ec97af8e8..c0009fc9b021 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushTimer.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderAutoFlushTimer.js @@ -6,14 +6,14 @@ */ const { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, + DEFAULT_FLUSH_WINDOW, GeographyPoint, + SearchClient, SearchIndexClient, - DEFAULT_FLUSH_WINDOW, + SearchIndexingBufferedSender, } = require("@azure/search-documents"); -const { createIndex, documentKeyRetriever, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, documentKeyRetriever, WAIT_TIME } = require("./setup"); require("dotenv").config(); @@ -66,7 +66,7 @@ async function main() { console.log(response); }); - bufferedClient.uploadDocuments([ + await bufferedClient.uploadDocuments([ { hotelId: "1", description: @@ -102,7 +102,6 @@ async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderManualFlush.js b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderManualFlush.js index bdbb2d8ad5d1..974e5a073373 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderManualFlush.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/bufferedSenderManualFlush.js @@ -6,13 +6,13 @@ */ const { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } = require("@azure/search-documents"); -const { createIndex, documentKeyRetriever, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, documentKeyRetriever, WAIT_TIME } = require("./setup"); require("dotenv").config(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/dataSourceConnectionOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/dataSourceConnectionOperations.js index 7a6cbda2e070..5b7e8b336b7b 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/dataSourceConnectionOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/dataSourceConnectionOperations.js @@ -5,14 +5,14 @@ * @summary Demonstrates the DataSource Connection Operations. */ -const { SearchIndexerClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexerClient } = require("@azure/search-documents"); require("dotenv").config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const connectionString = process.env.CONNECTION_STRING || ""; -const dataSourceConnectionName = "example-ds-connection-sample-1"; +const TEST_DATA_SOURCE_CONNECTION_NAME = "example-ds-connection-sample-1"; async function createDataSourceConnection(dataSourceConnectionName, client) { console.log(`Creating DS Connection Operation`); @@ -42,7 +42,7 @@ async function listDataSourceConnections(client) { console.log(`List of Data Source Connections`); console.log(`*******************************`); - for (let ds of listOfDataSourceConnections) { + for (const ds of listOfDataSourceConnections) { console.log(`Name: ${ds.name}`); console.log(`Description: ${ds.description}`); console.log(`Connection String: ${ds.connectionString}`); @@ -69,11 +69,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createDataSourceConnection(dataSourceConnectionName, client); - await getAndUpdateDataSourceConnection(dataSourceConnectionName, client); + await createDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); + await getAndUpdateDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); await listDataSourceConnections(client); } finally { - await deleteDataSourceConnection(dataSourceConnectionName, client); + await deleteDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/indexOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/indexOperations.js index 612da181eca3..c1a5239c3ba9 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/indexOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/indexOperations.js @@ -5,13 +5,13 @@ * @summary Demonstrates the Index Operations. */ -const { SearchIndexClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexClient } = require("@azure/search-documents"); require("dotenv").config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const indexName = "example-index-sample-1"; +const TEST_INDEX_NAME = "example-index-sample-1"; async function createIndex(indexName, client) { console.log(`Creating Index Operation`); @@ -103,10 +103,10 @@ async function getServiceStatistics(client) { console.log(`\tMax Fields Per Index: ${limits.maxFieldsPerIndex}`); console.log(`\tMax Field Nesting Depth Per Index: ${limits.maxFieldNestingDepthPerIndex}`); console.log( - `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}` + `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}`, ); console.log( - `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}` + `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}`, ); } @@ -139,13 +139,13 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndex(indexName, client); - await getAndUpdateIndex(indexName, client); - await getIndexStatistics(indexName, client); + await createIndex(TEST_INDEX_NAME, client); + await getAndUpdateIndex(TEST_INDEX_NAME, client); + await getIndexStatistics(TEST_INDEX_NAME, client); await getServiceStatistics(client); await listIndexes(client); } finally { - await deleteIndex(indexName, client); + await deleteIndex(TEST_INDEX_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js index 52dffff86848..59b549220540 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/indexerOperations.js @@ -5,7 +5,7 @@ * @summary Demonstrates the Indexer Operations. */ -const { SearchIndexerClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexerClient } = require("@azure/search-documents"); require("dotenv").config(); @@ -14,7 +14,7 @@ const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const dataSourceName = process.env.DATA_SOURCE_NAME || ""; const targetIndexName = process.env.TARGET_INDEX_NAME || ""; -const indexerName = "example-indexer-sample-1"; +const TEST_INDEXER_NAME = "example-indexer-sample-1"; async function createIndexer(indexerName, client) { console.log(`Creating Indexer Operation`); @@ -44,7 +44,7 @@ async function getIndexerStatus(indexerName, client) { console.log(`Limits`); console.log(`******`); console.log( - `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}` + `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}`, ); console.log(`MaxDocumentExtractionSize: ${indexerStatus.limits.maxDocumentExtractionSize}`); console.log(`MaxRunTime: ${indexerStatus.limits.maxRunTime}`); @@ -99,14 +99,14 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndexer(indexerName, client); - await getAndUpdateIndexer(indexerName, client); - await getIndexerStatus(indexerName, client); + await createIndexer(TEST_INDEXER_NAME, client); + await getAndUpdateIndexer(TEST_INDEXER_NAME, client); + await getIndexerStatus(TEST_INDEXER_NAME, client); await listIndexers(client); - await resetIndexer(indexerName, client); - await runIndexer(indexerName, client); + await resetIndexer(TEST_INDEXER_NAME, client); + await runIndexer(TEST_INDEXER_NAME, client); } finally { - await deleteIndexer(indexerName, client); + await deleteIndexer(TEST_INDEXER_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/sample.env b/sdk/search/search-documents/samples/v12-beta/javascript/sample.env index 13954cec21bd..86f0916725d2 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/sample.env +++ b/sdk/search/search-documents/samples/v12-beta/javascript/sample.env @@ -11,10 +11,10 @@ ENDPOINT= AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js index d212bcbe400b..0745f6807406 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/searchClientOperations.js @@ -7,11 +7,11 @@ const { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, } = require("@azure/search-documents"); -const { createIndex, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, WAIT_TIME } = require("./setup"); require("dotenv").config(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/setup.js b/sdk/search/search-documents/samples/v12-beta/javascript/setup.js index 52540e166a54..450c2f392ba1 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/setup.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/setup.js @@ -53,14 +53,14 @@ async function createIndex(client, name) { name: "descriptionVectorEn", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Collection(Edm.Single)", name: "descriptionVectorFr", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Edm.String", @@ -254,15 +254,15 @@ async function createIndex(client, name) { kind: "azureOpenAI", azureOpenAIParameters: { resourceUri: env.AZURE_OPENAI_ENDPOINT, - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, }, }, ], profiles: [ { name: "vector-search-profile", - algorithm: "vector-search-algorithm", + algorithmConfigurationName: "vector-search-algorithm", vectorizer: "vector-search-vectorizer", }, ], diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js index 1111b5817434..fc8edb586a66 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/skillSetOperations.js @@ -5,14 +5,14 @@ * @summary Demonstrates the Skillset Operations. */ -const { SearchIndexerClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexerClient } = require("@azure/search-documents"); require("dotenv").config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const skillsetName = "example-skillset-sample-1"; +const TEST_SKILLSET_NAME = "example-skillset-sample-1"; async function createSkillset(skillsetName, client) { console.log(`Creating Skillset Operation`); @@ -76,20 +76,20 @@ async function listSkillsets(client) { console.log(`\tList of Skillsets`); console.log(`\t******************`); - for (let skillset of listOfSkillsets) { + for (const skillset of listOfSkillsets) { console.log(`Name: ${skillset.name}`); console.log(`Description: ${skillset.description}`); console.log(`Skills`); console.log(`******`); - for (let skill of skillset.skills) { + for (const skill of skillset.skills) { console.log(`ODataType: ${skill.odatatype}`); console.log(`Inputs`); - for (let input of skill.inputs) { + for (const input of skill.inputs) { console.log(`\tName: ${input.name}`); console.log(`\tSource: ${input.source}`); } console.log(`Outputs`); - for (let output of skill.outputs) { + for (const output of skill.outputs) { console.log(`\tName: ${output.name}`); console.log(`\tTarget Name: ${output.targetName}`); } @@ -110,11 +110,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSkillset(skillsetName, client); - await getAndUpdateSkillset(skillsetName, client); + await createSkillset(TEST_SKILLSET_NAME, client); + await getAndUpdateSkillset(TEST_SKILLSET_NAME, client); await listSkillsets(client); } finally { - await deleteSkillset(skillsetName, client); + await deleteSkillset(TEST_SKILLSET_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js b/sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js new file mode 100644 index 000000000000..9f4955fbf4d0 --- /dev/null +++ b/sdk/search/search-documents/samples/v12-beta/javascript/stickySession.js @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * @summary Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a + * single replica. + */ + +const { AzureKeyCredential, odata, SearchIndexClient } = require("@azure/search-documents"); +const { createIndex, delay, WAIT_TIME } = require("./setup"); + +require("dotenv").config(); + +/** + * If you're querying a replicated index, Azure AI Search may target any replica with your queries. + * As these replicas may not be in a consistent state, the service may appear to have inconsistent + * states between distinct queries. To avoid this, you can use a sticky session. A sticky session + * is used to indicate to the Azure AI Search service that you'd like all requests with the same + * `sessionId` to be directed to the same replica. The service will then make a best effort to do + * so. + * + * Please see the + * {@link https://learn.microsoft.com/en-us/azure/search/index-similarity-and-scoring#scoring-statistics-and-sticky-sessions | documentation} + * for more information. + */ +const endpoint = process.env.ENDPOINT || ""; +const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; +const TEST_INDEX_NAME = "example-index-sample-3"; + +async function main() { + if (!endpoint || !apiKey) { + console.error( + "Be sure to set valid values for `endpoint` and `apiKey` with proper authorization.", + ); + return; + } + + const credential = new AzureKeyCredential(apiKey); + const indexClient = new SearchIndexClient(endpoint, credential); + const searchClient = indexClient.getSearchClient(TEST_INDEX_NAME); + + // The session id is defined by the user. + const sessionId = "session1"; + + try { + await createIndex(indexClient, TEST_INDEX_NAME); + await delay(WAIT_TIME); + + // The service will make a best effort attempt to direct these queries to the same replica. As + // this overrides load balancing, excessive use of the same `sessionId` may result in + // performance degradation. Be sure to use a distinct `sessionId` for each sticky session. + const ratingQueries = [2, 4]; + for (const rating of ratingQueries) { + const response = await searchClient.search("*", { + filter: odata`rating ge ${rating}`, + sessionId, + }); + + const hotelNames = []; + for await (const result of response.results) { + const hotelName = result.document.hotelName; + if (typeof hotelName === "string") { + hotelNames.push(hotelName); + } + } + + if (hotelNames.length) { + console.log(`Hotels with at least a rating of ${rating}:`); + hotelNames.forEach(console.log); + } + } + } finally { + await indexClient.deleteIndex(TEST_INDEX_NAME); + } +} + +main(); diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js b/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js index 65860f6d7b86..272bf7d39057 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/synonymMapOperations.js @@ -5,13 +5,13 @@ * @summary Demonstrates the SynonymMap Operations. */ -const { SearchIndexClient, AzureKeyCredential } = require("@azure/search-documents"); +const { AzureKeyCredential, SearchIndexClient } = require("@azure/search-documents"); require("dotenv").config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const synonymMapName = "example-synonymmap-sample-1"; +const TEST_SYNONYM_MAP_NAME = "example-synonymmap-sample-1"; async function createSynonymMap(synonymMapName, client) { console.log(`Creating SynonymMap Operation`); @@ -36,10 +36,10 @@ async function listSynonymMaps(client) { console.log(`List of SynonymMaps`); console.log(`*******************`); - for (let sm of listOfSynonymMaps) { + for (const sm of listOfSynonymMaps) { console.log(`Name: ${sm.name}`); console.log(`Synonyms`); - for (let synonym of sm.synonyms) { + for (const synonym of sm.synonyms) { console.log(synonym); } } @@ -58,11 +58,11 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSynonymMap(synonymMapName, client); - await getAndUpdateSynonymMap(synonymMapName, client); + await createSynonymMap(TEST_SYNONYM_MAP_NAME, client); + await getAndUpdateSynonymMap(TEST_SYNONYM_MAP_NAME, client); await listSynonymMaps(client); } finally { - await deleteSynonymMap(synonymMapName, client); + await deleteSynonymMap(TEST_SYNONYM_MAP_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js b/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js index 79c1fe2fb086..c7a42109b136 100644 --- a/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js +++ b/sdk/search/search-documents/samples/v12-beta/javascript/vectorSearch.js @@ -7,11 +7,11 @@ const { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, } = require("@azure/search-documents"); -const { createIndex, WAIT_TIME, delay } = require("./setup"); +const { createIndex, delay, WAIT_TIME } = require("./setup"); const dotenv = require("dotenv"); const { fancyStayEnVector, fancyStayFrVector, luxuryQueryVector } = require("./vectors"); @@ -76,30 +76,32 @@ async function main() { await delay(WAIT_TIME); const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - fields: ["descriptionVectorEn"], - kNearestNeighborsCount: 3, - // An embedding of the query "What are the most luxurious hotels?" - vector: luxuryQueryVector, - }, - // Multi-vector search is supported - { - kind: "vector", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - vector: luxuryQueryVector, - }, - // The index can be configured with a vectorizer to generate text embeddings - // from a text query - { - kind: "text", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - text: "What are the most luxurious hotels?", - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + fields: ["descriptionVectorEn"], + kNearestNeighborsCount: 3, + // An embedding of the query "What are the most luxurious hotels?" + vector: luxuryQueryVector, + }, + // Multi-vector search is supported + { + kind: "vector", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + vector: luxuryQueryVector, + }, + // The index can be configured with a vectorizer to generate text embeddings + // from a text query + { + kind: "text", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + text: "What are the most luxurious hotels?", + }, + ], + }, }); for await (const result of searchResults.results) { diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/README.md b/sdk/search/search-documents/samples/v12-beta/typescript/README.md index da0592d5a261..9bb632d3e01c 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/README.md +++ b/sdk/search/search-documents/samples/v12-beta/typescript/README.md @@ -13,18 +13,19 @@ urlFragment: search-documents-typescript-beta These sample programs show how to use the TypeScript client libraries for Azure Search Documents in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| [bufferedSenderAutoFlushSize.ts][bufferedsenderautoflushsize] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on size. | -| [bufferedSenderAutoFlushTimer.ts][bufferedsenderautoflushtimer] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on timer. | -| [bufferedSenderManualFlush.ts][bufferedsendermanualflush] | Demonstrates the SearchIndexingBufferedSender with Manual Flush. | -| [dataSourceConnectionOperations.ts][datasourceconnectionoperations] | Demonstrates the DataSource Connection Operations. | -| [indexOperations.ts][indexoperations] | Demonstrates the Index Operations. | -| [indexerOperations.ts][indexeroperations] | Demonstrates the Indexer Operations. | -| [searchClientOperations.ts][searchclientoperations] | Demonstrates the SearchClient. | -| [skillSetOperations.ts][skillsetoperations] | Demonstrates the Skillset Operations. | -| [synonymMapOperations.ts][synonymmapoperations] | Demonstrates the SynonymMap Operations. | -| [vectorSearch.ts][vectorsearch] | Demonstrates vector search | +| **File Name** | **Description** | +| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| [bufferedSenderAutoFlushSize.ts][bufferedsenderautoflushsize] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on size. | +| [bufferedSenderAutoFlushTimer.ts][bufferedsenderautoflushtimer] | Demonstrates the SearchIndexingBufferedSender with Autoflush based on timer. | +| [bufferedSenderManualFlush.ts][bufferedsendermanualflush] | Demonstrates the SearchIndexingBufferedSender with Manual Flush. | +| [dataSourceConnectionOperations.ts][datasourceconnectionoperations] | Demonstrates the DataSource Connection Operations. | +| [indexOperations.ts][indexoperations] | Demonstrates the Index Operations. | +| [indexerOperations.ts][indexeroperations] | Demonstrates the Indexer Operations. | +| [searchClientOperations.ts][searchclientoperations] | Demonstrates the SearchClient. | +| [skillSetOperations.ts][skillsetoperations] | Demonstrates the Skillset Operations. | +| [stickySession.ts][stickysession] | Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a single replica. | +| [synonymMapOperations.ts][synonymmapoperations] | Demonstrates the SynonymMap Operations. | +| [vectorSearch.ts][vectorsearch] | Demonstrates vector search | ## Prerequisites @@ -86,6 +87,7 @@ Take a look at our [API Documentation][apiref] for more information about the AP [indexeroperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts [searchclientoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts [skillsetoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts +[stickysession]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts [synonymmapoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts [vectorsearch]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts [apiref]: https://docs.microsoft.com/javascript/api/@azure/search-documents diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/sample.env b/sdk/search/search-documents/samples/v12-beta/typescript/sample.env index 13954cec21bd..86f0916725d2 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/sample.env +++ b/sdk/search/search-documents/samples/v12-beta/typescript/sample.env @@ -11,10 +11,10 @@ ENDPOINT= AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushSize.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushSize.ts index 6d8f7d22509f..d873c2d86bf2 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushSize.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushSize.ts @@ -6,14 +6,14 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -58,7 +58,7 @@ function getDocumentsArray(size: number): Hotel[] { return array; } -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -70,7 +70,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -83,7 +83,7 @@ async function main() { documentKeyRetriever, { autoFlush: true, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { @@ -105,9 +105,9 @@ async function main() { }); const documents: Hotel[] = getDocumentsArray(1001); - bufferedClient.uploadDocuments(documents); + await bufferedClient.uploadDocuments(documents); - await WAIT_TIME; + await delay(WAIT_TIME); let count = await searchClient.getDocumentsCount(); while (count !== documents.length) { @@ -122,7 +122,6 @@ async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushTimer.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushTimer.ts index 9b4c33e51157..9ac74a28c295 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushTimer.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderAutoFlushTimer.ts @@ -6,15 +6,15 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, + DEFAULT_FLUSH_WINDOW, GeographyPoint, + SearchClient, SearchIndexClient, - DEFAULT_FLUSH_WINDOW, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -30,7 +30,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-5"; -export async function main() { +export async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -42,7 +42,7 @@ export async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -55,7 +55,7 @@ export async function main() { documentKeyRetriever, { autoFlush: true, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { @@ -76,7 +76,7 @@ export async function main() { console.log(response); }); - bufferedClient.uploadDocuments([ + await bufferedClient.uploadDocuments([ { hotelId: "1", description: @@ -112,7 +112,6 @@ export async function main() { } finally { await indexClient.deleteIndex(TEST_INDEX_NAME); } - await delay(WAIT_TIME); } main(); diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderManualFlush.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderManualFlush.ts index 6c77acff8e2e..889cd5856fe7 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderManualFlush.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/bufferedSenderManualFlush.ts @@ -6,14 +6,14 @@ */ import { - SearchIndexingBufferedSender, AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, + SearchIndexingBufferedSender, } from "@azure/search-documents"; -import { createIndex, documentKeyRetriever, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, documentKeyRetriever, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -27,7 +27,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-6"; -export async function main() { +export async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -39,7 +39,7 @@ export async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -52,7 +52,7 @@ export async function main() { documentKeyRetriever, { autoFlush: false, - } + }, ); bufferedClient.on("batchAdded", (response: any) => { diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/dataSourceConnectionOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/dataSourceConnectionOperations.ts index 49c45e886cc3..1ca1ce4d5048 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/dataSourceConnectionOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/dataSourceConnectionOperations.ts @@ -6,8 +6,8 @@ */ import { - SearchIndexerClient, AzureKeyCredential, + SearchIndexerClient, SearchIndexerDataSourceConnection, } from "@azure/search-documents"; @@ -17,12 +17,12 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const connectionString = process.env.CONNECTION_STRING || ""; -const dataSourceConnectionName = "example-ds-connection-sample-1"; +const TEST_DATA_SOURCE_CONNECTION_NAME = "example-ds-connection-sample-1"; async function createDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient -) { + client: SearchIndexerClient, +): Promise { console.log(`Creating DS Connection Operation`); const dataSourceConnection: SearchIndexerDataSourceConnection = { name: dataSourceConnectionName, @@ -38,25 +38,24 @@ async function createDataSourceConnection( async function getAndUpdateDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient -) { + client: SearchIndexerClient, +): Promise { console.log(`Get And Update DS Connection Operation`); - const ds: SearchIndexerDataSourceConnection = await client.getDataSourceConnection( - dataSourceConnectionName - ); + const ds: SearchIndexerDataSourceConnection = + await client.getDataSourceConnection(dataSourceConnectionName); ds.container.name = "Listings_5K_KingCounty_WA"; console.log(`Updating Container Name of Datasource Connection ${dataSourceConnectionName}`); await client.createOrUpdateDataSourceConnection(ds); } -async function listDataSourceConnections(client: SearchIndexerClient) { +async function listDataSourceConnections(client: SearchIndexerClient): Promise { console.log(`List DS Connection Operation`); const listOfDataSourceConnections: Array = await client.listDataSourceConnections(); console.log(`List of Data Source Connections`); console.log(`*******************************`); - for (let ds of listOfDataSourceConnections) { + for (const ds of listOfDataSourceConnections) { console.log(`Name: ${ds.name}`); console.log(`Description: ${ds.description}`); console.log(`Connection String: ${ds.connectionString}`); @@ -72,13 +71,13 @@ async function listDataSourceConnections(client: SearchIndexerClient) { async function deleteDataSourceConnection( dataSourceConnectionName: string, - client: SearchIndexerClient -) { + client: SearchIndexerClient, +): Promise { console.log(`Deleting DS Connection Operation`); await client.deleteDataSourceConnection(dataSourceConnectionName); } -async function main() { +async function main(): Promise { console.log(`Running DS Connection Operations Sample....`); if (!endpoint || !apiKey || !connectionString) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -86,11 +85,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createDataSourceConnection(dataSourceConnectionName, client); - await getAndUpdateDataSourceConnection(dataSourceConnectionName, client); + await createDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); + await getAndUpdateDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); await listDataSourceConnections(client); } finally { - await deleteDataSourceConnection(dataSourceConnectionName, client); + await deleteDataSourceConnection(TEST_DATA_SOURCE_CONNECTION_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/indexOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/indexOperations.ts index 9ba3e3da83b9..7774897f3fbc 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/indexOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/indexOperations.ts @@ -6,9 +6,9 @@ */ import { - SearchIndexClient, AzureKeyCredential, SearchIndex, + SearchIndexClient, SearchIndexStatistics, } from "@azure/search-documents"; @@ -17,9 +17,9 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const indexName = "example-index-sample-1"; +const TEST_INDEX_NAME = "example-index-sample-1"; -async function createIndex(indexName: string, client: SearchIndexClient) { +async function createIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Creating Index Operation`); const index: SearchIndex = { name: indexName, @@ -62,7 +62,7 @@ async function createIndex(indexName: string, client: SearchIndexClient) { await client.createIndex(index); } -async function getAndUpdateIndex(indexName: string, client: SearchIndexClient) { +async function getAndUpdateIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Get And Update Index Operation`); const index: SearchIndex = await client.getIndex(indexName); index.fields.push({ @@ -73,14 +73,14 @@ async function getAndUpdateIndex(indexName: string, client: SearchIndexClient) { await client.createOrUpdateIndex(index); } -async function getIndexStatistics(indexName: string, client: SearchIndexClient) { +async function getIndexStatistics(indexName: string, client: SearchIndexClient): Promise { console.log(`Get Index Statistics Operation`); const statistics: SearchIndexStatistics = await client.getIndexStatistics(indexName); console.log(`Document Count: ${statistics.documentCount}`); console.log(`Storage Size: ${statistics.storageSize}`); } -async function getServiceStatistics(client: SearchIndexClient) { +async function getServiceStatistics(client: SearchIndexClient): Promise { console.log(`Get Service Statistics Operation`); const { counters, limits } = await client.getServiceStatistics(); console.log(`Counters`); @@ -109,14 +109,14 @@ async function getServiceStatistics(client: SearchIndexClient) { console.log(`\tMax Fields Per Index: ${limits.maxFieldsPerIndex}`); console.log(`\tMax Field Nesting Depth Per Index: ${limits.maxFieldNestingDepthPerIndex}`); console.log( - `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}` + `\tMax Complex Collection Fields Per Index: ${limits.maxComplexCollectionFieldsPerIndex}`, ); console.log( - `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}` + `\tMax Complex Objects In Collections Per Document: ${limits.maxComplexObjectsInCollectionsPerDocument}`, ); } -async function listIndexes(client: SearchIndexClient) { +async function listIndexes(client: SearchIndexClient): Promise { console.log(`List Indexes Operation`); const result = await client.listIndexes(); let listOfIndexes = await result.next(); @@ -132,12 +132,12 @@ async function listIndexes(client: SearchIndexClient) { } } -async function deleteIndex(indexName: string, client: SearchIndexClient) { +async function deleteIndex(indexName: string, client: SearchIndexClient): Promise { console.log(`Deleting Index Operation`); await client.deleteIndex(indexName); } -async function main() { +async function main(): Promise { console.log(`Running Index Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -145,13 +145,13 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndex(indexName, client); - await getAndUpdateIndex(indexName, client); - await getIndexStatistics(indexName, client); + await createIndex(TEST_INDEX_NAME, client); + await getAndUpdateIndex(TEST_INDEX_NAME, client); + await getIndexStatistics(TEST_INDEX_NAME, client); await getServiceStatistics(client); await listIndexes(client); } finally { - await deleteIndex(indexName, client); + await deleteIndex(TEST_INDEX_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts index 1e61c2374071..5cb8ddd8e62d 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/indexerOperations.ts @@ -6,9 +6,9 @@ */ import { - SearchIndexerClient, AzureKeyCredential, SearchIndexer, + SearchIndexerClient, SearchIndexerStatus, } from "@azure/search-documents"; @@ -20,9 +20,9 @@ const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const dataSourceName = process.env.DATA_SOURCE_NAME || ""; const targetIndexName = process.env.TARGET_INDEX_NAME || ""; -const indexerName = "example-indexer-sample-1"; +const TEST_INDEXER_NAME = "example-indexer-sample-1"; -async function createIndexer(indexerName: string, client: SearchIndexerClient) { +async function createIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Creating Indexer Operation`); const indexer: SearchIndexer = { name: indexerName, @@ -34,7 +34,10 @@ async function createIndexer(indexerName: string, client: SearchIndexerClient) { await client.createIndexer(indexer); } -async function getAndUpdateIndexer(indexerName: string, client: SearchIndexerClient) { +async function getAndUpdateIndexer( + indexerName: string, + client: SearchIndexerClient, +): Promise { console.log(`Get And Update Indexer Operation`); const indexer: SearchIndexer = await client.getIndexer(indexerName); indexer.isDisabled = true; @@ -43,20 +46,20 @@ async function getAndUpdateIndexer(indexerName: string, client: SearchIndexerCli await client.createOrUpdateIndexer(indexer); } -async function getIndexerStatus(indexerName: string, client: SearchIndexerClient) { +async function getIndexerStatus(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Get Indexer Status Operation`); const indexerStatus: SearchIndexerStatus = await client.getIndexerStatus(indexerName); console.log(`Status: ${indexerStatus.status}`); console.log(`Limits`); console.log(`******`); console.log( - `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}` + `MaxDocumentContentCharactersToExtract: ${indexerStatus.limits.maxDocumentContentCharactersToExtract}`, ); console.log(`MaxDocumentExtractionSize: ${indexerStatus.limits.maxDocumentExtractionSize}`); console.log(`MaxRunTime: ${indexerStatus.limits.maxRunTime}`); } -async function listIndexers(client: SearchIndexerClient) { +async function listIndexers(client: SearchIndexerClient): Promise { console.log(`List Indexers Operation`); const listOfIndexers: Array = await client.listIndexers(); @@ -82,22 +85,22 @@ async function listIndexers(client: SearchIndexerClient) { } } -async function resetIndexer(indexerName: string, client: SearchIndexerClient) { +async function resetIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Reset Indexer Operation`); await client.resetIndexer(indexerName); } -async function deleteIndexer(indexerName: string, client: SearchIndexerClient) { +async function deleteIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Deleting Indexer Operation`); await client.deleteIndexer(indexerName); } -async function runIndexer(indexerName: string, client: SearchIndexerClient) { +async function runIndexer(indexerName: string, client: SearchIndexerClient): Promise { console.log(`Run Indexer Operation`); await client.runIndexer(indexerName); } -async function main() { +async function main(): Promise { console.log(`Running Indexer Operations Sample....`); if (!endpoint || !apiKey || !dataSourceName || !targetIndexName) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -105,14 +108,14 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createIndexer(indexerName, client); - await getAndUpdateIndexer(indexerName, client); - await getIndexerStatus(indexerName, client); + await createIndexer(TEST_INDEXER_NAME, client); + await getAndUpdateIndexer(TEST_INDEXER_NAME, client); + await getIndexerStatus(TEST_INDEXER_NAME, client); await listIndexers(client); - await resetIndexer(indexerName, client); - await runIndexer(indexerName, client); + await resetIndexer(TEST_INDEXER_NAME, client); + await runIndexer(TEST_INDEXER_NAME, client); } finally { - await deleteIndexer(indexerName, client); + await deleteIndexer(TEST_INDEXER_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/interfaces.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/interfaces.ts index fc116d4805ed..f6ac5440b95e 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/interfaces.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/interfaces.ts @@ -11,11 +11,11 @@ export interface Hotel { hotelId?: string; hotelName?: string | null; description?: string | null; - descriptionVectorEn?: number[] | null; - descriptionVectorFr?: number[] | null; + descriptionVectorEn?: number[]; + descriptionVectorFr?: number[]; descriptionFr?: string | null; category?: string | null; - tags?: string[] | null; + tags?: string[]; parkingIncluded?: boolean | null; smokingAllowed?: boolean | null; lastRenovationDate?: Date | null; @@ -37,5 +37,5 @@ export interface Hotel { sleepsCount?: number | null; smokingAllowed?: boolean | null; tags?: string[] | null; - }> | null; + }>; } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts index 4949728c3e32..ced0541bb0fc 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/searchClientOperations.ts @@ -7,13 +7,13 @@ import { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, SelectFields, } from "@azure/search-documents"; -import { createIndex, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; dotenv.config(); @@ -25,7 +25,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-2"; -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -40,7 +40,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/setup.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/setup.ts index a876b9f0a44b..fabc4db10450 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/setup.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/setup.ts @@ -5,9 +5,9 @@ * Defines the utility methods. */ -import { SearchIndexClient, SearchIndex, KnownAnalyzerNames } from "@azure/search-documents"; -import { Hotel } from "./interfaces"; +import { KnownAnalyzerNames, SearchIndex, SearchIndexClient } from "@azure/search-documents"; import { env } from "process"; +import { Hotel } from "./interfaces"; export const WAIT_TIME = 4000; @@ -54,14 +54,14 @@ export async function createIndex(client: SearchIndexClient, name: string): Prom name: "descriptionVectorEn", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Collection(Edm.Single)", name: "descriptionVectorFr", searchable: true, vectorSearchDimensions: 1536, - vectorSearchProfile: "vector-search-profile", + vectorSearchProfileName: "vector-search-profile", }, { type: "Edm.String", @@ -255,15 +255,15 @@ export async function createIndex(client: SearchIndexClient, name: string): Prom kind: "azureOpenAI", azureOpenAIParameters: { resourceUri: env.AZURE_OPENAI_ENDPOINT, - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, }, }, ], profiles: [ { name: "vector-search-profile", - algorithm: "vector-search-algorithm", + algorithmConfigurationName: "vector-search-algorithm", vectorizer: "vector-search-vectorizer", }, ], diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts index c8fc4162aa9b..e9c5fcee5511 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/skillSetOperations.ts @@ -6,8 +6,8 @@ */ import { - SearchIndexerClient, AzureKeyCredential, + SearchIndexerClient, SearchIndexerSkillset, } from "@azure/search-documents"; @@ -17,9 +17,9 @@ dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const skillsetName = "example-skillset-sample-1"; +const TEST_SKILLSET_NAME = "example-skillset-sample-1"; -async function createSkillset(skillsetName: string, client: SearchIndexerClient) { +async function createSkillset(skillsetName: string, client: SearchIndexerClient): Promise { console.log(`Creating Skillset Operation`); const skillset: SearchIndexerSkillset = { name: skillsetName, @@ -57,7 +57,10 @@ async function createSkillset(skillsetName: string, client: SearchIndexerClient) await client.createSkillset(skillset); } -async function getAndUpdateSkillset(skillsetName: string, client: SearchIndexerClient) { +async function getAndUpdateSkillset( + skillsetName: string, + client: SearchIndexerClient, +): Promise { console.log(`Get And Update Skillset Operation`); const skillset: SearchIndexerSkillset = await client.getSkillset(skillsetName); @@ -75,26 +78,26 @@ async function getAndUpdateSkillset(skillsetName: string, client: SearchIndexerC await client.createOrUpdateSkillset(skillset); } -async function listSkillsets(client: SearchIndexerClient) { +async function listSkillsets(client: SearchIndexerClient): Promise { console.log(`List Skillset Operation`); const listOfSkillsets: Array = await client.listSkillsets(); console.log(`\tList of Skillsets`); console.log(`\t******************`); - for (let skillset of listOfSkillsets) { + for (const skillset of listOfSkillsets) { console.log(`Name: ${skillset.name}`); console.log(`Description: ${skillset.description}`); console.log(`Skills`); console.log(`******`); - for (let skill of skillset.skills) { + for (const skill of skillset.skills) { console.log(`ODataType: ${skill.odatatype}`); console.log(`Inputs`); - for (let input of skill.inputs) { + for (const input of skill.inputs) { console.log(`\tName: ${input.name}`); console.log(`\tSource: ${input.source}`); } console.log(`Outputs`); - for (let output of skill.outputs) { + for (const output of skill.outputs) { console.log(`\tName: ${output.name}`); console.log(`\tTarget Name: ${output.targetName}`); } @@ -102,12 +105,12 @@ async function listSkillsets(client: SearchIndexerClient) { } } -async function deleteSkillset(skillsetName: string, client: SearchIndexerClient) { +async function deleteSkillset(skillsetName: string, client: SearchIndexerClient): Promise { console.log(`Deleting Skillset Operation`); await client.deleteSkillset(skillsetName); } -async function main() { +async function main(): Promise { console.log(`Running Skillset Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -115,11 +118,11 @@ async function main() { } const client = new SearchIndexerClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSkillset(skillsetName, client); - await getAndUpdateSkillset(skillsetName, client); + await createSkillset(TEST_SKILLSET_NAME, client); + await getAndUpdateSkillset(TEST_SKILLSET_NAME, client); await listSkillsets(client); } finally { - await deleteSkillset(skillsetName, client); + await deleteSkillset(TEST_SKILLSET_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts new file mode 100644 index 000000000000..8f91d1a0fa97 --- /dev/null +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/stickySession.ts @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * @summary Demonstrates user sticky sessions, a way to reduce inconsistent behavior by targeting a + * single replica. + */ + +import { + AzureKeyCredential, + odata, + SearchClient, + SearchIndexClient, +} from "@azure/search-documents"; +import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; + +import * as dotenv from "dotenv"; +dotenv.config(); + +/** + * If you're querying a replicated index, Azure AI Search may target any replica with your queries. + * As these replicas may not be in a consistent state, the service may appear to have inconsistent + * states between distinct queries. To avoid this, you can use a sticky session. A sticky session + * is used to indicate to the Azure AI Search service that you'd like all requests with the same + * `sessionId` to be directed to the same replica. The service will then make a best effort to do + * so. + * + * Please see the + * {@link https://learn.microsoft.com/en-us/azure/search/index-similarity-and-scoring#scoring-statistics-and-sticky-sessions | documentation} + * for more information. + */ +const endpoint = process.env.ENDPOINT || ""; +const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; +const TEST_INDEX_NAME = "example-index-sample-3"; + +async function main(): Promise { + if (!endpoint || !apiKey) { + console.error( + "Be sure to set valid values for `endpoint` and `apiKey` with proper authorization.", + ); + return; + } + + const credential = new AzureKeyCredential(apiKey); + const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); + const searchClient: SearchClient = indexClient.getSearchClient(TEST_INDEX_NAME); + + // The session id is defined by the user. + const sessionId = "session1"; + + try { + await createIndex(indexClient, TEST_INDEX_NAME); + await delay(WAIT_TIME); + + // The service will make a best effort attempt to direct these queries to the same replica. As + // this overrides load balancing, excessive use of the same `sessionId` may result in + // performance degradation. Be sure to use a distinct `sessionId` for each sticky session. + const ratingQueries = [2, 4]; + for (const rating of ratingQueries) { + const response = await searchClient.search("*", { + filter: odata`rating ge ${rating}`, + sessionId, + }); + + const hotelNames = []; + for await (const result of response.results) { + const hotelName = result.document.hotelName; + if (typeof hotelName === "string") { + hotelNames.push(hotelName); + } + } + + if (hotelNames.length) { + console.log(`Hotels with at least a rating of ${rating}:`); + hotelNames.forEach(console.log); + } + } + } finally { + await indexClient.deleteIndex(TEST_INDEX_NAME); + } +} + +main(); diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts index 56bcf98f75c5..b7fbfb174a3c 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/synonymMapOperations.ts @@ -5,16 +5,16 @@ * @summary Demonstrates the SynonymMap Operations. */ -import { SearchIndexClient, AzureKeyCredential, SynonymMap } from "@azure/search-documents"; +import { AzureKeyCredential, SearchIndexClient, SynonymMap } from "@azure/search-documents"; import * as dotenv from "dotenv"; dotenv.config(); const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; -const synonymMapName = "example-synonymmap-sample-1"; +const TEST_SYNONYM_MAP_NAME = "example-synonymmap-sample-1"; -async function createSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function createSynonymMap(synonymMapName: string, client: SearchIndexClient): Promise { console.log(`Creating SynonymMap Operation`); const sm: SynonymMap = { name: synonymMapName, @@ -23,7 +23,10 @@ async function createSynonymMap(synonymMapName: string, client: SearchIndexClien await client.createSynonymMap(sm); } -async function getAndUpdateSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function getAndUpdateSynonymMap( + synonymMapName: string, + client: SearchIndexClient, +): Promise { console.log(`Get And Update SynonymMap Operation`); const sm: SynonymMap = await client.getSynonymMap(synonymMapName); console.log(`Update synonyms Synonym Map my-synonymmap`); @@ -31,27 +34,27 @@ async function getAndUpdateSynonymMap(synonymMapName: string, client: SearchInde await client.createOrUpdateSynonymMap(sm); } -async function listSynonymMaps(client: SearchIndexClient) { +async function listSynonymMaps(client: SearchIndexClient): Promise { console.log(`List SynonymMaps Operation`); const listOfSynonymMaps: Array = await client.listSynonymMaps(); console.log(`List of SynonymMaps`); console.log(`*******************`); - for (let sm of listOfSynonymMaps) { + for (const sm of listOfSynonymMaps) { console.log(`Name: ${sm.name}`); console.log(`Synonyms`); - for (let synonym of sm.synonyms) { + for (const synonym of sm.synonyms) { console.log(synonym); } } } -async function deleteSynonymMap(synonymMapName: string, client: SearchIndexClient) { +async function deleteSynonymMap(synonymMapName: string, client: SearchIndexClient): Promise { console.log(`Deleting SynonymMap Operation`); await client.deleteSynonymMap(synonymMapName); } -async function main() { +async function main(): Promise { console.log(`Running Index Operations Sample....`); if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); @@ -59,11 +62,11 @@ async function main() { } const client = new SearchIndexClient(endpoint, new AzureKeyCredential(apiKey)); try { - await createSynonymMap(synonymMapName, client); - await getAndUpdateSynonymMap(synonymMapName, client); + await createSynonymMap(TEST_SYNONYM_MAP_NAME, client); + await getAndUpdateSynonymMap(TEST_SYNONYM_MAP_NAME, client); await listSynonymMaps(client); } finally { - await deleteSynonymMap(synonymMapName, client); + await deleteSynonymMap(TEST_SYNONYM_MAP_NAME, client); } } diff --git a/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts b/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts index 7f1771a94898..c08d6831381d 100644 --- a/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts +++ b/sdk/search/search-documents/samples/v12-beta/typescript/src/vectorSearch.ts @@ -7,12 +7,12 @@ import { AzureKeyCredential, - SearchClient, GeographyPoint, + SearchClient, SearchIndexClient, } from "@azure/search-documents"; -import { createIndex, WAIT_TIME, delay } from "./setup"; import { Hotel } from "./interfaces"; +import { createIndex, delay, WAIT_TIME } from "./setup"; import * as dotenv from "dotenv"; import { fancyStayEnVector, fancyStayFrVector, luxuryQueryVector } from "./vectors"; @@ -25,7 +25,7 @@ const endpoint = process.env.ENDPOINT || ""; const apiKey = process.env.SEARCH_API_ADMIN_KEY || ""; const TEST_INDEX_NAME = "example-index-sample-7"; -async function main() { +async function main(): Promise { if (!endpoint || !apiKey) { console.log("Make sure to set valid values for endpoint and apiKey with proper authorization."); return; @@ -36,7 +36,7 @@ async function main() { const searchClient: SearchClient = new SearchClient( endpoint, TEST_INDEX_NAME, - credential + credential, ); const indexClient: SearchIndexClient = new SearchIndexClient(endpoint, credential); @@ -81,30 +81,32 @@ async function main() { await delay(WAIT_TIME); const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - fields: ["descriptionVectorEn"], - kNearestNeighborsCount: 3, - // An embedding of the query "What are the most luxurious hotels?" - vector: luxuryQueryVector, - }, - // Multi-vector search is supported - { - kind: "vector", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - vector: luxuryQueryVector, - }, - // The index can be configured with a vectorizer to generate text embeddings - // from a text query - { - kind: "text", - fields: ["descriptionVectorFr"], - kNearestNeighborsCount: 3, - text: "What are the most luxurious hotels?", - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + fields: ["descriptionVectorEn"], + kNearestNeighborsCount: 3, + // An embedding of the query "What are the most luxurious hotels?" + vector: luxuryQueryVector, + }, + // Multi-vector search is supported + { + kind: "vector", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + vector: luxuryQueryVector, + }, + // The index can be configured with a vectorizer to generate text embeddings + // from a text query + { + kind: "text", + fields: ["descriptionVectorFr"], + kNearestNeighborsCount: 3, + text: "What are the most luxurious hotels?", + }, + ], + }, }); for await (const result of searchResults.results) { diff --git a/sdk/search/search-documents/samples/v12/javascript/sample.env b/sdk/search/search-documents/samples/v12/javascript/sample.env index 13954cec21bd..86f0916725d2 100644 --- a/sdk/search/search-documents/samples/v12/javascript/sample.env +++ b/sdk/search/search-documents/samples/v12/javascript/sample.env @@ -11,10 +11,10 @@ ENDPOINT= AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/samples/v12/typescript/sample.env b/sdk/search/search-documents/samples/v12/typescript/sample.env index 13954cec21bd..86f0916725d2 100644 --- a/sdk/search/search-documents/samples/v12/typescript/sample.env +++ b/sdk/search/search-documents/samples/v12/typescript/sample.env @@ -11,10 +11,10 @@ ENDPOINT= AZURE_OPENAI_ENDPOINT= # The key for the OpenAI service. -OPENAI_KEY= +AZURE_OPENAI_KEY= # The name of the OpenAI deployment you'd like your tests to use. -OPENAI_DEPLOYMENT_NAME= +AZURE_OPENAI_DEPLOYMENT_NAME= # Our tests assume that TEST_MODE is "playback" by default. You can # change it to "record" to generate new recordings, or "live" to bypass the recorder entirely. diff --git a/sdk/search/search-documents/scripts/generateSampleEmbeddings.ts b/sdk/search/search-documents/scripts/generateSampleEmbeddings.ts index e907782a02a3..e6e49ef8582b 100644 --- a/sdk/search/search-documents/scripts/generateSampleEmbeddings.ts +++ b/sdk/search/search-documents/scripts/generateSampleEmbeddings.ts @@ -29,8 +29,8 @@ const inputs = [ async function main() { const client = new OpenAIClient( - process.env.OPENAI_ENDPOINT!, - new AzureKeyCredential(process.env.OPENAI_KEY!) + process.env.AZURE_OPENAI_ENDPOINT!, + new AzureKeyCredential(process.env.AZURE_OPENAI_KEY!) ); const writeStream = createWriteStream(outputPath, { mode: 0o755 }); @@ -43,7 +43,7 @@ async function main() { const expressions = await Promise.all( inputs.map(async ({ ident, text, comment }) => { - const result = await client.getEmbeddings(process.env.OPENAI_DEPLOYMENT_NAME!, [text]); + const result = await client.getEmbeddings(process.env.AZURE_OPENAI_DEPLOYMENT_NAME!, [text]); const embedding = result.data[0].embedding; return `// ${comment}\nexport const ${ident} = [${embedding.toString()}];\n\n`; }) diff --git a/sdk/search/search-documents/src/constants.ts b/sdk/search/search-documents/src/constants.ts index feed49d24387..54e960727fd9 100644 --- a/sdk/search/search-documents/src/constants.ts +++ b/sdk/search/search-documents/src/constants.ts @@ -1,4 +1,4 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export const SDK_VERSION: string = "12.0.0-beta.4"; +const SDK_VERSION: string = "12.1.0-beta.1"; diff --git a/sdk/search/search-documents/src/errorModels.ts b/sdk/search/search-documents/src/errorModels.ts new file mode 100644 index 000000000000..fa0dc909d9da --- /dev/null +++ b/sdk/search/search-documents/src/errorModels.ts @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/** + * Common error response for all Azure Resource Manager APIs to return error details for failed + * operations. (This also follows the OData error response format.). + */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; +} diff --git a/sdk/search/search-documents/src/generated/data/models/index.ts b/sdk/search/search-documents/src/generated/data/models/index.ts index b47e7ca25446..4a59236c0149 100644 --- a/sdk/search/search-documents/src/generated/data/models/index.ts +++ b/sdk/search/search-documents/src/generated/data/models/index.ts @@ -11,32 +11,62 @@ import * as coreHttpCompat from "@azure/core-http-compat"; export type VectorQueryUnion = | VectorQuery - | RawVectorQuery + | VectorizedQuery | VectorizableTextQuery; -/** Describes an error condition for the Azure Cognitive Search API. */ -export interface SearchError { +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { /** - * One of a server-defined set of error codes. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** - * A human-readable representation of the error. + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message: string; + readonly target?: string; /** - * An array of details about specific errors that led to this reported error. + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: SearchError[]; + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; } /** Response containing search results from an index. */ export interface SearchDocumentsResult { /** - * The total count of results found by the search operation, or null if the count was not requested. If present, the count may be greater than the number of results in this response. This can happen if you use the $top or $skip parameters, or if Azure Cognitive Search can't return all the requested documents in a single Search response. + * The total count of results found by the search operation, or null if the count was not requested. If present, the count may be greater than the number of results in this response. This can happen if you use the $top or $skip parameters, or if the query can't return all the requested documents in a single response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly count?: number; @@ -54,29 +84,29 @@ export interface SearchDocumentsResult { * The answers query results for the search operation; null if the answers query parameter was not specified or set to 'none'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly answers?: AnswerResult[]; + readonly answers?: QueryAnswerResult[]; /** - * Continuation JSON payload returned when Azure Cognitive Search can't return all the requested results in a single Search response. You can use this JSON along with @odata.nextLink to formulate another POST Search request to get the next part of the search response. + * Continuation JSON payload returned when the query can't return all the requested results in a single response. You can use this JSON along with @odata.nextLink to formulate another POST Search request to get the next part of the search response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextPageParameters?: SearchRequest; /** - * Reason that a partial response was returned for a semantic search request. + * Reason that a partial response was returned for a semantic ranking request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly semanticPartialResponseReason?: SemanticPartialResponseReason; + readonly semanticPartialResponseReason?: SemanticErrorReason; /** - * Type of partial response that was returned for a semantic search request. + * Type of partial response that was returned for a semantic ranking request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly semanticPartialResponseType?: SemanticPartialResponseType; + readonly semanticPartialResponseType?: SemanticSearchResultsType; /** * The sequence of results returned by the query. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly results: SearchResult[]; /** - * Continuation URL returned when Azure Cognitive Search can't return all the requested results in a single Search response. You can use this URL to formulate another GET or POST Search request to get the next part of the search response. Make sure to use the same verb (GET or POST) as the request that produced this response. + * Continuation URL returned when the query can't return all the requested results in a single response. You can use this URL to formulate another GET or POST Search request to get the next part of the search response. Make sure to use the same verb (GET or POST) as the request that produced this response. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; @@ -94,7 +124,7 @@ export interface FacetResult { } /** An answer is a text passage extracted from the contents of the most relevant documents that matched the query. Answers are extracted from the top search results. Answer candidates are scored and the top answers are selected. */ -export interface AnswerResult { +export interface QueryAnswerResult { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** @@ -150,12 +180,12 @@ export interface SearchRequest { /** Allows setting a separate search query that will be solely used for semantic reranking, semantic captions and semantic answers. Is useful for scenarios where there is a need to use different queries between the base retrieval and ranking phase, and the L2 semantic phase. */ semanticQuery?: string; /** The name of a semantic configuration that will be used when processing documents for queries of type semantic. */ - semanticConfiguration?: string; + semanticConfigurationName?: string; /** Allows the user to choose whether a semantic call should fail completely, or to return partial results (default). */ - semanticErrorHandling?: SemanticErrorHandling; + semanticErrorHandling?: SemanticErrorMode; /** Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish processing before the request fails. */ semanticMaxWaitInMilliseconds?: number; - /** Enables a debugging tool that can be used to further explore your Semantic search results. */ + /** Enables a debugging tool that can be used to further explore your reranked results. */ debug?: QueryDebugMode; /** A full-text search query expression; Use "*" or omit this parameter to match all documents. */ searchText?: string; @@ -177,7 +207,7 @@ export interface SearchRequest { top?: number; /** A value that specifies whether captions should be returned as part of the search response. */ captions?: QueryCaptionType; - /** The comma-separated list of field names used for semantic search. */ + /** The comma-separated list of field names used for semantic ranking. */ semanticFields?: string; /** The query parameters for vector and hybrid search queries. */ vectorQueries?: VectorQueryUnion[]; @@ -195,6 +225,8 @@ export interface VectorQuery { fields?: string; /** When true, triggers an exhaustive k-nearest neighbor search across all vectors within the vector index. Useful for scenarios where exact matches are critical, such as determining ground truth values. */ exhaustive?: boolean; + /** Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' parameter configured in the index definition. It can be set only when 'rerankWithOriginalVectors' is true. This parameter is only permitted when a compression method is used on the underlying vector field. */ + oversampling?: number; } /** Contains a document found by a search query, plus associated metadata. */ @@ -210,7 +242,7 @@ export interface SearchResult { * The relevance score computed by the semantic ranker for the top search results. Search results are sorted by the RerankerScore first and then by the Score. RerankerScore is only returned for queries of type 'semantic'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly rerankerScore?: number; + readonly _rerankerScore?: number; /** * Text fragments from the document that indicate the matching search terms, organized by each applicable field; null if hit highlighting was not enabled for the query. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -220,7 +252,7 @@ export interface SearchResult { * Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type 'semantic'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly captions?: CaptionResult[]; + readonly _captions?: QueryCaptionResult[]; /** * Contains debugging information that can be used to further explore your search results. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -229,7 +261,7 @@ export interface SearchResult { } /** Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type 'semantic'.. */ -export interface CaptionResult { +export interface QueryCaptionResult { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ [property: string]: any; /** @@ -247,7 +279,7 @@ export interface CaptionResult { /** Contains debugging information that can be used to further explore your search results. */ export interface DocumentDebugInfo { /** - * Contains debugging information specific to semantic search queries. + * Contains debugging information specific to semantic ranking requests. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly semantic?: SemanticDebugInfo; @@ -460,20 +492,20 @@ export interface AutocompleteRequest { } /** The query parameters to use for vector search when a raw vector value is provided. */ -export type RawVectorQuery = VectorQuery & { +export interface VectorizedQuery extends VectorQuery { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "vector"; /** The vector representation of a search query. */ - vector?: number[]; -}; + vector: number[]; +} /** The query parameters to use for vector search when a text value that needs to be vectorized is provided. */ -export type VectorizableTextQuery = VectorQuery & { +export interface VectorizableTextQuery extends VectorQuery { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "text"; /** The text to be vectorized to perform a vector search query. */ - text?: string; -}; + text: string; +} /** Parameter group */ export interface SearchOptions { @@ -504,7 +536,7 @@ export interface SearchOptions { /** The name of the semantic configuration that lists which fields should be used for semantic ranking, captions, highlights, and answers */ semanticConfiguration?: string; /** Allows the user to choose whether a semantic call should fail completely, or to return partial results (default). */ - semanticErrorHandling?: SemanticErrorHandling; + semanticErrorHandling?: SemanticErrorMode; /** Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish processing before the request fails. */ semanticMaxWaitInMilliseconds?: number; /** Enables a debugging tool that can be used to further explore your search results. */ @@ -515,8 +547,8 @@ export interface SearchOptions { queryLanguage?: QueryLanguage; /** Improve search recall by spell-correcting individual search query terms. */ speller?: Speller; - /** This parameter is only valid if the query type is 'semantic'. If set, the query returns answers extracted from key passages in the highest ranked documents. The number of answers returned can be configured by appending the pipe character '|' followed by the 'count-' option after the answers parameter value, such as 'extractive|count-3'. Default count is 1. The confidence threshold can be configured by appending the pipe character '|' followed by the 'threshold-' option after the answers parameter value, such as 'extractive|threshold-0.9'. Default threshold is 0.7. */ - answers?: Answers; + /** This parameter is only valid if the query type is `semantic`. If set, the query returns answers extracted from key passages in the highest ranked documents. The number of answers returned can be configured by appending the pipe character `|` followed by the `count-` option after the answers parameter value, such as `extractive|count-3`. Default count is 1. The confidence threshold can be configured by appending the pipe character `|` followed by the `threshold-` option after the answers parameter value, such as `extractive|threshold-0.9`. Default threshold is 0.7. */ + answers?: QueryAnswerType; /** A value that specifies whether any or all of the search terms must be matched in order to count the document as a match. */ searchMode?: SearchMode; /** A value that specifies whether we want to calculate scoring statistics (such as document frequency) globally for more consistent scoring, or locally, for lower latency. */ @@ -529,9 +561,9 @@ export interface SearchOptions { skip?: number; /** The number of search results to retrieve. This can be used in conjunction with $skip to implement client-side paging of search results. If results are truncated due to server-side paging, the response will include a continuation token that can be used to issue another Search request for the next page of results. */ top?: number; - /** This parameter is only valid if the query type is 'semantic'. If set, the query returns captions extracted from key passages in the highest ranked documents. When Captions is set to 'extractive', highlighting is enabled by default, and can be configured by appending the pipe character '|' followed by the 'highlight-' option, such as 'extractive|highlight-true'. Defaults to 'None'. */ - captions?: Captions; - /** The list of field names used for semantic search. */ + /** This parameter is only valid if the query type is `semantic`. If set, the query returns captions extracted from key passages in the highest ranked documents. When Captions is set to `extractive`, highlighting is enabled by default, and can be configured by appending the pipe character `|` followed by the `highlight-` option, such as `extractive|highlight-true`. Defaults to `None`. */ + captions?: QueryCaptionType; + /** The list of field names used for semantic ranking. */ semanticFields?: string[]; } @@ -577,45 +609,45 @@ export interface AutocompleteOptions { top?: number; } -/** Known values of {@link ApiVersion20231001Preview} that the service accepts. */ -export enum KnownApiVersion20231001Preview { - /** Api Version '2023-10-01-Preview' */ - TwoThousandTwentyThree1001Preview = "2023-10-01-Preview" +/** Known values of {@link ApiVersion20240301Preview} that the service accepts. */ +export enum KnownApiVersion20240301Preview { + /** Api Version '2024-03-01-Preview' */ + TwoThousandTwentyFour0301Preview = "2024-03-01-Preview", } /** - * Defines values for ApiVersion20231001Preview. \ - * {@link KnownApiVersion20231001Preview} can be used interchangeably with ApiVersion20231001Preview, + * Defines values for ApiVersion20240301Preview. \ + * {@link KnownApiVersion20240301Preview} can be used interchangeably with ApiVersion20240301Preview, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **2023-10-01-Preview**: Api Version '2023-10-01-Preview' + * **2024-03-01-Preview**: Api Version '2024-03-01-Preview' */ -export type ApiVersion20231001Preview = string; +export type ApiVersion20240301Preview = string; -/** Known values of {@link SemanticErrorHandling} that the service accepts. */ -export enum KnownSemanticErrorHandling { +/** Known values of {@link SemanticErrorMode} that the service accepts. */ +export enum KnownSemanticErrorMode { /** If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure. */ Partial = "partial", /** If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error. */ - Fail = "fail" + Fail = "fail", } /** - * Defines values for SemanticErrorHandling. \ - * {@link KnownSemanticErrorHandling} can be used interchangeably with SemanticErrorHandling, + * Defines values for SemanticErrorMode. \ + * {@link KnownSemanticErrorMode} can be used interchangeably with SemanticErrorMode, * this enum contains the known values that the service supports. * ### Known values supported by the service * **partial**: If the semantic processing fails, partial results still return. The definition of partial results depends on what semantic step failed and what was the reason for failure. \ * **fail**: If there is an exception during the semantic processing step, the query will fail and return the appropriate HTTP code depending on the error. */ -export type SemanticErrorHandling = string; +export type SemanticErrorMode = string; /** Known values of {@link QueryDebugMode} that the service accepts. */ export enum KnownQueryDebugMode { /** No query debugging information will be returned. */ Disabled = "disabled", - /** Allows the user to further explore their Semantic search results. */ - Semantic = "semantic" + /** Allows the user to further explore their reranked results. */ + Semantic = "semantic", } /** @@ -624,7 +656,7 @@ export enum KnownQueryDebugMode { * this enum contains the known values that the service supports. * ### Known values supported by the service * **disabled**: No query debugging information will be returned. \ - * **semantic**: Allows the user to further explore their Semantic search results. + * **semantic**: Allows the user to further explore their reranked results. */ export type QueryDebugMode = string; @@ -732,7 +764,7 @@ export enum KnownQueryLanguage { LvLv = "lv-lv", /** Query language value for Estonian (Estonia). */ EtEe = "et-ee", - /** Query language value for Catalan (Spain). */ + /** Query language value for Catalan. */ CaEs = "ca-es", /** Query language value for Finnish (Finland). */ FiFi = "fi-fi", @@ -750,9 +782,9 @@ export enum KnownQueryLanguage { HyAm = "hy-am", /** Query language value for Bengali (India). */ BnIn = "bn-in", - /** Query language value for Basque (Spain). */ + /** Query language value for Basque. */ EuEs = "eu-es", - /** Query language value for Galician (Spain). */ + /** Query language value for Galician. */ GlEs = "gl-es", /** Query language value for Gujarati (India). */ GuIn = "gu-in", @@ -773,7 +805,7 @@ export enum KnownQueryLanguage { /** Query language value for Telugu (India). */ TeIn = "te-in", /** Query language value for Urdu (Pakistan). */ - UrPk = "ur-pk" + UrPk = "ur-pk", } /** @@ -832,7 +864,7 @@ export enum KnownQueryLanguage { * **uk-ua**: Query language value for Ukrainian (Ukraine). \ * **lv-lv**: Query language value for Latvian (Latvia). \ * **et-ee**: Query language value for Estonian (Estonia). \ - * **ca-es**: Query language value for Catalan (Spain). \ + * **ca-es**: Query language value for Catalan. \ * **fi-fi**: Query language value for Finnish (Finland). \ * **sr-ba**: Query language value for Serbian (Bosnia and Herzegovina). \ * **sr-me**: Query language value for Serbian (Montenegro). \ @@ -841,8 +873,8 @@ export enum KnownQueryLanguage { * **nb-no**: Query language value for Norwegian (Norway). \ * **hy-am**: Query language value for Armenian (Armenia). \ * **bn-in**: Query language value for Bengali (India). \ - * **eu-es**: Query language value for Basque (Spain). \ - * **gl-es**: Query language value for Galician (Spain). \ + * **eu-es**: Query language value for Basque. \ + * **gl-es**: Query language value for Galician. \ * **gu-in**: Query language value for Gujarati (India). \ * **he-il**: Query language value for Hebrew (Israel). \ * **ga-ie**: Query language value for Irish (Ireland). \ @@ -861,7 +893,7 @@ export enum KnownSpeller { /** Speller not enabled. */ None = "none", /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */ - Lexicon = "lexicon" + Lexicon = "lexicon", } /** @@ -874,48 +906,48 @@ export enum KnownSpeller { */ export type Speller = string; -/** Known values of {@link Answers} that the service accepts. */ -export enum KnownAnswers { +/** Known values of {@link QueryAnswerType} that the service accepts. */ +export enum KnownQueryAnswerType { /** Do not return answers for the query. */ None = "none", /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */ - Extractive = "extractive" + Extractive = "extractive", } /** - * Defines values for Answers. \ - * {@link KnownAnswers} can be used interchangeably with Answers, + * Defines values for QueryAnswerType. \ + * {@link KnownQueryAnswerType} can be used interchangeably with QueryAnswerType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **none**: Do not return answers for the query. \ * **extractive**: Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */ -export type Answers = string; +export type QueryAnswerType = string; -/** Known values of {@link Captions} that the service accepts. */ -export enum KnownCaptions { +/** Known values of {@link QueryCaptionType} that the service accepts. */ +export enum KnownQueryCaptionType { /** Do not return captions for the query. */ None = "none", /** Extracts captions from the matching documents that contain passages relevant to the search query. */ - Extractive = "extractive" + Extractive = "extractive", } /** - * Defines values for Captions. \ - * {@link KnownCaptions} can be used interchangeably with Captions, + * Defines values for QueryCaptionType. \ + * {@link KnownQueryCaptionType} can be used interchangeably with QueryCaptionType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **none**: Do not return captions for the query. \ * **extractive**: Extracts captions from the matching documents that contain passages relevant to the search query. */ -export type Captions = string; +export type QueryCaptionType = string; /** Known values of {@link QuerySpellerType} that the service accepts. */ export enum KnownQuerySpellerType { /** Speller not enabled. */ None = "none", /** Speller corrects individual query terms using a static lexicon for the language specified by the queryLanguage parameter. */ - Lexicon = "lexicon" + Lexicon = "lexicon", } /** @@ -928,48 +960,12 @@ export enum KnownQuerySpellerType { */ export type QuerySpellerType = string; -/** Known values of {@link QueryAnswerType} that the service accepts. */ -export enum KnownQueryAnswerType { - /** Do not return answers for the query. */ - None = "none", - /** Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. */ - Extractive = "extractive" -} - -/** - * Defines values for QueryAnswerType. \ - * {@link KnownQueryAnswerType} can be used interchangeably with QueryAnswerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **none**: Do not return answers for the query. \ - * **extractive**: Extracts answer candidates from the contents of the documents returned in response to a query expressed as a question in natural language. - */ -export type QueryAnswerType = string; - -/** Known values of {@link QueryCaptionType} that the service accepts. */ -export enum KnownQueryCaptionType { - /** Do not return captions for the query. */ - None = "none", - /** Extracts captions from the matching documents that contain passages relevant to the search query. */ - Extractive = "extractive" -} - -/** - * Defines values for QueryCaptionType. \ - * {@link KnownQueryCaptionType} can be used interchangeably with QueryCaptionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **none**: Do not return captions for the query. \ - * **extractive**: Extracts captions from the matching documents that contain passages relevant to the search query. - */ -export type QueryCaptionType = string; - /** Known values of {@link VectorQueryKind} that the service accepts. */ export enum KnownVectorQueryKind { /** Vector query where a raw vector value is provided. */ Vector = "vector", /** Vector query where a text value that needs to be vectorized is provided. */ - $DO_NOT_NORMALIZE$_text = "text" + $DO_NOT_NORMALIZE$_text = "text", } /** @@ -987,7 +983,7 @@ export enum KnownVectorFilterMode { /** The filter will be applied after the candidate set of vector results is returned. Depending on the filter selectivity, this can result in fewer results than requested by the parameter 'k'. */ PostFilter = "postFilter", /** The filter will be applied before the search query. */ - PreFilter = "preFilter" + PreFilter = "preFilter", } /** @@ -1000,44 +996,44 @@ export enum KnownVectorFilterMode { */ export type VectorFilterMode = string; -/** Known values of {@link SemanticPartialResponseReason} that the service accepts. */ -export enum KnownSemanticPartialResponseReason { +/** Known values of {@link SemanticErrorReason} that the service accepts. */ +export enum KnownSemanticErrorReason { /** If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration exceeded that value. Only the base results were returned. */ MaxWaitExceeded = "maxWaitExceeded", /** The request was throttled. Only the base results were returned. */ CapacityOverloaded = "capacityOverloaded", /** At least one step of the semantic process failed. */ - Transient = "transient" + Transient = "transient", } /** - * Defines values for SemanticPartialResponseReason. \ - * {@link KnownSemanticPartialResponseReason} can be used interchangeably with SemanticPartialResponseReason, + * Defines values for SemanticErrorReason. \ + * {@link KnownSemanticErrorReason} can be used interchangeably with SemanticErrorReason, * this enum contains the known values that the service supports. * ### Known values supported by the service * **maxWaitExceeded**: If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration exceeded that value. Only the base results were returned. \ * **capacityOverloaded**: The request was throttled. Only the base results were returned. \ * **transient**: At least one step of the semantic process failed. */ -export type SemanticPartialResponseReason = string; +export type SemanticErrorReason = string; -/** Known values of {@link SemanticPartialResponseType} that the service accepts. */ -export enum KnownSemanticPartialResponseType { +/** Known values of {@link SemanticSearchResultsType} that the service accepts. */ +export enum KnownSemanticSearchResultsType { /** Results without any semantic enrichment or reranking. */ BaseResults = "baseResults", /** Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */ - RerankedResults = "rerankedResults" + RerankedResults = "rerankedResults", } /** - * Defines values for SemanticPartialResponseType. \ - * {@link KnownSemanticPartialResponseType} can be used interchangeably with SemanticPartialResponseType, + * Defines values for SemanticSearchResultsType. \ + * {@link KnownSemanticSearchResultsType} can be used interchangeably with SemanticSearchResultsType, * this enum contains the known values that the service supports. * ### Known values supported by the service * **baseResults**: Results without any semantic enrichment or reranking. \ * **rerankedResults**: Results have been reranked with the reranker model and will include semantic captions. They will not include any answers, answers highlights or caption highlights. */ -export type SemanticPartialResponseType = string; +export type SemanticSearchResultsType = string; /** Known values of {@link SemanticFieldState} that the service accepts. */ export enum KnownSemanticFieldState { @@ -1046,7 +1042,7 @@ export enum KnownSemanticFieldState { /** The field was not used for semantic enrichment. */ Unused = "unused", /** The field was partially used for semantic enrichment. */ - Partial = "partial" + Partial = "partial", } /** diff --git a/sdk/search/search-documents/src/generated/data/models/mappers.ts b/sdk/search/search-documents/src/generated/data/models/mappers.ts index 55e0804bd400..ea5538d25ccb 100644 --- a/sdk/search/search-documents/src/generated/data/models/mappers.ts +++ b/sdk/search/search-documents/src/generated/data/models/mappers.ts @@ -8,25 +8,47 @@ import * as coreClient from "@azure/core-client"; -export const SearchError: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchError", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", - required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, }, details: { serializedName: "details", @@ -36,13 +58,50 @@ export const SearchError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchError" - } - } - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const SearchDocumentsResult: coreClient.CompositeMapper = { @@ -54,15 +113,15 @@ export const SearchDocumentsResult: coreClient.CompositeMapper = { serializedName: "@odata\\.count", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, coverage: { serializedName: "@search\\.coverage", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, facets: { serializedName: "@search\\.facets", @@ -72,10 +131,12 @@ export const SearchDocumentsResult: coreClient.CompositeMapper = { value: { type: { name: "Sequence", - element: { type: { name: "Composite", className: "FacetResult" } } - } - } - } + element: { + type: { name: "Composite", className: "FacetResult" }, + }, + }, + }, + }, }, answers: { serializedName: "@search\\.answers", @@ -86,31 +147,31 @@ export const SearchDocumentsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AnswerResult" - } - } - } + className: "QueryAnswerResult", + }, + }, + }, }, nextPageParameters: { serializedName: "@search\\.nextPageParameters", type: { name: "Composite", - className: "SearchRequest" - } + className: "SearchRequest", + }, }, semanticPartialResponseReason: { serializedName: "@search\\.semanticPartialResponseReason", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, semanticPartialResponseType: { serializedName: "@search\\.semanticPartialResponseType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, results: { serializedName: "value", @@ -121,20 +182,20 @@ export const SearchDocumentsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchResult" - } - } - } + className: "SearchResult", + }, + }, + }, }, nextLink: { serializedName: "@odata\\.nextLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FacetResult: coreClient.CompositeMapper = { @@ -147,17 +208,17 @@ export const FacetResult: coreClient.CompositeMapper = { serializedName: "count", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const AnswerResult: coreClient.CompositeMapper = { +export const QueryAnswerResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AnswerResult", + className: "QueryAnswerResult", additionalProperties: { type: { name: "Object" } }, modelProperties: { score: { @@ -165,35 +226,35 @@ export const AnswerResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, key: { serializedName: "key", required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, text: { serializedName: "text", required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, highlights: { serializedName: "highlights", readOnly: true, nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchRequest: coreClient.CompositeMapper = { @@ -204,8 +265,8 @@ export const SearchRequest: coreClient.CompositeMapper = { includeTotalResultCount: { serializedName: "count", type: { - name: "Boolean" - } + name: "Boolean", + }, }, facets: { serializedName: "facets", @@ -213,66 +274,66 @@ export const SearchRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, filter: { serializedName: "filter", type: { - name: "String" - } + name: "String", + }, }, highlightFields: { serializedName: "highlight", type: { - name: "String" - } + name: "String", + }, }, highlightPostTag: { serializedName: "highlightPostTag", type: { - name: "String" - } + name: "String", + }, }, highlightPreTag: { serializedName: "highlightPreTag", type: { - name: "String" - } + name: "String", + }, }, minimumCoverage: { serializedName: "minimumCoverage", type: { - name: "Number" - } + name: "Number", + }, }, orderBy: { serializedName: "orderby", type: { - name: "String" - } + name: "String", + }, }, queryType: { serializedName: "queryType", type: { name: "Enum", - allowedValues: ["simple", "full", "semantic"] - } + allowedValues: ["simple", "full", "semantic"], + }, }, scoringStatistics: { serializedName: "scoringStatistics", type: { name: "Enum", - allowedValues: ["local", "global"] - } + allowedValues: ["local", "global"], + }, }, sessionId: { serializedName: "sessionId", type: { - name: "String" - } + name: "String", + }, }, scoringParameters: { serializedName: "scoringParameters", @@ -280,117 +341,117 @@ export const SearchRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, scoringProfile: { serializedName: "scoringProfile", type: { - name: "String" - } + name: "String", + }, }, semanticQuery: { serializedName: "semanticQuery", type: { - name: "String" - } + name: "String", + }, }, - semanticConfiguration: { + semanticConfigurationName: { serializedName: "semanticConfiguration", type: { - name: "String" - } + name: "String", + }, }, semanticErrorHandling: { serializedName: "semanticErrorHandling", type: { - name: "String" - } + name: "String", + }, }, semanticMaxWaitInMilliseconds: { constraints: { - InclusiveMinimum: 700 + InclusiveMinimum: 700, }, serializedName: "semanticMaxWaitInMilliseconds", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, debug: { serializedName: "debug", type: { - name: "String" - } + name: "String", + }, }, searchText: { serializedName: "search", type: { - name: "String" - } + name: "String", + }, }, searchFields: { serializedName: "searchFields", type: { - name: "String" - } + name: "String", + }, }, searchMode: { serializedName: "searchMode", type: { name: "Enum", - allowedValues: ["any", "all"] - } + allowedValues: ["any", "all"], + }, }, queryLanguage: { serializedName: "queryLanguage", type: { - name: "String" - } + name: "String", + }, }, speller: { serializedName: "speller", type: { - name: "String" - } + name: "String", + }, }, answers: { serializedName: "answers", type: { - name: "String" - } + name: "String", + }, }, select: { serializedName: "select", type: { - name: "String" - } + name: "String", + }, }, skip: { serializedName: "skip", type: { - name: "Number" - } + name: "Number", + }, }, top: { serializedName: "top", type: { - name: "Number" - } + name: "Number", + }, }, captions: { serializedName: "captions", type: { - name: "String" - } + name: "String", + }, }, semanticFields: { serializedName: "semanticFields", type: { - name: "String" - } + name: "String", + }, }, vectorQueries: { serializedName: "vectorQueries", @@ -399,19 +460,19 @@ export const SearchRequest: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VectorQuery" - } - } - } + className: "VectorQuery", + }, + }, + }, }, vectorFilterMode: { serializedName: "vectorFilterMode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VectorQuery: coreClient.CompositeMapper = { @@ -421,36 +482,42 @@ export const VectorQuery: coreClient.CompositeMapper = { uberParent: "VectorQuery", polymorphicDiscriminator: { serializedName: "kind", - clientName: "kind" + clientName: "kind", }, modelProperties: { kind: { serializedName: "kind", required: true, type: { - name: "String" - } + name: "String", + }, }, kNearestNeighborsCount: { serializedName: "k", type: { - name: "Number" - } + name: "Number", + }, }, fields: { serializedName: "fields", type: { - name: "String" - } + name: "String", + }, }, exhaustive: { serializedName: "exhaustive", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + oversampling: { + serializedName: "oversampling", + type: { + name: "Number", + }, + }, + }, + }, }; export const SearchResult: coreClient.CompositeMapper = { @@ -464,16 +531,16 @@ export const SearchResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, - rerankerScore: { + _rerankerScore: { serializedName: "@search\\.rerankerScore", readOnly: true, nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, _highlights: { serializedName: "@search\\.highlights", @@ -481,11 +548,11 @@ export const SearchResult: coreClient.CompositeMapper = { type: { name: "Dictionary", value: { - type: { name: "Sequence", element: { type: { name: "String" } } } - } - } + type: { name: "Sequence", element: { type: { name: "String" } } }, + }, + }, }, - captions: { + _captions: { serializedName: "@search\\.captions", readOnly: true, nullable: true, @@ -494,10 +561,10 @@ export const SearchResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CaptionResult" - } - } - } + className: "QueryCaptionResult", + }, + }, + }, }, documentDebugInfo: { serializedName: "@search\\.documentDebugInfo", @@ -508,38 +575,38 @@ export const SearchResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DocumentDebugInfo" - } - } - } - } - } - } + className: "DocumentDebugInfo", + }, + }, + }, + }, + }, + }, }; -export const CaptionResult: coreClient.CompositeMapper = { +export const QueryCaptionResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CaptionResult", + className: "QueryCaptionResult", additionalProperties: { type: { name: "Object" } }, modelProperties: { text: { serializedName: "text", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, highlights: { serializedName: "highlights", readOnly: true, nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DocumentDebugInfo: coreClient.CompositeMapper = { @@ -551,11 +618,11 @@ export const DocumentDebugInfo: coreClient.CompositeMapper = { serializedName: "semantic", type: { name: "Composite", - className: "SemanticDebugInfo" - } - } - } - } + className: "SemanticDebugInfo", + }, + }, + }, + }, }; export const SemanticDebugInfo: coreClient.CompositeMapper = { @@ -567,8 +634,8 @@ export const SemanticDebugInfo: coreClient.CompositeMapper = { serializedName: "titleField", type: { name: "Composite", - className: "QueryResultDocumentSemanticField" - } + className: "QueryResultDocumentSemanticField", + }, }, contentFields: { serializedName: "contentFields", @@ -578,10 +645,10 @@ export const SemanticDebugInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryResultDocumentSemanticField" - } - } - } + className: "QueryResultDocumentSemanticField", + }, + }, + }, }, keywordFields: { serializedName: "keywordFields", @@ -591,20 +658,20 @@ export const SemanticDebugInfo: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QueryResultDocumentSemanticField" - } - } - } + className: "QueryResultDocumentSemanticField", + }, + }, + }, }, rerankerInput: { serializedName: "rerankerInput", type: { name: "Composite", - className: "QueryResultDocumentRerankerInput" - } - } - } - } + className: "QueryResultDocumentRerankerInput", + }, + }, + }, + }, }; export const QueryResultDocumentSemanticField: coreClient.CompositeMapper = { @@ -616,18 +683,18 @@ export const QueryResultDocumentSemanticField: coreClient.CompositeMapper = { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, state: { serializedName: "state", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QueryResultDocumentRerankerInput: coreClient.CompositeMapper = { @@ -639,25 +706,25 @@ export const QueryResultDocumentRerankerInput: coreClient.CompositeMapper = { serializedName: "title", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, content: { serializedName: "content", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keywords: { serializedName: "keywords", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SuggestDocumentsResult: coreClient.CompositeMapper = { @@ -674,20 +741,20 @@ export const SuggestDocumentsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SuggestResult" - } - } - } + className: "SuggestResult", + }, + }, + }, }, coverage: { serializedName: "@search\\.coverage", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SuggestResult: coreClient.CompositeMapper = { @@ -701,11 +768,11 @@ export const SuggestResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SuggestRequest: coreClient.CompositeMapper = { @@ -716,73 +783,73 @@ export const SuggestRequest: coreClient.CompositeMapper = { filter: { serializedName: "filter", type: { - name: "String" - } + name: "String", + }, }, useFuzzyMatching: { serializedName: "fuzzy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, highlightPostTag: { serializedName: "highlightPostTag", type: { - name: "String" - } + name: "String", + }, }, highlightPreTag: { serializedName: "highlightPreTag", type: { - name: "String" - } + name: "String", + }, }, minimumCoverage: { serializedName: "minimumCoverage", type: { - name: "Number" - } + name: "Number", + }, }, orderBy: { serializedName: "orderby", type: { - name: "String" - } + name: "String", + }, }, searchText: { serializedName: "search", required: true, type: { - name: "String" - } + name: "String", + }, }, searchFields: { serializedName: "searchFields", type: { - name: "String" - } + name: "String", + }, }, select: { serializedName: "select", type: { - name: "String" - } + name: "String", + }, }, suggesterName: { serializedName: "suggesterName", required: true, type: { - name: "String" - } + name: "String", + }, }, top: { serializedName: "top", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const IndexBatch: coreClient.CompositeMapper = { @@ -798,13 +865,13 @@ export const IndexBatch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IndexAction" - } - } - } - } - } - } + className: "IndexAction", + }, + }, + }, + }, + }, + }, }; export const IndexAction: coreClient.CompositeMapper = { @@ -818,11 +885,11 @@ export const IndexAction: coreClient.CompositeMapper = { required: true, type: { name: "Enum", - allowedValues: ["upload", "merge", "mergeOrUpload", "delete"] - } - } - } - } + allowedValues: ["upload", "merge", "mergeOrUpload", "delete"], + }, + }, + }, + }, }; export const IndexDocumentsResult: coreClient.CompositeMapper = { @@ -839,13 +906,13 @@ export const IndexDocumentsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IndexingResult" - } - } - } - } - } - } + className: "IndexingResult", + }, + }, + }, + }, + }, + }, }; export const IndexingResult: coreClient.CompositeMapper = { @@ -858,34 +925,34 @@ export const IndexingResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, succeeded: { serializedName: "status", required: true, readOnly: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, statusCode: { serializedName: "statusCode", required: true, readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AutocompleteResult: coreClient.CompositeMapper = { @@ -897,8 +964,8 @@ export const AutocompleteResult: coreClient.CompositeMapper = { serializedName: "@search\\.coverage", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, results: { serializedName: "value", @@ -909,13 +976,13 @@ export const AutocompleteResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AutocompleteItem" - } - } - } - } - } - } + className: "AutocompleteItem", + }, + }, + }, + }, + }, + }, }; export const AutocompleteItem: coreClient.CompositeMapper = { @@ -928,19 +995,19 @@ export const AutocompleteItem: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, queryPlusText: { serializedName: "queryPlusText", required: true, readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const AutocompleteRequest: coreClient.CompositeMapper = { @@ -952,91 +1019,92 @@ export const AutocompleteRequest: coreClient.CompositeMapper = { serializedName: "search", required: true, type: { - name: "String" - } + name: "String", + }, }, autocompleteMode: { serializedName: "autocompleteMode", type: { name: "Enum", - allowedValues: ["oneTerm", "twoTerms", "oneTermWithContext"] - } + allowedValues: ["oneTerm", "twoTerms", "oneTermWithContext"], + }, }, filter: { serializedName: "filter", type: { - name: "String" - } + name: "String", + }, }, useFuzzyMatching: { serializedName: "fuzzy", type: { - name: "Boolean" - } + name: "Boolean", + }, }, highlightPostTag: { serializedName: "highlightPostTag", type: { - name: "String" - } + name: "String", + }, }, highlightPreTag: { serializedName: "highlightPreTag", type: { - name: "String" - } + name: "String", + }, }, minimumCoverage: { serializedName: "minimumCoverage", type: { - name: "Number" - } + name: "Number", + }, }, searchFields: { serializedName: "searchFields", type: { - name: "String" - } + name: "String", + }, }, suggesterName: { serializedName: "suggesterName", required: true, type: { - name: "String" - } + name: "String", + }, }, top: { serializedName: "top", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const RawVectorQuery: coreClient.CompositeMapper = { +export const VectorizedQuery: coreClient.CompositeMapper = { serializedName: "vector", type: { name: "Composite", - className: "RawVectorQuery", + className: "VectorizedQuery", uberParent: "VectorQuery", polymorphicDiscriminator: VectorQuery.type.polymorphicDiscriminator, modelProperties: { ...VectorQuery.type.modelProperties, vector: { serializedName: "vector", + required: true, type: { name: "Sequence", element: { type: { - name: "Number" - } - } - } - } - } - } + name: "Number", + }, + }, + }, + }, + }, + }, }; export const VectorizableTextQuery: coreClient.CompositeMapper = { @@ -1050,16 +1118,17 @@ export const VectorizableTextQuery: coreClient.CompositeMapper = { ...VectorQuery.type.modelProperties, text: { serializedName: "text", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export let discriminators = { VectorQuery: VectorQuery, - "VectorQuery.vector": RawVectorQuery, - "VectorQuery.text": VectorizableTextQuery + "VectorQuery.vector": VectorizedQuery, + "VectorQuery.text": VectorizableTextQuery, }; diff --git a/sdk/search/search-documents/src/generated/data/models/parameters.ts b/sdk/search/search-documents/src/generated/data/models/parameters.ts index c44b306974f9..81a3eb705736 100644 --- a/sdk/search/search-documents/src/generated/data/models/parameters.ts +++ b/sdk/search/search-documents/src/generated/data/models/parameters.ts @@ -9,13 +9,13 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { SearchRequest as SearchRequestMapper, SuggestRequest as SuggestRequestMapper, IndexBatch as IndexBatchMapper, - AutocompleteRequest as AutocompleteRequestMapper + AutocompleteRequest as AutocompleteRequestMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -25,9 +25,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const endpoint: OperationURLParameter = { @@ -36,10 +36,10 @@ export const endpoint: OperationURLParameter = { serializedName: "endpoint", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const indexName: OperationURLParameter = { @@ -48,9 +48,9 @@ export const indexName: OperationURLParameter = { serializedName: "indexName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { @@ -59,9 +59,9 @@ export const apiVersion: OperationQueryParameter = { serializedName: "api-version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchText: OperationQueryParameter = { @@ -69,9 +69,9 @@ export const searchText: OperationQueryParameter = { mapper: { serializedName: "search", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const includeTotalResultCount: OperationQueryParameter = { @@ -79,9 +79,9 @@ export const includeTotalResultCount: OperationQueryParameter = { mapper: { serializedName: "$count", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const facets: OperationQueryParameter = { @@ -92,12 +92,12 @@ export const facets: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "Multi" + collectionFormat: "Multi", }; export const filter: OperationQueryParameter = { @@ -105,9 +105,9 @@ export const filter: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const highlightFields: OperationQueryParameter = { @@ -118,12 +118,12 @@ export const highlightFields: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const highlightPostTag: OperationQueryParameter = { @@ -131,9 +131,9 @@ export const highlightPostTag: OperationQueryParameter = { mapper: { serializedName: "highlightPostTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const highlightPreTag: OperationQueryParameter = { @@ -141,9 +141,9 @@ export const highlightPreTag: OperationQueryParameter = { mapper: { serializedName: "highlightPreTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const minimumCoverage: OperationQueryParameter = { @@ -151,9 +151,9 @@ export const minimumCoverage: OperationQueryParameter = { mapper: { serializedName: "minimumCoverage", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const orderBy: OperationQueryParameter = { @@ -164,12 +164,12 @@ export const orderBy: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const queryType: OperationQueryParameter = { @@ -178,9 +178,9 @@ export const queryType: OperationQueryParameter = { serializedName: "queryType", type: { name: "Enum", - allowedValues: ["simple", "full", "semantic"] - } - } + allowedValues: ["simple", "full", "semantic"], + }, + }, }; export const scoringParameters: OperationQueryParameter = { @@ -191,12 +191,12 @@ export const scoringParameters: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "Multi" + collectionFormat: "Multi", }; export const scoringProfile: OperationQueryParameter = { @@ -204,9 +204,9 @@ export const scoringProfile: OperationQueryParameter = { mapper: { serializedName: "scoringProfile", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticQuery: OperationQueryParameter = { @@ -214,9 +214,9 @@ export const semanticQuery: OperationQueryParameter = { mapper: { serializedName: "semanticQuery", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticConfiguration: OperationQueryParameter = { @@ -224,9 +224,9 @@ export const semanticConfiguration: OperationQueryParameter = { mapper: { serializedName: "semanticConfiguration", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticErrorHandling: OperationQueryParameter = { @@ -234,22 +234,22 @@ export const semanticErrorHandling: OperationQueryParameter = { mapper: { serializedName: "semanticErrorHandling", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticMaxWaitInMilliseconds: OperationQueryParameter = { parameterPath: ["options", "searchOptions", "semanticMaxWaitInMilliseconds"], mapper: { constraints: { - InclusiveMinimum: 700 + InclusiveMinimum: 700, }, serializedName: "semanticMaxWaitInMilliseconds", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const debug: OperationQueryParameter = { @@ -257,9 +257,9 @@ export const debug: OperationQueryParameter = { mapper: { serializedName: "debug", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchFields: OperationQueryParameter = { @@ -270,12 +270,12 @@ export const searchFields: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const queryLanguage: OperationQueryParameter = { @@ -283,9 +283,9 @@ export const queryLanguage: OperationQueryParameter = { mapper: { serializedName: "queryLanguage", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const speller: OperationQueryParameter = { @@ -293,9 +293,9 @@ export const speller: OperationQueryParameter = { mapper: { serializedName: "speller", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const answers: OperationQueryParameter = { @@ -303,9 +303,9 @@ export const answers: OperationQueryParameter = { mapper: { serializedName: "answers", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchMode: OperationQueryParameter = { @@ -314,9 +314,9 @@ export const searchMode: OperationQueryParameter = { serializedName: "searchMode", type: { name: "Enum", - allowedValues: ["any", "all"] - } - } + allowedValues: ["any", "all"], + }, + }, }; export const scoringStatistics: OperationQueryParameter = { @@ -325,9 +325,9 @@ export const scoringStatistics: OperationQueryParameter = { serializedName: "scoringStatistics", type: { name: "Enum", - allowedValues: ["local", "global"] - } - } + allowedValues: ["local", "global"], + }, + }, }; export const sessionId: OperationQueryParameter = { @@ -335,9 +335,9 @@ export const sessionId: OperationQueryParameter = { mapper: { serializedName: "sessionId", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const select: OperationQueryParameter = { @@ -348,12 +348,12 @@ export const select: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const skip: OperationQueryParameter = { @@ -361,9 +361,9 @@ export const skip: OperationQueryParameter = { mapper: { serializedName: "$skip", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const top: OperationQueryParameter = { @@ -371,9 +371,9 @@ export const top: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const captions: OperationQueryParameter = { @@ -381,9 +381,9 @@ export const captions: OperationQueryParameter = { mapper: { serializedName: "captions", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const semanticFields: OperationQueryParameter = { @@ -394,12 +394,12 @@ export const semanticFields: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const contentType: OperationParameter = { @@ -409,14 +409,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const searchRequest: OperationParameter = { parameterPath: "searchRequest", - mapper: SearchRequestMapper + mapper: SearchRequestMapper, }; export const key: OperationURLParameter = { @@ -425,9 +425,9 @@ export const key: OperationURLParameter = { serializedName: "key", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const selectedFields: OperationQueryParameter = { @@ -438,12 +438,12 @@ export const selectedFields: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const searchText1: OperationQueryParameter = { @@ -452,9 +452,9 @@ export const searchText1: OperationQueryParameter = { serializedName: "search", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const suggesterName: OperationQueryParameter = { @@ -463,9 +463,9 @@ export const suggesterName: OperationQueryParameter = { serializedName: "suggesterName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const filter1: OperationQueryParameter = { @@ -473,9 +473,9 @@ export const filter1: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const useFuzzyMatching: OperationQueryParameter = { @@ -483,9 +483,9 @@ export const useFuzzyMatching: OperationQueryParameter = { mapper: { serializedName: "fuzzy", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const highlightPostTag1: OperationQueryParameter = { @@ -493,9 +493,9 @@ export const highlightPostTag1: OperationQueryParameter = { mapper: { serializedName: "highlightPostTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const highlightPreTag1: OperationQueryParameter = { @@ -503,9 +503,9 @@ export const highlightPreTag1: OperationQueryParameter = { mapper: { serializedName: "highlightPreTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const minimumCoverage1: OperationQueryParameter = { @@ -513,9 +513,9 @@ export const minimumCoverage1: OperationQueryParameter = { mapper: { serializedName: "minimumCoverage", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const orderBy1: OperationQueryParameter = { @@ -526,12 +526,12 @@ export const orderBy1: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const searchFields1: OperationQueryParameter = { @@ -542,12 +542,12 @@ export const searchFields1: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const select1: OperationQueryParameter = { @@ -558,12 +558,12 @@ export const select1: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const top1: OperationQueryParameter = { @@ -571,19 +571,19 @@ export const top1: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const suggestRequest: OperationParameter = { parameterPath: "suggestRequest", - mapper: SuggestRequestMapper + mapper: SuggestRequestMapper, }; export const batch: OperationParameter = { parameterPath: "batch", - mapper: IndexBatchMapper + mapper: IndexBatchMapper, }; export const autocompleteMode: OperationQueryParameter = { @@ -592,9 +592,9 @@ export const autocompleteMode: OperationQueryParameter = { serializedName: "autocompleteMode", type: { name: "Enum", - allowedValues: ["oneTerm", "twoTerms", "oneTermWithContext"] - } - } + allowedValues: ["oneTerm", "twoTerms", "oneTermWithContext"], + }, + }, }; export const filter2: OperationQueryParameter = { @@ -602,9 +602,9 @@ export const filter2: OperationQueryParameter = { mapper: { serializedName: "$filter", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const useFuzzyMatching1: OperationQueryParameter = { @@ -612,9 +612,9 @@ export const useFuzzyMatching1: OperationQueryParameter = { mapper: { serializedName: "fuzzy", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const highlightPostTag2: OperationQueryParameter = { @@ -622,9 +622,9 @@ export const highlightPostTag2: OperationQueryParameter = { mapper: { serializedName: "highlightPostTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const highlightPreTag2: OperationQueryParameter = { @@ -632,9 +632,9 @@ export const highlightPreTag2: OperationQueryParameter = { mapper: { serializedName: "highlightPreTag", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const minimumCoverage2: OperationQueryParameter = { @@ -642,9 +642,9 @@ export const minimumCoverage2: OperationQueryParameter = { mapper: { serializedName: "minimumCoverage", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const searchFields2: OperationQueryParameter = { @@ -655,12 +655,12 @@ export const searchFields2: OperationQueryParameter = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, - collectionFormat: "CSV" + collectionFormat: "CSV", }; export const top2: OperationQueryParameter = { @@ -668,12 +668,12 @@ export const top2: OperationQueryParameter = { mapper: { serializedName: "$top", type: { - name: "Number" - } - } + name: "Number", + }, + }, }; export const autocompleteRequest: OperationParameter = { parameterPath: "autocompleteRequest", - mapper: AutocompleteRequestMapper + mapper: AutocompleteRequestMapper, }; diff --git a/sdk/search/search-documents/src/generated/data/operations/documents.ts b/sdk/search/search-documents/src/generated/data/operations/documents.ts index b5983df1ca11..45e2d4a84660 100644 --- a/sdk/search/search-documents/src/generated/data/operations/documents.ts +++ b/sdk/search/search-documents/src/generated/data/operations/documents.ts @@ -33,7 +33,7 @@ import { DocumentsAutocompleteGetResponse, AutocompleteRequest, DocumentsAutocompletePostOptionalParams, - DocumentsAutocompletePostResponse + DocumentsAutocompletePostResponse, } from "../models"; /** Class containing Documents operations. */ @@ -53,7 +53,7 @@ export class DocumentsImpl implements Documents { * @param options The options parameters. */ count( - options?: DocumentsCountOptionalParams + options?: DocumentsCountOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, countOperationSpec); } @@ -63,11 +63,11 @@ export class DocumentsImpl implements Documents { * @param options The options parameters. */ searchGet( - options?: DocumentsSearchGetOptionalParams + options?: DocumentsSearchGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - searchGetOperationSpec + searchGetOperationSpec, ); } @@ -78,11 +78,11 @@ export class DocumentsImpl implements Documents { */ searchPost( searchRequest: SearchRequest, - options?: DocumentsSearchPostOptionalParams + options?: DocumentsSearchPostOptionalParams, ): Promise { return this.client.sendOperationRequest( { searchRequest, options }, - searchPostOperationSpec + searchPostOperationSpec, ); } @@ -93,7 +93,7 @@ export class DocumentsImpl implements Documents { */ get( key: string, - options?: DocumentsGetOptionalParams + options?: DocumentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest({ key, options }, getOperationSpec); } @@ -109,11 +109,11 @@ export class DocumentsImpl implements Documents { suggestGet( searchText: string, suggesterName: string, - options?: DocumentsSuggestGetOptionalParams + options?: DocumentsSuggestGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { searchText, suggesterName, options }, - suggestGetOperationSpec + suggestGetOperationSpec, ); } @@ -124,11 +124,11 @@ export class DocumentsImpl implements Documents { */ suggestPost( suggestRequest: SuggestRequest, - options?: DocumentsSuggestPostOptionalParams + options?: DocumentsSuggestPostOptionalParams, ): Promise { return this.client.sendOperationRequest( { suggestRequest, options }, - suggestPostOperationSpec + suggestPostOperationSpec, ); } @@ -139,11 +139,11 @@ export class DocumentsImpl implements Documents { */ index( batch: IndexBatch, - options?: DocumentsIndexOptionalParams + options?: DocumentsIndexOptionalParams, ): Promise { return this.client.sendOperationRequest( { batch, options }, - indexOperationSpec + indexOperationSpec, ); } @@ -157,11 +157,11 @@ export class DocumentsImpl implements Documents { autocompleteGet( searchText: string, suggesterName: string, - options?: DocumentsAutocompleteGetOptionalParams + options?: DocumentsAutocompleteGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { searchText, suggesterName, options }, - autocompleteGetOperationSpec + autocompleteGetOperationSpec, ); } @@ -172,11 +172,11 @@ export class DocumentsImpl implements Documents { */ autocompletePost( autocompleteRequest: AutocompleteRequest, - options?: DocumentsAutocompletePostOptionalParams + options?: DocumentsAutocompletePostOptionalParams, ): Promise { return this.client.sendOperationRequest( { autocompleteRequest, options }, - autocompletePostOperationSpec + autocompletePostOperationSpec, ); } } @@ -188,27 +188,27 @@ const countOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: { type: { name: "Number" } } + bodyMapper: { type: { name: "Number" } }, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const searchGetOperationSpec: coreClient.OperationSpec = { path: "/docs", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchDocumentsResult + bodyMapper: Mappers.SearchDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, @@ -240,29 +240,29 @@ const searchGetOperationSpec: coreClient.OperationSpec = { Parameters.skip, Parameters.top, Parameters.captions, - Parameters.semanticFields + Parameters.semanticFields, ], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const searchPostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.search", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SearchDocumentsResult + bodyMapper: Mappers.SearchDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.searchRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/docs('{key}')", @@ -270,28 +270,28 @@ const getOperationSpec: coreClient.OperationSpec = { responses: { 200: { bodyMapper: { - type: { name: "Dictionary", value: { type: { name: "any" } } } - } + type: { name: "Dictionary", value: { type: { name: "any" } } }, + }, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.selectedFields], urlParameters: [Parameters.endpoint, Parameters.indexName, Parameters.key], headerParameters: [Parameters.accept], - serializer + serializer, }; const suggestGetOperationSpec: coreClient.OperationSpec = { path: "/docs/search.suggest", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SuggestDocumentsResult + bodyMapper: Mappers.SuggestDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, @@ -305,61 +305,61 @@ const suggestGetOperationSpec: coreClient.OperationSpec = { Parameters.orderBy1, Parameters.searchFields1, Parameters.select1, - Parameters.top1 + Parameters.top1, ], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const suggestPostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.suggest", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.SuggestDocumentsResult + bodyMapper: Mappers.SuggestDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.suggestRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const indexOperationSpec: coreClient.OperationSpec = { path: "/docs/search.index", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.IndexDocumentsResult + bodyMapper: Mappers.IndexDocumentsResult, }, 207: { - bodyMapper: Mappers.IndexDocumentsResult + bodyMapper: Mappers.IndexDocumentsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.batch, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const autocompleteGetOperationSpec: coreClient.OperationSpec = { path: "/docs/search.autocomplete", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.AutocompleteResult + bodyMapper: Mappers.AutocompleteResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [ Parameters.apiVersion, @@ -372,27 +372,27 @@ const autocompleteGetOperationSpec: coreClient.OperationSpec = { Parameters.highlightPreTag2, Parameters.minimumCoverage2, Parameters.searchFields2, - Parameters.top2 + Parameters.top2, ], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const autocompletePostOperationSpec: coreClient.OperationSpec = { path: "/docs/search.post.autocomplete", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AutocompleteResult + bodyMapper: Mappers.AutocompleteResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.autocompleteRequest, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/data/operationsInterfaces/documents.ts b/sdk/search/search-documents/src/generated/data/operationsInterfaces/documents.ts index 7ec698d585c8..2cedcc7c4163 100644 --- a/sdk/search/search-documents/src/generated/data/operationsInterfaces/documents.ts +++ b/sdk/search/search-documents/src/generated/data/operationsInterfaces/documents.ts @@ -28,7 +28,7 @@ import { DocumentsAutocompleteGetResponse, AutocompleteRequest, DocumentsAutocompletePostOptionalParams, - DocumentsAutocompletePostResponse + DocumentsAutocompletePostResponse, } from "../models"; /** Interface representing a Documents. */ @@ -38,14 +38,14 @@ export interface Documents { * @param options The options parameters. */ count( - options?: DocumentsCountOptionalParams + options?: DocumentsCountOptionalParams, ): Promise; /** * Searches for documents in the index. * @param options The options parameters. */ searchGet( - options?: DocumentsSearchGetOptionalParams + options?: DocumentsSearchGetOptionalParams, ): Promise; /** * Searches for documents in the index. @@ -54,7 +54,7 @@ export interface Documents { */ searchPost( searchRequest: SearchRequest, - options?: DocumentsSearchPostOptionalParams + options?: DocumentsSearchPostOptionalParams, ): Promise; /** * Retrieves a document from the index. @@ -63,7 +63,7 @@ export interface Documents { */ get( key: string, - options?: DocumentsGetOptionalParams + options?: DocumentsGetOptionalParams, ): Promise; /** * Suggests documents in the index that match the given partial query text. @@ -76,7 +76,7 @@ export interface Documents { suggestGet( searchText: string, suggesterName: string, - options?: DocumentsSuggestGetOptionalParams + options?: DocumentsSuggestGetOptionalParams, ): Promise; /** * Suggests documents in the index that match the given partial query text. @@ -85,7 +85,7 @@ export interface Documents { */ suggestPost( suggestRequest: SuggestRequest, - options?: DocumentsSuggestPostOptionalParams + options?: DocumentsSuggestPostOptionalParams, ): Promise; /** * Sends a batch of document write actions to the index. @@ -94,7 +94,7 @@ export interface Documents { */ index( batch: IndexBatch, - options?: DocumentsIndexOptionalParams + options?: DocumentsIndexOptionalParams, ): Promise; /** * Autocompletes incomplete query terms based on input text and matching terms in the index. @@ -106,7 +106,7 @@ export interface Documents { autocompleteGet( searchText: string, suggesterName: string, - options?: DocumentsAutocompleteGetOptionalParams + options?: DocumentsAutocompleteGetOptionalParams, ): Promise; /** * Autocompletes incomplete query terms based on input text and matching terms in the index. @@ -115,6 +115,6 @@ export interface Documents { */ autocompletePost( autocompleteRequest: AutocompleteRequest, - options?: DocumentsAutocompletePostOptionalParams + options?: DocumentsAutocompletePostOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/data/searchClient.ts b/sdk/search/search-documents/src/generated/data/searchClient.ts index 6058360aa395..72f9e9f4f56f 100644 --- a/sdk/search/search-documents/src/generated/data/searchClient.ts +++ b/sdk/search/search-documents/src/generated/data/searchClient.ts @@ -7,18 +7,23 @@ */ import * as coreHttpCompat from "@azure/core-http-compat"; +import { + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; import { DocumentsImpl } from "./operations"; import { Documents } from "./operationsInterfaces"; import { - ApiVersion20231001Preview, - SearchClientOptionalParams + ApiVersion20240301Preview, + SearchClientOptionalParams, } from "./models"; /** @internal */ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { endpoint: string; indexName: string; - apiVersion: ApiVersion20231001Preview; + apiVersion: ApiVersion20240301Preview; /** * Initializes a new instance of the SearchClient class. @@ -30,8 +35,8 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { constructor( endpoint: string, indexName: string, - apiVersion: ApiVersion20231001Preview, - options?: SearchClientOptionalParams + apiVersion: ApiVersion20240301Preview, + options?: SearchClientOptionalParams, ) { if (endpoint === undefined) { throw new Error("'endpoint' cannot be null"); @@ -48,10 +53,10 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { options = {}; } const defaults: SearchClientOptionalParams = { - requestContentType: "application/json; charset=utf-8" + requestContentType: "application/json; charset=utf-8", }; - const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`; + const packageDetails = `azsdk-js-search-documents/12.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -61,12 +66,12 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, - baseUri: + endpoint: options.endpoint ?? options.baseUri ?? - "{endpoint}/indexes('{indexName}')" + "{endpoint}/indexes('{indexName}')", }; super(optionsWithDefaults); // Parameter assignments @@ -74,6 +79,35 @@ export class SearchClient extends coreHttpCompat.ExtendedServiceClient { this.indexName = indexName; this.apiVersion = apiVersion; this.documents = new DocumentsImpl(this); + this.addCustomApiVersionPolicy(apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest, + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + }, + }; + this.pipeline.addPolicy(apiVersionPolicy); } documents: Documents; diff --git a/sdk/search/search-documents/src/generated/service/models/index.ts b/sdk/search/search-documents/src/generated/service/models/index.ts index 053e943618dc..6d61aa20aa2e 100644 --- a/sdk/search/search-documents/src/generated/service/models/index.ts +++ b/sdk/search/search-documents/src/generated/service/models/index.ts @@ -108,12 +108,15 @@ export type LexicalNormalizerUnion = LexicalNormalizer | CustomNormalizer; export type SimilarityUnion = Similarity | ClassicSimilarity | BM25Similarity; export type VectorSearchAlgorithmConfigurationUnion = | VectorSearchAlgorithmConfiguration - | HnswVectorSearchAlgorithmConfiguration - | ExhaustiveKnnVectorSearchAlgorithmConfiguration; + | HnswAlgorithmConfiguration + | ExhaustiveKnnAlgorithmConfiguration; export type VectorSearchVectorizerUnion = | VectorSearchVectorizer | AzureOpenAIVectorizer | CustomVectorizer; +export type BaseVectorSearchCompressionConfigurationUnion = + | BaseVectorSearchCompressionConfiguration + | ScalarQuantizationCompressionConfiguration; /** Represents a datasource definition, which can be used to configure an indexer. */ export interface SearchIndexerDataSource { @@ -135,13 +138,13 @@ export interface SearchIndexerDataSource { dataDeletionDetectionPolicy?: DataDeletionDetectionPolicyUnion; /** The ETag of the data source. */ etag?: string; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your datasource definition when you want full assurance that no one, not even Microsoft, can decrypt your data source definition in Azure Cognitive Search. Once you have encrypted your data source definition, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your datasource definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your datasource definition when you want full assurance that no one, not even Microsoft, can decrypt your data source definition. Once you have encrypted your data source definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your datasource definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; } /** Represents credentials that can be used to connect to a datasource. */ export interface DataSourceCredentials { - /** The connection string for the datasource. Set to '' if you do not want the connection string updated. */ + /** The connection string for the datasource. Set to `` (with brackets) if you don't want the connection string updated. Set to `` if you want to remove the connection string value from the datasource. */ connectionString?: string; } @@ -177,13 +180,13 @@ export interface DataDeletionDetectionPolicy { | "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy"; } -/** A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or decrypt data-at-rest in Azure Cognitive Search, such as indexes and synonym maps. */ +/** A customer-managed encryption key in Azure Key Vault. Keys that you create and manage can be used to encrypt or decrypt data-at-rest, such as indexes and synonym maps. */ export interface SearchResourceEncryptionKey { /** The name of your Azure Key Vault key to be used to encrypt your data at rest. */ keyName: string; /** The version of your Azure Key Vault key to be used to encrypt your data at rest. */ keyVersion: string; - /** The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be https://my-keyvault-name.vault.azure.net. */ + /** The URI of your Azure Key Vault, also referred to as DNS name, that contains the key to be used to encrypt your data at rest. An example URI might be `https://my-keyvault-name.vault.azure.net`. */ vaultUri: string; /** Optional Azure Active Directory credentials used for accessing your Azure Key Vault. Not required if using managed identity instead. */ accessCredentials?: AzureActiveDirectoryApplicationCredentials; @@ -199,23 +202,53 @@ export interface AzureActiveDirectoryApplicationCredentials { applicationSecret?: string; } -/** Describes an error condition for the Azure Cognitive Search API. */ -export interface SearchError { +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponse { + /** The error object. */ + error?: ErrorDetail; +} + +/** The error detail. */ +export interface ErrorDetail { /** - * One of a server-defined set of error codes. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly code?: string; /** - * A human-readable representation of the error. + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message: string; + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; /** - * An array of details about specific errors that led to this reported error. + * The additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: SearchError[]; + readonly info?: Record; } /** Response from a List Datasources request. If successful, it includes the full definitions of all datasources. */ @@ -258,7 +291,7 @@ export interface SearchIndexer { isDisabled?: boolean; /** The ETag of the indexer. */ etag?: string; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your indexer definition (as well as indexer execution status) when you want full assurance that no one, not even Microsoft, can decrypt them in Azure Cognitive Search. Once you have encrypted your indexer definition, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your indexer definition (and indexer execution status) will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your indexer definition (as well as indexer execution status) when you want full assurance that no one, not even Microsoft, can decrypt them. Once you have encrypted your indexer definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your indexer definition (and indexer execution status) will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; /** Adds caching to an enrichment pipeline to allow for incremental modification steps without having to rebuild the index every time. */ cache?: SearchIndexerCache; @@ -574,15 +607,15 @@ export interface SearchIndexerSkillset { description?: string; /** A list of skills in the skillset. */ skills: SearchIndexerSkillUnion[]; - /** Details about cognitive services to be used when running skills. */ + /** Details about the Azure AI service to be used when running skills. */ cognitiveServicesAccount?: CognitiveServicesAccountUnion; - /** Definition of additional projections to azure blob, table, or files, of enriched data. */ + /** Definition of additional projections to Azure blob, table, or files, of enriched data. */ knowledgeStore?: SearchIndexerKnowledgeStore; /** Definition of additional projections to secondary search index(es). */ indexProjections?: SearchIndexerIndexProjections; /** The ETag of the skillset. */ etag?: string; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your skillset definition when you want full assurance that no one, not even Microsoft, can decrypt your skillset definition in Azure Cognitive Search. Once you have encrypted your skillset definition, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your skillset definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your skillset definition when you want full assurance that no one, not even Microsoft, can decrypt your skillset definition. Once you have encrypted your skillset definition, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your skillset definition will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; } @@ -642,13 +675,13 @@ export interface OutputFieldMappingEntry { targetName?: string; } -/** Base type for describing any cognitive service resource attached to a skillset. */ +/** Base type for describing any Azure AI service resource attached to a skillset. */ export interface CognitiveServicesAccount { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: | "#Microsoft.Azure.Search.DefaultCognitiveServices" | "#Microsoft.Azure.Search.CognitiveServicesByKey"; - /** Description of the cognitive service resource attached to a skillset. */ + /** Description of the Azure AI service resource attached to a skillset. */ description?: string; } @@ -746,7 +779,7 @@ export interface SynonymMap { format: "solr"; /** A series of synonym rules in the specified synonym map format. The rules must be separated by newlines. */ synonyms: string; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your data when you want full assurance that no one, not even Microsoft, can decrypt your data in Azure Cognitive Search. Once you have encrypted your data, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your data will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your data when you want full assurance that no one, not even Microsoft, can decrypt your data. Once you have encrypted your data, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your data will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; /** The ETag of the synonym map. */ etag?: string; @@ -785,12 +818,12 @@ export interface SearchIndex { charFilters?: CharFilterUnion[]; /** The normalizers for the index. */ normalizers?: LexicalNormalizerUnion[]; - /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your data when you want full assurance that no one, not even Microsoft, can decrypt your data in Azure Cognitive Search. Once you have encrypted your data, it will always remain encrypted. Azure Cognitive Search will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your data will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ + /** A description of an encryption key that you create in Azure Key Vault. This key is used to provide an additional level of encryption-at-rest for your data when you want full assurance that no one, not even Microsoft, can decrypt your data. Once you have encrypted your data, it will always remain encrypted. The search service will ignore attempts to set this property to null. You can change this property as needed if you want to rotate your encryption key; Your data will be unaffected. Encryption with customer-managed keys is not available for free search services, and is only available for paid services created on or after January 1, 2019. */ encryptionKey?: SearchResourceEncryptionKey; /** The type of similarity algorithm to be used when scoring and ranking the documents matching a search query. The similarity algorithm can only be defined at index creation time and cannot be modified on existing indexes. If null, the ClassicSimilarity algorithm is used. */ similarity?: SimilarityUnion; /** Defines parameters for a search index that influence semantic capabilities. */ - semanticSettings?: SemanticSettings; + semanticSearch?: SemanticSearch; /** Contains configuration options related to vector search. */ vectorSearch?: VectorSearch; /** The ETag of the index. */ @@ -805,13 +838,15 @@ export interface SearchField { type: SearchFieldDataType; /** A value indicating whether the field uniquely identifies documents in the index. Exactly one top-level field in each index must be chosen as the key field and it must be of type Edm.String. Key fields can be used to look up documents directly and update or delete specific documents. Default is false for simple fields and null for complex fields. */ key?: boolean; - /** A value indicating whether the field can be returned in a search result. You can disable this option if you want to use a field (for example, margin) as a filter, sorting, or scoring mechanism but do not want the field to be visible to the end user. This property must be true for key fields, and it must be null for complex fields. This property can be changed on existing fields. Enabling this property does not cause any increase in index storage requirements. Default is true for simple fields and null for complex fields. */ + /** A value indicating whether the field can be returned in a search result. You can disable this option if you want to use a field (for example, margin) as a filter, sorting, or scoring mechanism but do not want the field to be visible to the end user. This property must be true for key fields, and it must be null for complex fields. This property can be changed on existing fields. Enabling this property does not cause any increase in index storage requirements. Default is true for simple fields, false for vector fields, and null for complex fields. */ retrievable?: boolean; - /** A value indicating whether the field is full-text searchable. This means it will undergo analysis such as word-breaking during indexing. If you set a searchable field to a value like "sunny day", internally it will be split into the individual tokens "sunny" and "day". This enables full-text searches for these terms. Fields of type Edm.String or Collection(Edm.String) are searchable by default. This property must be false for simple fields of other non-string data types, and it must be null for complex fields. Note: searchable fields consume extra space in your index since Azure Cognitive Search will store an additional tokenized version of the field value for full-text searches. If you want to save space in your index and you don't need a field to be included in searches, set searchable to false. */ + /** An immutable value indicating whether the field will be persisted separately on disk to be returned in a search result. You can disable this option if you don't plan to return the field contents in a search response to save on storage overhead. This can only be set during index creation and only for vector fields. This property cannot be changed for existing fields or set as false for new fields. If this property is set as false, the property 'retrievable' must also be set to false. This property must be true or unset for key fields, for new fields, and for non-vector fields, and it must be null for complex fields. Disabling this property will reduce index storage requirements. The default is true for vector fields. */ + stored?: boolean; + /** A value indicating whether the field is full-text searchable. This means it will undergo analysis such as word-breaking during indexing. If you set a searchable field to a value like "sunny day", internally it will be split into the individual tokens "sunny" and "day". This enables full-text searches for these terms. Fields of type Edm.String or Collection(Edm.String) are searchable by default. This property must be false for simple fields of other non-string data types, and it must be null for complex fields. Note: searchable fields consume extra space in your index to accommodate additional tokenized versions of the field value for full-text searches. If you want to save space in your index and you don't need a field to be included in searches, set searchable to false. */ searchable?: boolean; /** A value indicating whether to enable the field to be referenced in $filter queries. filterable differs from searchable in how strings are handled. Fields of type Edm.String or Collection(Edm.String) that are filterable do not undergo word-breaking, so comparisons are for exact matches only. For example, if you set such a field f to "sunny day", $filter=f eq 'sunny' will find no matches, but $filter=f eq 'sunny day' will. This property must be null for complex fields. Default is true for simple fields and null for complex fields. */ filterable?: boolean; - /** A value indicating whether to enable the field to be referenced in $orderby expressions. By default Azure Cognitive Search sorts results by score, but in many experiences users will want to sort by fields in the documents. A simple field can be sortable only if it is single-valued (it has a single value in the scope of the parent document). Simple collection fields cannot be sortable, since they are multi-valued. Simple sub-fields of complex collections are also multi-valued, and therefore cannot be sortable. This is true whether it's an immediate parent field, or an ancestor field, that's the complex collection. Complex fields cannot be sortable and the sortable property must be null for such fields. The default for sortable is true for single-valued simple fields, false for multi-valued simple fields, and null for complex fields. */ + /** A value indicating whether to enable the field to be referenced in $orderby expressions. By default, the search engine sorts results by score, but in many experiences users will want to sort by fields in the documents. A simple field can be sortable only if it is single-valued (it has a single value in the scope of the parent document). Simple collection fields cannot be sortable, since they are multi-valued. Simple sub-fields of complex collections are also multi-valued, and therefore cannot be sortable. This is true whether it's an immediate parent field, or an ancestor field, that's the complex collection. Complex fields cannot be sortable and the sortable property must be null for such fields. The default for sortable is true for single-valued simple fields, false for multi-valued simple fields, and null for complex fields. */ sortable?: boolean; /** A value indicating whether to enable the field to be referenced in facet queries. Typically used in a presentation of search results that includes hit count by category (for example, search for digital cameras and see hits by brand, by megapixels, by price, and so on). This property must be null for complex fields. Fields of type Edm.GeographyPoint or Collection(Edm.GeographyPoint) cannot be facetable. Default is true for all other simple fields. */ facetable?: boolean; @@ -826,7 +861,7 @@ export interface SearchField { /** The dimensionality of the vector field. */ vectorSearchDimensions?: number; /** The name of the vector search profile that specifies the algorithm and vectorizer to use when searching the vector field. */ - vectorSearchProfile?: string; + vectorSearchProfileName?: string; /** A list of the names of synonym maps to associate with this field. This option can be used only with searchable fields. Currently only one synonym map per field is supported. Assigning a synonym map to a field ensures that query terms targeting that field are expanded at query-time using the rules in the synonym map. This attribute can be changed on existing fields. Must be null or an empty collection for complex fields. */ synonymMaps?: string[]; /** A list of sub-fields if this is a field of type Edm.ComplexType or Collection(Edm.ComplexType). Must be null or empty for simple fields. */ @@ -973,9 +1008,9 @@ export interface Similarity { } /** Defines parameters for a search index that influence semantic capabilities. */ -export interface SemanticSettings { +export interface SemanticSearch { /** Allows you to set the name of a default semantic configuration in your index, making it optional to pass it on as a query parameter every time. */ - defaultConfiguration?: string; + defaultConfigurationName?: string; /** The semantic configurations for the index. */ configurations?: SemanticConfiguration[]; } @@ -985,32 +1020,34 @@ export interface SemanticConfiguration { /** The name of the semantic configuration. */ name: string; /** Describes the title, content, and keyword fields to be used for semantic ranking, captions, highlights, and answers. At least one of the three sub properties (titleField, prioritizedKeywordsFields and prioritizedContentFields) need to be set. */ - prioritizedFields: PrioritizedFields; + prioritizedFields: SemanticPrioritizedFields; } /** Describes the title, content, and keywords fields to be used for semantic ranking, captions, highlights, and answers. */ -export interface PrioritizedFields { +export interface SemanticPrioritizedFields { /** Defines the title field to be used for semantic ranking, captions, highlights, and answers. If you don't have a title field in your index, leave this blank. */ titleField?: SemanticField; /** Defines the content fields to be used for semantic ranking, captions, highlights, and answers. For the best result, the selected fields should contain text in natural language form. The order of the fields in the array represents their priority. Fields with lower priority may get truncated if the content is long. */ - prioritizedContentFields?: SemanticField[]; + contentFields?: SemanticField[]; /** Defines the keyword fields to be used for semantic ranking, captions, highlights, and answers. For the best result, the selected fields should contain a list of keywords. The order of the fields in the array represents their priority. Fields with lower priority may get truncated if the content is long. */ - prioritizedKeywordsFields?: SemanticField[]; + keywordsFields?: SemanticField[]; } /** A field that is used as part of the semantic configuration. */ export interface SemanticField { - name?: string; + name: string; } /** Contains configuration options related to vector search. */ export interface VectorSearch { /** Defines combinations of configurations to use with vector search. */ profiles?: VectorSearchProfile[]; - /** Contains configuration options specific to the algorithm used during indexing and/or querying. */ + /** Contains configuration options specific to the algorithm used during indexing or querying. */ algorithms?: VectorSearchAlgorithmConfigurationUnion[]; /** Contains configuration options on how to vectorize text vector queries. */ vectorizers?: VectorSearchVectorizerUnion[]; + /** Contains configuration options specific to the compression method used during indexing or querying. */ + compressions?: BaseVectorSearchCompressionConfigurationUnion[]; } /** Defines a combination of configurations to use with vector search. */ @@ -1018,12 +1055,14 @@ export interface VectorSearchProfile { /** The name to associate with this particular vector search profile. */ name: string; /** The name of the vector search algorithm configuration that specifies the algorithm and optional parameters. */ - algorithm: string; + algorithmConfigurationName: string; /** The name of the kind of vectorization method being configured for use with vector search. */ vectorizer?: string; + /** The name of the compression method configuration that specifies the compression method and optional parameters. */ + compressionConfigurationName?: string; } -/** Contains configuration options specific to the algorithm used during indexing and/or querying. */ +/** Contains configuration options specific to the algorithm used during indexing or querying. */ export interface VectorSearchAlgorithmConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "hnsw" | "exhaustiveKnn"; @@ -1031,7 +1070,7 @@ export interface VectorSearchAlgorithmConfiguration { name: string; } -/** Contains specific details for a vectorization method to be used during query time. */ +/** Specifies the vectorization method to be used during query time. */ export interface VectorSearchVectorizer { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "azureOpenAI" | "customWebApi"; @@ -1039,6 +1078,18 @@ export interface VectorSearchVectorizer { name: string; } +/** Contains configuration options specific to the compression method used during indexing or querying. */ +export interface BaseVectorSearchCompressionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "scalarQuantization"; + /** The name to associate with this particular configuration. */ + name: string; + /** If set to true, once the ordered set of results calculated using compressed vectors are obtained, they will be reranked again by recalculating the full-precision similarity scores. This will improve recall at the expense of latency. */ + rerankWithOriginalVectors?: boolean; + /** Default oversampling factor. Oversampling will internally request more documents (specified by this multiplier) in the initial search. This increases the set of results that will be reranked using recomputed similarity scores from full-precision vectors. Minimum value is 1, meaning no oversampling (1x). This parameter can only be set when rerankWithOriginalVectors is true. Higher values improve recall at the expense of latency. */ + defaultOversampling?: number; +} + /** Response from a List Indexes request. If successful, it includes the full definitions of all indexes. */ export interface ListIndexesResult { /** @@ -1182,7 +1233,7 @@ export interface ServiceLimits { maxComplexObjectsInCollectionsPerDocument?: number; } -/** Contains the parameters specific to hnsw algorithm. */ +/** Contains the parameters specific to the HNSW algorithm. */ export interface HnswParameters { /** The number of bi-directional links created for every new element during construction. Increasing this parameter value may improve recall and reduce retrieval times for datasets with high intrinsic dimensionality at the expense of increased memory consumption and longer indexing time. */ m?: number; @@ -1200,25 +1251,31 @@ export interface ExhaustiveKnnParameters { metric?: VectorSearchAlgorithmMetric; } -/** Contains the parameters specific to using an Azure Open AI service for vectorization at query time. */ +/** Contains the parameters specific to Scalar Quantization. */ +export interface ScalarQuantizationParameters { + /** The quantized data type of compressed vector values. */ + quantizedDataType?: VectorSearchCompressionTargetDataType; +} + +/** Specifies the parameters for connecting to the Azure OpenAI resource. */ export interface AzureOpenAIParameters { - /** The resource uri for your Azure Open AI resource. */ + /** The resource URI of the Azure OpenAI resource. */ resourceUri?: string; - /** ID of your Azure Open AI model deployment on the designated resource. */ + /** ID of the Azure OpenAI model deployment on the designated resource. */ deploymentId?: string; - /** API key for the designated Azure Open AI resource. */ + /** API key of the designated Azure OpenAI resource. */ apiKey?: string; /** The user-assigned managed identity used for outbound connections. */ authIdentity?: SearchIndexerDataIdentityUnion; } -/** Contains the parameters specific to generating vector embeddings via a custom endpoint. */ -export interface CustomVectorizerParameters { - /** The uri for the Web API. */ +/** Specifies the properties for connecting to a user-defined vectorizer. */ +export interface CustomWebApiParameters { + /** The URI of the Web API providing the vectorizer. */ uri?: string; - /** The headers required to make the http request. */ + /** The headers required to make the HTTP request. */ httpHeaders?: { [propertyName: string]: string }; - /** The method for the http request. */ + /** The method for the HTTP request. */ httpMethod?: string; /** The desired timeout for the request. Default is 30 seconds. */ timeout?: string; @@ -1299,190 +1356,196 @@ export interface CustomEntityAlias { } /** Clears the identity property of a datasource. */ -export type SearchIndexerDataNoneIdentity = SearchIndexerDataIdentity & { +export interface SearchIndexerDataNoneIdentity + extends SearchIndexerDataIdentity { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.DataNoneIdentity"; -}; +} /** Specifies the identity for a datasource to use. */ -export type SearchIndexerDataUserAssignedIdentity = SearchIndexerDataIdentity & { +export interface SearchIndexerDataUserAssignedIdentity + extends SearchIndexerDataIdentity { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.DataUserAssignedIdentity"; /** The fully qualified Azure resource Id of a user assigned managed identity typically in the form "/subscriptions/12345678-1234-1234-1234-1234567890ab/resourceGroups/rg/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId" that should have been assigned to the search service. */ userAssignedIdentity: string; -}; +} /** Defines a data change detection policy that captures changes based on the value of a high water mark column. */ -export type HighWaterMarkChangeDetectionPolicy = DataChangeDetectionPolicy & { +export interface HighWaterMarkChangeDetectionPolicy + extends DataChangeDetectionPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy"; /** The name of the high water mark column. */ highWaterMarkColumnName: string; -}; +} /** Defines a data change detection policy that captures changes using the Integrated Change Tracking feature of Azure SQL Database. */ -export type SqlIntegratedChangeTrackingPolicy = DataChangeDetectionPolicy & { +export interface SqlIntegratedChangeTrackingPolicy + extends DataChangeDetectionPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy"; -}; +} /** Defines a data deletion detection policy that implements a soft-deletion strategy. It determines whether an item should be deleted based on the value of a designated 'soft delete' column. */ -export type SoftDeleteColumnDeletionDetectionPolicy = DataDeletionDetectionPolicy & { +export interface SoftDeleteColumnDeletionDetectionPolicy + extends DataDeletionDetectionPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy"; /** The name of the column to use for soft-deletion detection. */ softDeleteColumnName?: string; /** The marker value that identifies an item as deleted. */ softDeleteMarkerValue?: string; -}; +} /** Defines a data deletion detection policy utilizing Azure Blob Storage's native soft delete feature for deletion detection. */ -export type NativeBlobSoftDeleteDeletionDetectionPolicy = DataDeletionDetectionPolicy & { +export interface NativeBlobSoftDeleteDeletionDetectionPolicy + extends DataDeletionDetectionPolicy { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy"; -}; +} /** A skill that enables scenarios that require a Boolean operation to determine the data to assign to an output. */ -export type ConditionalSkill = SearchIndexerSkill & { +export interface ConditionalSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Util.ConditionalSkill"; -}; +} /** A skill that uses text analytics for key phrase extraction. */ -export type KeyPhraseExtractionSkill = SearchIndexerSkill & { +export interface KeyPhraseExtractionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: KeyPhraseExtractionSkillLanguage; /** A number indicating how many key phrases to return. If absent, all identified key phrases will be returned. */ maxKeyPhraseCount?: number; /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** A skill that extracts text from image files. */ -export type OcrSkill = SearchIndexerSkill & { +export interface OcrSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Vision.OcrSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: OcrSkillLanguage; /** A value indicating to turn orientation detection on or not. Default is false. */ shouldDetectOrientation?: boolean; /** Defines the sequence of characters to use between the lines of text recognized by the OCR skill. The default value is "space". */ lineEnding?: LineEnding; -}; +} /** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */ -export type ImageAnalysisSkill = SearchIndexerSkill & { +export interface ImageAnalysisSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: ImageAnalysisSkillLanguage; /** A list of visual features. */ visualFeatures?: VisualFeature[]; /** A string indicating which domain-specific details to return. */ details?: ImageDetail[]; -}; +} /** A skill that detects the language of input text and reports a single language code for every document submitted on the request. The language code is paired with a score indicating the confidence of the analysis. */ -export type LanguageDetectionSkill = SearchIndexerSkill & { +export interface LanguageDetectionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.LanguageDetectionSkill"; /** A country code to use as a hint to the language detection model if it cannot disambiguate the language. */ defaultCountryHint?: string; /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** A skill for reshaping the outputs. It creates a complex type to support composite fields (also known as multipart fields). */ -export type ShaperSkill = SearchIndexerSkill & { +export interface ShaperSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Util.ShaperSkill"; -}; +} /** A skill for merging two or more strings into a single unified string, with an optional user-defined delimiter separating each component part. */ -export type MergeSkill = SearchIndexerSkill & { +export interface MergeSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.MergeSkill"; /** The tag indicates the start of the merged text. By default, the tag is an empty space. */ insertPreTag?: string; /** The tag indicates the end of the merged text. By default, the tag is an empty space. */ insertPostTag?: string; -}; +} /** * This skill is deprecated. Use the V3.EntityRecognitionSkill instead. * * @deprecated */ -export type EntityRecognitionSkill = SearchIndexerSkill & { +export interface EntityRecognitionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill"; /** A list of entity categories that should be extracted. */ categories?: EntityCategory[]; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: EntityRecognitionSkillLanguage; /** Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced. */ includeTypelessEntities?: boolean; /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ minimumPrecision?: number; -}; +} /** * This skill is deprecated. Use the V3.SentimentSkill instead. * * @deprecated */ -export type SentimentSkill = SearchIndexerSkill & { +export interface SentimentSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.SentimentSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: SentimentSkillLanguage; -}; +} /** Using the Text Analytics API, evaluates unstructured text and for each record, provides sentiment labels (such as "negative", "neutral" and "positive") based on the highest confidence score found by the service at a sentence and document-level. */ -export type SentimentSkillV3 = SearchIndexerSkill & { +export interface SentimentSkillV3 extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.V3.SentimentSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: string; /** If set to true, the skill output will include information from Text Analytics for opinion mining, namely targets (nouns or verbs) and their associated assessment (adjective) in the text. Default is false. */ includeOpinionMining?: boolean; /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** Using the Text Analytics API, extracts linked entities from text. */ -export type EntityLinkingSkill = SearchIndexerSkill & { +export interface EntityLinkingSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.V3.EntityLinkingSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: string; /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ minimumPrecision?: number; /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** Using the Text Analytics API, extracts entities of different types from text. */ -export type EntityRecognitionSkillV3 = SearchIndexerSkill & { +export interface EntityRecognitionSkillV3 extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.V3.EntityRecognitionSkill"; /** A list of entity categories that should be extracted. */ categories?: string[]; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: string; /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ minimumPrecision?: number; - /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ + /** The version of the model to use when calling the Text Analytics API. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; -}; +} /** Using the Text Analytics API, extracts personal information from an input text and gives you the option of masking it. */ -export type PIIDetectionSkill = SearchIndexerSkill & { +export interface PIIDetectionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.PIIDetectionSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: string; /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ minimumPrecision?: number; @@ -1493,16 +1556,16 @@ export type PIIDetectionSkill = SearchIndexerSkill & { /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ modelVersion?: string; /** A list of PII entity categories that should be extracted and masked. */ - piiCategories?: string[]; + categories?: string[]; /** If specified, will set the PII domain to include only a subset of the entity categories. Possible values include: 'phi', 'none'. Default is 'none'. */ domain?: string; -}; +} /** A skill to split a string into chunks of text. */ -export type SplitSkill = SearchIndexerSkill & { +export interface SplitSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.SplitSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: SplitSkillLanguage; /** A value indicating which split mode to perform. */ textSplitMode?: TextSplitMode; @@ -1512,13 +1575,13 @@ export type SplitSkill = SearchIndexerSkill & { pageOverlapLength?: number; /** Only applicable when textSplitMode is set to 'pages'. If specified, the SplitSkill will discontinue splitting after processing the first 'maximumPagesToTake' pages, in order to improve performance when only a few initial pages are needed from each document. */ maximumPagesToTake?: number; -}; +} /** A skill looks for text from a custom, user-defined list of words and phrases. */ -export type CustomEntityLookupSkill = SearchIndexerSkill & { +export interface CustomEntityLookupSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.CustomEntityLookupSkill"; - /** A value indicating which language code to use. Default is en. */ + /** A value indicating which language code to use. Default is `en`. */ defaultLanguageCode?: CustomEntityLookupSkillLanguage; /** Path to a JSON or CSV file containing all the target text to match against. This entity definition is read at the beginning of an indexer run. Any updates to this file during an indexer run will not take effect until subsequent runs. This config must be accessible over HTTPS. */ entitiesDefinitionUri?: string; @@ -1530,22 +1593,22 @@ export type CustomEntityLookupSkill = SearchIndexerSkill & { globalDefaultAccentSensitive?: boolean; /** A global flag for FuzzyEditDistance. If FuzzyEditDistance is not set in CustomEntity, this value will be the default value. */ globalDefaultFuzzyEditDistance?: number; -}; +} /** A skill to translate text from one language to another. */ -export type TextTranslationSkill = SearchIndexerSkill & { +export interface TextTranslationSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.TranslationSkill"; /** The language code to translate documents into for documents that don't specify the to language explicitly. */ defaultToLanguageCode: TextTranslationSkillLanguage; /** The language code to translate documents from for documents that don't specify the from language explicitly. */ defaultFromLanguageCode?: TextTranslationSkillLanguage; - /** The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is en. */ + /** The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is `en`. */ suggestedFrom?: TextTranslationSkillLanguage; -}; +} /** A skill that extracts content from a file within the enrichment pipeline. */ -export type DocumentExtractionSkill = SearchIndexerSkill & { +export interface DocumentExtractionSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Util.DocumentExtractionSkill"; /** The parsingMode for the skill. Will be set to 'default' if not defined. */ @@ -1554,10 +1617,10 @@ export type DocumentExtractionSkill = SearchIndexerSkill & { dataToExtract?: string; /** A dictionary of configurations for the skill. */ configuration?: { [propertyName: string]: any }; -}; +} /** A skill that can call a Web API endpoint, allowing you to extend a skillset by having it call your custom code. */ -export type WebApiSkill = SearchIndexerSkill & { +export interface WebApiSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Custom.WebApiSkill"; /** The url for the Web API. */ @@ -1576,10 +1639,10 @@ export type WebApiSkill = SearchIndexerSkill & { authResourceId?: string; /** The user-assigned managed identity used for outbound connections. If an authResourceId is provided and it's not specified, the system-assigned managed identity is used. On updates to the indexer, if the identity is unspecified, the value remains unchanged. If set to "none", the value of this property is cleared. */ authIdentity?: SearchIndexerDataIdentityUnion; -}; +} /** The AML skill allows you to extend AI enrichment with a custom Azure Machine Learning (AML) model. Once an AML model is trained and deployed, an AML skill integrates it into AI enrichment. */ -export type AzureMachineLearningSkill = SearchIndexerSkill & { +export interface AzureMachineLearningSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Custom.AmlSkill"; /** (Required for no authentication or key authentication) The scoring URI of the AML service to which the JSON payload will be sent. Only the https URI scheme is allowed. */ @@ -1594,82 +1657,85 @@ export type AzureMachineLearningSkill = SearchIndexerSkill & { region?: string; /** (Optional) When specified, indicates the number of calls the indexer will make in parallel to the endpoint you have provided. You can decrease this value if your endpoint is failing under too high of a request load, or raise it if your endpoint is able to accept more requests and you would like an increase in the performance of the indexer. If not set, a default value of 5 is used. The degreeOfParallelism can be set to a maximum of 10 and a minimum of 1. */ degreeOfParallelism?: number; -}; +} -/** Allows you to generate a vector embedding for a given text input using the Azure Open AI service. */ -export type AzureOpenAIEmbeddingSkill = SearchIndexerSkill & { +/** Allows you to generate a vector embedding for a given text input using the Azure OpenAI resource. */ +export interface AzureOpenAIEmbeddingSkill extends SearchIndexerSkill { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill"; - /** The resource uri for your Azure Open AI resource. */ + /** The resource URI for your Azure OpenAI resource. */ resourceUri?: string; - /** ID of your Azure Open AI model deployment on the designated resource. */ + /** ID of your Azure OpenAI model deployment on the designated resource. */ deploymentId?: string; - /** API key for the designated Azure Open AI resource. */ + /** API key for the designated Azure OpenAI resource. */ apiKey?: string; /** The user-assigned managed identity used for outbound connections. */ authIdentity?: SearchIndexerDataIdentityUnion; -}; +} -/** An empty object that represents the default cognitive service resource for a skillset. */ -export type DefaultCognitiveServicesAccount = CognitiveServicesAccount & { +/** An empty object that represents the default Azure AI service resource for a skillset. */ +export interface DefaultCognitiveServicesAccount + extends CognitiveServicesAccount { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.DefaultCognitiveServices"; -}; +} -/** A cognitive service resource provisioned with a key that is attached to a skillset. */ -export type CognitiveServicesAccountKey = CognitiveServicesAccount & { +/** The multi-region account key of an Azure AI service resource that's attached to a skillset. */ +export interface CognitiveServicesAccountKey extends CognitiveServicesAccount { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CognitiveServicesByKey"; - /** The key used to provision the cognitive service resource attached to a skillset. */ + /** The key used to provision the Azure AI service resource attached to a skillset. */ key: string; -}; +} /** Description for what data to store in Azure Tables. */ -export type SearchIndexerKnowledgeStoreTableProjectionSelector = SearchIndexerKnowledgeStoreProjectionSelector & { +export interface SearchIndexerKnowledgeStoreTableProjectionSelector + extends SearchIndexerKnowledgeStoreProjectionSelector { /** Name of the Azure table to store projected data in. */ tableName: string; -}; +} /** Abstract class to share properties between concrete selectors. */ -export type SearchIndexerKnowledgeStoreBlobProjectionSelector = SearchIndexerKnowledgeStoreProjectionSelector & { +export interface SearchIndexerKnowledgeStoreBlobProjectionSelector + extends SearchIndexerKnowledgeStoreProjectionSelector { /** Blob container to store projections in. */ storageContainer: string; -}; +} /** Defines a function that boosts scores based on distance from a geographic location. */ -export type DistanceScoringFunction = ScoringFunction & { +export interface DistanceScoringFunction extends ScoringFunction { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "distance"; /** Parameter values for the distance scoring function. */ parameters: DistanceScoringParameters; -}; +} /** Defines a function that boosts scores based on the value of a date-time field. */ -export type FreshnessScoringFunction = ScoringFunction & { +export interface FreshnessScoringFunction extends ScoringFunction { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "freshness"; /** Parameter values for the freshness scoring function. */ parameters: FreshnessScoringParameters; -}; +} /** Defines a function that boosts scores based on the magnitude of a numeric field. */ -export type MagnitudeScoringFunction = ScoringFunction & { +export interface MagnitudeScoringFunction extends ScoringFunction { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "magnitude"; /** Parameter values for the magnitude scoring function. */ parameters: MagnitudeScoringParameters; -}; +} /** Defines a function that boosts scores of documents with string values matching a given list of tags. */ -export type TagScoringFunction = ScoringFunction & { +export interface TagScoringFunction extends ScoringFunction { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "tag"; /** Parameter values for the tag scoring function. */ parameters: TagScoringParameters; -}; +} /** Allows you to take control over the process of converting text into indexable/searchable tokens. It's a user-defined configuration consisting of a single predefined tokenizer and one or more filters. The tokenizer is responsible for breaking text into tokens, and the filters for modifying tokens emitted by the tokenizer. */ -export type CustomAnalyzer = LexicalAnalyzer & { +export interface CustomAnalyzer extends LexicalAnalyzer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CustomAnalyzer"; /** The name of the tokenizer to use to divide continuous text into a sequence of tokens, such as breaking a sentence into words. KnownTokenizerNames is an enum containing known values. */ @@ -1678,10 +1744,10 @@ export type CustomAnalyzer = LexicalAnalyzer & { tokenFilters?: string[]; /** A list of character filters used to prepare input text before it is processed by the tokenizer. For instance, they can replace certain characters or symbols. The filters are run in the order in which they are listed. */ charFilters?: string[]; -}; +} /** Flexibly separates text into terms via a regular expression pattern. This analyzer is implemented using Apache Lucene. */ -export type PatternAnalyzer = LexicalAnalyzer & { +export interface PatternAnalyzer extends LexicalAnalyzer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternAnalyzer"; /** A value indicating whether terms should be lower-cased. Default is true. */ @@ -1692,36 +1758,36 @@ export type PatternAnalyzer = LexicalAnalyzer & { flags?: string; /** A list of stopwords. */ stopwords?: string[]; -}; +} /** Standard Apache Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. */ -export type LuceneStandardAnalyzer = LexicalAnalyzer & { +export interface LuceneStandardAnalyzer extends LexicalAnalyzer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StandardAnalyzer"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; /** A list of stopwords. */ stopwords?: string[]; -}; +} /** Divides text at non-letters; Applies the lowercase and stopword token filters. This analyzer is implemented using Apache Lucene. */ -export type StopAnalyzer = LexicalAnalyzer & { +export interface StopAnalyzer extends LexicalAnalyzer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StopAnalyzer"; /** A list of stopwords. */ stopwords?: string[]; -}; +} /** Grammar-based tokenizer that is suitable for processing most European-language documents. This tokenizer is implemented using Apache Lucene. */ -export type ClassicTokenizer = LexicalTokenizer & { +export interface ClassicTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.ClassicTokenizer"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; -}; +} /** Tokenizes the input from an edge into n-grams of the given size(s). This tokenizer is implemented using Apache Lucene. */ -export type EdgeNGramTokenizer = LexicalTokenizer & { +export interface EdgeNGramTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenizer"; /** The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram. */ @@ -1730,26 +1796,26 @@ export type EdgeNGramTokenizer = LexicalTokenizer & { maxGram?: number; /** Character classes to keep in the tokens. */ tokenChars?: TokenCharacterKind[]; -}; +} /** Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene. */ -export type KeywordTokenizer = LexicalTokenizer & { +export interface KeywordTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.KeywordTokenizer"; /** The read buffer size in bytes. Default is 256. */ bufferSize?: number; -}; +} /** Emits the entire input as a single token. This tokenizer is implemented using Apache Lucene. */ -export type KeywordTokenizerV2 = LexicalTokenizer & { +export interface KeywordTokenizerV2 extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.KeywordTokenizerV2"; /** The maximum token length. Default is 256. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; -}; +} /** Divides text using language-specific rules. */ -export type MicrosoftLanguageTokenizer = LexicalTokenizer & { +export interface MicrosoftLanguageTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageTokenizer"; /** The maximum token length. Tokens longer than the maximum length are split. Maximum token length that can be used is 300 characters. Tokens longer than 300 characters are first split into tokens of length 300 and then each of those tokens is split based on the max token length set. Default is 255. */ @@ -1758,10 +1824,10 @@ export type MicrosoftLanguageTokenizer = LexicalTokenizer & { isSearchTokenizer?: boolean; /** The language to use. The default is English. */ language?: MicrosoftTokenizerLanguage; -}; +} /** Divides text using language-specific rules and reduces words to their base forms. */ -export type MicrosoftLanguageStemmingTokenizer = LexicalTokenizer & { +export interface MicrosoftLanguageStemmingTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer"; /** The maximum token length. Tokens longer than the maximum length are split. Maximum token length that can be used is 300 characters. Tokens longer than 300 characters are first split into tokens of length 300 and then each of those tokens is split based on the max token length set. Default is 255. */ @@ -1770,10 +1836,10 @@ export type MicrosoftLanguageStemmingTokenizer = LexicalTokenizer & { isSearchTokenizer?: boolean; /** The language to use. The default is English. */ language?: MicrosoftStemmingTokenizerLanguage; -}; +} /** Tokenizes the input into n-grams of the given size(s). This tokenizer is implemented using Apache Lucene. */ -export type NGramTokenizer = LexicalTokenizer & { +export interface NGramTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.NGramTokenizer"; /** The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram. */ @@ -1782,10 +1848,10 @@ export type NGramTokenizer = LexicalTokenizer & { maxGram?: number; /** Character classes to keep in the tokens. */ tokenChars?: TokenCharacterKind[]; -}; +} /** Tokenizer for path-like hierarchies. This tokenizer is implemented using Apache Lucene. */ -export type PathHierarchyTokenizerV2 = LexicalTokenizer & { +export interface PathHierarchyTokenizerV2 extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PathHierarchyTokenizerV2"; /** The delimiter character to use. Default is "/". */ @@ -1798,10 +1864,10 @@ export type PathHierarchyTokenizerV2 = LexicalTokenizer & { reverseTokenOrder?: boolean; /** The number of initial tokens to skip. Default is 0. */ numberOfTokensToSkip?: number; -}; +} /** Tokenizer that uses regex pattern matching to construct distinct tokens. This tokenizer is implemented using Apache Lucene. */ -export type PatternTokenizer = LexicalTokenizer & { +export interface PatternTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternTokenizer"; /** A regular expression pattern to match token separators. Default is an expression that matches one or more non-word characters. */ @@ -1810,52 +1876,52 @@ export type PatternTokenizer = LexicalTokenizer & { flags?: string; /** The zero-based ordinal of the matching group in the regular expression pattern to extract into tokens. Use -1 if you want to use the entire pattern to split the input into tokens, irrespective of matching groups. Default is -1. */ group?: number; -}; +} /** Breaks text following the Unicode Text Segmentation rules. This tokenizer is implemented using Apache Lucene. */ -export type LuceneStandardTokenizer = LexicalTokenizer & { +export interface LuceneStandardTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StandardTokenizer"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. */ maxTokenLength?: number; -}; +} /** Breaks text following the Unicode Text Segmentation rules. This tokenizer is implemented using Apache Lucene. */ -export type LuceneStandardTokenizerV2 = LexicalTokenizer & { +export interface LuceneStandardTokenizerV2 extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StandardTokenizerV2"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; -}; +} /** Tokenizes urls and emails as one token. This tokenizer is implemented using Apache Lucene. */ -export type UaxUrlEmailTokenizer = LexicalTokenizer & { +export interface UaxUrlEmailTokenizer extends LexicalTokenizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.UaxUrlEmailTokenizer"; /** The maximum token length. Default is 255. Tokens longer than the maximum length are split. The maximum token length that can be used is 300 characters. */ maxTokenLength?: number; -}; +} /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. This token filter is implemented using Apache Lucene. */ -export type AsciiFoldingTokenFilter = TokenFilter & { +export interface AsciiFoldingTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.AsciiFoldingTokenFilter"; /** A value indicating whether the original token will be kept. Default is false. */ preserveOriginal?: boolean; -}; +} /** Forms bigrams of CJK terms that are generated from the standard tokenizer. This token filter is implemented using Apache Lucene. */ -export type CjkBigramTokenFilter = TokenFilter & { +export interface CjkBigramTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CjkBigramTokenFilter"; /** The scripts to ignore. */ ignoreScripts?: CjkBigramTokenFilterScripts[]; /** A value indicating whether to output both unigrams and bigrams (if true), or just bigrams (if false). Default is false. */ outputUnigrams?: boolean; -}; +} /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. This token filter is implemented using Apache Lucene. */ -export type CommonGramTokenFilter = TokenFilter & { +export interface CommonGramTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CommonGramTokenFilter"; /** The set of common words. */ @@ -1864,10 +1930,10 @@ export type CommonGramTokenFilter = TokenFilter & { ignoreCase?: boolean; /** A value that indicates whether the token filter is in query mode. When in query mode, the token filter generates bigrams and then removes common words and single terms followed by a common word. Default is false. */ useQueryMode?: boolean; -}; +} /** Decomposes compound words found in many Germanic languages. This token filter is implemented using Apache Lucene. */ -export type DictionaryDecompounderTokenFilter = TokenFilter & { +export interface DictionaryDecompounderTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter"; /** The list of words to match against. */ @@ -1880,10 +1946,10 @@ export type DictionaryDecompounderTokenFilter = TokenFilter & { maxSubwordSize?: number; /** A value indicating whether to add only the longest matching subword to the output. Default is false. */ onlyLongestMatch?: boolean; -}; +} /** Generates n-grams of the given size(s) starting from the front or the back of an input token. This token filter is implemented using Apache Lucene. */ -export type EdgeNGramTokenFilter = TokenFilter & { +export interface EdgeNGramTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenFilter"; /** The minimum n-gram length. Default is 1. Must be less than the value of maxGram. */ @@ -1892,10 +1958,10 @@ export type EdgeNGramTokenFilter = TokenFilter & { maxGram?: number; /** Specifies which side of the input the n-gram should be generated from. Default is "front". */ side?: EdgeNGramTokenFilterSide; -}; +} /** Generates n-grams of the given size(s) starting from the front or the back of an input token. This token filter is implemented using Apache Lucene. */ -export type EdgeNGramTokenFilterV2 = TokenFilter & { +export interface EdgeNGramTokenFilterV2 extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenFilterV2"; /** The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram. */ @@ -1904,108 +1970,108 @@ export type EdgeNGramTokenFilterV2 = TokenFilter & { maxGram?: number; /** Specifies which side of the input the n-gram should be generated from. Default is "front". */ side?: EdgeNGramTokenFilterSide; -}; +} /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). This token filter is implemented using Apache Lucene. */ -export type ElisionTokenFilter = TokenFilter & { +export interface ElisionTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.ElisionTokenFilter"; /** The set of articles to remove. */ articles?: string[]; -}; +} /** A token filter that only keeps tokens with text contained in a specified list of words. This token filter is implemented using Apache Lucene. */ -export type KeepTokenFilter = TokenFilter & { +export interface KeepTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.KeepTokenFilter"; /** The list of words to keep. */ keepWords: string[]; /** A value indicating whether to lower case all words first. Default is false. */ lowerCaseKeepWords?: boolean; -}; +} /** Marks terms as keywords. This token filter is implemented using Apache Lucene. */ -export type KeywordMarkerTokenFilter = TokenFilter & { +export interface KeywordMarkerTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.KeywordMarkerTokenFilter"; /** A list of words to mark as keywords. */ keywords: string[]; /** A value indicating whether to ignore case. If true, all words are converted to lower case first. Default is false. */ ignoreCase?: boolean; -}; +} /** Removes words that are too long or too short. This token filter is implemented using Apache Lucene. */ -export type LengthTokenFilter = TokenFilter & { +export interface LengthTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.LengthTokenFilter"; /** The minimum length in characters. Default is 0. Maximum is 300. Must be less than the value of max. */ minLength?: number; /** The maximum length in characters. Default and maximum is 300. */ maxLength?: number; -}; +} /** Limits the number of tokens while indexing. This token filter is implemented using Apache Lucene. */ -export type LimitTokenFilter = TokenFilter & { +export interface LimitTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.LimitTokenFilter"; /** The maximum number of tokens to produce. Default is 1. */ maxTokenCount?: number; /** A value indicating whether all tokens from the input must be consumed even if maxTokenCount is reached. Default is false. */ consumeAllTokens?: boolean; -}; +} /** Generates n-grams of the given size(s). This token filter is implemented using Apache Lucene. */ -export type NGramTokenFilter = TokenFilter & { +export interface NGramTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.NGramTokenFilter"; /** The minimum n-gram length. Default is 1. Must be less than the value of maxGram. */ minGram?: number; /** The maximum n-gram length. Default is 2. */ maxGram?: number; -}; +} /** Generates n-grams of the given size(s). This token filter is implemented using Apache Lucene. */ -export type NGramTokenFilterV2 = TokenFilter & { +export interface NGramTokenFilterV2 extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.NGramTokenFilterV2"; /** The minimum n-gram length. Default is 1. Maximum is 300. Must be less than the value of maxGram. */ minGram?: number; /** The maximum n-gram length. Default is 2. Maximum is 300. */ maxGram?: number; -}; +} /** Uses Java regexes to emit multiple tokens - one for each capture group in one or more patterns. This token filter is implemented using Apache Lucene. */ -export type PatternCaptureTokenFilter = TokenFilter & { +export interface PatternCaptureTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternCaptureTokenFilter"; /** A list of patterns to match against each token. */ patterns: string[]; /** A value indicating whether to return the original token even if one of the patterns matches. Default is true. */ preserveOriginal?: boolean; -}; +} /** A character filter that replaces characters in the input string. It uses a regular expression to identify character sequences to preserve and a replacement pattern to identify characters to replace. For example, given the input text "aa bb aa bb", pattern "(aa)\s+(bb)", and replacement "$1#$2", the result would be "aa#bb aa#bb". This token filter is implemented using Apache Lucene. */ -export type PatternReplaceTokenFilter = TokenFilter & { +export interface PatternReplaceTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternReplaceTokenFilter"; /** A regular expression pattern. */ pattern: string; /** The replacement text. */ replacement: string; -}; +} /** Create tokens for phonetic matches. This token filter is implemented using Apache Lucene. */ -export type PhoneticTokenFilter = TokenFilter & { +export interface PhoneticTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PhoneticTokenFilter"; /** The phonetic encoder to use. Default is "metaphone". */ encoder?: PhoneticEncoder; /** A value indicating whether encoded tokens should replace original tokens. If false, encoded tokens are added as synonyms. Default is true. */ replaceOriginalTokens?: boolean; -}; +} /** Creates combinations of tokens as a single token. This token filter is implemented using Apache Lucene. */ -export type ShingleTokenFilter = TokenFilter & { +export interface ShingleTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.ShingleTokenFilter"; /** The maximum shingle size. Default and minimum value is 2. */ @@ -2020,34 +2086,34 @@ export type ShingleTokenFilter = TokenFilter & { tokenSeparator?: string; /** The string to insert for each position at which there is no token. Default is an underscore ("_"). */ filterToken?: string; -}; +} /** A filter that stems words using a Snowball-generated stemmer. This token filter is implemented using Apache Lucene. */ -export type SnowballTokenFilter = TokenFilter & { +export interface SnowballTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.SnowballTokenFilter"; /** The language to use. */ language: SnowballTokenFilterLanguage; -}; +} /** Language specific stemming filter. This token filter is implemented using Apache Lucene. */ -export type StemmerTokenFilter = TokenFilter & { +export interface StemmerTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StemmerTokenFilter"; /** The language to use. */ language: StemmerTokenFilterLanguage; -}; +} /** Provides the ability to override other stemming filters with custom dictionary-based stemming. Any dictionary-stemmed terms will be marked as keywords so that they will not be stemmed with stemmers down the chain. Must be placed before any stemming filters. This token filter is implemented using Apache Lucene. */ -export type StemmerOverrideTokenFilter = TokenFilter & { +export interface StemmerOverrideTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StemmerOverrideTokenFilter"; /** A list of stemming rules in the following format: "word => stem", for example: "ran => run". */ rules: string[]; -}; +} /** Removes stop words from a token stream. This token filter is implemented using Apache Lucene. */ -export type StopwordsTokenFilter = TokenFilter & { +export interface StopwordsTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.StopwordsTokenFilter"; /** The list of stopwords. This property and the stopwords list property cannot both be set. */ @@ -2058,10 +2124,10 @@ export type StopwordsTokenFilter = TokenFilter & { ignoreCase?: boolean; /** A value indicating whether to ignore the last search term if it's a stop word. Default is true. */ removeTrailingStopWords?: boolean; -}; +} /** Matches single or multi-word synonyms in a token stream. This token filter is implemented using Apache Lucene. */ -export type SynonymTokenFilter = TokenFilter & { +export interface SynonymTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.SynonymTokenFilter"; /** A list of synonyms in following one of two formats: 1. incredible, unbelievable, fabulous => amazing - all terms on the left side of => symbol will be replaced with all terms on its right side; 2. incredible, unbelievable, fabulous, amazing - comma separated list of equivalent words. Set the expand option to change how this list is interpreted. */ @@ -2070,26 +2136,26 @@ export type SynonymTokenFilter = TokenFilter & { ignoreCase?: boolean; /** A value indicating whether all words in the list of synonyms (if => notation is not used) will map to one another. If true, all words in the list of synonyms (if => notation is not used) will map to one another. The following list: incredible, unbelievable, fabulous, amazing is equivalent to: incredible, unbelievable, fabulous, amazing => incredible, unbelievable, fabulous, amazing. If false, the following list: incredible, unbelievable, fabulous, amazing will be equivalent to: incredible, unbelievable, fabulous, amazing => incredible. Default is true. */ expand?: boolean; -}; +} /** Truncates the terms to a specific length. This token filter is implemented using Apache Lucene. */ -export type TruncateTokenFilter = TokenFilter & { +export interface TruncateTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.TruncateTokenFilter"; /** The length at which terms will be truncated. Default and maximum is 300. */ length?: number; -}; +} /** Filters out tokens with same text as the previous token. This token filter is implemented using Apache Lucene. */ -export type UniqueTokenFilter = TokenFilter & { +export interface UniqueTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.UniqueTokenFilter"; /** A value indicating whether to remove duplicates only at the same position. Default is false. */ onlyOnSamePosition?: boolean; -}; +} /** Splits words into subwords and performs optional transformations on subword groups. This token filter is implemented using Apache Lucene. */ -export type WordDelimiterTokenFilter = TokenFilter & { +export interface WordDelimiterTokenFilter extends TokenFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.WordDelimiterTokenFilter"; /** A value indicating whether to generate part words. If set, causes parts of words to be generated; for example "AzureSearch" becomes "Azure" "Search". Default is true. */ @@ -2112,104 +2178,117 @@ export type WordDelimiterTokenFilter = TokenFilter & { stemEnglishPossessive?: boolean; /** A list of tokens to protect from being delimited. */ protectedWords?: string[]; -}; +} /** A character filter that applies mappings defined with the mappings option. Matching is greedy (longest pattern matching at a given point wins). Replacement is allowed to be the empty string. This character filter is implemented using Apache Lucene. */ -export type MappingCharFilter = CharFilter & { +export interface MappingCharFilter extends CharFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.MappingCharFilter"; /** A list of mappings of the following format: "a=>b" (all occurrences of the character "a" will be replaced with character "b"). */ mappings: string[]; -}; +} /** A character filter that replaces characters in the input string. It uses a regular expression to identify character sequences to preserve and a replacement pattern to identify characters to replace. For example, given the input text "aa bb aa bb", pattern "(aa)\s+(bb)", and replacement "$1#$2", the result would be "aa#bb aa#bb". This character filter is implemented using Apache Lucene. */ -export type PatternReplaceCharFilter = CharFilter & { +export interface PatternReplaceCharFilter extends CharFilter { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.PatternReplaceCharFilter"; /** A regular expression pattern. */ pattern: string; /** The replacement text. */ replacement: string; -}; +} /** Allows you to configure normalization for filterable, sortable, and facetable fields, which by default operate with strict matching. This is a user-defined configuration consisting of at least one or more filters, which modify the token that is stored. */ -export type CustomNormalizer = LexicalNormalizer & { +export interface CustomNormalizer extends LexicalNormalizer { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.CustomNormalizer"; /** A list of token filters used to filter out or modify the input token. For example, you can specify a lowercase filter that converts all characters to lowercase. The filters are run in the order in which they are listed. */ tokenFilters?: TokenFilterName[]; /** A list of character filters used to prepare input text before it is processed. For instance, they can replace certain characters or symbols. The filters are run in the order in which they are listed. */ charFilters?: CharFilterName[]; -}; +} /** Legacy similarity algorithm which uses the Lucene TFIDFSimilarity implementation of TF-IDF. This variation of TF-IDF introduces static document length normalization as well as coordinating factors that penalize documents that only partially match the searched queries. */ -export type ClassicSimilarity = Similarity & { +export interface ClassicSimilarity extends Similarity { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.ClassicSimilarity"; -}; +} /** Ranking function based on the Okapi BM25 similarity algorithm. BM25 is a TF-IDF-like algorithm that includes length normalization (controlled by the 'b' parameter) as well as term frequency saturation (controlled by the 'k1' parameter). */ -export type BM25Similarity = Similarity & { +export interface BM25Similarity extends Similarity { /** Polymorphic discriminator, which specifies the different types this object can be */ odatatype: "#Microsoft.Azure.Search.BM25Similarity"; /** This property controls the scaling function between the term frequency of each matching terms and the final relevance score of a document-query pair. By default, a value of 1.2 is used. A value of 0.0 means the score does not scale with an increase in term frequency. */ k1?: number; /** This property controls how the length of a document affects the relevance score. By default, a value of 0.75 is used. A value of 0.0 means no length normalization is applied, while a value of 1.0 means the score is fully normalized by the length of the document. */ b?: number; -}; +} -/** Contains configuration options specific to the hnsw approximate nearest neighbors algorithm used during indexing and querying. The hnsw algorithm offers a tunable trade-off between search speed and accuracy. */ -export type HnswVectorSearchAlgorithmConfiguration = VectorSearchAlgorithmConfiguration & { +/** Contains configuration options specific to the HNSW approximate nearest neighbors algorithm used during indexing and querying. The HNSW algorithm offers a tunable trade-off between search speed and accuracy. */ +export interface HnswAlgorithmConfiguration + extends VectorSearchAlgorithmConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "hnsw"; - /** Contains the parameters specific to hnsw algorithm. */ + /** Contains the parameters specific to HNSW algorithm. */ parameters?: HnswParameters; -}; +} /** Contains configuration options specific to the exhaustive KNN algorithm used during querying, which will perform brute-force search across the entire vector index. */ -export type ExhaustiveKnnVectorSearchAlgorithmConfiguration = VectorSearchAlgorithmConfiguration & { +export interface ExhaustiveKnnAlgorithmConfiguration + extends VectorSearchAlgorithmConfiguration { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "exhaustiveKnn"; /** Contains the parameters specific to exhaustive KNN algorithm. */ parameters?: ExhaustiveKnnParameters; -}; +} -/** Contains the parameters specific to using an Azure Open AI service for vectorization at query time. */ -export type AzureOpenAIVectorizer = VectorSearchVectorizer & { +/** Specifies the Azure OpenAI resource used to vectorize a query string. */ +export interface AzureOpenAIVectorizer extends VectorSearchVectorizer { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "azureOpenAI"; - /** Contains the parameters specific to Azure Open AI embedding vectorization. */ + /** Contains the parameters specific to Azure OpenAI embedding vectorization. */ azureOpenAIParameters?: AzureOpenAIParameters; -}; +} -/** Contains the parameters specific to generating vector embeddings via a custom endpoint. */ -export type CustomVectorizer = VectorSearchVectorizer & { +/** Specifies a user-defined vectorizer for generating the vector embedding of a query string. Integration of an external vectorizer is achieved using the custom Web API interface of a skillset. */ +export interface CustomVectorizer extends VectorSearchVectorizer { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "customWebApi"; - /** Contains the parameters specific to generating vector embeddings via a custom endpoint. */ - customVectorizerParameters?: CustomVectorizerParameters; -}; + /** Specifies the properties of the user-defined vectorizer. */ + customWebApiParameters?: CustomWebApiParameters; +} + +/** Contains configuration options specific to the scalar quantization compression method used during indexing and querying. */ +export interface ScalarQuantizationCompressionConfiguration + extends BaseVectorSearchCompressionConfiguration { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "scalarQuantization"; + /** Contains the parameters specific to Scalar Quantization. */ + parameters?: ScalarQuantizationParameters; +} /** Projection definition for what data to store in Azure Blob. */ -export type SearchIndexerKnowledgeStoreObjectProjectionSelector = SearchIndexerKnowledgeStoreBlobProjectionSelector & {}; +export interface SearchIndexerKnowledgeStoreObjectProjectionSelector + extends SearchIndexerKnowledgeStoreBlobProjectionSelector {} /** Projection definition for what data to store in Azure Files. */ -export type SearchIndexerKnowledgeStoreFileProjectionSelector = SearchIndexerKnowledgeStoreBlobProjectionSelector & {}; +export interface SearchIndexerKnowledgeStoreFileProjectionSelector + extends SearchIndexerKnowledgeStoreBlobProjectionSelector {} -/** Known values of {@link ApiVersion20231001Preview} that the service accepts. */ -export enum KnownApiVersion20231001Preview { - /** Api Version '2023-10-01-Preview' */ - TwoThousandTwentyThree1001Preview = "2023-10-01-Preview" +/** Known values of {@link ApiVersion20240301Preview} that the service accepts. */ +export enum KnownApiVersion20240301Preview { + /** Api Version '2024-03-01-Preview' */ + TwoThousandTwentyFour0301Preview = "2024-03-01-Preview", } /** - * Defines values for ApiVersion20231001Preview. \ - * {@link KnownApiVersion20231001Preview} can be used interchangeably with ApiVersion20231001Preview, + * Defines values for ApiVersion20240301Preview. \ + * {@link KnownApiVersion20240301Preview} can be used interchangeably with ApiVersion20240301Preview, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **2023-10-01-Preview**: Api Version '2023-10-01-Preview' + * **2024-03-01-Preview**: Api Version '2024-03-01-Preview' */ -export type ApiVersion20231001Preview = string; +export type ApiVersion20240301Preview = string; /** Known values of {@link SearchIndexerDataSourceType} that the service accepts. */ export enum KnownSearchIndexerDataSourceType { @@ -2224,7 +2303,7 @@ export enum KnownSearchIndexerDataSourceType { /** Indicates a MySql datasource. */ MySql = "mysql", /** Indicates an ADLS Gen2 datasource. */ - AdlsGen2 = "adlsgen2" + AdlsGen2 = "adlsgen2", } /** @@ -2251,10 +2330,10 @@ export enum KnownBlobIndexerParsingMode { DelimitedText = "delimitedText", /** Set to json to extract structured content from JSON files. */ Json = "json", - /** Set to jsonArray to extract individual elements of a JSON array as separate documents in Azure Cognitive Search. */ + /** Set to jsonArray to extract individual elements of a JSON array as separate documents. */ JsonArray = "jsonArray", - /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. */ - JsonLines = "jsonLines" + /** Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents. */ + JsonLines = "jsonLines", } /** @@ -2266,8 +2345,8 @@ export enum KnownBlobIndexerParsingMode { * **text**: Set to text to improve indexing performance on plain text files in blob storage. \ * **delimitedText**: Set to delimitedText when blobs are plain CSV files. \ * **json**: Set to json to extract structured content from JSON files. \ - * **jsonArray**: Set to jsonArray to extract individual elements of a JSON array as separate documents in Azure Cognitive Search. \ - * **jsonLines**: Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents in Azure Cognitive Search. + * **jsonArray**: Set to jsonArray to extract individual elements of a JSON array as separate documents. \ + * **jsonLines**: Set to jsonLines to extract individual JSON entities, separated by a new line, as separate documents. */ export type BlobIndexerParsingMode = string; @@ -2278,7 +2357,7 @@ export enum KnownBlobIndexerDataToExtract { /** Extracts metadata provided by the Azure blob storage subsystem and the content-type specific metadata (for example, metadata unique to just .png files are indexed). */ AllMetadata = "allMetadata", /** Extracts all metadata and textual content from each blob. */ - ContentAndMetadata = "contentAndMetadata" + ContentAndMetadata = "contentAndMetadata", } /** @@ -2299,7 +2378,7 @@ export enum KnownBlobIndexerImageAction { /** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field. This action requires that "dataToExtract" is set to "contentAndMetadata". A normalized image refers to additional processing resulting in uniform image output, sized and rotated to promote consistent rendering when you include images in visual search results. This information is generated for each image when you use this option. */ GenerateNormalizedImages = "generateNormalizedImages", /** Extracts text from images (for example, the word "STOP" from a traffic stop sign), and embeds it into the content field, but treats PDF files differently in that each page will be rendered as an image and normalized accordingly, instead of extracting embedded images. Non-PDF file types will be treated the same as if "generateNormalizedImages" was set. */ - GenerateNormalizedImagePerPage = "generateNormalizedImagePerPage" + GenerateNormalizedImagePerPage = "generateNormalizedImagePerPage", } /** @@ -2318,7 +2397,7 @@ export enum KnownBlobIndexerPDFTextRotationAlgorithm { /** Leverages normal text extraction. This is the default. */ None = "none", /** May produce better and more readable text extraction from PDF files that have rotated text within them. Note that there may be a small performance speed impact when this parameter is used. This parameter only applies to PDF files, and only to PDFs with embedded text. If the rotated text appears within an embedded image in the PDF, this parameter does not apply. */ - DetectAngles = "detectAngles" + DetectAngles = "detectAngles", } /** @@ -2333,10 +2412,10 @@ export type BlobIndexerPDFTextRotationAlgorithm = string; /** Known values of {@link IndexerExecutionEnvironment} that the service accepts. */ export enum KnownIndexerExecutionEnvironment { - /** Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */ + /** Indicates that the search service can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. */ Standard = "standard", /** Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */ - Private = "private" + Private = "private", } /** @@ -2344,7 +2423,7 @@ export enum KnownIndexerExecutionEnvironment { * {@link KnownIndexerExecutionEnvironment} can be used interchangeably with IndexerExecutionEnvironment, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **standard**: Indicates that Azure Cognitive Search can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. \ + * **standard**: Indicates that the search service can determine where the indexer should execute. This is the default environment when nothing is specified and is the recommended value. \ * **private**: Indicates that the indexer should run with the environment provisioned specifically for the search service. This should only be specified as the execution environment if the indexer needs to access resources securely over shared private link resources. */ export type IndexerExecutionEnvironment = string; @@ -2352,7 +2431,7 @@ export type IndexerExecutionEnvironment = string; /** Known values of {@link IndexerExecutionStatusDetail} that the service accepts. */ export enum KnownIndexerExecutionStatusDetail { /** Indicates that the reset that occurred was for a call to ResetDocs. */ - ResetDocs = "resetDocs" + ResetDocs = "resetDocs", } /** @@ -2369,7 +2448,7 @@ export enum KnownIndexingMode { /** The indexer is indexing all documents in the datasource. */ IndexingAllDocs = "indexingAllDocs", /** The indexer is indexing selective, reset documents in the datasource. The documents being indexed are defined on indexer status. */ - IndexingResetDocs = "indexingResetDocs" + IndexingResetDocs = "indexingResetDocs", } /** @@ -2387,7 +2466,7 @@ export enum KnownIndexProjectionMode { /** The source document will be skipped from writing into the indexer's target index. */ SkipIndexingParentDocuments = "skipIndexingParentDocuments", /** The source document will be written into the indexer's target index. This is the default pattern. */ - IncludeIndexingParentDocuments = "includeIndexingParentDocuments" + IncludeIndexingParentDocuments = "includeIndexingParentDocuments", } /** @@ -2412,14 +2491,20 @@ export enum KnownSearchFieldDataType { Double = "Edm.Double", /** Indicates that a field contains a Boolean value (true or false). */ Boolean = "Edm.Boolean", - /** Indicates that a field contains a date/time value, including timezone information. */ + /** Indicates that a field contains a date\/time value, including timezone information. */ DateTimeOffset = "Edm.DateTimeOffset", /** Indicates that a field contains a geo-location in terms of longitude and latitude. */ GeographyPoint = "Edm.GeographyPoint", /** Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. */ Complex = "Edm.ComplexType", /** Indicates that a field contains a single-precision floating point number. This is only valid when used with Collection(Edm.Single). */ - Single = "Edm.Single" + Single = "Edm.Single", + /** Indicates that a field contains a half-precision floating point number. This is only valid when used with Collection(Edm.Half). */ + Half = "Edm.Half", + /** Indicates that a field contains a 16-bit signed integer. This is only valid when used with Collection(Edm.Int16). */ + Int16 = "Edm.Int16", + /** Indicates that a field contains a 8-bit signed integer. This is only valid when used with Collection(Edm.SByte). */ + SByte = "Edm.SByte", } /** @@ -2435,7 +2520,10 @@ export enum KnownSearchFieldDataType { * **Edm.DateTimeOffset**: Indicates that a field contains a date\/time value, including timezone information. \ * **Edm.GeographyPoint**: Indicates that a field contains a geo-location in terms of longitude and latitude. \ * **Edm.ComplexType**: Indicates that a field contains one or more complex objects that in turn have sub-fields of other types. \ - * **Edm.Single**: Indicates that a field contains a single-precision floating point number. This is only valid when used with Collection(Edm.Single). + * **Edm.Single**: Indicates that a field contains a single-precision floating point number. This is only valid when used with Collection(Edm.Single). \ + * **Edm.Half**: Indicates that a field contains a half-precision floating point number. This is only valid when used with Collection(Edm.Half). \ + * **Edm.Int16**: Indicates that a field contains a 16-bit signed integer. This is only valid when used with Collection(Edm.Int16). \ + * **Edm.SByte**: Indicates that a field contains a 8-bit signed integer. This is only valid when used with Collection(Edm.SByte). */ export type SearchFieldDataType = string; @@ -2615,18 +2703,18 @@ export enum KnownLexicalAnalyzerName { ViMicrosoft = "vi.microsoft", /** Standard Lucene analyzer. */ StandardLucene = "standard.lucene", - /** Standard ASCII Folding Lucene analyzer. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#Analyzers */ + /** Standard ASCII Folding Lucene analyzer. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#Analyzers */ StandardAsciiFoldingLucene = "standardasciifolding.lucene", - /** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordAnalyzer.html */ + /** Treats the entire content of a field as a single token. This is useful for data like zip codes, ids, and some product names. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordAnalyzer.html */ Keyword = "keyword", - /** Flexibly separates text into terms via a regular expression pattern. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/PatternAnalyzer.html */ + /** Flexibly separates text into terms via a regular expression pattern. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/PatternAnalyzer.html */ Pattern = "pattern", - /** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/SimpleAnalyzer.html */ + /** Divides text at non-letters and converts them to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/SimpleAnalyzer.html */ Simple = "simple", - /** Divides text at non-letters; Applies the lowercase and stopword token filters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopAnalyzer.html */ + /** Divides text at non-letters; Applies the lowercase and stopword token filters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopAnalyzer.html */ Stop = "stop", - /** An analyzer that uses the whitespace tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceAnalyzer.html */ - Whitespace = "whitespace" + /** An analyzer that uses the whitespace tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceAnalyzer.html */ + Whitespace = "whitespace", } /** @@ -2732,16 +2820,16 @@ export type LexicalAnalyzerName = string; /** Known values of {@link LexicalNormalizerName} that the service accepts. */ export enum KnownLexicalNormalizerName { - /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */ + /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */ AsciiFolding = "asciifolding", - /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */ + /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */ Elision = "elision", - /** Normalizes token text to lowercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */ + /** Normalizes token text to lowercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */ Lowercase = "lowercase", - /** Standard normalizer, which consists of lowercase and asciifolding. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */ + /** Standard normalizer, which consists of lowercase and asciifolding. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */ Standard = "standard", - /** Normalizes token text to uppercase. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */ - Uppercase = "uppercase" + /** Normalizes token text to uppercase. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */ + Uppercase = "uppercase", } /** @@ -2759,10 +2847,10 @@ export type LexicalNormalizerName = string; /** Known values of {@link VectorSearchAlgorithmKind} that the service accepts. */ export enum KnownVectorSearchAlgorithmKind { - /** Hnsw (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */ + /** HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. */ Hnsw = "hnsw", /** Exhaustive KNN algorithm which will perform brute-force search. */ - ExhaustiveKnn = "exhaustiveKnn" + ExhaustiveKnn = "exhaustiveKnn", } /** @@ -2770,17 +2858,17 @@ export enum KnownVectorSearchAlgorithmKind { * {@link KnownVectorSearchAlgorithmKind} can be used interchangeably with VectorSearchAlgorithmKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **hnsw**: Hnsw (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. \ + * **hnsw**: HNSW (Hierarchical Navigable Small World), a type of approximate nearest neighbors algorithm. \ * **exhaustiveKnn**: Exhaustive KNN algorithm which will perform brute-force search. */ export type VectorSearchAlgorithmKind = string; /** Known values of {@link VectorSearchVectorizerKind} that the service accepts. */ export enum KnownVectorSearchVectorizerKind { - /** Generate embeddings using an Azure Open AI service at query time. */ + /** Generate embeddings using an Azure OpenAI resource at query time. */ AzureOpenAI = "azureOpenAI", /** Generate embeddings using a custom web endpoint at query time. */ - CustomWebApi = "customWebApi" + CustomWebApi = "customWebApi", } /** @@ -2788,81 +2876,96 @@ export enum KnownVectorSearchVectorizerKind { * {@link KnownVectorSearchVectorizerKind} can be used interchangeably with VectorSearchVectorizerKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **azureOpenAI**: Generate embeddings using an Azure Open AI service at query time. \ + * **azureOpenAI**: Generate embeddings using an Azure OpenAI resource at query time. \ * **customWebApi**: Generate embeddings using a custom web endpoint at query time. */ export type VectorSearchVectorizerKind = string; +/** Known values of {@link VectorSearchCompressionKind} that the service accepts. */ +export enum KnownVectorSearchCompressionKind { + /** Scalar Quantization, a type of compression method. In scalar quantization, the original vectors values are compressed to a narrower type by discretizing and representing each component of a vector using a reduced set of quantized values, thereby reducing the overall data size. */ + ScalarQuantization = "scalarQuantization", +} + +/** + * Defines values for VectorSearchCompressionKind. \ + * {@link KnownVectorSearchCompressionKind} can be used interchangeably with VectorSearchCompressionKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **scalarQuantization**: Scalar Quantization, a type of compression method. In scalar quantization, the original vectors values are compressed to a narrower type by discretizing and representing each component of a vector using a reduced set of quantized values, thereby reducing the overall data size. + */ +export type VectorSearchCompressionKind = string; + /** Known values of {@link TokenFilterName} that the service accepts. */ export enum KnownTokenFilterName { - /** A token filter that applies the Arabic normalizer to normalize the orthography. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ar/ArabicNormalizationFilter.html */ + /** A token filter that applies the Arabic normalizer to normalize the orthography. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ar\/ArabicNormalizationFilter.html */ ArabicNormalization = "arabic_normalization", - /** Strips all characters after an apostrophe (including the apostrophe itself). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/tr/ApostropheFilter.html */ + /** Strips all characters after an apostrophe (including the apostrophe itself). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/tr\/ApostropheFilter.html */ Apostrophe = "apostrophe", - /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ASCIIFoldingFilter.html */ + /** Converts alphabetic, numeric, and symbolic Unicode characters which are not in the first 127 ASCII characters (the "Basic Latin" Unicode block) into their ASCII equivalents, if such equivalents exist. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ASCIIFoldingFilter.html */ AsciiFolding = "asciifolding", - /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKBigramFilter.html */ + /** Forms bigrams of CJK terms that are generated from the standard tokenizer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKBigramFilter.html */ CjkBigram = "cjk_bigram", - /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/cjk/CJKWidthFilter.html */ + /** Normalizes CJK width differences. Folds fullwidth ASCII variants into the equivalent basic Latin, and half-width Katakana variants into the equivalent Kana. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/cjk\/CJKWidthFilter.html */ CjkWidth = "cjk_width", - /** Removes English possessives, and dots from acronyms. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicFilter.html */ + /** Removes English possessives, and dots from acronyms. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicFilter.html */ Classic = "classic", - /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/commongrams/CommonGramsFilter.html */ + /** Construct bigrams for frequently occurring terms while indexing. Single terms are still indexed too, with bigrams overlaid. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/commongrams\/CommonGramsFilter.html */ CommonGram = "common_grams", - /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenFilter.html */ + /** Generates n-grams of the given size(s) starting from the front or the back of an input token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenFilter.html */ EdgeNGram = "edgeNGram_v2", - /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/util/ElisionFilter.html */ + /** Removes elisions. For example, "l'avion" (the plane) will be converted to "avion" (plane). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/util\/ElisionFilter.html */ Elision = "elision", - /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/de/GermanNormalizationFilter.html */ + /** Normalizes German characters according to the heuristics of the German2 snowball algorithm. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/de\/GermanNormalizationFilter.html */ GermanNormalization = "german_normalization", - /** Normalizes text in Hindi to remove some differences in spelling variations. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/hi/HindiNormalizationFilter.html */ + /** Normalizes text in Hindi to remove some differences in spelling variations. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/hi\/HindiNormalizationFilter.html */ HindiNormalization = "hindi_normalization", - /** Normalizes the Unicode representation of text in Indian languages. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/in/IndicNormalizationFilter.html */ + /** Normalizes the Unicode representation of text in Indian languages. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/in\/IndicNormalizationFilter.html */ IndicNormalization = "indic_normalization", - /** Emits each incoming token twice, once as keyword and once as non-keyword. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/KeywordRepeatFilter.html */ + /** Emits each incoming token twice, once as keyword and once as non-keyword. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/KeywordRepeatFilter.html */ KeywordRepeat = "keyword_repeat", - /** A high-performance kstem filter for English. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/en/KStemFilter.html */ + /** A high-performance kstem filter for English. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/en\/KStemFilter.html */ KStem = "kstem", - /** Removes words that are too long or too short. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LengthFilter.html */ + /** Removes words that are too long or too short. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LengthFilter.html */ Length = "length", - /** Limits the number of tokens while indexing. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/LimitTokenCountFilter.html */ + /** Limits the number of tokens while indexing. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/LimitTokenCountFilter.html */ Limit = "limit", - /** Normalizes token text to lower case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/LowerCaseFilter.html */ + /** Normalizes token text to lower case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseFilter.html */ Lowercase = "lowercase", - /** Generates n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenFilter.html */ + /** Generates n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenFilter.html */ NGram = "nGram_v2", - /** Applies normalization for Persian. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/fa/PersianNormalizationFilter.html */ + /** Applies normalization for Persian. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/fa\/PersianNormalizationFilter.html */ PersianNormalization = "persian_normalization", - /** Create tokens for phonetic matches. See https://lucene.apache.org/core/4_10_3/analyzers-phonetic/org/apache/lucene/analysis/phonetic/package-tree.html */ + /** Create tokens for phonetic matches. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-phonetic\/org\/apache\/lucene\/analysis\/phonetic\/package-tree.html */ Phonetic = "phonetic", - /** Uses the Porter stemming algorithm to transform the token stream. See http://tartarus.org/~martin/PorterStemmer */ + /** Uses the Porter stemming algorithm to transform the token stream. See http:\//tartarus.org\/~martin\/PorterStemmer */ PorterStem = "porter_stem", - /** Reverses the token string. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/reverse/ReverseStringFilter.html */ + /** Reverses the token string. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/reverse\/ReverseStringFilter.html */ Reverse = "reverse", - /** Normalizes use of the interchangeable Scandinavian characters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianNormalizationFilter.html */ + /** Normalizes use of the interchangeable Scandinavian characters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianNormalizationFilter.html */ ScandinavianNormalization = "scandinavian_normalization", - /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/ScandinavianFoldingFilter.html */ + /** Folds Scandinavian characters åÅäæÄÆ->a and öÖøØ->o. It also discriminates against use of double vowels aa, ae, ao, oe and oo, leaving just the first one. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/ScandinavianFoldingFilter.html */ ScandinavianFoldingNormalization = "scandinavian_folding", - /** Creates combinations of tokens as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/shingle/ShingleFilter.html */ + /** Creates combinations of tokens as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/shingle\/ShingleFilter.html */ Shingle = "shingle", - /** A filter that stems words using a Snowball-generated stemmer. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/snowball/SnowballFilter.html */ + /** A filter that stems words using a Snowball-generated stemmer. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/snowball\/SnowballFilter.html */ Snowball = "snowball", - /** Normalizes the Unicode representation of Sorani text. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ckb/SoraniNormalizationFilter.html */ + /** Normalizes the Unicode representation of Sorani text. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ckb\/SoraniNormalizationFilter.html */ SoraniNormalization = "sorani_normalization", - /** Language specific stemming filter. See https://docs.microsoft.com/rest/api/searchservice/Custom-analyzers-in-Azure-Search#TokenFilters */ + /** Language specific stemming filter. See https:\//docs.microsoft.com\/rest\/api\/searchservice\/Custom-analyzers-in-Azure-Search#TokenFilters */ Stemmer = "stemmer", - /** Removes stop words from a token stream. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/StopFilter.html */ + /** Removes stop words from a token stream. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/StopFilter.html */ Stopwords = "stopwords", - /** Trims leading and trailing whitespace from tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TrimFilter.html */ + /** Trims leading and trailing whitespace from tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TrimFilter.html */ Trim = "trim", - /** Truncates the terms to a specific length. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/TruncateTokenFilter.html */ + /** Truncates the terms to a specific length. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/TruncateTokenFilter.html */ Truncate = "truncate", - /** Filters out tokens with same text as the previous token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/miscellaneous/RemoveDuplicatesTokenFilter.html */ + /** Filters out tokens with same text as the previous token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/miscellaneous\/RemoveDuplicatesTokenFilter.html */ Unique = "unique", - /** Normalizes token text to upper case. See https://lucene.apache.org/core/6_6_1/analyzers-common/org/apache/lucene/analysis/core/UpperCaseFilter.html */ + /** Normalizes token text to upper case. See https:\//lucene.apache.org\/core\/6_6_1\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/UpperCaseFilter.html */ Uppercase = "uppercase", /** Splits words into subwords and performs optional transformations on subword groups. */ - WordDelimiter = "word_delimiter" + WordDelimiter = "word_delimiter", } /** @@ -2909,8 +3012,8 @@ export type TokenFilterName = string; /** Known values of {@link CharFilterName} that the service accepts. */ export enum KnownCharFilterName { - /** A character filter that attempts to strip out HTML constructs. See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/charfilter/HTMLStripCharFilter.html */ - HtmlStrip = "html_strip" + /** A character filter that attempts to strip out HTML constructs. See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/charfilter\/HTMLStripCharFilter.html */ + HtmlStrip = "html_strip", } /** @@ -2924,9 +3027,12 @@ export type CharFilterName = string; /** Known values of {@link VectorSearchAlgorithmMetric} that the service accepts. */ export enum KnownVectorSearchAlgorithmMetric { + /** Cosine */ Cosine = "cosine", + /** Euclidean */ Euclidean = "euclidean", - DotProduct = "dotProduct" + /** DotProduct */ + DotProduct = "dotProduct", } /** @@ -2940,6 +3046,21 @@ export enum KnownVectorSearchAlgorithmMetric { */ export type VectorSearchAlgorithmMetric = string; +/** Known values of {@link VectorSearchCompressionTargetDataType} that the service accepts. */ +export enum KnownVectorSearchCompressionTargetDataType { + /** Int8 */ + Int8 = "int8", +} + +/** + * Defines values for VectorSearchCompressionTargetDataType. \ + * {@link KnownVectorSearchCompressionTargetDataType} can be used interchangeably with VectorSearchCompressionTargetDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **int8** + */ +export type VectorSearchCompressionTargetDataType = string; + /** Known values of {@link KeyPhraseExtractionSkillLanguage} that the service accepts. */ export enum KnownKeyPhraseExtractionSkillLanguage { /** Danish */ @@ -2973,7 +3094,7 @@ export enum KnownKeyPhraseExtractionSkillLanguage { /** Spanish */ Es = "es", /** Swedish */ - Sv = "sv" + Sv = "sv", } /** @@ -3341,7 +3462,7 @@ export enum KnownOcrSkillLanguage { /** Zulu */ Zu = "zu", /** Unknown (All) */ - Unk = "unk" + Unk = "unk", } /** @@ -3531,7 +3652,7 @@ export enum KnownLineEnding { /** Lines are separated by a single line feed ('\n') character. */ LineFeed = "lineFeed", /** Lines are separated by a carriage return and a line feed ('\r\n') character. */ - CarriageReturnLineFeed = "carriageReturnLineFeed" + CarriageReturnLineFeed = "carriageReturnLineFeed", } /** @@ -3651,7 +3772,7 @@ export enum KnownImageAnalysisSkillLanguage { /** Chinese Simplified */ ZhHans = "zh-Hans", /** Chinese Traditional */ - ZhHant = "zh-Hant" + ZhHant = "zh-Hant", } /** @@ -3729,7 +3850,7 @@ export enum KnownVisualFeature { /** Visual features recognized as objects. */ Objects = "objects", /** Tags. */ - Tags = "tags" + Tags = "tags", } /** @@ -3752,7 +3873,7 @@ export enum KnownImageDetail { /** Details recognized as celebrities. */ Celebrities = "celebrities", /** Details recognized as landmarks. */ - Landmarks = "landmarks" + Landmarks = "landmarks", } /** @@ -3780,7 +3901,7 @@ export enum KnownEntityCategory { /** Entities describing a URL. */ Url = "url", /** Entities describing an email address. */ - Email = "email" + Email = "email", } /** @@ -3845,7 +3966,7 @@ export enum KnownEntityRecognitionSkillLanguage { /** Swedish */ Sv = "sv", /** Turkish */ - Tr = "tr" + Tr = "tr", } /** @@ -3910,7 +4031,7 @@ export enum KnownSentimentSkillLanguage { /** Swedish */ Sv = "sv", /** Turkish */ - Tr = "tr" + Tr = "tr", } /** @@ -3941,7 +4062,7 @@ export enum KnownPIIDetectionSkillMaskingMode { /** No masking occurs and the maskedText output will not be returned. */ None = "none", /** Replaces the detected entities with the character given in the maskingCharacter parameter. The character will be repeated to the length of the detected entity so that the offsets will correctly correspond to both the input text as well as the output maskedText. */ - Replace = "replace" + Replace = "replace", } /** @@ -3956,6 +4077,12 @@ export type PIIDetectionSkillMaskingMode = string; /** Known values of {@link SplitSkillLanguage} that the service accepts. */ export enum KnownSplitSkillLanguage { + /** Amharic */ + Am = "am", + /** Bosnian */ + Bs = "bs", + /** Czech */ + Cs = "cs", /** Danish */ Da = "da", /** German */ @@ -3964,16 +4091,58 @@ export enum KnownSplitSkillLanguage { En = "en", /** Spanish */ Es = "es", + /** Estonian */ + Et = "et", /** Finnish */ Fi = "fi", /** French */ Fr = "fr", + /** Hebrew */ + He = "he", + /** Hindi */ + Hi = "hi", + /** Croatian */ + Hr = "hr", + /** Hungarian */ + Hu = "hu", + /** Indonesian */ + Id = "id", + /** Icelandic */ + Is = "is", /** Italian */ It = "it", + /** Japanese */ + Ja = "ja", /** Korean */ Ko = "ko", - /** Portuguese */ - Pt = "pt" + /** Latvian */ + Lv = "lv", + /** Norwegian */ + Nb = "nb", + /** Dutch */ + Nl = "nl", + /** Polish */ + Pl = "pl", + /** Portuguese (Portugal) */ + Pt = "pt", + /** Portuguese (Brazil) */ + PtBr = "pt-br", + /** Russian */ + Ru = "ru", + /** Slovak */ + Sk = "sk", + /** Slovenian */ + Sl = "sl", + /** Serbian */ + Sr = "sr", + /** Swedish */ + Sv = "sv", + /** Turkish */ + Tr = "tr", + /** Urdu */ + Ur = "ur", + /** Chinese (Simplified) */ + Zh = "zh", } /** @@ -3981,15 +4150,39 @@ export enum KnownSplitSkillLanguage { * {@link KnownSplitSkillLanguage} can be used interchangeably with SplitSkillLanguage, * this enum contains the known values that the service supports. * ### Known values supported by the service + * **am**: Amharic \ + * **bs**: Bosnian \ + * **cs**: Czech \ * **da**: Danish \ * **de**: German \ * **en**: English \ * **es**: Spanish \ + * **et**: Estonian \ * **fi**: Finnish \ * **fr**: French \ + * **he**: Hebrew \ + * **hi**: Hindi \ + * **hr**: Croatian \ + * **hu**: Hungarian \ + * **id**: Indonesian \ + * **is**: Icelandic \ * **it**: Italian \ + * **ja**: Japanese \ * **ko**: Korean \ - * **pt**: Portuguese + * **lv**: Latvian \ + * **nb**: Norwegian \ + * **nl**: Dutch \ + * **pl**: Polish \ + * **pt**: Portuguese (Portugal) \ + * **pt-br**: Portuguese (Brazil) \ + * **ru**: Russian \ + * **sk**: Slovak \ + * **sl**: Slovenian \ + * **sr**: Serbian \ + * **sv**: Swedish \ + * **tr**: Turkish \ + * **ur**: Urdu \ + * **zh**: Chinese (Simplified) */ export type SplitSkillLanguage = string; @@ -3998,7 +4191,7 @@ export enum KnownTextSplitMode { /** Split the text into individual pages. */ Pages = "pages", /** Split the text into individual sentences. */ - Sentences = "sentences" + Sentences = "sentences", } /** @@ -4030,7 +4223,7 @@ export enum KnownCustomEntityLookupSkillLanguage { /** Korean */ Ko = "ko", /** Portuguese */ - Pt = "pt" + Pt = "pt", } /** @@ -4195,7 +4388,7 @@ export enum KnownTextTranslationSkillLanguage { /** Malayalam */ Ml = "ml", /** Punjabi */ - Pa = "pa" + Pa = "pa", } /** @@ -4280,32 +4473,32 @@ export type TextTranslationSkillLanguage = string; /** Known values of {@link LexicalTokenizerName} that the service accepts. */ export enum KnownLexicalTokenizerName { - /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/ClassicTokenizer.html */ + /** Grammar-based tokenizer that is suitable for processing most European-language documents. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/ClassicTokenizer.html */ Classic = "classic", - /** Tokenizes the input from an edge into n-grams of the given size(s). See https://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/EdgeNGramTokenizer.html */ + /** Tokenizes the input from an edge into n-grams of the given size(s). See https:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/EdgeNGramTokenizer.html */ EdgeNGram = "edgeNGram", - /** Emits the entire input as a single token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/KeywordTokenizer.html */ + /** Emits the entire input as a single token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/KeywordTokenizer.html */ Keyword = "keyword_v2", - /** Divides text at non-letters. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LetterTokenizer.html */ + /** Divides text at non-letters. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LetterTokenizer.html */ Letter = "letter", - /** Divides text at non-letters and converts them to lower case. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/LowerCaseTokenizer.html */ + /** Divides text at non-letters and converts them to lower case. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/LowerCaseTokenizer.html */ Lowercase = "lowercase", /** Divides text using language-specific rules. */ MicrosoftLanguageTokenizer = "microsoft_language_tokenizer", /** Divides text using language-specific rules and reduces words to their base forms. */ MicrosoftLanguageStemmingTokenizer = "microsoft_language_stemming_tokenizer", - /** Tokenizes the input into n-grams of the given size(s). See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/ngram/NGramTokenizer.html */ + /** Tokenizes the input into n-grams of the given size(s). See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/ngram\/NGramTokenizer.html */ NGram = "nGram", - /** Tokenizer for path-like hierarchies. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/path/PathHierarchyTokenizer.html */ + /** Tokenizer for path-like hierarchies. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/path\/PathHierarchyTokenizer.html */ PathHierarchy = "path_hierarchy_v2", - /** Tokenizer that uses regex pattern matching to construct distinct tokens. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/pattern/PatternTokenizer.html */ + /** Tokenizer that uses regex pattern matching to construct distinct tokens. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/pattern\/PatternTokenizer.html */ Pattern = "pattern", - /** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/StandardTokenizer.html */ + /** Standard Lucene analyzer; Composed of the standard tokenizer, lowercase filter and stop filter. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/StandardTokenizer.html */ Standard = "standard_v2", - /** Tokenizes urls and emails as one token. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/standard/UAX29URLEmailTokenizer.html */ + /** Tokenizes urls and emails as one token. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/standard\/UAX29URLEmailTokenizer.html */ UaxUrlEmail = "uax_url_email", - /** Divides text at whitespace. See http://lucene.apache.org/core/4_10_3/analyzers-common/org/apache/lucene/analysis/core/WhitespaceTokenizer.html */ - Whitespace = "whitespace" + /** Divides text at whitespace. See http:\//lucene.apache.org\/core\/4_10_3\/analyzers-common\/org\/apache\/lucene\/analysis\/core\/WhitespaceTokenizer.html */ + Whitespace = "whitespace", } /** @@ -4346,7 +4539,7 @@ export enum KnownRegexFlags { /** Enables Unicode-aware case folding. */ UnicodeCase = "UNICODE_CASE", /** Enables Unix lines mode. */ - UnixLines = "UNIX_LINES" + UnixLines = "UNIX_LINES", } /** diff --git a/sdk/search/search-documents/src/generated/service/models/mappers.ts b/sdk/search/search-documents/src/generated/service/models/mappers.ts index ec156fac7d8e..3ac093ef6565 100644 --- a/sdk/search/search-documents/src/generated/service/models/mappers.ts +++ b/sdk/search/search-documents/src/generated/service/models/mappers.ts @@ -17,72 +17,72 @@ export const SearchIndexerDataSource: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, credentials: { serializedName: "credentials", type: { name: "Composite", - className: "DataSourceCredentials" - } + className: "DataSourceCredentials", + }, }, container: { serializedName: "container", type: { name: "Composite", - className: "SearchIndexerDataContainer" - } + className: "SearchIndexerDataContainer", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } + className: "SearchIndexerDataIdentity", + }, }, dataChangeDetectionPolicy: { serializedName: "dataChangeDetectionPolicy", type: { name: "Composite", - className: "DataChangeDetectionPolicy" - } + className: "DataChangeDetectionPolicy", + }, }, dataDeletionDetectionPolicy: { serializedName: "dataDeletionDetectionPolicy", type: { name: "Composite", - className: "DataDeletionDetectionPolicy" - } + className: "DataDeletionDetectionPolicy", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } + name: "String", + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } - } - } - } + className: "SearchResourceEncryptionKey", + }, + }, + }, + }, }; export const DataSourceCredentials: coreClient.CompositeMapper = { @@ -93,11 +93,11 @@ export const DataSourceCredentials: coreClient.CompositeMapper = { connectionString: { serializedName: "connectionString", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerDataContainer: coreClient.CompositeMapper = { @@ -109,17 +109,17 @@ export const SearchIndexerDataContainer: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, query: { serializedName: "query", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerDataIdentity: coreClient.CompositeMapper = { @@ -129,18 +129,18 @@ export const SearchIndexerDataIdentity: coreClient.CompositeMapper = { uberParent: "SearchIndexerDataIdentity", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataChangeDetectionPolicy: coreClient.CompositeMapper = { @@ -150,18 +150,18 @@ export const DataChangeDetectionPolicy: coreClient.CompositeMapper = { uberParent: "DataChangeDetectionPolicy", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DataDeletionDetectionPolicy: coreClient.CompositeMapper = { @@ -171,18 +171,18 @@ export const DataDeletionDetectionPolicy: coreClient.CompositeMapper = { uberParent: "DataDeletionDetectionPolicy", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchResourceEncryptionKey: coreClient.CompositeMapper = { @@ -194,82 +194,105 @@ export const SearchResourceEncryptionKey: coreClient.CompositeMapper = { serializedName: "keyVaultKeyName", required: true, type: { - name: "String" - } + name: "String", + }, }, keyVersion: { serializedName: "keyVaultKeyVersion", required: true, type: { - name: "String" - } + name: "String", + }, }, vaultUri: { serializedName: "keyVaultUri", required: true, type: { - name: "String" - } + name: "String", + }, }, accessCredentials: { serializedName: "accessCredentials", type: { name: "Composite", - className: "AzureActiveDirectoryApplicationCredentials" - } + className: "AzureActiveDirectoryApplicationCredentials", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } -}; + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, +}; + +export const AzureActiveDirectoryApplicationCredentials: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureActiveDirectoryApplicationCredentials", + modelProperties: { + applicationId: { + serializedName: "applicationId", + required: true, + type: { + name: "String", + }, + }, + applicationSecret: { + serializedName: "applicationSecret", + type: { + name: "String", + }, + }, + }, + }, + }; -export const AzureActiveDirectoryApplicationCredentials: coreClient.CompositeMapper = { +export const ErrorResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureActiveDirectoryApplicationCredentials", + className: "ErrorResponse", modelProperties: { - applicationId: { - serializedName: "applicationId", - required: true, + error: { + serializedName: "error", type: { - name: "String" - } + name: "Composite", + className: "ErrorDetail", + }, }, - applicationSecret: { - serializedName: "applicationSecret", - type: { - name: "String" - } - } - } - } + }, + }, }; -export const SearchError: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchError", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", - required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String", + }, }, details: { serializedName: "details", @@ -279,13 +302,50 @@ export const SearchError: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchError" - } - } - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const ListDataSourcesResult: coreClient.CompositeMapper = { @@ -302,13 +362,13 @@ export const ListDataSourcesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerDataSource" - } - } - } - } - } - } + className: "SearchIndexerDataSource", + }, + }, + }, + }, + }, + }, }; export const DocumentKeysOrIds: coreClient.CompositeMapper = { @@ -322,10 +382,10 @@ export const DocumentKeysOrIds: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, datasourceDocumentIds: { serializedName: "datasourceDocumentIds", @@ -333,13 +393,13 @@ export const DocumentKeysOrIds: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SearchIndexer: coreClient.CompositeMapper = { @@ -351,48 +411,48 @@ export const SearchIndexer: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, dataSourceName: { serializedName: "dataSourceName", required: true, type: { - name: "String" - } + name: "String", + }, }, skillsetName: { serializedName: "skillsetName", type: { - name: "String" - } + name: "String", + }, }, targetIndexName: { serializedName: "targetIndexName", required: true, type: { - name: "String" - } + name: "String", + }, }, schedule: { serializedName: "schedule", type: { name: "Composite", - className: "IndexingSchedule" - } + className: "IndexingSchedule", + }, }, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "IndexingParameters" - } + className: "IndexingParameters", + }, }, fieldMappings: { serializedName: "fieldMappings", @@ -401,10 +461,10 @@ export const SearchIndexer: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FieldMapping" - } - } - } + className: "FieldMapping", + }, + }, + }, }, outputFieldMappings: { serializedName: "outputFieldMappings", @@ -413,41 +473,41 @@ export const SearchIndexer: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "FieldMapping" - } - } - } + className: "FieldMapping", + }, + }, + }, }, isDisabled: { defaultValue: false, serializedName: "disabled", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } + name: "String", + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } + className: "SearchResourceEncryptionKey", + }, }, cache: { serializedName: "cache", type: { name: "Composite", - className: "SearchIndexerCache" - } - } - } - } + className: "SearchIndexerCache", + }, + }, + }, + }, }; export const IndexingSchedule: coreClient.CompositeMapper = { @@ -459,17 +519,17 @@ export const IndexingSchedule: coreClient.CompositeMapper = { serializedName: "interval", required: true, type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, startTime: { serializedName: "startTime", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; export const IndexingParameters: coreClient.CompositeMapper = { @@ -481,34 +541,34 @@ export const IndexingParameters: coreClient.CompositeMapper = { serializedName: "batchSize", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxFailedItems: { defaultValue: 0, serializedName: "maxFailedItems", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxFailedItemsPerBatch: { defaultValue: 0, serializedName: "maxFailedItemsPerBatch", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, configuration: { serializedName: "configuration", type: { name: "Composite", - className: "IndexingParametersConfiguration" - } - } - } - } + className: "IndexingParametersConfiguration", + }, + }, + }, + }, }; export const IndexingParametersConfiguration: coreClient.CompositeMapper = { @@ -521,113 +581,113 @@ export const IndexingParametersConfiguration: coreClient.CompositeMapper = { defaultValue: "default", serializedName: "parsingMode", type: { - name: "String" - } + name: "String", + }, }, excludedFileNameExtensions: { defaultValue: "", serializedName: "excludedFileNameExtensions", type: { - name: "String" - } + name: "String", + }, }, indexedFileNameExtensions: { defaultValue: "", serializedName: "indexedFileNameExtensions", type: { - name: "String" - } + name: "String", + }, }, failOnUnsupportedContentType: { defaultValue: false, serializedName: "failOnUnsupportedContentType", type: { - name: "Boolean" - } + name: "Boolean", + }, }, failOnUnprocessableDocument: { defaultValue: false, serializedName: "failOnUnprocessableDocument", type: { - name: "Boolean" - } + name: "Boolean", + }, }, indexStorageMetadataOnlyForOversizedDocuments: { defaultValue: false, serializedName: "indexStorageMetadataOnlyForOversizedDocuments", type: { - name: "Boolean" - } + name: "Boolean", + }, }, delimitedTextHeaders: { serializedName: "delimitedTextHeaders", type: { - name: "String" - } + name: "String", + }, }, delimitedTextDelimiter: { serializedName: "delimitedTextDelimiter", type: { - name: "String" - } + name: "String", + }, }, firstLineContainsHeaders: { defaultValue: true, serializedName: "firstLineContainsHeaders", type: { - name: "Boolean" - } + name: "Boolean", + }, }, documentRoot: { serializedName: "documentRoot", type: { - name: "String" - } + name: "String", + }, }, dataToExtract: { defaultValue: "contentAndMetadata", serializedName: "dataToExtract", type: { - name: "String" - } + name: "String", + }, }, imageAction: { defaultValue: "none", serializedName: "imageAction", type: { - name: "String" - } + name: "String", + }, }, allowSkillsetToReadFileData: { defaultValue: false, serializedName: "allowSkillsetToReadFileData", type: { - name: "Boolean" - } + name: "Boolean", + }, }, pdfTextRotationAlgorithm: { defaultValue: "none", serializedName: "pdfTextRotationAlgorithm", type: { - name: "String" - } + name: "String", + }, }, executionEnvironment: { defaultValue: "standard", serializedName: "executionEnvironment", type: { - name: "String" - } + name: "String", + }, }, queryTimeout: { defaultValue: "00:05:00", serializedName: "queryTimeout", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const FieldMapping: coreClient.CompositeMapper = { @@ -639,24 +699,24 @@ export const FieldMapping: coreClient.CompositeMapper = { serializedName: "sourceFieldName", required: true, type: { - name: "String" - } + name: "String", + }, }, targetFieldName: { serializedName: "targetFieldName", type: { - name: "String" - } + name: "String", + }, }, mappingFunction: { serializedName: "mappingFunction", type: { name: "Composite", - className: "FieldMappingFunction" - } - } - } - } + className: "FieldMappingFunction", + }, + }, + }, + }, }; export const FieldMappingFunction: coreClient.CompositeMapper = { @@ -668,19 +728,19 @@ export const FieldMappingFunction: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, parameters: { serializedName: "parameters", nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const SearchIndexerCache: coreClient.CompositeMapper = { @@ -691,25 +751,25 @@ export const SearchIndexerCache: coreClient.CompositeMapper = { storageConnectionString: { serializedName: "storageConnectionString", type: { - name: "String" - } + name: "String", + }, }, enableReprocessing: { serializedName: "enableReprocessing", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; export const ListIndexersResult: coreClient.CompositeMapper = { @@ -726,13 +786,13 @@ export const ListIndexersResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexer" - } - } - } - } - } - } + className: "SearchIndexer", + }, + }, + }, + }, + }, + }, }; export const SearchIndexerStatus: coreClient.CompositeMapper = { @@ -746,15 +806,15 @@ export const SearchIndexerStatus: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["unknown", "error", "running"] - } + allowedValues: ["unknown", "error", "running"], + }, }, lastResult: { serializedName: "lastResult", type: { name: "Composite", - className: "IndexerExecutionResult" - } + className: "IndexerExecutionResult", + }, }, executionHistory: { serializedName: "executionHistory", @@ -765,20 +825,20 @@ export const SearchIndexerStatus: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "IndexerExecutionResult" - } - } - } + className: "IndexerExecutionResult", + }, + }, + }, }, limits: { serializedName: "limits", type: { name: "Composite", - className: "SearchIndexerLimits" - } - } - } - } + className: "SearchIndexerLimits", + }, + }, + }, + }, }; export const IndexerExecutionResult: coreClient.CompositeMapper = { @@ -792,44 +852,44 @@ export const IndexerExecutionResult: coreClient.CompositeMapper = { readOnly: true, type: { name: "Enum", - allowedValues: ["transientFailure", "success", "inProgress", "reset"] - } + allowedValues: ["transientFailure", "success", "inProgress", "reset"], + }, }, statusDetail: { serializedName: "statusDetail", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, currentState: { serializedName: "currentState", type: { name: "Composite", - className: "IndexerState" - } + className: "IndexerState", + }, }, errorMessage: { serializedName: "errorMessage", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startTime: { serializedName: "startTime", readOnly: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, endTime: { serializedName: "endTime", readOnly: true, nullable: true, type: { - name: "DateTime" - } + name: "DateTime", + }, }, errors: { serializedName: "errors", @@ -840,10 +900,10 @@ export const IndexerExecutionResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerError" - } - } - } + className: "SearchIndexerError", + }, + }, + }, }, warnings: { serializedName: "warnings", @@ -854,43 +914,43 @@ export const IndexerExecutionResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerWarning" - } - } - } + className: "SearchIndexerWarning", + }, + }, + }, }, itemCount: { serializedName: "itemsProcessed", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, failedItemCount: { serializedName: "itemsFailed", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, initialTrackingState: { serializedName: "initialTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, finalTrackingState: { serializedName: "finalTrackingState", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const IndexerState: coreClient.CompositeMapper = { @@ -902,36 +962,36 @@ export const IndexerState: coreClient.CompositeMapper = { serializedName: "mode", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, allDocumentsInitialChangeTrackingState: { serializedName: "allDocsInitialChangeTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, allDocumentsFinalChangeTrackingState: { serializedName: "allDocsFinalChangeTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resetDocumentsInitialChangeTrackingState: { serializedName: "resetDocsInitialChangeTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resetDocumentsFinalChangeTrackingState: { serializedName: "resetDocsFinalChangeTrackingState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, resetDocumentKeys: { serializedName: "resetDocumentKeys", @@ -940,10 +1000,10 @@ export const IndexerState: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, resetDatasourceDocumentIds: { serializedName: "resetDatasourceDocumentIds", @@ -952,13 +1012,13 @@ export const IndexerState: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SearchIndexerError: coreClient.CompositeMapper = { @@ -970,48 +1030,48 @@ export const SearchIndexerError: coreClient.CompositeMapper = { serializedName: "key", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, errorMessage: { serializedName: "errorMessage", required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, statusCode: { serializedName: "statusCode", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, documentationLink: { serializedName: "documentationLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerWarning: coreClient.CompositeMapper = { @@ -1023,40 +1083,40 @@ export const SearchIndexerWarning: coreClient.CompositeMapper = { serializedName: "key", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, documentationLink: { serializedName: "documentationLink", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerLimits: coreClient.CompositeMapper = { @@ -1068,25 +1128,25 @@ export const SearchIndexerLimits: coreClient.CompositeMapper = { serializedName: "maxRunTime", readOnly: true, type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, maxDocumentExtractionSize: { serializedName: "maxDocumentExtractionSize", readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, maxDocumentContentCharactersToExtract: { serializedName: "maxDocumentContentCharactersToExtract", readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SearchIndexerSkillset: coreClient.CompositeMapper = { @@ -1098,14 +1158,14 @@ export const SearchIndexerSkillset: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, skills: { serializedName: "skills", @@ -1115,47 +1175,47 @@ export const SearchIndexerSkillset: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerSkill" - } - } - } + className: "SearchIndexerSkill", + }, + }, + }, }, cognitiveServicesAccount: { serializedName: "cognitiveServices", type: { name: "Composite", - className: "CognitiveServicesAccount" - } + className: "CognitiveServicesAccount", + }, }, knowledgeStore: { serializedName: "knowledgeStore", type: { name: "Composite", - className: "SearchIndexerKnowledgeStore" - } + className: "SearchIndexerKnowledgeStore", + }, }, indexProjections: { serializedName: "indexProjections", type: { name: "Composite", - className: "SearchIndexerIndexProjections" - } + className: "SearchIndexerIndexProjections", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } + name: "String", + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } - } - } - } + className: "SearchResourceEncryptionKey", + }, + }, + }, + }, }; export const SearchIndexerSkill: coreClient.CompositeMapper = { @@ -1165,33 +1225,33 @@ export const SearchIndexerSkill: coreClient.CompositeMapper = { uberParent: "SearchIndexerSkill", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, context: { serializedName: "context", type: { - name: "String" - } + name: "String", + }, }, inputs: { serializedName: "inputs", @@ -1201,10 +1261,10 @@ export const SearchIndexerSkill: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InputFieldMappingEntry" - } - } - } + className: "InputFieldMappingEntry", + }, + }, + }, }, outputs: { serializedName: "outputs", @@ -1214,13 +1274,13 @@ export const SearchIndexerSkill: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OutputFieldMappingEntry" - } - } - } - } - } - } + className: "OutputFieldMappingEntry", + }, + }, + }, + }, + }, + }, }; export const InputFieldMappingEntry: coreClient.CompositeMapper = { @@ -1232,20 +1292,20 @@ export const InputFieldMappingEntry: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, source: { serializedName: "source", type: { - name: "String" - } + name: "String", + }, }, sourceContext: { serializedName: "sourceContext", type: { - name: "String" - } + name: "String", + }, }, inputs: { serializedName: "inputs", @@ -1254,13 +1314,13 @@ export const InputFieldMappingEntry: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "InputFieldMappingEntry" - } - } - } - } - } - } + className: "InputFieldMappingEntry", + }, + }, + }, + }, + }, + }, }; export const OutputFieldMappingEntry: coreClient.CompositeMapper = { @@ -1272,17 +1332,17 @@ export const OutputFieldMappingEntry: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, targetName: { serializedName: "targetName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CognitiveServicesAccount: coreClient.CompositeMapper = { @@ -1292,24 +1352,24 @@ export const CognitiveServicesAccount: coreClient.CompositeMapper = { uberParent: "CognitiveServicesAccount", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchIndexerKnowledgeStore: coreClient.CompositeMapper = { @@ -1321,8 +1381,8 @@ export const SearchIndexerKnowledgeStore: coreClient.CompositeMapper = { serializedName: "storageConnectionString", required: true, type: { - name: "String" - } + name: "String", + }, }, projections: { serializedName: "projections", @@ -1332,223 +1392,229 @@ export const SearchIndexerKnowledgeStore: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerKnowledgeStoreProjection" - } - } - } + className: "SearchIndexerKnowledgeStoreProjection", + }, + }, + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } + className: "SearchIndexerDataIdentity", + }, }, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "SearchIndexerKnowledgeStoreParameters" - } - } - } - } -}; + className: "SearchIndexerKnowledgeStoreParameters", + }, + }, + }, + }, +}; + +export const SearchIndexerKnowledgeStoreProjection: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreProjection", + modelProperties: { + tables: { + serializedName: "tables", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreTableProjectionSelector", + }, + }, + }, + }, + objects: { + serializedName: "objects", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "SearchIndexerKnowledgeStoreObjectProjectionSelector", + }, + }, + }, + }, + files: { + serializedName: "files", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreFileProjectionSelector", + }, + }, + }, + }, + }, + }, + }; + +export const SearchIndexerKnowledgeStoreProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreProjectionSelector", + modelProperties: { + referenceKeyName: { + serializedName: "referenceKeyName", + type: { + name: "String", + }, + }, + generatedKeyName: { + serializedName: "generatedKeyName", + type: { + name: "String", + }, + }, + source: { + serializedName: "source", + type: { + name: "String", + }, + }, + sourceContext: { + serializedName: "sourceContext", + type: { + name: "String", + }, + }, + inputs: { + serializedName: "inputs", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InputFieldMappingEntry", + }, + }, + }, + }, + }, + }, + }; + +export const SearchIndexerKnowledgeStoreParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreParameters", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + synthesizeGeneratedKeyName: { + defaultValue: false, + serializedName: "synthesizeGeneratedKeyName", + type: { + name: "Boolean", + }, + }, + }, + }, + }; -export const SearchIndexerKnowledgeStoreProjection: coreClient.CompositeMapper = { +export const SearchIndexerIndexProjections: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SearchIndexerKnowledgeStoreProjection", + className: "SearchIndexerIndexProjections", modelProperties: { - tables: { - serializedName: "tables", + selectors: { + serializedName: "selectors", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SearchIndexerKnowledgeStoreTableProjectionSelector" - } - } - } - }, - objects: { - serializedName: "objects", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreObjectProjectionSelector" - } - } - } - }, - files: { - serializedName: "files", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreFileProjectionSelector" - } - } - } - } - } - } -}; - -export const SearchIndexerKnowledgeStoreProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreProjectionSelector", - modelProperties: { - referenceKeyName: { - serializedName: "referenceKeyName", - type: { - name: "String" - } - }, - generatedKeyName: { - serializedName: "generatedKeyName", - type: { - name: "String" - } - }, - source: { - serializedName: "source", - type: { - name: "String" - } - }, - sourceContext: { - serializedName: "sourceContext", - type: { - name: "String" - } - }, - inputs: { - serializedName: "inputs", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InputFieldMappingEntry" - } - } - } - } - } - } -}; - -export const SearchIndexerKnowledgeStoreParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreParameters", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - synthesizeGeneratedKeyName: { - defaultValue: false, - serializedName: "synthesizeGeneratedKeyName", - type: { - name: "Boolean" - } - } - } - } -}; - -export const SearchIndexerIndexProjections: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerIndexProjections", - modelProperties: { - selectors: { - serializedName: "selectors", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SearchIndexerIndexProjectionSelector" - } - } - } + className: "SearchIndexerIndexProjectionSelector", + }, + }, + }, }, parameters: { serializedName: "parameters", type: { name: "Composite", - className: "SearchIndexerIndexProjectionsParameters" - } - } - } - } -}; - -export const SearchIndexerIndexProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerIndexProjectionSelector", - modelProperties: { - targetIndexName: { - serializedName: "targetIndexName", - required: true, - type: { - name: "String" - } + className: "SearchIndexerIndexProjectionsParameters", + }, }, - parentKeyFieldName: { - serializedName: "parentKeyFieldName", - required: true, - type: { - name: "String" - } + }, + }, +}; + +export const SearchIndexerIndexProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerIndexProjectionSelector", + modelProperties: { + targetIndexName: { + serializedName: "targetIndexName", + required: true, + type: { + name: "String", + }, + }, + parentKeyFieldName: { + serializedName: "parentKeyFieldName", + required: true, + type: { + name: "String", + }, + }, + sourceContext: { + serializedName: "sourceContext", + required: true, + type: { + name: "String", + }, + }, + mappings: { + serializedName: "mappings", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InputFieldMappingEntry", + }, + }, + }, + }, }, - sourceContext: { - serializedName: "sourceContext", - required: true, - type: { - name: "String" - } + }, + }; + +export const SearchIndexerIndexProjectionsParameters: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerIndexProjectionsParameters", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + projectionMode: { + serializedName: "projectionMode", + type: { + name: "String", + }, + }, }, - mappings: { - serializedName: "mappings", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InputFieldMappingEntry" - } - } - } - } - } - } -}; - -export const SearchIndexerIndexProjectionsParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerIndexProjectionsParameters", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - projectionMode: { - serializedName: "projectionMode", - type: { - name: "String" - } - } - } - } -}; + }, + }; export const ListSkillsetsResult: coreClient.CompositeMapper = { type: { @@ -1564,13 +1630,13 @@ export const ListSkillsetsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndexerSkillset" - } - } - } - } - } - } + className: "SearchIndexerSkillset", + }, + }, + }, + }, + }, + }, }; export const SkillNames: coreClient.CompositeMapper = { @@ -1584,13 +1650,13 @@ export const SkillNames: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SynonymMap: coreClient.CompositeMapper = { @@ -1602,39 +1668,39 @@ export const SynonymMap: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, format: { defaultValue: "solr", isConstant: true, serializedName: "format", type: { - name: "String" - } + name: "String", + }, }, synonyms: { serializedName: "synonyms", required: true, type: { - name: "String" - } + name: "String", + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } + className: "SearchResourceEncryptionKey", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListSynonymMapsResult: coreClient.CompositeMapper = { @@ -1651,13 +1717,13 @@ export const ListSynonymMapsResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SynonymMap" - } - } - } - } - } - } + className: "SynonymMap", + }, + }, + }, + }, + }, + }, }; export const SearchIndex: coreClient.CompositeMapper = { @@ -1669,8 +1735,8 @@ export const SearchIndex: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, fields: { serializedName: "fields", @@ -1680,10 +1746,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchField" - } - } - } + className: "SearchField", + }, + }, + }, }, scoringProfiles: { serializedName: "scoringProfiles", @@ -1692,23 +1758,23 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ScoringProfile" - } - } - } + className: "ScoringProfile", + }, + }, + }, }, defaultScoringProfile: { serializedName: "defaultScoringProfile", type: { - name: "String" - } + name: "String", + }, }, corsOptions: { serializedName: "corsOptions", type: { name: "Composite", - className: "CorsOptions" - } + className: "CorsOptions", + }, }, suggesters: { serializedName: "suggesters", @@ -1717,10 +1783,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Suggester" - } - } - } + className: "Suggester", + }, + }, + }, }, analyzers: { serializedName: "analyzers", @@ -1729,10 +1795,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LexicalAnalyzer" - } - } - } + className: "LexicalAnalyzer", + }, + }, + }, }, tokenizers: { serializedName: "tokenizers", @@ -1741,10 +1807,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LexicalTokenizer" - } - } - } + className: "LexicalTokenizer", + }, + }, + }, }, tokenFilters: { serializedName: "tokenFilters", @@ -1753,10 +1819,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TokenFilter" - } - } - } + className: "TokenFilter", + }, + }, + }, }, charFilters: { serializedName: "charFilters", @@ -1765,10 +1831,10 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CharFilter" - } - } - } + className: "CharFilter", + }, + }, + }, }, normalizers: { serializedName: "normalizers", @@ -1777,47 +1843,47 @@ export const SearchIndex: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LexicalNormalizer" - } - } - } + className: "LexicalNormalizer", + }, + }, + }, }, encryptionKey: { serializedName: "encryptionKey", type: { name: "Composite", - className: "SearchResourceEncryptionKey" - } + className: "SearchResourceEncryptionKey", + }, }, similarity: { serializedName: "similarity", type: { name: "Composite", - className: "Similarity" - } + className: "Similarity", + }, }, - semanticSettings: { + semanticSearch: { serializedName: "semantic", type: { name: "Composite", - className: "SemanticSettings" - } + className: "SemanticSearch", + }, }, vectorSearch: { serializedName: "vectorSearch", type: { name: "Composite", - className: "VectorSearch" - } + className: "VectorSearch", + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SearchField: coreClient.CompositeMapper = { @@ -1829,97 +1895,103 @@ export const SearchField: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, key: { serializedName: "key", type: { - name: "Boolean" - } + name: "Boolean", + }, }, retrievable: { serializedName: "retrievable", type: { - name: "Boolean" - } + name: "Boolean", + }, + }, + stored: { + serializedName: "stored", + type: { + name: "Boolean", + }, }, searchable: { serializedName: "searchable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, filterable: { serializedName: "filterable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, sortable: { serializedName: "sortable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, facetable: { serializedName: "facetable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, analyzer: { serializedName: "analyzer", nullable: true, type: { - name: "String" - } + name: "String", + }, }, searchAnalyzer: { serializedName: "searchAnalyzer", nullable: true, type: { - name: "String" - } + name: "String", + }, }, indexAnalyzer: { serializedName: "indexAnalyzer", nullable: true, type: { - name: "String" - } + name: "String", + }, }, normalizer: { serializedName: "normalizer", nullable: true, type: { - name: "String" - } + name: "String", + }, }, vectorSearchDimensions: { constraints: { InclusiveMaximum: 2048, - InclusiveMinimum: 2 + InclusiveMinimum: 2, }, serializedName: "dimensions", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, - vectorSearchProfile: { + vectorSearchProfileName: { serializedName: "vectorSearchProfile", nullable: true, type: { - name: "String" - } + name: "String", + }, }, synonymMaps: { serializedName: "synonymMaps", @@ -1927,10 +1999,10 @@ export const SearchField: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, fields: { serializedName: "fields", @@ -1939,13 +2011,13 @@ export const SearchField: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchField" - } - } - } - } - } - } + className: "SearchField", + }, + }, + }, + }, + }, + }, }; export const ScoringProfile: coreClient.CompositeMapper = { @@ -1957,15 +2029,15 @@ export const ScoringProfile: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, textWeights: { serializedName: "text", type: { name: "Composite", - className: "TextWeights" - } + className: "TextWeights", + }, }, functions: { serializedName: "functions", @@ -1974,10 +2046,10 @@ export const ScoringProfile: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ScoringFunction" - } - } - } + className: "ScoringFunction", + }, + }, + }, }, functionAggregation: { serializedName: "functionAggregation", @@ -1988,12 +2060,12 @@ export const ScoringProfile: coreClient.CompositeMapper = { "average", "minimum", "maximum", - "firstMatching" - ] - } - } - } - } + "firstMatching", + ], + }, + }, + }, + }, }; export const TextWeights: coreClient.CompositeMapper = { @@ -2006,11 +2078,11 @@ export const TextWeights: coreClient.CompositeMapper = { required: true, type: { name: "Dictionary", - value: { type: { name: "Number" } } - } - } - } - } + value: { type: { name: "Number" } }, + }, + }, + }, + }, }; export const ScoringFunction: coreClient.CompositeMapper = { @@ -2020,39 +2092,39 @@ export const ScoringFunction: coreClient.CompositeMapper = { uberParent: "ScoringFunction", polymorphicDiscriminator: { serializedName: "type", - clientName: "type" + clientName: "type", }, modelProperties: { type: { serializedName: "type", required: true, type: { - name: "String" - } + name: "String", + }, }, fieldName: { serializedName: "fieldName", required: true, type: { - name: "String" - } + name: "String", + }, }, boost: { serializedName: "boost", required: true, type: { - name: "Number" - } + name: "Number", + }, }, interpolation: { serializedName: "interpolation", type: { name: "Enum", - allowedValues: ["linear", "constant", "quadratic", "logarithmic"] - } - } - } - } + allowedValues: ["linear", "constant", "quadratic", "logarithmic"], + }, + }, + }, + }, }; export const CorsOptions: coreClient.CompositeMapper = { @@ -2067,20 +2139,20 @@ export const CorsOptions: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, maxAgeInSeconds: { serializedName: "maxAgeInSeconds", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const Suggester: coreClient.CompositeMapper = { @@ -2092,16 +2164,16 @@ export const Suggester: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, searchMode: { defaultValue: "analyzingInfixMatching", isConstant: true, serializedName: "searchMode", type: { - name: "String" - } + name: "String", + }, }, sourceFields: { serializedName: "sourceFields", @@ -2110,13 +2182,13 @@ export const Suggester: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const LexicalAnalyzer: coreClient.CompositeMapper = { @@ -2126,25 +2198,25 @@ export const LexicalAnalyzer: coreClient.CompositeMapper = { uberParent: "LexicalAnalyzer", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LexicalTokenizer: coreClient.CompositeMapper = { @@ -2154,25 +2226,25 @@ export const LexicalTokenizer: coreClient.CompositeMapper = { uberParent: "LexicalTokenizer", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const TokenFilter: coreClient.CompositeMapper = { @@ -2182,25 +2254,25 @@ export const TokenFilter: coreClient.CompositeMapper = { uberParent: "TokenFilter", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CharFilter: coreClient.CompositeMapper = { @@ -2210,25 +2282,25 @@ export const CharFilter: coreClient.CompositeMapper = { uberParent: "CharFilter", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const LexicalNormalizer: coreClient.CompositeMapper = { @@ -2238,25 +2310,25 @@ export const LexicalNormalizer: coreClient.CompositeMapper = { uberParent: "LexicalNormalizer", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const Similarity: coreClient.CompositeMapper = { @@ -2266,30 +2338,30 @@ export const Similarity: coreClient.CompositeMapper = { uberParent: "Similarity", polymorphicDiscriminator: { serializedName: "@odata\\.type", - clientName: "odatatype" + clientName: "odatatype", }, modelProperties: { odatatype: { serializedName: "@odata\\.type", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; -export const SemanticSettings: coreClient.CompositeMapper = { +export const SemanticSearch: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SemanticSettings", + className: "SemanticSearch", modelProperties: { - defaultConfiguration: { + defaultConfigurationName: { serializedName: "defaultConfiguration", type: { - name: "String" - } + name: "String", + }, }, configurations: { serializedName: "configurations", @@ -2298,13 +2370,13 @@ export const SemanticSettings: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SemanticConfiguration" - } - } - } - } - } - } + className: "SemanticConfiguration", + }, + }, + }, + }, + }, + }, }; export const SemanticConfiguration: coreClient.CompositeMapper = { @@ -2316,58 +2388,58 @@ export const SemanticConfiguration: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, prioritizedFields: { serializedName: "prioritizedFields", type: { name: "Composite", - className: "PrioritizedFields" - } - } - } - } + className: "SemanticPrioritizedFields", + }, + }, + }, + }, }; -export const PrioritizedFields: coreClient.CompositeMapper = { +export const SemanticPrioritizedFields: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PrioritizedFields", + className: "SemanticPrioritizedFields", modelProperties: { titleField: { serializedName: "titleField", type: { name: "Composite", - className: "SemanticField" - } + className: "SemanticField", + }, }, - prioritizedContentFields: { + contentFields: { serializedName: "prioritizedContentFields", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SemanticField" - } - } - } + className: "SemanticField", + }, + }, + }, }, - prioritizedKeywordsFields: { + keywordsFields: { serializedName: "prioritizedKeywordsFields", type: { name: "Sequence", element: { type: { name: "Composite", - className: "SemanticField" - } - } - } - } - } - } + className: "SemanticField", + }, + }, + }, + }, + }, + }, }; export const SemanticField: coreClient.CompositeMapper = { @@ -2377,12 +2449,13 @@ export const SemanticField: coreClient.CompositeMapper = { modelProperties: { name: { serializedName: "fieldName", + required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VectorSearch: coreClient.CompositeMapper = { @@ -2397,10 +2470,10 @@ export const VectorSearch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VectorSearchProfile" - } - } - } + className: "VectorSearchProfile", + }, + }, + }, }, algorithms: { serializedName: "algorithms", @@ -2409,10 +2482,10 @@ export const VectorSearch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VectorSearchAlgorithmConfiguration" - } - } - } + className: "VectorSearchAlgorithmConfiguration", + }, + }, + }, }, vectorizers: { serializedName: "vectorizers", @@ -2421,13 +2494,25 @@ export const VectorSearch: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "VectorSearchVectorizer" - } - } - } - } - } - } + className: "VectorSearchVectorizer", + }, + }, + }, + }, + compressions: { + serializedName: "compressions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BaseVectorSearchCompressionConfiguration", + }, + }, + }, + }, + }, + }, }; export const VectorSearchProfile: coreClient.CompositeMapper = { @@ -2439,24 +2524,30 @@ export const VectorSearchProfile: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, - algorithm: { + algorithmConfigurationName: { serializedName: "algorithm", required: true, type: { - name: "String" - } + name: "String", + }, }, vectorizer: { serializedName: "vectorizer", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + compressionConfigurationName: { + serializedName: "compression", + type: { + name: "String", + }, + }, + }, + }, }; export const VectorSearchAlgorithmConfiguration: coreClient.CompositeMapper = { @@ -2466,25 +2557,25 @@ export const VectorSearchAlgorithmConfiguration: coreClient.CompositeMapper = { uberParent: "VectorSearchAlgorithmConfiguration", polymorphicDiscriminator: { serializedName: "kind", - clientName: "kind" + clientName: "kind", }, modelProperties: { name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const VectorSearchVectorizer: coreClient.CompositeMapper = { @@ -2494,27 +2585,70 @@ export const VectorSearchVectorizer: coreClient.CompositeMapper = { uberParent: "VectorSearchVectorizer", polymorphicDiscriminator: { serializedName: "kind", - clientName: "kind" + clientName: "kind", }, modelProperties: { name: { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, kind: { serializedName: "kind", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; +export const BaseVectorSearchCompressionConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "BaseVectorSearchCompressionConfiguration", + uberParent: "BaseVectorSearchCompressionConfiguration", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + kind: { + serializedName: "kind", + required: true, + type: { + name: "String", + }, + }, + rerankWithOriginalVectors: { + defaultValue: true, + serializedName: "rerankWithOriginalVectors", + type: { + name: "Boolean", + }, + }, + defaultOversampling: { + serializedName: "defaultOversampling", + nullable: true, + type: { + name: "Number", + }, + }, + }, + }, + }; + export const ListIndexesResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2529,13 +2663,13 @@ export const ListIndexesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchIndex" - } - } - } - } - } - } + className: "SearchIndex", + }, + }, + }, + }, + }, + }, }; export const GetIndexStatisticsResult: coreClient.CompositeMapper = { @@ -2548,27 +2682,27 @@ export const GetIndexStatisticsResult: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, storageSize: { serializedName: "storageSize", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, vectorIndexSize: { serializedName: "vectorIndexSize", required: true, readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AnalyzeRequest: coreClient.CompositeMapper = { @@ -2580,26 +2714,26 @@ export const AnalyzeRequest: coreClient.CompositeMapper = { serializedName: "text", required: true, type: { - name: "String" - } + name: "String", + }, }, analyzer: { serializedName: "analyzer", type: { - name: "String" - } + name: "String", + }, }, tokenizer: { serializedName: "tokenizer", type: { - name: "String" - } + name: "String", + }, }, normalizer: { serializedName: "normalizer", type: { - name: "String" - } + name: "String", + }, }, tokenFilters: { serializedName: "tokenFilters", @@ -2607,10 +2741,10 @@ export const AnalyzeRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, charFilters: { serializedName: "charFilters", @@ -2618,13 +2752,13 @@ export const AnalyzeRequest: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const AnalyzeResult: coreClient.CompositeMapper = { @@ -2640,13 +2774,13 @@ export const AnalyzeResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AnalyzedTokenInfo" - } - } - } - } - } - } + className: "AnalyzedTokenInfo", + }, + }, + }, + }, + }, + }, }; export const AnalyzedTokenInfo: coreClient.CompositeMapper = { @@ -2659,35 +2793,35 @@ export const AnalyzedTokenInfo: coreClient.CompositeMapper = { required: true, readOnly: true, type: { - name: "String" - } + name: "String", + }, }, startOffset: { serializedName: "startOffset", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, endOffset: { serializedName: "endOffset", required: true, readOnly: true, type: { - name: "Number" - } + name: "Number", + }, }, position: { serializedName: "position", required: true, readOnly: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SearchAlias: coreClient.CompositeMapper = { @@ -2699,8 +2833,8 @@ export const SearchAlias: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, indexes: { serializedName: "indexes", @@ -2709,19 +2843,19 @@ export const SearchAlias: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, etag: { serializedName: "@odata\\.etag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ListAliasesResult: coreClient.CompositeMapper = { @@ -2738,13 +2872,13 @@ export const ListAliasesResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SearchAlias" - } - } - } - } - } - } + className: "SearchAlias", + }, + }, + }, + }, + }, + }, }; export const ServiceStatistics: coreClient.CompositeMapper = { @@ -2756,18 +2890,18 @@ export const ServiceStatistics: coreClient.CompositeMapper = { serializedName: "counters", type: { name: "Composite", - className: "ServiceCounters" - } + className: "ServiceCounters", + }, }, limits: { serializedName: "limits", type: { name: "Composite", - className: "ServiceLimits" - } - } - } - } + className: "ServiceLimits", + }, + }, + }, + }, }; export const ServiceCounters: coreClient.CompositeMapper = { @@ -2779,67 +2913,67 @@ export const ServiceCounters: coreClient.CompositeMapper = { serializedName: "aliasesCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, documentCounter: { serializedName: "documentCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, indexCounter: { serializedName: "indexesCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, indexerCounter: { serializedName: "indexersCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, dataSourceCounter: { serializedName: "dataSourcesCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, storageSizeCounter: { serializedName: "storageSize", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, synonymMapCounter: { serializedName: "synonymMaps", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, skillsetCounter: { serializedName: "skillsetCount", type: { name: "Composite", - className: "ResourceCounter" - } + className: "ResourceCounter", + }, }, vectorIndexSizeCounter: { serializedName: "vectorIndexSize", type: { name: "Composite", - className: "ResourceCounter" - } - } - } - } + className: "ResourceCounter", + }, + }, + }, + }, }; export const ResourceCounter: coreClient.CompositeMapper = { @@ -2851,18 +2985,18 @@ export const ResourceCounter: coreClient.CompositeMapper = { serializedName: "usage", required: true, type: { - name: "Number" - } + name: "Number", + }, }, quota: { serializedName: "quota", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const ServiceLimits: coreClient.CompositeMapper = { @@ -2874,32 +3008,32 @@ export const ServiceLimits: coreClient.CompositeMapper = { serializedName: "maxFieldsPerIndex", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxFieldNestingDepthPerIndex: { serializedName: "maxFieldNestingDepthPerIndex", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxComplexCollectionFieldsPerIndex: { serializedName: "maxComplexCollectionFieldsPerIndex", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maxComplexObjectsInCollectionsPerDocument: { serializedName: "maxComplexObjectsInCollectionsPerDocument", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const HnswParameters: coreClient.CompositeMapper = { @@ -2911,47 +3045,47 @@ export const HnswParameters: coreClient.CompositeMapper = { defaultValue: 4, constraints: { InclusiveMaximum: 10, - InclusiveMinimum: 4 + InclusiveMinimum: 4, }, serializedName: "m", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, efConstruction: { defaultValue: 400, constraints: { InclusiveMaximum: 1000, - InclusiveMinimum: 100 + InclusiveMinimum: 100, }, serializedName: "efConstruction", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, efSearch: { defaultValue: 500, constraints: { InclusiveMaximum: 1000, - InclusiveMinimum: 100 + InclusiveMinimum: 100, }, serializedName: "efSearch", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, metric: { serializedName: "metric", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ExhaustiveKnnParameters: coreClient.CompositeMapper = { @@ -2963,11 +3097,27 @@ export const ExhaustiveKnnParameters: coreClient.CompositeMapper = { serializedName: "metric", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ScalarQuantizationParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScalarQuantizationParameters", + modelProperties: { + quantizedDataType: { + serializedName: "quantizedDataType", + nullable: true, + type: { + name: "String", + }, + }, + }, + }, }; export const AzureOpenAIParameters: coreClient.CompositeMapper = { @@ -2978,78 +3128,78 @@ export const AzureOpenAIParameters: coreClient.CompositeMapper = { resourceUri: { serializedName: "resourceUri", type: { - name: "String" - } + name: "String", + }, }, deploymentId: { serializedName: "deploymentId", type: { - name: "String" - } + name: "String", + }, }, apiKey: { serializedName: "apiKey", type: { - name: "String" - } + name: "String", + }, }, authIdentity: { serializedName: "authIdentity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; -export const CustomVectorizerParameters: coreClient.CompositeMapper = { +export const CustomWebApiParameters: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomVectorizerParameters", + className: "CustomWebApiParameters", modelProperties: { uri: { serializedName: "uri", type: { - name: "String" - } + name: "String", + }, }, httpHeaders: { serializedName: "httpHeaders", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, httpMethod: { serializedName: "httpMethod", type: { - name: "String" - } + name: "String", + }, }, timeout: { serializedName: "timeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, authResourceId: { serializedName: "authResourceId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, authIdentity: { serializedName: "authIdentity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; export const DistanceScoringParameters: coreClient.CompositeMapper = { @@ -3061,18 +3211,18 @@ export const DistanceScoringParameters: coreClient.CompositeMapper = { serializedName: "referencePointParameter", required: true, type: { - name: "String" - } + name: "String", + }, }, boostingDistance: { serializedName: "boostingDistance", required: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const FreshnessScoringParameters: coreClient.CompositeMapper = { @@ -3084,11 +3234,11 @@ export const FreshnessScoringParameters: coreClient.CompositeMapper = { serializedName: "boostingDuration", required: true, type: { - name: "TimeSpan" - } - } - } - } + name: "TimeSpan", + }, + }, + }, + }, }; export const MagnitudeScoringParameters: coreClient.CompositeMapper = { @@ -3100,24 +3250,24 @@ export const MagnitudeScoringParameters: coreClient.CompositeMapper = { serializedName: "boostingRangeStart", required: true, type: { - name: "Number" - } + name: "Number", + }, }, boostingRangeEnd: { serializedName: "boostingRangeEnd", required: true, type: { - name: "Number" - } + name: "Number", + }, }, shouldBoostBeyondRangeByConstant: { serializedName: "constantBoostBeyondRange", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const TagScoringParameters: coreClient.CompositeMapper = { @@ -3129,11 +3279,11 @@ export const TagScoringParameters: coreClient.CompositeMapper = { serializedName: "tagsParameter", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomEntity: coreClient.CompositeMapper = { @@ -3145,78 +3295,78 @@ export const CustomEntity: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", nullable: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", nullable: true, type: { - name: "String" - } + name: "String", + }, }, subtype: { serializedName: "subtype", nullable: true, type: { - name: "String" - } + name: "String", + }, }, id: { serializedName: "id", nullable: true, type: { - name: "String" - } + name: "String", + }, }, caseSensitive: { serializedName: "caseSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, accentSensitive: { serializedName: "accentSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, fuzzyEditDistance: { serializedName: "fuzzyEditDistance", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, defaultCaseSensitive: { serializedName: "defaultCaseSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultAccentSensitive: { serializedName: "defaultAccentSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, defaultFuzzyEditDistance: { serializedName: "defaultFuzzyEditDistance", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, aliases: { serializedName: "aliases", @@ -3226,13 +3376,13 @@ export const CustomEntity: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomEntityAlias" - } - } - } - } - } - } + className: "CustomEntityAlias", + }, + }, + }, + }, + }, + }, }; export const CustomEntityAlias: coreClient.CompositeMapper = { @@ -3244,32 +3394,32 @@ export const CustomEntityAlias: coreClient.CompositeMapper = { serializedName: "text", required: true, type: { - name: "String" - } + name: "String", + }, }, caseSensitive: { serializedName: "caseSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, accentSensitive: { serializedName: "accentSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, fuzzyEditDistance: { serializedName: "fuzzyEditDistance", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SearchIndexerDataNoneIdentity: coreClient.CompositeMapper = { @@ -3278,34 +3428,35 @@ export const SearchIndexerDataNoneIdentity: coreClient.CompositeMapper = { name: "Composite", className: "SearchIndexerDataNoneIdentity", uberParent: "SearchIndexerDataIdentity", - polymorphicDiscriminator: - SearchIndexerDataIdentity.type.polymorphicDiscriminator, - modelProperties: { - ...SearchIndexerDataIdentity.type.modelProperties - } - } -}; - -export const SearchIndexerDataUserAssignedIdentity: coreClient.CompositeMapper = { - serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity", - type: { - name: "Composite", - className: "SearchIndexerDataUserAssignedIdentity", - uberParent: "SearchIndexerDataIdentity", polymorphicDiscriminator: SearchIndexerDataIdentity.type.polymorphicDiscriminator, modelProperties: { ...SearchIndexerDataIdentity.type.modelProperties, - userAssignedIdentity: { - serializedName: "userAssignedIdentity", - required: true, - type: { - name: "String" - } - } - } - } -}; + }, + }, +}; + +export const SearchIndexerDataUserAssignedIdentity: coreClient.CompositeMapper = + { + serializedName: "#Microsoft.Azure.Search.DataUserAssignedIdentity", + type: { + name: "Composite", + className: "SearchIndexerDataUserAssignedIdentity", + uberParent: "SearchIndexerDataIdentity", + polymorphicDiscriminator: + SearchIndexerDataIdentity.type.polymorphicDiscriminator, + modelProperties: { + ...SearchIndexerDataIdentity.type.modelProperties, + userAssignedIdentity: { + serializedName: "userAssignedIdentity", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const HighWaterMarkChangeDetectionPolicy: coreClient.CompositeMapper = { serializedName: "#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy", @@ -3321,11 +3472,11 @@ export const HighWaterMarkChangeDetectionPolicy: coreClient.CompositeMapper = { serializedName: "highWaterMarkColumnName", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SqlIntegratedChangeTrackingPolicy: coreClient.CompositeMapper = { @@ -3337,52 +3488,54 @@ export const SqlIntegratedChangeTrackingPolicy: coreClient.CompositeMapper = { polymorphicDiscriminator: DataChangeDetectionPolicy.type.polymorphicDiscriminator, modelProperties: { - ...DataChangeDetectionPolicy.type.modelProperties - } - } -}; - -export const SoftDeleteColumnDeletionDetectionPolicy: coreClient.CompositeMapper = { - serializedName: - "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy", - type: { - name: "Composite", - className: "SoftDeleteColumnDeletionDetectionPolicy", - uberParent: "DataDeletionDetectionPolicy", - polymorphicDiscriminator: - DataDeletionDetectionPolicy.type.polymorphicDiscriminator, - modelProperties: { - ...DataDeletionDetectionPolicy.type.modelProperties, - softDeleteColumnName: { - serializedName: "softDeleteColumnName", - type: { - name: "String" - } + ...DataChangeDetectionPolicy.type.modelProperties, + }, + }, +}; + +export const SoftDeleteColumnDeletionDetectionPolicy: coreClient.CompositeMapper = + { + serializedName: + "#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy", + type: { + name: "Composite", + className: "SoftDeleteColumnDeletionDetectionPolicy", + uberParent: "DataDeletionDetectionPolicy", + polymorphicDiscriminator: + DataDeletionDetectionPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...DataDeletionDetectionPolicy.type.modelProperties, + softDeleteColumnName: { + serializedName: "softDeleteColumnName", + type: { + name: "String", + }, + }, + softDeleteMarkerValue: { + serializedName: "softDeleteMarkerValue", + type: { + name: "String", + }, + }, }, - softDeleteMarkerValue: { - serializedName: "softDeleteMarkerValue", - type: { - name: "String" - } - } - } - } -}; - -export const NativeBlobSoftDeleteDeletionDetectionPolicy: coreClient.CompositeMapper = { - serializedName: - "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy", - type: { - name: "Composite", - className: "NativeBlobSoftDeleteDeletionDetectionPolicy", - uberParent: "DataDeletionDetectionPolicy", - polymorphicDiscriminator: - DataDeletionDetectionPolicy.type.polymorphicDiscriminator, - modelProperties: { - ...DataDeletionDetectionPolicy.type.modelProperties - } - } -}; + }, + }; + +export const NativeBlobSoftDeleteDeletionDetectionPolicy: coreClient.CompositeMapper = + { + serializedName: + "#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy", + type: { + name: "Composite", + className: "NativeBlobSoftDeleteDeletionDetectionPolicy", + uberParent: "DataDeletionDetectionPolicy", + polymorphicDiscriminator: + DataDeletionDetectionPolicy.type.polymorphicDiscriminator, + modelProperties: { + ...DataDeletionDetectionPolicy.type.modelProperties, + }, + }, + }; export const ConditionalSkill: coreClient.CompositeMapper = { serializedName: "#Microsoft.Skills.Util.ConditionalSkill", @@ -3392,9 +3545,9 @@ export const ConditionalSkill: coreClient.CompositeMapper = { uberParent: "SearchIndexerSkill", polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator, modelProperties: { - ...SearchIndexerSkill.type.modelProperties - } - } + ...SearchIndexerSkill.type.modelProperties, + }, + }, }; export const KeyPhraseExtractionSkill: coreClient.CompositeMapper = { @@ -3409,25 +3562,25 @@ export const KeyPhraseExtractionSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, maxKeyPhraseCount: { serializedName: "maxKeyPhraseCount", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OcrSkill: coreClient.CompositeMapper = { @@ -3442,24 +3595,24 @@ export const OcrSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, shouldDetectOrientation: { defaultValue: false, serializedName: "detectOrientation", type: { - name: "Boolean" - } + name: "Boolean", + }, }, lineEnding: { serializedName: "lineEnding", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ImageAnalysisSkill: coreClient.CompositeMapper = { @@ -3474,8 +3627,8 @@ export const ImageAnalysisSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, visualFeatures: { serializedName: "visualFeatures", @@ -3483,10 +3636,10 @@ export const ImageAnalysisSkill: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, details: { serializedName: "details", @@ -3494,13 +3647,13 @@ export const ImageAnalysisSkill: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const LanguageDetectionSkill: coreClient.CompositeMapper = { @@ -3516,18 +3669,18 @@ export const LanguageDetectionSkill: coreClient.CompositeMapper = { serializedName: "defaultCountryHint", nullable: true, type: { - name: "String" - } + name: "String", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ShaperSkill: coreClient.CompositeMapper = { @@ -3538,9 +3691,9 @@ export const ShaperSkill: coreClient.CompositeMapper = { uberParent: "SearchIndexerSkill", polymorphicDiscriminator: SearchIndexerSkill.type.polymorphicDiscriminator, modelProperties: { - ...SearchIndexerSkill.type.modelProperties - } - } + ...SearchIndexerSkill.type.modelProperties, + }, + }, }; export const MergeSkill: coreClient.CompositeMapper = { @@ -3556,18 +3709,18 @@ export const MergeSkill: coreClient.CompositeMapper = { defaultValue: " ", serializedName: "insertPreTag", type: { - name: "String" - } + name: "String", + }, }, insertPostTag: { defaultValue: " ", serializedName: "insertPostTag", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EntityRecognitionSkill: coreClient.CompositeMapper = { @@ -3585,33 +3738,33 @@ export const EntityRecognitionSkill: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, includeTypelessEntities: { serializedName: "includeTypelessEntities", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, minimumPrecision: { serializedName: "minimumPrecision", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const SentimentSkill: coreClient.CompositeMapper = { @@ -3626,11 +3779,11 @@ export const SentimentSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SentimentSkillV3: coreClient.CompositeMapper = { @@ -3646,25 +3799,25 @@ export const SentimentSkillV3: coreClient.CompositeMapper = { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, includeOpinionMining: { defaultValue: false, serializedName: "includeOpinionMining", type: { - name: "Boolean" - } + name: "Boolean", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EntityLinkingSkill: coreClient.CompositeMapper = { @@ -3680,29 +3833,29 @@ export const EntityLinkingSkill: coreClient.CompositeMapper = { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, minimumPrecision: { constraints: { InclusiveMaximum: 1, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "minimumPrecision", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const EntityRecognitionSkillV3: coreClient.CompositeMapper = { @@ -3720,38 +3873,38 @@ export const EntityRecognitionSkillV3: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, defaultLanguageCode: { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, minimumPrecision: { constraints: { InclusiveMaximum: 1, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "minimumPrecision", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PIIDetectionSkill: coreClient.CompositeMapper = { @@ -3767,63 +3920,63 @@ export const PIIDetectionSkill: coreClient.CompositeMapper = { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, minimumPrecision: { constraints: { InclusiveMaximum: 1, - InclusiveMinimum: 0 + InclusiveMinimum: 0, }, serializedName: "minimumPrecision", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maskingMode: { serializedName: "maskingMode", type: { - name: "String" - } + name: "String", + }, }, maskingCharacter: { constraints: { - MaxLength: 1 + MaxLength: 1, }, serializedName: "maskingCharacter", nullable: true, type: { - name: "String" - } + name: "String", + }, }, modelVersion: { serializedName: "modelVersion", nullable: true, type: { - name: "String" - } + name: "String", + }, }, - piiCategories: { + categories: { serializedName: "piiCategories", type: { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, domain: { serializedName: "domain", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SplitSkill: coreClient.CompositeMapper = { @@ -3838,38 +3991,38 @@ export const SplitSkill: coreClient.CompositeMapper = { defaultLanguageCode: { serializedName: "defaultLanguageCode", type: { - name: "String" - } + name: "String", + }, }, textSplitMode: { serializedName: "textSplitMode", type: { - name: "String" - } + name: "String", + }, }, maxPageLength: { serializedName: "maximumPageLength", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, pageOverlapLength: { serializedName: "pageOverlapLength", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, maximumPagesToTake: { serializedName: "maximumPagesToTake", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const CustomEntityLookupSkill: coreClient.CompositeMapper = { @@ -3885,15 +4038,15 @@ export const CustomEntityLookupSkill: coreClient.CompositeMapper = { serializedName: "defaultLanguageCode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, entitiesDefinitionUri: { serializedName: "entitiesDefinitionUri", nullable: true, type: { - name: "String" - } + name: "String", + }, }, inlineEntitiesDefinition: { serializedName: "inlineEntitiesDefinition", @@ -3903,34 +4056,34 @@ export const CustomEntityLookupSkill: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "CustomEntity" - } - } - } + className: "CustomEntity", + }, + }, + }, }, globalDefaultCaseSensitive: { serializedName: "globalDefaultCaseSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, globalDefaultAccentSensitive: { serializedName: "globalDefaultAccentSensitive", nullable: true, type: { - name: "Boolean" - } + name: "Boolean", + }, }, globalDefaultFuzzyEditDistance: { serializedName: "globalDefaultFuzzyEditDistance", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const TextTranslationSkill: coreClient.CompositeMapper = { @@ -3946,24 +4099,24 @@ export const TextTranslationSkill: coreClient.CompositeMapper = { serializedName: "defaultToLanguageCode", required: true, type: { - name: "String" - } + name: "String", + }, }, defaultFromLanguageCode: { serializedName: "defaultFromLanguageCode", type: { - name: "String" - } + name: "String", + }, }, suggestedFrom: { serializedName: "suggestedFrom", nullable: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const DocumentExtractionSkill: coreClient.CompositeMapper = { @@ -3979,26 +4132,26 @@ export const DocumentExtractionSkill: coreClient.CompositeMapper = { serializedName: "parsingMode", nullable: true, type: { - name: "String" - } + name: "String", + }, }, dataToExtract: { serializedName: "dataToExtract", nullable: true, type: { - name: "String" - } + name: "String", + }, }, configuration: { serializedName: "configuration", nullable: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const WebApiSkill: coreClient.CompositeMapper = { @@ -4014,58 +4167,58 @@ export const WebApiSkill: coreClient.CompositeMapper = { serializedName: "uri", required: true, type: { - name: "String" - } + name: "String", + }, }, httpHeaders: { serializedName: "httpHeaders", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, httpMethod: { serializedName: "httpMethod", type: { - name: "String" - } + name: "String", + }, }, timeout: { serializedName: "timeout", type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, batchSize: { serializedName: "batchSize", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, degreeOfParallelism: { serializedName: "degreeOfParallelism", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, authResourceId: { serializedName: "authResourceId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, authIdentity: { serializedName: "authIdentity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; export const AzureMachineLearningSkill: coreClient.CompositeMapper = { @@ -4081,46 +4234,46 @@ export const AzureMachineLearningSkill: coreClient.CompositeMapper = { serializedName: "uri", nullable: true, type: { - name: "String" - } + name: "String", + }, }, authenticationKey: { serializedName: "key", nullable: true, type: { - name: "String" - } + name: "String", + }, }, resourceId: { serializedName: "resourceId", nullable: true, type: { - name: "String" - } + name: "String", + }, }, timeout: { serializedName: "timeout", nullable: true, type: { - name: "TimeSpan" - } + name: "TimeSpan", + }, }, region: { serializedName: "region", nullable: true, type: { - name: "String" - } + name: "String", + }, }, degreeOfParallelism: { serializedName: "degreeOfParallelism", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AzureOpenAIEmbeddingSkill: coreClient.CompositeMapper = { @@ -4135,30 +4288,30 @@ export const AzureOpenAIEmbeddingSkill: coreClient.CompositeMapper = { resourceUri: { serializedName: "resourceUri", type: { - name: "String" - } + name: "String", + }, }, deploymentId: { serializedName: "deploymentId", type: { - name: "String" - } + name: "String", + }, }, apiKey: { serializedName: "apiKey", type: { - name: "String" - } + name: "String", + }, }, authIdentity: { serializedName: "authIdentity", type: { name: "Composite", - className: "SearchIndexerDataIdentity" - } - } - } - } + className: "SearchIndexerDataIdentity", + }, + }, + }, + }, }; export const DefaultCognitiveServicesAccount: coreClient.CompositeMapper = { @@ -4170,9 +4323,9 @@ export const DefaultCognitiveServicesAccount: coreClient.CompositeMapper = { polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator, modelProperties: { - ...CognitiveServicesAccount.type.modelProperties - } - } + ...CognitiveServicesAccount.type.modelProperties, + }, + }, }; export const CognitiveServicesAccountKey: coreClient.CompositeMapper = { @@ -4184,51 +4337,53 @@ export const CognitiveServicesAccountKey: coreClient.CompositeMapper = { polymorphicDiscriminator: CognitiveServicesAccount.type.polymorphicDiscriminator, modelProperties: { - ...CognitiveServicesAccount.type.modelProperties, - key: { - serializedName: "key", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const SearchIndexerKnowledgeStoreTableProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreTableProjectionSelector", - modelProperties: { - ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties, - tableName: { - serializedName: "tableName", - required: true, - type: { - name: "String" - } - } - } - } -}; - -export const SearchIndexerKnowledgeStoreBlobProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreBlobProjectionSelector", - modelProperties: { - ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties, - storageContainer: { - serializedName: "storageContainer", + ...CognitiveServicesAccount.type.modelProperties, + key: { + serializedName: "key", required: true, type: { - name: "String" - } - } - } - } -}; + name: "String", + }, + }, + }, + }, +}; + +export const SearchIndexerKnowledgeStoreTableProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreTableProjectionSelector", + modelProperties: { + ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties, + tableName: { + serializedName: "tableName", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const SearchIndexerKnowledgeStoreBlobProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreBlobProjectionSelector", + modelProperties: { + ...SearchIndexerKnowledgeStoreProjectionSelector.type.modelProperties, + storageContainer: { + serializedName: "storageContainer", + required: true, + type: { + name: "String", + }, + }, + }, + }, + }; export const DistanceScoringFunction: coreClient.CompositeMapper = { serializedName: "distance", @@ -4243,11 +4398,11 @@ export const DistanceScoringFunction: coreClient.CompositeMapper = { serializedName: "distance", type: { name: "Composite", - className: "DistanceScoringParameters" - } - } - } - } + className: "DistanceScoringParameters", + }, + }, + }, + }, }; export const FreshnessScoringFunction: coreClient.CompositeMapper = { @@ -4263,11 +4418,11 @@ export const FreshnessScoringFunction: coreClient.CompositeMapper = { serializedName: "freshness", type: { name: "Composite", - className: "FreshnessScoringParameters" - } - } - } - } + className: "FreshnessScoringParameters", + }, + }, + }, + }, }; export const MagnitudeScoringFunction: coreClient.CompositeMapper = { @@ -4283,11 +4438,11 @@ export const MagnitudeScoringFunction: coreClient.CompositeMapper = { serializedName: "magnitude", type: { name: "Composite", - className: "MagnitudeScoringParameters" - } - } - } - } + className: "MagnitudeScoringParameters", + }, + }, + }, + }, }; export const TagScoringFunction: coreClient.CompositeMapper = { @@ -4303,11 +4458,11 @@ export const TagScoringFunction: coreClient.CompositeMapper = { serializedName: "tag", type: { name: "Composite", - className: "TagScoringParameters" - } - } - } - } + className: "TagScoringParameters", + }, + }, + }, + }, }; export const CustomAnalyzer: coreClient.CompositeMapper = { @@ -4323,8 +4478,8 @@ export const CustomAnalyzer: coreClient.CompositeMapper = { serializedName: "tokenizer", required: true, type: { - name: "String" - } + name: "String", + }, }, tokenFilters: { serializedName: "tokenFilters", @@ -4332,10 +4487,10 @@ export const CustomAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, charFilters: { serializedName: "charFilters", @@ -4343,13 +4498,13 @@ export const CustomAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PatternAnalyzer: coreClient.CompositeMapper = { @@ -4365,21 +4520,21 @@ export const PatternAnalyzer: coreClient.CompositeMapper = { defaultValue: true, serializedName: "lowercase", type: { - name: "Boolean" - } + name: "Boolean", + }, }, pattern: { defaultValue: "W+", serializedName: "pattern", type: { - name: "String" - } + name: "String", + }, }, flags: { serializedName: "flags", type: { - name: "String" - } + name: "String", + }, }, stopwords: { serializedName: "stopwords", @@ -4387,13 +4542,13 @@ export const PatternAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const LuceneStandardAnalyzer: coreClient.CompositeMapper = { @@ -4408,12 +4563,12 @@ export const LuceneStandardAnalyzer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } + name: "Number", + }, }, stopwords: { serializedName: "stopwords", @@ -4421,13 +4576,13 @@ export const LuceneStandardAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const StopAnalyzer: coreClient.CompositeMapper = { @@ -4445,13 +4600,13 @@ export const StopAnalyzer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ClassicTokenizer: coreClient.CompositeMapper = { @@ -4466,15 +4621,15 @@ export const ClassicTokenizer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const EdgeNGramTokenizer: coreClient.CompositeMapper = { @@ -4489,22 +4644,22 @@ export const EdgeNGramTokenizer: coreClient.CompositeMapper = { minGram: { defaultValue: 1, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxGram", type: { - name: "Number" - } + name: "Number", + }, }, tokenChars: { serializedName: "tokenChars", @@ -4518,14 +4673,14 @@ export const EdgeNGramTokenizer: coreClient.CompositeMapper = { "digit", "whitespace", "punctuation", - "symbol" - ] - } - } - } - } - } - } + "symbol", + ], + }, + }, + }, + }, + }, + }, }; export const KeywordTokenizer: coreClient.CompositeMapper = { @@ -4541,11 +4696,11 @@ export const KeywordTokenizer: coreClient.CompositeMapper = { defaultValue: 256, serializedName: "bufferSize", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const KeywordTokenizerV2: coreClient.CompositeMapper = { @@ -4560,15 +4715,15 @@ export const KeywordTokenizerV2: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 256, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const MicrosoftLanguageTokenizer: coreClient.CompositeMapper = { @@ -4583,19 +4738,19 @@ export const MicrosoftLanguageTokenizer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } + name: "Number", + }, }, isSearchTokenizer: { defaultValue: false, serializedName: "isSearchTokenizer", type: { - name: "Boolean" - } + name: "Boolean", + }, }, language: { serializedName: "language", @@ -4643,12 +4798,12 @@ export const MicrosoftLanguageTokenizer: coreClient.CompositeMapper = { "thai", "ukrainian", "urdu", - "vietnamese" - ] - } - } - } - } + "vietnamese", + ], + }, + }, + }, + }, }; export const MicrosoftLanguageStemmingTokenizer: coreClient.CompositeMapper = { @@ -4663,19 +4818,19 @@ export const MicrosoftLanguageStemmingTokenizer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } + name: "Number", + }, }, isSearchTokenizer: { defaultValue: false, serializedName: "isSearchTokenizer", type: { - name: "Boolean" - } + name: "Boolean", + }, }, language: { serializedName: "language", @@ -4726,12 +4881,12 @@ export const MicrosoftLanguageStemmingTokenizer: coreClient.CompositeMapper = { "telugu", "turkish", "ukrainian", - "urdu" - ] - } - } - } - } + "urdu", + ], + }, + }, + }, + }, }; export const NGramTokenizer: coreClient.CompositeMapper = { @@ -4746,22 +4901,22 @@ export const NGramTokenizer: coreClient.CompositeMapper = { minGram: { defaultValue: 1, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxGram", type: { - name: "Number" - } + name: "Number", + }, }, tokenChars: { serializedName: "tokenChars", @@ -4775,14 +4930,14 @@ export const NGramTokenizer: coreClient.CompositeMapper = { "digit", "whitespace", "punctuation", - "symbol" - ] - } - } - } - } - } - } + "symbol", + ], + }, + }, + }, + }, + }, + }, }; export const PathHierarchyTokenizerV2: coreClient.CompositeMapper = { @@ -4798,42 +4953,42 @@ export const PathHierarchyTokenizerV2: coreClient.CompositeMapper = { defaultValue: "/", serializedName: "delimiter", type: { - name: "String" - } + name: "String", + }, }, replacement: { defaultValue: "/", serializedName: "replacement", type: { - name: "String" - } + name: "String", + }, }, maxTokenLength: { defaultValue: 300, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } + name: "Number", + }, }, reverseTokenOrder: { defaultValue: false, serializedName: "reverse", type: { - name: "Boolean" - } + name: "Boolean", + }, }, numberOfTokensToSkip: { defaultValue: 0, serializedName: "skip", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PatternTokenizer: coreClient.CompositeMapper = { @@ -4849,24 +5004,24 @@ export const PatternTokenizer: coreClient.CompositeMapper = { defaultValue: "W+", serializedName: "pattern", type: { - name: "String" - } + name: "String", + }, }, flags: { serializedName: "flags", type: { - name: "String" - } + name: "String", + }, }, group: { defaultValue: -1, serializedName: "group", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const LuceneStandardTokenizer: coreClient.CompositeMapper = { @@ -4882,11 +5037,11 @@ export const LuceneStandardTokenizer: coreClient.CompositeMapper = { defaultValue: 255, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const LuceneStandardTokenizerV2: coreClient.CompositeMapper = { @@ -4901,15 +5056,15 @@ export const LuceneStandardTokenizerV2: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const UaxUrlEmailTokenizer: coreClient.CompositeMapper = { @@ -4924,15 +5079,15 @@ export const UaxUrlEmailTokenizer: coreClient.CompositeMapper = { maxTokenLength: { defaultValue: 255, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxTokenLength", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const AsciiFoldingTokenFilter: coreClient.CompositeMapper = { @@ -4948,11 +5103,11 @@ export const AsciiFoldingTokenFilter: coreClient.CompositeMapper = { defaultValue: false, serializedName: "preserveOriginal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const CjkBigramTokenFilter: coreClient.CompositeMapper = { @@ -4971,20 +5126,20 @@ export const CjkBigramTokenFilter: coreClient.CompositeMapper = { element: { type: { name: "Enum", - allowedValues: ["han", "hiragana", "katakana", "hangul"] - } - } - } + allowedValues: ["han", "hiragana", "katakana", "hangul"], + }, + }, + }, }, outputUnigrams: { defaultValue: false, serializedName: "outputUnigrams", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const CommonGramTokenFilter: coreClient.CompositeMapper = { @@ -5003,27 +5158,27 @@ export const CommonGramTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ignoreCase: { defaultValue: false, serializedName: "ignoreCase", type: { - name: "Boolean" - } + name: "Boolean", + }, }, useQueryMode: { defaultValue: false, serializedName: "queryMode", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const DictionaryDecompounderTokenFilter: coreClient.CompositeMapper = { @@ -5042,50 +5197,50 @@ export const DictionaryDecompounderTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, minWordSize: { defaultValue: 5, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minWordSize", type: { - name: "Number" - } + name: "Number", + }, }, minSubwordSize: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minSubwordSize", type: { - name: "Number" - } + name: "Number", + }, }, maxSubwordSize: { defaultValue: 15, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxSubwordSize", type: { - name: "Number" - } + name: "Number", + }, }, onlyLongestMatch: { defaultValue: false, serializedName: "onlyLongestMatch", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const EdgeNGramTokenFilter: coreClient.CompositeMapper = { @@ -5101,25 +5256,25 @@ export const EdgeNGramTokenFilter: coreClient.CompositeMapper = { defaultValue: 1, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, serializedName: "maxGram", type: { - name: "Number" - } + name: "Number", + }, }, side: { serializedName: "side", type: { name: "Enum", - allowedValues: ["front", "back"] - } - } - } - } + allowedValues: ["front", "back"], + }, + }, + }, + }, }; export const EdgeNGramTokenFilterV2: coreClient.CompositeMapper = { @@ -5134,32 +5289,32 @@ export const EdgeNGramTokenFilterV2: coreClient.CompositeMapper = { minGram: { defaultValue: 1, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxGram", type: { - name: "Number" - } + name: "Number", + }, }, side: { serializedName: "side", type: { name: "Enum", - allowedValues: ["front", "back"] - } - } - } - } + allowedValues: ["front", "back"], + }, + }, + }, + }, }; export const ElisionTokenFilter: coreClient.CompositeMapper = { @@ -5177,13 +5332,13 @@ export const ElisionTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const KeepTokenFilter: coreClient.CompositeMapper = { @@ -5202,20 +5357,20 @@ export const KeepTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, lowerCaseKeepWords: { defaultValue: false, serializedName: "keepWordsCase", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const KeywordMarkerTokenFilter: coreClient.CompositeMapper = { @@ -5234,20 +5389,20 @@ export const KeywordMarkerTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ignoreCase: { defaultValue: false, serializedName: "ignoreCase", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const LengthTokenFilter: coreClient.CompositeMapper = { @@ -5262,25 +5417,25 @@ export const LengthTokenFilter: coreClient.CompositeMapper = { minLength: { defaultValue: 0, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "min", type: { - name: "Number" - } + name: "Number", + }, }, maxLength: { defaultValue: 300, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "max", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const LimitTokenFilter: coreClient.CompositeMapper = { @@ -5296,18 +5451,18 @@ export const LimitTokenFilter: coreClient.CompositeMapper = { defaultValue: 1, serializedName: "maxTokenCount", type: { - name: "Number" - } + name: "Number", + }, }, consumeAllTokens: { defaultValue: false, serializedName: "consumeAllTokens", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const NGramTokenFilter: coreClient.CompositeMapper = { @@ -5323,18 +5478,18 @@ export const NGramTokenFilter: coreClient.CompositeMapper = { defaultValue: 1, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, serializedName: "maxGram", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const NGramTokenFilterV2: coreClient.CompositeMapper = { @@ -5349,25 +5504,25 @@ export const NGramTokenFilterV2: coreClient.CompositeMapper = { minGram: { defaultValue: 1, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "minGram", type: { - name: "Number" - } + name: "Number", + }, }, maxGram: { defaultValue: 2, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "maxGram", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const PatternCaptureTokenFilter: coreClient.CompositeMapper = { @@ -5386,20 +5541,20 @@ export const PatternCaptureTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, preserveOriginal: { defaultValue: true, serializedName: "preserveOriginal", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const PatternReplaceTokenFilter: coreClient.CompositeMapper = { @@ -5415,18 +5570,18 @@ export const PatternReplaceTokenFilter: coreClient.CompositeMapper = { serializedName: "pattern", required: true, type: { - name: "String" - } + name: "String", + }, }, replacement: { serializedName: "replacement", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PhoneticTokenFilter: coreClient.CompositeMapper = { @@ -5453,19 +5608,19 @@ export const PhoneticTokenFilter: coreClient.CompositeMapper = { "nysiis", "koelnerPhonetik", "haasePhonetik", - "beiderMorse" - ] - } + "beiderMorse", + ], + }, }, replaceOriginalTokens: { defaultValue: true, serializedName: "replace", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const ShingleTokenFilter: coreClient.CompositeMapper = { @@ -5480,53 +5635,53 @@ export const ShingleTokenFilter: coreClient.CompositeMapper = { maxShingleSize: { defaultValue: 2, constraints: { - InclusiveMinimum: 2 + InclusiveMinimum: 2, }, serializedName: "maxShingleSize", type: { - name: "Number" - } + name: "Number", + }, }, minShingleSize: { defaultValue: 2, constraints: { - InclusiveMinimum: 2 + InclusiveMinimum: 2, }, serializedName: "minShingleSize", type: { - name: "Number" - } + name: "Number", + }, }, outputUnigrams: { defaultValue: true, serializedName: "outputUnigrams", type: { - name: "Boolean" - } + name: "Boolean", + }, }, outputUnigramsIfNoShingles: { defaultValue: false, serializedName: "outputUnigramsIfNoShingles", type: { - name: "Boolean" - } + name: "Boolean", + }, }, tokenSeparator: { defaultValue: " ", serializedName: "tokenSeparator", type: { - name: "String" - } + name: "String", + }, }, filterToken: { defaultValue: "_", serializedName: "filterToken", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const SnowballTokenFilter: coreClient.CompositeMapper = { @@ -5565,12 +5720,12 @@ export const SnowballTokenFilter: coreClient.CompositeMapper = { "russian", "spanish", "swedish", - "turkish" - ] - } - } - } - } + "turkish", + ], + }, + }, + }, + }, }; export const StemmerTokenFilter: coreClient.CompositeMapper = { @@ -5641,12 +5796,12 @@ export const StemmerTokenFilter: coreClient.CompositeMapper = { "lightSpanish", "swedish", "lightSwedish", - "turkish" - ] - } - } - } - } + "turkish", + ], + }, + }, + }, + }, }; export const StemmerOverrideTokenFilter: coreClient.CompositeMapper = { @@ -5665,13 +5820,13 @@ export const StemmerOverrideTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const StopwordsTokenFilter: coreClient.CompositeMapper = { @@ -5689,10 +5844,10 @@ export const StopwordsTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, stopwordsList: { serializedName: "stopwordsList", @@ -5729,26 +5884,26 @@ export const StopwordsTokenFilter: coreClient.CompositeMapper = { "spanish", "swedish", "thai", - "turkish" - ] - } + "turkish", + ], + }, }, ignoreCase: { defaultValue: false, serializedName: "ignoreCase", type: { - name: "Boolean" - } + name: "Boolean", + }, }, removeTrailingStopWords: { defaultValue: true, serializedName: "removeTrailing", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const SynonymTokenFilter: coreClient.CompositeMapper = { @@ -5767,27 +5922,27 @@ export const SynonymTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, ignoreCase: { defaultValue: false, serializedName: "ignoreCase", type: { - name: "Boolean" - } + name: "Boolean", + }, }, expand: { defaultValue: true, serializedName: "expand", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const TruncateTokenFilter: coreClient.CompositeMapper = { @@ -5802,15 +5957,15 @@ export const TruncateTokenFilter: coreClient.CompositeMapper = { length: { defaultValue: 300, constraints: { - InclusiveMaximum: 300 + InclusiveMaximum: 300, }, serializedName: "length", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; export const UniqueTokenFilter: coreClient.CompositeMapper = { @@ -5826,11 +5981,11 @@ export const UniqueTokenFilter: coreClient.CompositeMapper = { defaultValue: false, serializedName: "onlyOnSamePosition", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const WordDelimiterTokenFilter: coreClient.CompositeMapper = { @@ -5846,64 +6001,64 @@ export const WordDelimiterTokenFilter: coreClient.CompositeMapper = { defaultValue: true, serializedName: "generateWordParts", type: { - name: "Boolean" - } + name: "Boolean", + }, }, generateNumberParts: { defaultValue: true, serializedName: "generateNumberParts", type: { - name: "Boolean" - } + name: "Boolean", + }, }, catenateWords: { defaultValue: false, serializedName: "catenateWords", type: { - name: "Boolean" - } + name: "Boolean", + }, }, catenateNumbers: { defaultValue: false, serializedName: "catenateNumbers", type: { - name: "Boolean" - } + name: "Boolean", + }, }, catenateAll: { defaultValue: false, serializedName: "catenateAll", type: { - name: "Boolean" - } + name: "Boolean", + }, }, splitOnCaseChange: { defaultValue: true, serializedName: "splitOnCaseChange", type: { - name: "Boolean" - } + name: "Boolean", + }, }, preserveOriginal: { defaultValue: false, serializedName: "preserveOriginal", type: { - name: "Boolean" - } + name: "Boolean", + }, }, splitOnNumerics: { defaultValue: true, serializedName: "splitOnNumerics", type: { - name: "Boolean" - } + name: "Boolean", + }, }, stemEnglishPossessive: { defaultValue: true, serializedName: "stemEnglishPossessive", type: { - name: "Boolean" - } + name: "Boolean", + }, }, protectedWords: { serializedName: "protectedWords", @@ -5911,13 +6066,13 @@ export const WordDelimiterTokenFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const MappingCharFilter: coreClient.CompositeMapper = { @@ -5936,13 +6091,13 @@ export const MappingCharFilter: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const PatternReplaceCharFilter: coreClient.CompositeMapper = { @@ -5958,18 +6113,18 @@ export const PatternReplaceCharFilter: coreClient.CompositeMapper = { serializedName: "pattern", required: true, type: { - name: "String" - } + name: "String", + }, }, replacement: { serializedName: "replacement", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CustomNormalizer: coreClient.CompositeMapper = { @@ -5987,10 +6142,10 @@ export const CustomNormalizer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, charFilters: { serializedName: "charFilters", @@ -5998,13 +6153,13 @@ export const CustomNormalizer: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const ClassicSimilarity: coreClient.CompositeMapper = { @@ -6015,9 +6170,9 @@ export const ClassicSimilarity: coreClient.CompositeMapper = { uberParent: "Similarity", polymorphicDiscriminator: Similarity.type.polymorphicDiscriminator, modelProperties: { - ...Similarity.type.modelProperties - } - } + ...Similarity.type.modelProperties, + }, + }, }; export const BM25Similarity: coreClient.CompositeMapper = { @@ -6033,25 +6188,25 @@ export const BM25Similarity: coreClient.CompositeMapper = { serializedName: "k1", nullable: true, type: { - name: "Number" - } + name: "Number", + }, }, b: { serializedName: "b", nullable: true, type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + }, + }, }; -export const HnswVectorSearchAlgorithmConfiguration: coreClient.CompositeMapper = { +export const HnswAlgorithmConfiguration: coreClient.CompositeMapper = { serializedName: "hnsw", type: { name: "Composite", - className: "HnswVectorSearchAlgorithmConfiguration", + className: "HnswAlgorithmConfiguration", uberParent: "VectorSearchAlgorithmConfiguration", polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator, @@ -6061,18 +6216,18 @@ export const HnswVectorSearchAlgorithmConfiguration: coreClient.CompositeMapper serializedName: "hnswParameters", type: { name: "Composite", - className: "HnswParameters" - } - } - } - } + className: "HnswParameters", + }, + }, + }, + }, }; -export const ExhaustiveKnnVectorSearchAlgorithmConfiguration: coreClient.CompositeMapper = { +export const ExhaustiveKnnAlgorithmConfiguration: coreClient.CompositeMapper = { serializedName: "exhaustiveKnn", type: { name: "Composite", - className: "ExhaustiveKnnVectorSearchAlgorithmConfiguration", + className: "ExhaustiveKnnAlgorithmConfiguration", uberParent: "VectorSearchAlgorithmConfiguration", polymorphicDiscriminator: VectorSearchAlgorithmConfiguration.type.polymorphicDiscriminator, @@ -6082,11 +6237,11 @@ export const ExhaustiveKnnVectorSearchAlgorithmConfiguration: coreClient.Composi serializedName: "exhaustiveKnnParameters", type: { name: "Composite", - className: "ExhaustiveKnnParameters" - } - } - } - } + className: "ExhaustiveKnnParameters", + }, + }, + }, + }, }; export const AzureOpenAIVectorizer: coreClient.CompositeMapper = { @@ -6103,11 +6258,11 @@ export const AzureOpenAIVectorizer: coreClient.CompositeMapper = { serializedName: "azureOpenAIParameters", type: { name: "Composite", - className: "AzureOpenAIParameters" - } - } - } - } + className: "AzureOpenAIParameters", + }, + }, + }, + }, }; export const CustomVectorizer: coreClient.CompositeMapper = { @@ -6120,36 +6275,62 @@ export const CustomVectorizer: coreClient.CompositeMapper = { VectorSearchVectorizer.type.polymorphicDiscriminator, modelProperties: { ...VectorSearchVectorizer.type.modelProperties, - customVectorizerParameters: { - serializedName: "customVectorizerParameters", + customWebApiParameters: { + serializedName: "customWebApiParameters", type: { name: "Composite", - className: "CustomVectorizerParameters" - } - } - } - } -}; + className: "CustomWebApiParameters", + }, + }, + }, + }, +}; + +export const ScalarQuantizationCompressionConfiguration: coreClient.CompositeMapper = + { + serializedName: "scalarQuantization", + type: { + name: "Composite", + className: "ScalarQuantizationCompressionConfiguration", + uberParent: "BaseVectorSearchCompressionConfiguration", + polymorphicDiscriminator: + BaseVectorSearchCompressionConfiguration.type.polymorphicDiscriminator, + modelProperties: { + ...BaseVectorSearchCompressionConfiguration.type.modelProperties, + parameters: { + serializedName: "scalarQuantizationParameters", + type: { + name: "Composite", + className: "ScalarQuantizationParameters", + }, + }, + }, + }, + }; -export const SearchIndexerKnowledgeStoreObjectProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreObjectProjectionSelector", - modelProperties: { - ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties - } - } -}; +export const SearchIndexerKnowledgeStoreObjectProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreObjectProjectionSelector", + modelProperties: { + ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type + .modelProperties, + }, + }, + }; -export const SearchIndexerKnowledgeStoreFileProjectionSelector: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SearchIndexerKnowledgeStoreFileProjectionSelector", - modelProperties: { - ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type.modelProperties - } - } -}; +export const SearchIndexerKnowledgeStoreFileProjectionSelector: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SearchIndexerKnowledgeStoreFileProjectionSelector", + modelProperties: { + ...SearchIndexerKnowledgeStoreBlobProjectionSelector.type + .modelProperties, + }, + }, + }; export let discriminators = { SearchIndexerDataIdentity: SearchIndexerDataIdentity, @@ -6166,86 +6347,139 @@ export let discriminators = { Similarity: Similarity, VectorSearchAlgorithmConfiguration: VectorSearchAlgorithmConfiguration, VectorSearchVectorizer: VectorSearchVectorizer, - "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": SearchIndexerDataNoneIdentity, - "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": SearchIndexerDataUserAssignedIdentity, - "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": HighWaterMarkChangeDetectionPolicy, - "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": SqlIntegratedChangeTrackingPolicy, - "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": SoftDeleteColumnDeletionDetectionPolicy, - "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": NativeBlobSoftDeleteDeletionDetectionPolicy, - "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": ConditionalSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": KeyPhraseExtractionSkill, + BaseVectorSearchCompressionConfiguration: + BaseVectorSearchCompressionConfiguration, + "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataNoneIdentity": + SearchIndexerDataNoneIdentity, + "SearchIndexerDataIdentity.#Microsoft.Azure.Search.DataUserAssignedIdentity": + SearchIndexerDataUserAssignedIdentity, + "DataChangeDetectionPolicy.#Microsoft.Azure.Search.HighWaterMarkChangeDetectionPolicy": + HighWaterMarkChangeDetectionPolicy, + "DataChangeDetectionPolicy.#Microsoft.Azure.Search.SqlIntegratedChangeTrackingPolicy": + SqlIntegratedChangeTrackingPolicy, + "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.SoftDeleteColumnDeletionDetectionPolicy": + SoftDeleteColumnDeletionDetectionPolicy, + "DataDeletionDetectionPolicy.#Microsoft.Azure.Search.NativeBlobSoftDeleteDeletionDetectionPolicy": + NativeBlobSoftDeleteDeletionDetectionPolicy, + "SearchIndexerSkill.#Microsoft.Skills.Util.ConditionalSkill": + ConditionalSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.KeyPhraseExtractionSkill": + KeyPhraseExtractionSkill, "SearchIndexerSkill.#Microsoft.Skills.Vision.OcrSkill": OcrSkill, - "SearchIndexerSkill.#Microsoft.Skills.Vision.ImageAnalysisSkill": ImageAnalysisSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.LanguageDetectionSkill": LanguageDetectionSkill, + "SearchIndexerSkill.#Microsoft.Skills.Vision.ImageAnalysisSkill": + ImageAnalysisSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.LanguageDetectionSkill": + LanguageDetectionSkill, "SearchIndexerSkill.#Microsoft.Skills.Util.ShaperSkill": ShaperSkill, "SearchIndexerSkill.#Microsoft.Skills.Text.MergeSkill": MergeSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.EntityRecognitionSkill": EntityRecognitionSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.EntityRecognitionSkill": + EntityRecognitionSkill, "SearchIndexerSkill.#Microsoft.Skills.Text.SentimentSkill": SentimentSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.V3.SentimentSkill": SentimentSkillV3, - "SearchIndexerSkill.#Microsoft.Skills.Text.V3.EntityLinkingSkill": EntityLinkingSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.V3.EntityRecognitionSkill": EntityRecognitionSkillV3, - "SearchIndexerSkill.#Microsoft.Skills.Text.PIIDetectionSkill": PIIDetectionSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.V3.SentimentSkill": + SentimentSkillV3, + "SearchIndexerSkill.#Microsoft.Skills.Text.V3.EntityLinkingSkill": + EntityLinkingSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.V3.EntityRecognitionSkill": + EntityRecognitionSkillV3, + "SearchIndexerSkill.#Microsoft.Skills.Text.PIIDetectionSkill": + PIIDetectionSkill, "SearchIndexerSkill.#Microsoft.Skills.Text.SplitSkill": SplitSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.CustomEntityLookupSkill": CustomEntityLookupSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": TextTranslationSkill, - "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": DocumentExtractionSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.CustomEntityLookupSkill": + CustomEntityLookupSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.TranslationSkill": + TextTranslationSkill, + "SearchIndexerSkill.#Microsoft.Skills.Util.DocumentExtractionSkill": + DocumentExtractionSkill, "SearchIndexerSkill.#Microsoft.Skills.Custom.WebApiSkill": WebApiSkill, - "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": AzureMachineLearningSkill, - "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": AzureOpenAIEmbeddingSkill, - "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": DefaultCognitiveServicesAccount, - "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": CognitiveServicesAccountKey, + "SearchIndexerSkill.#Microsoft.Skills.Custom.AmlSkill": + AzureMachineLearningSkill, + "SearchIndexerSkill.#Microsoft.Skills.Text.AzureOpenAIEmbeddingSkill": + AzureOpenAIEmbeddingSkill, + "CognitiveServicesAccount.#Microsoft.Azure.Search.DefaultCognitiveServices": + DefaultCognitiveServicesAccount, + "CognitiveServicesAccount.#Microsoft.Azure.Search.CognitiveServicesByKey": + CognitiveServicesAccountKey, "ScoringFunction.distance": DistanceScoringFunction, "ScoringFunction.freshness": FreshnessScoringFunction, "ScoringFunction.magnitude": MagnitudeScoringFunction, "ScoringFunction.tag": TagScoringFunction, "LexicalAnalyzer.#Microsoft.Azure.Search.CustomAnalyzer": CustomAnalyzer, "LexicalAnalyzer.#Microsoft.Azure.Search.PatternAnalyzer": PatternAnalyzer, - "LexicalAnalyzer.#Microsoft.Azure.Search.StandardAnalyzer": LuceneStandardAnalyzer, + "LexicalAnalyzer.#Microsoft.Azure.Search.StandardAnalyzer": + LuceneStandardAnalyzer, "LexicalAnalyzer.#Microsoft.Azure.Search.StopAnalyzer": StopAnalyzer, "LexicalTokenizer.#Microsoft.Azure.Search.ClassicTokenizer": ClassicTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.EdgeNGramTokenizer": EdgeNGramTokenizer, + "LexicalTokenizer.#Microsoft.Azure.Search.EdgeNGramTokenizer": + EdgeNGramTokenizer, "LexicalTokenizer.#Microsoft.Azure.Search.KeywordTokenizer": KeywordTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.KeywordTokenizerV2": KeywordTokenizerV2, - "LexicalTokenizer.#Microsoft.Azure.Search.MicrosoftLanguageTokenizer": MicrosoftLanguageTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer": MicrosoftLanguageStemmingTokenizer, + "LexicalTokenizer.#Microsoft.Azure.Search.KeywordTokenizerV2": + KeywordTokenizerV2, + "LexicalTokenizer.#Microsoft.Azure.Search.MicrosoftLanguageTokenizer": + MicrosoftLanguageTokenizer, + "LexicalTokenizer.#Microsoft.Azure.Search.MicrosoftLanguageStemmingTokenizer": + MicrosoftLanguageStemmingTokenizer, "LexicalTokenizer.#Microsoft.Azure.Search.NGramTokenizer": NGramTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.PathHierarchyTokenizerV2": PathHierarchyTokenizerV2, + "LexicalTokenizer.#Microsoft.Azure.Search.PathHierarchyTokenizerV2": + PathHierarchyTokenizerV2, "LexicalTokenizer.#Microsoft.Azure.Search.PatternTokenizer": PatternTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.StandardTokenizer": LuceneStandardTokenizer, - "LexicalTokenizer.#Microsoft.Azure.Search.StandardTokenizerV2": LuceneStandardTokenizerV2, - "LexicalTokenizer.#Microsoft.Azure.Search.UaxUrlEmailTokenizer": UaxUrlEmailTokenizer, - "TokenFilter.#Microsoft.Azure.Search.AsciiFoldingTokenFilter": AsciiFoldingTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.CjkBigramTokenFilter": CjkBigramTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.CommonGramTokenFilter": CommonGramTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter": DictionaryDecompounderTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.EdgeNGramTokenFilter": EdgeNGramTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.EdgeNGramTokenFilterV2": EdgeNGramTokenFilterV2, + "LexicalTokenizer.#Microsoft.Azure.Search.StandardTokenizer": + LuceneStandardTokenizer, + "LexicalTokenizer.#Microsoft.Azure.Search.StandardTokenizerV2": + LuceneStandardTokenizerV2, + "LexicalTokenizer.#Microsoft.Azure.Search.UaxUrlEmailTokenizer": + UaxUrlEmailTokenizer, + "TokenFilter.#Microsoft.Azure.Search.AsciiFoldingTokenFilter": + AsciiFoldingTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.CjkBigramTokenFilter": + CjkBigramTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.CommonGramTokenFilter": + CommonGramTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.DictionaryDecompounderTokenFilter": + DictionaryDecompounderTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.EdgeNGramTokenFilter": + EdgeNGramTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.EdgeNGramTokenFilterV2": + EdgeNGramTokenFilterV2, "TokenFilter.#Microsoft.Azure.Search.ElisionTokenFilter": ElisionTokenFilter, "TokenFilter.#Microsoft.Azure.Search.KeepTokenFilter": KeepTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.KeywordMarkerTokenFilter": KeywordMarkerTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.KeywordMarkerTokenFilter": + KeywordMarkerTokenFilter, "TokenFilter.#Microsoft.Azure.Search.LengthTokenFilter": LengthTokenFilter, "TokenFilter.#Microsoft.Azure.Search.LimitTokenFilter": LimitTokenFilter, "TokenFilter.#Microsoft.Azure.Search.NGramTokenFilter": NGramTokenFilter, "TokenFilter.#Microsoft.Azure.Search.NGramTokenFilterV2": NGramTokenFilterV2, - "TokenFilter.#Microsoft.Azure.Search.PatternCaptureTokenFilter": PatternCaptureTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.PatternReplaceTokenFilter": PatternReplaceTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.PhoneticTokenFilter": PhoneticTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.PatternCaptureTokenFilter": + PatternCaptureTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.PatternReplaceTokenFilter": + PatternReplaceTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.PhoneticTokenFilter": + PhoneticTokenFilter, "TokenFilter.#Microsoft.Azure.Search.ShingleTokenFilter": ShingleTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.SnowballTokenFilter": SnowballTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.SnowballTokenFilter": + SnowballTokenFilter, "TokenFilter.#Microsoft.Azure.Search.StemmerTokenFilter": StemmerTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.StemmerOverrideTokenFilter": StemmerOverrideTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.StopwordsTokenFilter": StopwordsTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.StemmerOverrideTokenFilter": + StemmerOverrideTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.StopwordsTokenFilter": + StopwordsTokenFilter, "TokenFilter.#Microsoft.Azure.Search.SynonymTokenFilter": SynonymTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.TruncateTokenFilter": TruncateTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.TruncateTokenFilter": + TruncateTokenFilter, "TokenFilter.#Microsoft.Azure.Search.UniqueTokenFilter": UniqueTokenFilter, - "TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": WordDelimiterTokenFilter, + "TokenFilter.#Microsoft.Azure.Search.WordDelimiterTokenFilter": + WordDelimiterTokenFilter, "CharFilter.#Microsoft.Azure.Search.MappingCharFilter": MappingCharFilter, - "CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": PatternReplaceCharFilter, - "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": CustomNormalizer, + "CharFilter.#Microsoft.Azure.Search.PatternReplaceCharFilter": + PatternReplaceCharFilter, + "LexicalNormalizer.#Microsoft.Azure.Search.CustomNormalizer": + CustomNormalizer, "Similarity.#Microsoft.Azure.Search.ClassicSimilarity": ClassicSimilarity, "Similarity.#Microsoft.Azure.Search.BM25Similarity": BM25Similarity, - "VectorSearchAlgorithmConfiguration.hnsw": HnswVectorSearchAlgorithmConfiguration, - "VectorSearchAlgorithmConfiguration.exhaustiveKnn": ExhaustiveKnnVectorSearchAlgorithmConfiguration, + "VectorSearchAlgorithmConfiguration.hnsw": HnswAlgorithmConfiguration, + "VectorSearchAlgorithmConfiguration.exhaustiveKnn": + ExhaustiveKnnAlgorithmConfiguration, "VectorSearchVectorizer.azureOpenAI": AzureOpenAIVectorizer, - "VectorSearchVectorizer.customWebApi": CustomVectorizer + "VectorSearchVectorizer.customWebApi": CustomVectorizer, + "BaseVectorSearchCompressionConfiguration.scalarQuantization": + ScalarQuantizationCompressionConfiguration, }; diff --git a/sdk/search/search-documents/src/generated/service/models/parameters.ts b/sdk/search/search-documents/src/generated/service/models/parameters.ts index 0b86642a816d..6e88bb7c4e73 100644 --- a/sdk/search/search-documents/src/generated/service/models/parameters.ts +++ b/sdk/search/search-documents/src/generated/service/models/parameters.ts @@ -9,7 +9,7 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { SearchIndexerDataSource as SearchIndexerDataSourceMapper, @@ -20,7 +20,7 @@ import { SynonymMap as SynonymMapMapper, SearchIndex as SearchIndexMapper, AnalyzeRequest as AnalyzeRequestMapper, - SearchAlias as SearchAliasMapper + SearchAlias as SearchAliasMapper, } from "../models/mappers"; export const contentType: OperationParameter = { @@ -30,14 +30,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const dataSource: OperationParameter = { parameterPath: "dataSource", - mapper: SearchIndexerDataSourceMapper + mapper: SearchIndexerDataSourceMapper, }; export const accept: OperationParameter = { @@ -47,9 +47,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const endpoint: OperationURLParameter = { @@ -58,10 +58,10 @@ export const endpoint: OperationURLParameter = { serializedName: "endpoint", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const dataSourceName: OperationURLParameter = { @@ -70,9 +70,9 @@ export const dataSourceName: OperationURLParameter = { serializedName: "dataSourceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifMatch: OperationParameter = { @@ -80,9 +80,9 @@ export const ifMatch: OperationParameter = { mapper: { serializedName: "If-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const ifNoneMatch: OperationParameter = { @@ -90,9 +90,9 @@ export const ifNoneMatch: OperationParameter = { mapper: { serializedName: "If-None-Match", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const prefer: OperationParameter = { @@ -102,9 +102,9 @@ export const prefer: OperationParameter = { isConstant: true, serializedName: "Prefer", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { @@ -113,9 +113,9 @@ export const apiVersion: OperationQueryParameter = { serializedName: "api-version", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skipIndexerResetRequirementForCache: OperationQueryParameter = { @@ -123,9 +123,9 @@ export const skipIndexerResetRequirementForCache: OperationQueryParameter = { mapper: { serializedName: "ignoreResetRequirements", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const select: OperationQueryParameter = { @@ -133,9 +133,9 @@ export const select: OperationQueryParameter = { mapper: { serializedName: "$select", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const indexerName: OperationURLParameter = { @@ -144,14 +144,14 @@ export const indexerName: OperationURLParameter = { serializedName: "indexerName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const keysOrIds: OperationParameter = { parameterPath: ["options", "keysOrIds"], - mapper: DocumentKeysOrIdsMapper + mapper: DocumentKeysOrIdsMapper, }; export const overwrite: OperationQueryParameter = { @@ -160,29 +160,30 @@ export const overwrite: OperationQueryParameter = { defaultValue: false, serializedName: "overwrite", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const indexer: OperationParameter = { parameterPath: "indexer", - mapper: SearchIndexerMapper + mapper: SearchIndexerMapper, }; -export const disableCacheReprocessingChangeDetection: OperationQueryParameter = { - parameterPath: ["options", "disableCacheReprocessingChangeDetection"], - mapper: { - serializedName: "disableCacheReprocessingChangeDetection", - type: { - name: "Boolean" - } - } -}; +export const disableCacheReprocessingChangeDetection: OperationQueryParameter = + { + parameterPath: ["options", "disableCacheReprocessingChangeDetection"], + mapper: { + serializedName: "disableCacheReprocessingChangeDetection", + type: { + name: "Boolean", + }, + }, + }; export const skillset: OperationParameter = { parameterPath: "skillset", - mapper: SearchIndexerSkillsetMapper + mapper: SearchIndexerSkillsetMapper, }; export const skillsetName: OperationURLParameter = { @@ -191,19 +192,19 @@ export const skillsetName: OperationURLParameter = { serializedName: "skillsetName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const skillNames: OperationParameter = { parameterPath: "skillNames", - mapper: SkillNamesMapper + mapper: SkillNamesMapper, }; export const synonymMap: OperationParameter = { parameterPath: "synonymMap", - mapper: SynonymMapMapper + mapper: SynonymMapMapper, }; export const synonymMapName: OperationURLParameter = { @@ -212,14 +213,14 @@ export const synonymMapName: OperationURLParameter = { serializedName: "synonymMapName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const index: OperationParameter = { parameterPath: "index", - mapper: SearchIndexMapper + mapper: SearchIndexMapper, }; export const indexName: OperationURLParameter = { @@ -228,9 +229,9 @@ export const indexName: OperationURLParameter = { serializedName: "indexName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const allowIndexDowntime: OperationQueryParameter = { @@ -238,19 +239,19 @@ export const allowIndexDowntime: OperationQueryParameter = { mapper: { serializedName: "allowIndexDowntime", type: { - name: "Boolean" - } - } + name: "Boolean", + }, + }, }; export const request: OperationParameter = { parameterPath: "request", - mapper: AnalyzeRequestMapper + mapper: AnalyzeRequestMapper, }; export const alias: OperationParameter = { parameterPath: "alias", - mapper: SearchAliasMapper + mapper: SearchAliasMapper, }; export const aliasName: OperationURLParameter = { @@ -259,7 +260,7 @@ export const aliasName: OperationURLParameter = { serializedName: "aliasName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/aliases.ts b/sdk/search/search-documents/src/generated/service/operations/aliases.ts index f57ba73176cf..cd858260b466 100644 --- a/sdk/search/search-documents/src/generated/service/operations/aliases.ts +++ b/sdk/search/search-documents/src/generated/service/operations/aliases.ts @@ -21,7 +21,7 @@ import { AliasesCreateOrUpdateResponse, AliasesDeleteOptionalParams, AliasesGetOptionalParams, - AliasesGetResponse + AliasesGetResponse, } from "../models"; /** Class containing Aliases operations. */ @@ -43,11 +43,11 @@ export class AliasesImpl implements Aliases { */ create( alias: SearchAlias, - options?: AliasesCreateOptionalParams + options?: AliasesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { alias, options }, - createOperationSpec + createOperationSpec, ); } @@ -68,11 +68,11 @@ export class AliasesImpl implements Aliases { createOrUpdate( aliasName: string, alias: SearchAlias, - options?: AliasesCreateOrUpdateOptionalParams + options?: AliasesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { aliasName, alias, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -84,11 +84,11 @@ export class AliasesImpl implements Aliases { */ delete( aliasName: string, - options?: AliasesDeleteOptionalParams + options?: AliasesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { aliasName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -99,11 +99,11 @@ export class AliasesImpl implements Aliases { */ get( aliasName: string, - options?: AliasesGetOptionalParams + options?: AliasesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { aliasName, options }, - getOperationSpec + getOperationSpec, ); } } @@ -115,48 +115,48 @@ const createOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchAlias + bodyMapper: Mappers.SearchAlias, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.alias, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/aliases", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListAliasesResult + bodyMapper: Mappers.ListAliasesResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/aliases('{aliasName}')", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchAlias + bodyMapper: Mappers.SearchAlias, }, 201: { - bodyMapper: Mappers.SearchAlias + bodyMapper: Mappers.SearchAlias, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.alias, queryParameters: [Parameters.apiVersion], @@ -166,10 +166,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/aliases('{aliasName}')", @@ -178,31 +178,31 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.aliasName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/aliases('{aliasName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchAlias + bodyMapper: Mappers.SearchAlias, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.aliasName], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/dataSources.ts b/sdk/search/search-documents/src/generated/service/operations/dataSources.ts index 40e1c9531a6c..fb0129f8b837 100644 --- a/sdk/search/search-documents/src/generated/service/operations/dataSources.ts +++ b/sdk/search/search-documents/src/generated/service/operations/dataSources.ts @@ -21,7 +21,7 @@ import { DataSourcesListOptionalParams, DataSourcesListResponse, DataSourcesCreateOptionalParams, - DataSourcesCreateResponse + DataSourcesCreateResponse, } from "../models"; /** Class containing DataSources operations. */ @@ -45,11 +45,11 @@ export class DataSourcesImpl implements DataSources { createOrUpdate( dataSourceName: string, dataSource: SearchIndexerDataSource, - options?: DataSourcesCreateOrUpdateOptionalParams + options?: DataSourcesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { dataSourceName, dataSource, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -60,11 +60,11 @@ export class DataSourcesImpl implements DataSources { */ delete( dataSourceName: string, - options?: DataSourcesDeleteOptionalParams + options?: DataSourcesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { dataSourceName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -75,11 +75,11 @@ export class DataSourcesImpl implements DataSources { */ get( dataSourceName: string, - options?: DataSourcesGetOptionalParams + options?: DataSourcesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { dataSourceName, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,7 +88,7 @@ export class DataSourcesImpl implements DataSources { * @param options The options parameters. */ list( - options?: DataSourcesListOptionalParams + options?: DataSourcesListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -100,11 +100,11 @@ export class DataSourcesImpl implements DataSources { */ create( dataSource: SearchIndexerDataSource, - options?: DataSourcesCreateOptionalParams + options?: DataSourcesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { dataSource, options }, - createOperationSpec + createOperationSpec, ); } } @@ -116,19 +116,19 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchIndexerDataSource + bodyMapper: Mappers.SearchIndexerDataSource, }, 201: { - bodyMapper: Mappers.SearchIndexerDataSource + bodyMapper: Mappers.SearchIndexerDataSource, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.dataSource, queryParameters: [ Parameters.apiVersion, - Parameters.skipIndexerResetRequirementForCache + Parameters.skipIndexerResetRequirementForCache, ], urlParameters: [Parameters.endpoint, Parameters.dataSourceName], headerParameters: [ @@ -136,10 +136,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/datasources('{dataSourceName}')", @@ -148,65 +148,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.dataSourceName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/datasources('{dataSourceName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndexerDataSource + bodyMapper: Mappers.SearchIndexerDataSource, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.dataSourceName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/datasources", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListDataSourcesResult + bodyMapper: Mappers.ListDataSourcesResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { path: "/datasources", httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchIndexerDataSource + bodyMapper: Mappers.SearchIndexerDataSource, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.dataSource, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/indexers.ts b/sdk/search/search-documents/src/generated/service/operations/indexers.ts index 5a2dad5839d3..e8895a6dd85c 100644 --- a/sdk/search/search-documents/src/generated/service/operations/indexers.ts +++ b/sdk/search/search-documents/src/generated/service/operations/indexers.ts @@ -26,7 +26,7 @@ import { IndexersCreateOptionalParams, IndexersCreateResponse, IndexersGetStatusOptionalParams, - IndexersGetStatusResponse + IndexersGetStatusResponse, } from "../models"; /** Class containing Indexers operations. */ @@ -48,11 +48,11 @@ export class IndexersImpl implements Indexers { */ reset( indexerName: string, - options?: IndexersResetOptionalParams + options?: IndexersResetOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - resetOperationSpec + resetOperationSpec, ); } @@ -63,11 +63,11 @@ export class IndexersImpl implements Indexers { */ resetDocs( indexerName: string, - options?: IndexersResetDocsOptionalParams + options?: IndexersResetDocsOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - resetDocsOperationSpec + resetDocsOperationSpec, ); } @@ -79,7 +79,7 @@ export class IndexersImpl implements Indexers { run(indexerName: string, options?: IndexersRunOptionalParams): Promise { return this.client.sendOperationRequest( { indexerName, options }, - runOperationSpec + runOperationSpec, ); } @@ -92,11 +92,11 @@ export class IndexersImpl implements Indexers { createOrUpdate( indexerName: string, indexer: SearchIndexer, - options?: IndexersCreateOrUpdateOptionalParams + options?: IndexersCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, indexer, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -107,11 +107,11 @@ export class IndexersImpl implements Indexers { */ delete( indexerName: string, - options?: IndexersDeleteOptionalParams + options?: IndexersDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -122,11 +122,11 @@ export class IndexersImpl implements Indexers { */ get( indexerName: string, - options?: IndexersGetOptionalParams + options?: IndexersGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - getOperationSpec + getOperationSpec, ); } @@ -145,11 +145,11 @@ export class IndexersImpl implements Indexers { */ create( indexer: SearchIndexer, - options?: IndexersCreateOptionalParams + options?: IndexersCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexer, options }, - createOperationSpec + createOperationSpec, ); } @@ -160,11 +160,11 @@ export class IndexersImpl implements Indexers { */ getStatus( indexerName: string, - options?: IndexersGetStatusOptionalParams + options?: IndexersGetStatusOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexerName, options }, - getStatusOperationSpec + getStatusOperationSpec, ); } } @@ -177,13 +177,13 @@ const resetOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.accept], - serializer + serializer, }; const resetDocsOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.resetdocs", @@ -191,15 +191,15 @@ const resetDocsOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.keysOrIds, queryParameters: [Parameters.apiVersion, Parameters.overwrite], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const runOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.run", @@ -207,33 +207,33 @@ const runOperationSpec: coreClient.OperationSpec = { responses: { 202: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchIndexer + bodyMapper: Mappers.SearchIndexer, }, 201: { - bodyMapper: Mappers.SearchIndexer + bodyMapper: Mappers.SearchIndexer, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.indexer, queryParameters: [ Parameters.apiVersion, Parameters.skipIndexerResetRequirementForCache, - Parameters.disableCacheReprocessingChangeDetection + Parameters.disableCacheReprocessingChangeDetection, ], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [ @@ -241,10 +241,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", @@ -253,81 +253,81 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndexer + bodyMapper: Mappers.SearchIndexer, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/indexers", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListIndexersResult + bodyMapper: Mappers.ListIndexersResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { path: "/indexers", httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchIndexer + bodyMapper: Mappers.SearchIndexer, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.indexer, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const getStatusOperationSpec: coreClient.OperationSpec = { path: "/indexers('{indexerName}')/search.status", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndexerStatus + bodyMapper: Mappers.SearchIndexerStatus, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexerName], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/indexes.ts b/sdk/search/search-documents/src/generated/service/operations/indexes.ts index c38c2ec54b2c..c456c969db12 100644 --- a/sdk/search/search-documents/src/generated/service/operations/indexes.ts +++ b/sdk/search/search-documents/src/generated/service/operations/indexes.ts @@ -26,7 +26,7 @@ import { IndexesGetStatisticsResponse, AnalyzeRequest, IndexesAnalyzeOptionalParams, - IndexesAnalyzeResponse + IndexesAnalyzeResponse, } from "../models"; /** Class containing Indexes operations. */ @@ -48,11 +48,11 @@ export class IndexesImpl implements Indexes { */ create( index: SearchIndex, - options?: IndexesCreateOptionalParams + options?: IndexesCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { index, options }, - createOperationSpec + createOperationSpec, ); } @@ -73,11 +73,11 @@ export class IndexesImpl implements Indexes { createOrUpdate( indexName: string, index: SearchIndex, - options?: IndexesCreateOrUpdateOptionalParams + options?: IndexesCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, index, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -90,11 +90,11 @@ export class IndexesImpl implements Indexes { */ delete( indexName: string, - options?: IndexesDeleteOptionalParams + options?: IndexesDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -105,11 +105,11 @@ export class IndexesImpl implements Indexes { */ get( indexName: string, - options?: IndexesGetOptionalParams + options?: IndexesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, options }, - getOperationSpec + getOperationSpec, ); } @@ -120,11 +120,11 @@ export class IndexesImpl implements Indexes { */ getStatistics( indexName: string, - options?: IndexesGetStatisticsOptionalParams + options?: IndexesGetStatisticsOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, options }, - getStatisticsOperationSpec + getStatisticsOperationSpec, ); } @@ -137,11 +137,11 @@ export class IndexesImpl implements Indexes { analyze( indexName: string, request: AnalyzeRequest, - options?: IndexesAnalyzeOptionalParams + options?: IndexesAnalyzeOptionalParams, ): Promise { return this.client.sendOperationRequest( { indexName, request, options }, - analyzeOperationSpec + analyzeOperationSpec, ); } } @@ -153,48 +153,48 @@ const createOperationSpec: coreClient.OperationSpec = { httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchIndex + bodyMapper: Mappers.SearchIndex, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.index, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/indexes", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListIndexesResult + bodyMapper: Mappers.ListIndexesResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchIndex + bodyMapper: Mappers.SearchIndex, }, 201: { - bodyMapper: Mappers.SearchIndex + bodyMapper: Mappers.SearchIndex, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.index, queryParameters: [Parameters.apiVersion, Parameters.allowIndexDowntime], @@ -204,10 +204,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", @@ -216,65 +216,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndex + bodyMapper: Mappers.SearchIndex, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const getStatisticsOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')/search.stats", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.GetIndexStatisticsResult + bodyMapper: Mappers.GetIndexStatisticsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.accept], - serializer + serializer, }; const analyzeOperationSpec: coreClient.OperationSpec = { path: "/indexes('{indexName}')/search.analyze", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.AnalyzeResult + bodyMapper: Mappers.AnalyzeResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.request, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.indexName], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/skillsets.ts b/sdk/search/search-documents/src/generated/service/operations/skillsets.ts index cf156dbb34d3..59a4347a6c09 100644 --- a/sdk/search/search-documents/src/generated/service/operations/skillsets.ts +++ b/sdk/search/search-documents/src/generated/service/operations/skillsets.ts @@ -23,7 +23,7 @@ import { SkillsetsCreateOptionalParams, SkillsetsCreateResponse, SkillNames, - SkillsetsResetSkillsOptionalParams + SkillsetsResetSkillsOptionalParams, } from "../models"; /** Class containing Skillsets operations. */ @@ -47,11 +47,11 @@ export class SkillsetsImpl implements Skillsets { createOrUpdate( skillsetName: string, skillset: SearchIndexerSkillset, - options?: SkillsetsCreateOrUpdateOptionalParams + options?: SkillsetsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillsetName, skillset, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -62,11 +62,11 @@ export class SkillsetsImpl implements Skillsets { */ delete( skillsetName: string, - options?: SkillsetsDeleteOptionalParams + options?: SkillsetsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillsetName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -77,11 +77,11 @@ export class SkillsetsImpl implements Skillsets { */ get( skillsetName: string, - options?: SkillsetsGetOptionalParams + options?: SkillsetsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillsetName, options }, - getOperationSpec + getOperationSpec, ); } @@ -100,11 +100,11 @@ export class SkillsetsImpl implements Skillsets { */ create( skillset: SearchIndexerSkillset, - options?: SkillsetsCreateOptionalParams + options?: SkillsetsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillset, options }, - createOperationSpec + createOperationSpec, ); } @@ -117,11 +117,11 @@ export class SkillsetsImpl implements Skillsets { resetSkills( skillsetName: string, skillNames: SkillNames, - options?: SkillsetsResetSkillsOptionalParams + options?: SkillsetsResetSkillsOptionalParams, ): Promise { return this.client.sendOperationRequest( { skillsetName, skillNames, options }, - resetSkillsOperationSpec + resetSkillsOperationSpec, ); } } @@ -133,20 +133,20 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SearchIndexerSkillset + bodyMapper: Mappers.SearchIndexerSkillset, }, 201: { - bodyMapper: Mappers.SearchIndexerSkillset + bodyMapper: Mappers.SearchIndexerSkillset, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.skillset, queryParameters: [ Parameters.apiVersion, Parameters.skipIndexerResetRequirementForCache, - Parameters.disableCacheReprocessingChangeDetection + Parameters.disableCacheReprocessingChangeDetection, ], urlParameters: [Parameters.endpoint, Parameters.skillsetName], headerParameters: [ @@ -154,10 +154,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')", @@ -166,67 +166,67 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.skillsetName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SearchIndexerSkillset + bodyMapper: Mappers.SearchIndexerSkillset, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.skillsetName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/skillsets", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListSkillsetsResult + bodyMapper: Mappers.ListSkillsetsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { path: "/skillsets", httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SearchIndexerSkillset + bodyMapper: Mappers.SearchIndexerSkillset, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.skillset, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; const resetSkillsOperationSpec: coreClient.OperationSpec = { path: "/skillsets('{skillsetName}')/search.resetskills", @@ -234,13 +234,13 @@ const resetSkillsOperationSpec: coreClient.OperationSpec = { responses: { 204: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.skillNames, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.skillsetName], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts b/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts index d4e23f498e70..afde7649c7d9 100644 --- a/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts +++ b/sdk/search/search-documents/src/generated/service/operations/synonymMaps.ts @@ -21,7 +21,7 @@ import { SynonymMapsListOptionalParams, SynonymMapsListResponse, SynonymMapsCreateOptionalParams, - SynonymMapsCreateResponse + SynonymMapsCreateResponse, } from "../models"; /** Class containing SynonymMaps operations. */ @@ -45,11 +45,11 @@ export class SynonymMapsImpl implements SynonymMaps { createOrUpdate( synonymMapName: string, synonymMap: SynonymMap, - options?: SynonymMapsCreateOrUpdateOptionalParams + options?: SynonymMapsCreateOrUpdateOptionalParams, ): Promise { return this.client.sendOperationRequest( { synonymMapName, synonymMap, options }, - createOrUpdateOperationSpec + createOrUpdateOperationSpec, ); } @@ -60,11 +60,11 @@ export class SynonymMapsImpl implements SynonymMaps { */ delete( synonymMapName: string, - options?: SynonymMapsDeleteOptionalParams + options?: SynonymMapsDeleteOptionalParams, ): Promise { return this.client.sendOperationRequest( { synonymMapName, options }, - deleteOperationSpec + deleteOperationSpec, ); } @@ -75,11 +75,11 @@ export class SynonymMapsImpl implements SynonymMaps { */ get( synonymMapName: string, - options?: SynonymMapsGetOptionalParams + options?: SynonymMapsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { synonymMapName, options }, - getOperationSpec + getOperationSpec, ); } @@ -88,7 +88,7 @@ export class SynonymMapsImpl implements SynonymMaps { * @param options The options parameters. */ list( - options?: SynonymMapsListOptionalParams + options?: SynonymMapsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -100,11 +100,11 @@ export class SynonymMapsImpl implements SynonymMaps { */ create( synonymMap: SynonymMap, - options?: SynonymMapsCreateOptionalParams + options?: SynonymMapsCreateOptionalParams, ): Promise { return this.client.sendOperationRequest( { synonymMap, options }, - createOperationSpec + createOperationSpec, ); } } @@ -116,14 +116,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.SynonymMap + bodyMapper: Mappers.SynonymMap, }, 201: { - bodyMapper: Mappers.SynonymMap + bodyMapper: Mappers.SynonymMap, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.synonymMap, queryParameters: [Parameters.apiVersion], @@ -133,10 +133,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.accept, Parameters.ifMatch, Parameters.ifNoneMatch, - Parameters.prefer + Parameters.prefer, ], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps('{synonymMapName}')", @@ -145,65 +145,65 @@ const deleteOperationSpec: coreClient.OperationSpec = { 204: {}, 404: {}, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.synonymMapName], headerParameters: [ Parameters.accept, Parameters.ifMatch, - Parameters.ifNoneMatch + Parameters.ifNoneMatch, ], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps('{synonymMapName}')", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.SynonymMap + bodyMapper: Mappers.SynonymMap, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.synonymMapName], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ListSynonymMapsResult + bodyMapper: Mappers.ListSynonymMapsResult, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion, Parameters.select], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOperationSpec: coreClient.OperationSpec = { path: "/synonymmaps", httpMethod: "POST", responses: { 201: { - bodyMapper: Mappers.SynonymMap + bodyMapper: Mappers.SynonymMap, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.synonymMap, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/aliases.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/aliases.ts index 6248725ff47f..ae616f642590 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/aliases.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/aliases.ts @@ -16,7 +16,7 @@ import { AliasesCreateOrUpdateResponse, AliasesDeleteOptionalParams, AliasesGetOptionalParams, - AliasesGetResponse + AliasesGetResponse, } from "../models"; /** Interface representing a Aliases. */ @@ -28,7 +28,7 @@ export interface Aliases { */ create( alias: SearchAlias, - options?: AliasesCreateOptionalParams + options?: AliasesCreateOptionalParams, ): Promise; /** * Lists all aliases available for a search service. @@ -44,7 +44,7 @@ export interface Aliases { createOrUpdate( aliasName: string, alias: SearchAlias, - options?: AliasesCreateOrUpdateOptionalParams + options?: AliasesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a search alias and its associated mapping to an index. This operation is permanent, with no @@ -54,7 +54,7 @@ export interface Aliases { */ delete( aliasName: string, - options?: AliasesDeleteOptionalParams + options?: AliasesDeleteOptionalParams, ): Promise; /** * Retrieves an alias definition. @@ -63,6 +63,6 @@ export interface Aliases { */ get( aliasName: string, - options?: AliasesGetOptionalParams + options?: AliasesGetOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts index 89c09ec35f54..801ff187e26a 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/dataSources.ts @@ -16,7 +16,7 @@ import { DataSourcesListOptionalParams, DataSourcesListResponse, DataSourcesCreateOptionalParams, - DataSourcesCreateResponse + DataSourcesCreateResponse, } from "../models"; /** Interface representing a DataSources. */ @@ -30,7 +30,7 @@ export interface DataSources { createOrUpdate( dataSourceName: string, dataSource: SearchIndexerDataSource, - options?: DataSourcesCreateOrUpdateOptionalParams + options?: DataSourcesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a datasource. @@ -39,7 +39,7 @@ export interface DataSources { */ delete( dataSourceName: string, - options?: DataSourcesDeleteOptionalParams + options?: DataSourcesDeleteOptionalParams, ): Promise; /** * Retrieves a datasource definition. @@ -48,14 +48,14 @@ export interface DataSources { */ get( dataSourceName: string, - options?: DataSourcesGetOptionalParams + options?: DataSourcesGetOptionalParams, ): Promise; /** * Lists all datasources available for a search service. * @param options The options parameters. */ list( - options?: DataSourcesListOptionalParams + options?: DataSourcesListOptionalParams, ): Promise; /** * Creates a new datasource. @@ -64,6 +64,6 @@ export interface DataSources { */ create( dataSource: SearchIndexerDataSource, - options?: DataSourcesCreateOptionalParams + options?: DataSourcesCreateOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts index 146e9f669225..95e8c3bac62e 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexers.ts @@ -21,7 +21,7 @@ import { IndexersCreateOptionalParams, IndexersCreateResponse, IndexersGetStatusOptionalParams, - IndexersGetStatusResponse + IndexersGetStatusResponse, } from "../models"; /** Interface representing a Indexers. */ @@ -33,7 +33,7 @@ export interface Indexers { */ reset( indexerName: string, - options?: IndexersResetOptionalParams + options?: IndexersResetOptionalParams, ): Promise; /** * Resets specific documents in the datasource to be selectively re-ingested by the indexer. @@ -42,7 +42,7 @@ export interface Indexers { */ resetDocs( indexerName: string, - options?: IndexersResetDocsOptionalParams + options?: IndexersResetDocsOptionalParams, ): Promise; /** * Runs an indexer on-demand. @@ -59,7 +59,7 @@ export interface Indexers { createOrUpdate( indexerName: string, indexer: SearchIndexer, - options?: IndexersCreateOrUpdateOptionalParams + options?: IndexersCreateOrUpdateOptionalParams, ): Promise; /** * Deletes an indexer. @@ -68,7 +68,7 @@ export interface Indexers { */ delete( indexerName: string, - options?: IndexersDeleteOptionalParams + options?: IndexersDeleteOptionalParams, ): Promise; /** * Retrieves an indexer definition. @@ -77,7 +77,7 @@ export interface Indexers { */ get( indexerName: string, - options?: IndexersGetOptionalParams + options?: IndexersGetOptionalParams, ): Promise; /** * Lists all indexers available for a search service. @@ -91,7 +91,7 @@ export interface Indexers { */ create( indexer: SearchIndexer, - options?: IndexersCreateOptionalParams + options?: IndexersCreateOptionalParams, ): Promise; /** * Returns the current status and execution history of an indexer. @@ -100,6 +100,6 @@ export interface Indexers { */ getStatus( indexerName: string, - options?: IndexersGetStatusOptionalParams + options?: IndexersGetStatusOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts index 3c1135daeb43..dc88a3a325d4 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/indexes.ts @@ -21,7 +21,7 @@ import { IndexesGetStatisticsResponse, AnalyzeRequest, IndexesAnalyzeOptionalParams, - IndexesAnalyzeResponse + IndexesAnalyzeResponse, } from "../models"; /** Interface representing a Indexes. */ @@ -33,7 +33,7 @@ export interface Indexes { */ create( index: SearchIndex, - options?: IndexesCreateOptionalParams + options?: IndexesCreateOptionalParams, ): Promise; /** * Lists all indexes available for a search service. @@ -49,7 +49,7 @@ export interface Indexes { createOrUpdate( indexName: string, index: SearchIndex, - options?: IndexesCreateOrUpdateOptionalParams + options?: IndexesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a search index and all the documents it contains. This operation is permanent, with no @@ -60,7 +60,7 @@ export interface Indexes { */ delete( indexName: string, - options?: IndexesDeleteOptionalParams + options?: IndexesDeleteOptionalParams, ): Promise; /** * Retrieves an index definition. @@ -69,7 +69,7 @@ export interface Indexes { */ get( indexName: string, - options?: IndexesGetOptionalParams + options?: IndexesGetOptionalParams, ): Promise; /** * Returns statistics for the given index, including a document count and storage usage. @@ -78,7 +78,7 @@ export interface Indexes { */ getStatistics( indexName: string, - options?: IndexesGetStatisticsOptionalParams + options?: IndexesGetStatisticsOptionalParams, ): Promise; /** * Shows how an analyzer breaks text into tokens. @@ -89,6 +89,6 @@ export interface Indexes { analyze( indexName: string, request: AnalyzeRequest, - options?: IndexesAnalyzeOptionalParams + options?: IndexesAnalyzeOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts index 70f61999d669..96aa1e923598 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/skillsets.ts @@ -18,7 +18,7 @@ import { SkillsetsCreateOptionalParams, SkillsetsCreateResponse, SkillNames, - SkillsetsResetSkillsOptionalParams + SkillsetsResetSkillsOptionalParams, } from "../models"; /** Interface representing a Skillsets. */ @@ -32,7 +32,7 @@ export interface Skillsets { createOrUpdate( skillsetName: string, skillset: SearchIndexerSkillset, - options?: SkillsetsCreateOrUpdateOptionalParams + options?: SkillsetsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a skillset in a search service. @@ -41,7 +41,7 @@ export interface Skillsets { */ delete( skillsetName: string, - options?: SkillsetsDeleteOptionalParams + options?: SkillsetsDeleteOptionalParams, ): Promise; /** * Retrieves a skillset in a search service. @@ -50,7 +50,7 @@ export interface Skillsets { */ get( skillsetName: string, - options?: SkillsetsGetOptionalParams + options?: SkillsetsGetOptionalParams, ): Promise; /** * List all skillsets in a search service. @@ -64,7 +64,7 @@ export interface Skillsets { */ create( skillset: SearchIndexerSkillset, - options?: SkillsetsCreateOptionalParams + options?: SkillsetsCreateOptionalParams, ): Promise; /** * Reset an existing skillset in a search service. @@ -75,6 +75,6 @@ export interface Skillsets { resetSkills( skillsetName: string, skillNames: SkillNames, - options?: SkillsetsResetSkillsOptionalParams + options?: SkillsetsResetSkillsOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts b/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts index b9000aafb98b..b26e83a49d74 100644 --- a/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts +++ b/sdk/search/search-documents/src/generated/service/operationsInterfaces/synonymMaps.ts @@ -16,7 +16,7 @@ import { SynonymMapsListOptionalParams, SynonymMapsListResponse, SynonymMapsCreateOptionalParams, - SynonymMapsCreateResponse + SynonymMapsCreateResponse, } from "../models"; /** Interface representing a SynonymMaps. */ @@ -30,7 +30,7 @@ export interface SynonymMaps { createOrUpdate( synonymMapName: string, synonymMap: SynonymMap, - options?: SynonymMapsCreateOrUpdateOptionalParams + options?: SynonymMapsCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a synonym map. @@ -39,7 +39,7 @@ export interface SynonymMaps { */ delete( synonymMapName: string, - options?: SynonymMapsDeleteOptionalParams + options?: SynonymMapsDeleteOptionalParams, ): Promise; /** * Retrieves a synonym map definition. @@ -48,14 +48,14 @@ export interface SynonymMaps { */ get( synonymMapName: string, - options?: SynonymMapsGetOptionalParams + options?: SynonymMapsGetOptionalParams, ): Promise; /** * Lists all synonym maps available for a search service. * @param options The options parameters. */ list( - options?: SynonymMapsListOptionalParams + options?: SynonymMapsListOptionalParams, ): Promise; /** * Creates a new synonym map. @@ -64,6 +64,6 @@ export interface SynonymMaps { */ create( synonymMap: SynonymMap, - options?: SynonymMapsCreateOptionalParams + options?: SynonymMapsCreateOptionalParams, ): Promise; } diff --git a/sdk/search/search-documents/src/generated/service/searchServiceClient.ts b/sdk/search/search-documents/src/generated/service/searchServiceClient.ts index 9155188a8a7d..5aa9cded0b4a 100644 --- a/sdk/search/search-documents/src/generated/service/searchServiceClient.ts +++ b/sdk/search/search-documents/src/generated/service/searchServiceClient.ts @@ -8,13 +8,18 @@ import * as coreClient from "@azure/core-client"; import * as coreHttpCompat from "@azure/core-http-compat"; +import { + PipelineRequest, + PipelineResponse, + SendRequest, +} from "@azure/core-rest-pipeline"; import { DataSourcesImpl, IndexersImpl, SkillsetsImpl, SynonymMapsImpl, IndexesImpl, - AliasesImpl + AliasesImpl, } from "./operations"; import { DataSources, @@ -22,21 +27,21 @@ import { Skillsets, SynonymMaps, Indexes, - Aliases + Aliases, } from "./operationsInterfaces"; import * as Parameters from "./models/parameters"; import * as Mappers from "./models/mappers"; import { - ApiVersion20231001Preview, + ApiVersion20240301Preview, SearchServiceClientOptionalParams, GetServiceStatisticsOptionalParams, - GetServiceStatisticsResponse + GetServiceStatisticsResponse, } from "./models"; /** @internal */ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { endpoint: string; - apiVersion: ApiVersion20231001Preview; + apiVersion: ApiVersion20240301Preview; /** * Initializes a new instance of the SearchServiceClient class. @@ -46,8 +51,8 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { */ constructor( endpoint: string, - apiVersion: ApiVersion20231001Preview, - options?: SearchServiceClientOptionalParams + apiVersion: ApiVersion20240301Preview, + options?: SearchServiceClientOptionalParams, ) { if (endpoint === undefined) { throw new Error("'endpoint' cannot be null"); @@ -61,10 +66,10 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { options = {}; } const defaults: SearchServiceClientOptionalParams = { - requestContentType: "application/json; charset=utf-8" + requestContentType: "application/json; charset=utf-8", }; - const packageDetails = `azsdk-js-search-documents/12.0.0-beta.4`; + const packageDetails = `azsdk-js-search-documents/12.1.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -74,9 +79,9 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, - baseUri: options.endpoint ?? options.baseUri ?? "{endpoint}" + endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}", }; super(optionsWithDefaults); // Parameter assignments @@ -88,6 +93,35 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { this.synonymMaps = new SynonymMapsImpl(this); this.indexes = new IndexesImpl(this); this.aliases = new AliasesImpl(this); + this.addCustomApiVersionPolicy(apiVersion); + } + + /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */ + private addCustomApiVersionPolicy(apiVersion?: string) { + if (!apiVersion) { + return; + } + const apiVersionPolicy = { + name: "CustomApiVersionPolicy", + async sendRequest( + request: PipelineRequest, + next: SendRequest, + ): Promise { + const param = request.url.split("?"); + if (param.length > 1) { + const newParams = param[1].split("&").map((item) => { + if (item.indexOf("api-version") > -1) { + return "api-version=" + apiVersion; + } else { + return item; + } + }); + request.url = param[0] + "?" + newParams.join("&"); + } + return next(request); + }, + }; + this.pipeline.addPolicy(apiVersionPolicy); } /** @@ -95,11 +129,11 @@ export class SearchServiceClient extends coreHttpCompat.ExtendedServiceClient { * @param options The options parameters. */ getServiceStatistics( - options?: GetServiceStatisticsOptionalParams + options?: GetServiceStatisticsOptionalParams, ): Promise { return this.sendOperationRequest( { options }, - getServiceStatisticsOperationSpec + getServiceStatisticsOperationSpec, ); } @@ -118,14 +152,14 @@ const getServiceStatisticsOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.ServiceStatistics + bodyMapper: Mappers.ServiceStatistics, }, default: { - bodyMapper: Mappers.SearchError - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/search/search-documents/src/generatedStringLiteralUnions.ts b/sdk/search/search-documents/src/generatedStringLiteralUnions.ts new file mode 100644 index 000000000000..b41fce75648e --- /dev/null +++ b/sdk/search/search-documents/src/generatedStringLiteralUnions.ts @@ -0,0 +1,458 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export type BlobIndexerDataToExtract = "storageMetadata" | "allMetadata" | "contentAndMetadata"; +export type BlobIndexerImageAction = + | "none" + | "generateNormalizedImages" + | "generateNormalizedImagePerPage"; +export type BlobIndexerParsingMode = + | "default" + | "text" + | "delimitedText" + | "json" + | "jsonArray" + | "jsonLines"; +export type BlobIndexerPDFTextRotationAlgorithm = "none" | "detectAngles"; +export type CustomEntityLookupSkillLanguage = + | "da" + | "de" + | "en" + | "es" + | "fi" + | "fr" + | "it" + | "ko" + | "pt"; +export type EntityCategory = + | "location" + | "organization" + | "person" + | "quantity" + | "datetime" + | "url" + | "email"; +export type EntityRecognitionSkillLanguage = + | "ar" + | "cs" + | "zh-Hans" + | "zh-Hant" + | "da" + | "nl" + | "en" + | "fi" + | "fr" + | "de" + | "el" + | "hu" + | "it" + | "ja" + | "ko" + | "no" + | "pl" + | "pt-PT" + | "pt-BR" + | "ru" + | "es" + | "sv" + | "tr"; +export type ImageAnalysisSkillLanguage = + | "ar" + | "az" + | "bg" + | "bs" + | "ca" + | "cs" + | "cy" + | "da" + | "de" + | "el" + | "en" + | "es" + | "et" + | "eu" + | "fi" + | "fr" + | "ga" + | "gl" + | "he" + | "hi" + | "hr" + | "hu" + | "id" + | "it" + | "ja" + | "kk" + | "ko" + | "lt" + | "lv" + | "mk" + | "ms" + | "nb" + | "nl" + | "pl" + | "prs" + | "pt-BR" + | "pt" + | "pt-PT" + | "ro" + | "ru" + | "sk" + | "sl" + | "sr-Cyrl" + | "sr-Latn" + | "sv" + | "th" + | "tr" + | "uk" + | "vi" + | "zh" + | "zh-Hans" + | "zh-Hant"; +export type ImageDetail = "celebrities" | "landmarks"; +export type IndexerExecutionEnvironment = "standard" | "private"; +export type KeyPhraseExtractionSkillLanguage = + | "da" + | "nl" + | "en" + | "fi" + | "fr" + | "de" + | "it" + | "ja" + | "ko" + | "no" + | "pl" + | "pt-PT" + | "pt-BR" + | "ru" + | "es" + | "sv"; +export type OcrSkillLanguage = + | "af" + | "sq" + | "anp" + | "ar" + | "ast" + | "awa" + | "az" + | "bfy" + | "eu" + | "be" + | "be-cyrl" + | "be-latn" + | "bho" + | "bi" + | "brx" + | "bs" + | "bra" + | "br" + | "bg" + | "bns" + | "bua" + | "ca" + | "ceb" + | "rab" + | "ch" + | "hne" + | "zh-Hans" + | "zh-Hant" + | "kw" + | "co" + | "crh" + | "hr" + | "cs" + | "da" + | "prs" + | "dhi" + | "doi" + | "nl" + | "en" + | "myv" + | "et" + | "fo" + | "fj" + | "fil" + | "fi" + | "fr" + | "fur" + | "gag" + | "gl" + | "de" + | "gil" + | "gon" + | "el" + | "kl" + | "gvr" + | "ht" + | "hlb" + | "hni" + | "bgc" + | "haw" + | "hi" + | "mww" + | "hoc" + | "hu" + | "is" + | "smn" + | "id" + | "ia" + | "iu" + | "ga" + | "it" + | "ja" + | "Jns" + | "jv" + | "kea" + | "kac" + | "xnr" + | "krc" + | "kaa-cyrl" + | "kaa" + | "csb" + | "kk-cyrl" + | "kk-latn" + | "klr" + | "kha" + | "quc" + | "ko" + | "kfq" + | "kpy" + | "kos" + | "kum" + | "ku-arab" + | "ku-latn" + | "kru" + | "ky" + | "lkt" + | "la" + | "lt" + | "dsb" + | "smj" + | "lb" + | "bfz" + | "ms" + | "mt" + | "kmj" + | "gv" + | "mi" + | "mr" + | "mn" + | "cnr-cyrl" + | "cnr-latn" + | "nap" + | "ne" + | "niu" + | "nog" + | "sme" + | "nb" + | "no" + | "oc" + | "os" + | "ps" + | "fa" + | "pl" + | "pt" + | "pa" + | "ksh" + | "ro" + | "rm" + | "ru" + | "sck" + | "sm" + | "sa" + | "sat" + | "sco" + | "gd" + | "sr" + | "sr-Cyrl" + | "sr-Latn" + | "xsr" + | "srx" + | "sms" + | "sk" + | "sl" + | "so" + | "sma" + | "es" + | "sw" + | "sv" + | "tg" + | "tt" + | "tet" + | "thf" + | "to" + | "tr" + | "tk" + | "tyv" + | "hsb" + | "ur" + | "ug" + | "uz-arab" + | "uz-cyrl" + | "uz" + | "vo" + | "wae" + | "cy" + | "fy" + | "yua" + | "za" + | "zu" + | "unk"; +export type PIIDetectionSkillMaskingMode = "none" | "replace"; +export type RegexFlags = + | "CANON_EQ" + | "CASE_INSENSITIVE" + | "COMMENTS" + | "DOTALL" + | "LITERAL" + | "MULTILINE" + | "UNICODE_CASE" + | "UNIX_LINES"; +export type SearchIndexerDataSourceType = + | "azuresql" + | "cosmosdb" + | "azureblob" + | "azuretable" + | "mysql" + | "adlsgen2"; +export type SemanticErrorMode = "partial" | "fail"; +export type SemanticErrorReason = "maxWaitExceeded" | "capacityOverloaded" | "transient"; +export type SemanticSearchResultsType = "baseResults" | "rerankedResults"; +export type SentimentSkillLanguage = + | "da" + | "nl" + | "en" + | "fi" + | "fr" + | "de" + | "el" + | "it" + | "no" + | "pl" + | "pt-PT" + | "ru" + | "es" + | "sv" + | "tr"; +export type SplitSkillLanguage = + | "am" + | "bs" + | "cs" + | "da" + | "de" + | "en" + | "es" + | "et" + | "fi" + | "fr" + | "he" + | "hi" + | "hr" + | "hu" + | "id" + | "is" + | "it" + | "ja" + | "ko" + | "lv" + | "nb" + | "nl" + | "pl" + | "pt" + | "pt-br" + | "ru" + | "sk" + | "sl" + | "sr" + | "sv" + | "tr" + | "ur" + | "zh"; +export type TextSplitMode = "pages" | "sentences"; +export type TextTranslationSkillLanguage = + | "af" + | "ar" + | "bn" + | "bs" + | "bg" + | "yue" + | "ca" + | "zh-Hans" + | "zh-Hant" + | "hr" + | "cs" + | "da" + | "nl" + | "en" + | "et" + | "fj" + | "fil" + | "fi" + | "fr" + | "de" + | "el" + | "ht" + | "he" + | "hi" + | "mww" + | "hu" + | "is" + | "id" + | "it" + | "ja" + | "sw" + | "tlh" + | "tlh-Latn" + | "tlh-Piqd" + | "ko" + | "lv" + | "lt" + | "mg" + | "ms" + | "mt" + | "nb" + | "fa" + | "pl" + | "pt" + | "pt-br" + | "pt-PT" + | "otq" + | "ro" + | "ru" + | "sm" + | "sr-Cyrl" + | "sr-Latn" + | "sk" + | "sl" + | "es" + | "sv" + | "ty" + | "ta" + | "te" + | "th" + | "to" + | "tr" + | "uk" + | "ur" + | "vi" + | "cy" + | "yua" + | "ga" + | "kn" + | "mi" + | "ml" + | "pa"; +export type VectorFilterMode = "postFilter" | "preFilter"; +export type VectorQueryKind = "vector" | "text"; +export type VectorSearchAlgorithmKind = "hnsw" | "exhaustiveKnn"; +export type VectorSearchAlgorithmMetric = "cosine" | "euclidean" | "dotProduct"; +export type VectorSearchVectorizerKind = "azureOpenAI" | "customWebApi"; +export type VisualFeature = + | "adult" + | "brands" + | "categories" + | "description" + | "faces" + | "objects" + | "tags"; diff --git a/sdk/search/search-documents/src/index.ts b/sdk/search/search-documents/src/index.ts index c01feec4ab04..b008c9568869 100644 --- a/sdk/search/search-documents/src/index.ts +++ b/sdk/search/search-documents/src/index.ts @@ -1,394 +1,416 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -export { SearchClient, SearchClientOptions } from "./searchClient"; +export { AzureKeyCredential } from "@azure/core-auth"; export { - DEFAULT_BATCH_SIZE, - DEFAULT_FLUSH_WINDOW, - DEFAULT_RETRY_COUNT, -} from "./searchIndexingBufferedSender"; + AutocompleteItem, + AutocompleteMode, + AutocompleteResult, + FacetResult, + IndexActionType, + IndexDocumentsResult, + IndexingResult, + KnownQueryDebugMode, + KnownQueryLanguage, + KnownQuerySpellerType, + KnownSemanticErrorMode, + KnownSemanticErrorReason, + KnownSemanticFieldState, + KnownSemanticSearchResultsType, + KnownSpeller, + KnownVectorQueryKind, + QueryAnswerResult, + QueryCaptionResult, + QueryDebugMode, + QueryLanguage, + QueryResultDocumentRerankerInput, + QuerySpellerType, + QueryType, + ScoringStatistics, + SearchMode, + SemanticFieldState, + Speller, +} from "./generated/data/models"; +export { + AnalyzedTokenInfo, + AnalyzeResult, + AsciiFoldingTokenFilter, + AzureActiveDirectoryApplicationCredentials, + AzureMachineLearningSkill, + BaseVectorSearchCompressionConfiguration, + BM25Similarity, + CharFilter as BaseCharFilter, + CharFilterName, + CjkBigramTokenFilter, + CjkBigramTokenFilterScripts, + ClassicSimilarity, + ClassicTokenizer, + CognitiveServicesAccount as BaseCognitiveServicesAccount, + CognitiveServicesAccountKey, + CommonGramTokenFilter, + ConditionalSkill, + CorsOptions, + CustomEntity, + CustomEntityAlias, + CustomNormalizer, + DataChangeDetectionPolicy as BaseDataChangeDetectionPolicy, + DataDeletionDetectionPolicy as BaseDataDeletionDetectionPolicy, + DefaultCognitiveServicesAccount, + DictionaryDecompounderTokenFilter, + DistanceScoringFunction, + DistanceScoringParameters, + DocumentExtractionSkill, + EdgeNGramTokenFilterSide, + EdgeNGramTokenizer, + ElisionTokenFilter, + EntityLinkingSkill, + EntityRecognitionSkillV3, + FieldMapping, + FieldMappingFunction, + FreshnessScoringFunction, + FreshnessScoringParameters, + HighWaterMarkChangeDetectionPolicy, + IndexerExecutionResult, + IndexerExecutionStatus, + IndexerExecutionStatusDetail, + IndexerState, + IndexerStatus, + IndexingMode, + IndexingSchedule, + IndexProjectionMode, + InputFieldMappingEntry, + KeepTokenFilter, + KeywordMarkerTokenFilter, + KnownBlobIndexerDataToExtract, + KnownBlobIndexerImageAction, + KnownBlobIndexerParsingMode, + KnownBlobIndexerPDFTextRotationAlgorithm, + KnownCharFilterName, + KnownCustomEntityLookupSkillLanguage, + KnownEntityCategory, + KnownEntityRecognitionSkillLanguage, + KnownImageAnalysisSkillLanguage, + KnownImageDetail, + KnownIndexerExecutionEnvironment, + KnownIndexerExecutionStatusDetail, + KnownIndexingMode, + KnownIndexProjectionMode, + KnownKeyPhraseExtractionSkillLanguage, + KnownLexicalAnalyzerName, + KnownLexicalNormalizerName, + KnownLexicalNormalizerName as KnownNormalizerNames, + KnownLexicalTokenizerName, + KnownLineEnding, + KnownOcrSkillLanguage, + KnownPIIDetectionSkillMaskingMode, + KnownRegexFlags, + KnownSearchIndexerDataSourceType, + KnownSentimentSkillLanguage, + KnownSplitSkillLanguage, + KnownTextSplitMode, + KnownTextTranslationSkillLanguage, + KnownTokenFilterName, + KnownVectorSearchCompressionKind, + KnownVectorSearchCompressionTargetDataType, + KnownVectorSearchVectorizerKind, + KnownVisualFeature, + LanguageDetectionSkill, + LengthTokenFilter, + LexicalAnalyzer as BaseLexicalAnalyzer, + LexicalAnalyzerName, + LexicalNormalizer as BaseLexicalNormalizer, + LexicalNormalizerName, + LexicalTokenizer as BaseLexicalTokenizer, + LexicalTokenizerName, + LimitTokenFilter, + LineEnding, + LuceneStandardAnalyzer, + MagnitudeScoringFunction, + MagnitudeScoringParameters, + MappingCharFilter, + MergeSkill, + MicrosoftLanguageStemmingTokenizer, + MicrosoftLanguageTokenizer, + MicrosoftStemmingTokenizerLanguage, + MicrosoftTokenizerLanguage, + NativeBlobSoftDeleteDeletionDetectionPolicy, + NGramTokenizer, + OutputFieldMappingEntry, + PathHierarchyTokenizerV2 as PathHierarchyTokenizer, + PatternCaptureTokenFilter, + PatternReplaceCharFilter, + PatternReplaceTokenFilter, + PhoneticEncoder, + PhoneticTokenFilter, + ResourceCounter, + ScalarQuantizationCompressionConfiguration, + ScalarQuantizationParameters, + ScoringFunction as BaseScoringFunction, + ScoringFunctionAggregation, + ScoringFunctionInterpolation, + SearchAlias, + SearchIndexerDataContainer, + SearchIndexerDataIdentity as BaseSearchIndexerDataIdentity, + SearchIndexerDataNoneIdentity, + SearchIndexerDataUserAssignedIdentity, + SearchIndexerError, + SearchIndexerIndexProjectionSelector, + SearchIndexerKnowledgeStoreBlobProjectionSelector, + SearchIndexerKnowledgeStoreFileProjectionSelector, + SearchIndexerKnowledgeStoreObjectProjectionSelector, + SearchIndexerKnowledgeStoreProjection, + SearchIndexerKnowledgeStoreProjectionSelector, + SearchIndexerKnowledgeStoreTableProjectionSelector, + SearchIndexerLimits, + SearchIndexerSkill as BaseSearchIndexerSkill, + SearchIndexerStatus, + SearchIndexerWarning, + SemanticConfiguration, + SemanticField, + SemanticPrioritizedFields, + SemanticSearch, + SentimentSkillV3, + ServiceCounters, + ServiceLimits, + ShaperSkill, + ShingleTokenFilter, + Similarity, + SnowballTokenFilter, + SnowballTokenFilterLanguage, + SoftDeleteColumnDeletionDetectionPolicy, + SqlIntegratedChangeTrackingPolicy, + StemmerOverrideTokenFilter, + StemmerTokenFilter, + StemmerTokenFilterLanguage, + StopAnalyzer, + StopwordsList, + StopwordsTokenFilter, + Suggester as SearchSuggester, + SynonymTokenFilter, + TagScoringFunction, + TagScoringParameters, + TextWeights, + TokenCharacterKind, + TokenFilter as BaseTokenFilter, + TokenFilterName, + TruncateTokenFilter, + UaxUrlEmailTokenizer, + UniqueTokenFilter, + VectorSearchCompressionKind, + VectorSearchCompressionTargetDataType, + VectorSearchProfile, + WordDelimiterTokenFilter, +} from "./generated/service/models"; +export { + BlobIndexerDataToExtract, + BlobIndexerImageAction, + BlobIndexerParsingMode, + BlobIndexerPDFTextRotationAlgorithm, + CustomEntityLookupSkillLanguage, + EntityCategory, + EntityRecognitionSkillLanguage, + ImageAnalysisSkillLanguage, + ImageDetail, + IndexerExecutionEnvironment, + KeyPhraseExtractionSkillLanguage, + OcrSkillLanguage, + PIIDetectionSkillMaskingMode, + RegexFlags, + SearchIndexerDataSourceType, + SemanticErrorMode, + SemanticErrorReason, + SemanticSearchResultsType, + SentimentSkillLanguage, + SplitSkillLanguage, + TextSplitMode, + TextTranslationSkillLanguage, + VectorFilterMode, + VectorQueryKind, + VectorSearchAlgorithmKind, + VectorSearchAlgorithmMetric, + VectorSearchVectorizerKind, + VisualFeature, +} from "./generatedStringLiteralUnions"; +export { default as GeographyPoint } from "./geographyPoint"; +export { IndexDocumentsBatch } from "./indexDocumentsBatch"; export { - AutocompleteRequest, AutocompleteOptions, + AutocompleteRequest, + BaseSearchRequestOptions, + BaseVectorQuery, CountDocumentsOptions, DeleteDocumentsOptions, + DocumentDebugInfo, ExcludedODataTypes, ExtractDocumentKey, + ExtractiveQueryAnswer, + ExtractiveQueryCaption, GetDocumentOptions, IndexDocumentsAction, - ListSearchResultsPageSettings, IndexDocumentsOptions, - SearchDocumentsResultBase, - SearchDocumentsResult, - SearchDocumentsPageResult, - SearchIterator, - SearchOptions, - SearchRequestOptions, - SearchRequest, - SearchResult, - SuggestDocumentsResult, - SuggestRequest, - SuggestResult, - SuggestOptions, + ListSearchResultsPageSettings, MergeDocumentsOptions, MergeOrUploadDocumentsOptions, NarrowedModel, - UploadDocumentsOptions, - SearchIndexingBufferedSenderOptions, + QueryAnswer, + QueryCaption, + QueryResultDocumentSemanticField, + SearchDocumentsPageResult, + SearchDocumentsResult, + SearchDocumentsResultBase, + SearchFieldArray, SearchIndexingBufferedSenderDeleteDocumentsOptions, SearchIndexingBufferedSenderFlushDocumentsOptions, SearchIndexingBufferedSenderMergeDocumentsOptions, SearchIndexingBufferedSenderMergeOrUploadDocumentsOptions, + SearchIndexingBufferedSenderOptions, SearchIndexingBufferedSenderUploadDocumentsOptions, + SearchIterator, + SearchOptions, SearchPick, - SearchFieldArray, + SearchRequestOptions, + SearchRequestQueryTypeOptions, + SearchResult, SelectArray, SelectFields, + SemanticDebugInfo, + SemanticSearchOptions, + SuggestDocumentsResult, SuggestNarrowedModel, + SuggestOptions, + SuggestRequest, + SuggestResult, UnionToIntersection, - SemanticPartialResponseReason, - SemanticPartialResponseType, - QueryDebugMode, - SemanticErrorHandlingMode, - SemanticFieldState, - AnswersOptions, - DocumentDebugInfo, - SemanticDebugInfo, - QueryResultDocumentSemanticField, - Answers, - VectorQuery, - BaseVectorQuery, - RawVectorQuery, + UploadDocumentsOptions, VectorizableTextQuery, - VectorQueryKind, - VectorFilterMode, + VectorizedQuery, + VectorQuery, + VectorSearchOptions, } from "./indexModels"; -export { SearchIndexingBufferedSender, IndexDocumentsClient } from "./searchIndexingBufferedSender"; -export { SearchIndexClient, SearchIndexClientOptions } from "./searchIndexClient"; +export { odata } from "./odata"; +export { KnownSearchAudience } from "./searchAudience"; +export { SearchClient, SearchClientOptions } from "./searchClient"; +export { SearchIndexClient, SearchIndexClientOptions } from "./searchIndexClient"; export { SearchIndexerClient, SearchIndexerClientOptions } from "./searchIndexerClient"; export { - SearchIndex, - LexicalAnalyzer, - TokenFilter, - LexicalTokenizer, + DEFAULT_BATCH_SIZE, + DEFAULT_FLUSH_WINDOW, + DEFAULT_RETRY_COUNT, + IndexDocumentsClient, + SearchIndexingBufferedSender, +} from "./searchIndexingBufferedSender"; +export { + AliasIterator, + AnalyzeRequest, + AnalyzeTextOptions, + AzureOpenAIEmbeddingSkill, + AzureOpenAIParameters, + AzureOpenAIVectorizer, + BaseVectorSearchAlgorithmConfiguration, + BaseVectorSearchVectorizer, CharFilter, - ListIndexesOptions, + CognitiveServicesAccount, + ComplexDataType, + ComplexField, + CreateAliasOptions, + CreateDataSourceConnectionOptions, + CreateIndexerOptions, CreateIndexOptions, + CreateOrUpdateAliasOptions, + CreateorUpdateDataSourceConnectionOptions, + CreateorUpdateIndexerOptions, CreateOrUpdateIndexOptions, CreateOrUpdateSkillsetOptions, CreateOrUpdateSynonymMapOptions, CreateSkillsetOptions, CreateSynonymMapOptions, + CustomAnalyzer, + CustomEntityLookupSkill, + CustomVectorizer, + CustomVectorizerParameters, + DataChangeDetectionPolicy, + DataDeletionDetectionPolicy, + DeleteAliasOptions, + DeleteDataSourceConnectionOptions, + DeleteIndexerOptions, + DeleteIndexOptions, DeleteSkillsetOptions, DeleteSynonymMapOptions, - GetSkillSetOptions, - GetSynonymMapsOptions, - ListSkillsetsOptions, - SearchIndexerSkillset, - ListSynonymMapsOptions, - DeleteIndexOptions, - AnalyzeTextOptions, + EdgeNGramTokenFilter, + EntityRecognitionSkill, + ExhaustiveKnnAlgorithmConfiguration, + ExhaustiveKnnParameters, + GetAliasOptions, + GetDataSourceConnectionOptions, + GetIndexerOptions, + GetIndexerStatusOptions, GetIndexOptions, GetIndexStatisticsOptions, + GetServiceStatisticsOptions, + GetSkillSetOptions, + GetSynonymMapsOptions, + HnswAlgorithmConfiguration, + HnswParameters, + ImageAnalysisSkill, + IndexingParameters, + IndexingParametersConfiguration, + IndexIterator, + IndexNameIterator, + KeyPhraseExtractionSkill, + KeywordTokenizer, KnownAnalyzerNames, KnownCharFilterNames, KnownTokenFilterNames, KnownTokenizerNames, - ScoringFunction, - ScoringProfile, - CustomAnalyzer, - PatternAnalyzer, - PatternTokenizer, - SearchField, - SimpleField, - ComplexField, - SearchFieldDataType, - ComplexDataType, - CognitiveServicesAccount, - SearchIndexerSkill, - SynonymMap, - ListIndexersOptions, - CreateIndexerOptions, - GetIndexerOptions, - CreateorUpdateIndexerOptions, - DeleteIndexerOptions, - GetIndexerStatusOptions, - ResetIndexerOptions, - RunIndexerOptions, - CreateDataSourceConnectionOptions, - CreateorUpdateDataSourceConnectionOptions, - DeleteDataSourceConnectionOptions, - GetDataSourceConnectionOptions, + LexicalAnalyzer, + LexicalNormalizer, + LexicalTokenizer, + ListAliasesOptions, ListDataSourceConnectionsOptions, - SearchIndexerDataSourceConnection, - DataChangeDetectionPolicy, - DataDeletionDetectionPolicy, - GetServiceStatisticsOptions, - IndexIterator, - IndexNameIterator, - SimilarityAlgorithm, - NGramTokenFilter, + ListIndexersOptions, + ListIndexesOptions, + ListSkillsetsOptions, + ListSynonymMapsOptions, LuceneStandardTokenizer, - EdgeNGramTokenFilter, - KeywordTokenizer, - AnalyzeRequest, - SearchResourceEncryptionKey, - SearchIndexStatistics, - SearchServiceStatistics, - SearchIndexer, - LexicalNormalizer, - SearchIndexerDataIdentity, + NGramTokenFilter, + OcrSkill, + PatternAnalyzer, + PatternTokenizer, + PIIDetectionSkill, ResetDocumentsOptions, + ResetIndexerOptions, ResetSkillsOptions, + RunIndexerOptions, + ScoringFunction, + ScoringProfile, + SearchField, + SearchFieldDataType, + SearchIndex, SearchIndexAlias, - CreateAliasOptions, - CreateOrUpdateAliasOptions, - DeleteAliasOptions, - GetAliasOptions, - ListAliasesOptions, - AliasIterator, - VectorSearchAlgorithmConfiguration, - VectorSearchAlgorithmMetric, - VectorSearch, + SearchIndexer, SearchIndexerCache, - SearchIndexerKnowledgeStore, - WebApiSkill, - HnswParameters, - HnswVectorSearchAlgorithmConfiguration, + SearchIndexerDataIdentity, + SearchIndexerDataSourceConnection, SearchIndexerIndexProjections, SearchIndexerIndexProjectionsParameters, - VectorSearchVectorizer, - ExhaustiveKnnParameters, - AzureOpenAIParameters, - CustomVectorizerParameters, - VectorSearchAlgorithmKind, - VectorSearchVectorizerKind, - AzureOpenAIEmbeddingSkill, - AzureOpenAIVectorizer, - CustomVectorizer, - ExhaustiveKnnVectorSearchAlgorithmConfiguration, - IndexProjectionMode, - BaseVectorSearchAlgorithmConfiguration, - BaseVectorSearchVectorizer, + SearchIndexerKnowledgeStore, SearchIndexerKnowledgeStoreParameters, -} from "./serviceModels"; -export { default as GeographyPoint } from "./geographyPoint"; -export { odata } from "./odata"; -export { IndexDocumentsBatch } from "./indexDocumentsBatch"; -export { - AutocompleteResult, - AutocompleteMode, - AutocompleteItem, - FacetResult, - IndexActionType, - IndexDocumentsResult, - IndexingResult, - QueryType, - SearchMode, - ScoringStatistics, - KnownAnswers, - QueryLanguage, - KnownQueryLanguage, - Speller, - KnownSpeller, - CaptionResult, - AnswerResult, - Captions, - QueryAnswerType, - QueryCaptionType, - QuerySpellerType, - KnownQuerySpellerType, - KnownQueryAnswerType, - KnownQueryCaptionType, - QueryResultDocumentRerankerInput, -} from "./generated/data/models"; -export { - RegexFlags, - KnownRegexFlags, - LuceneStandardAnalyzer, - StopAnalyzer, - MappingCharFilter, - PatternReplaceCharFilter, - CorsOptions, - AzureActiveDirectoryApplicationCredentials, - ScoringFunctionAggregation, - ScoringFunctionInterpolation, - DistanceScoringParameters, - DistanceScoringFunction, - FreshnessScoringParameters, - FreshnessScoringFunction, - MagnitudeScoringParameters, - MagnitudeScoringFunction, - TagScoringParameters, - TagScoringFunction, - TextWeights, - AsciiFoldingTokenFilter, - CjkBigramTokenFilterScripts, - CjkBigramTokenFilter, - CommonGramTokenFilter, - DictionaryDecompounderTokenFilter, - EdgeNGramTokenFilterSide, - ElisionTokenFilter, - KeepTokenFilter, - KeywordMarkerTokenFilter, - LengthTokenFilter, - LimitTokenFilter, - PatternCaptureTokenFilter, - PatternReplaceTokenFilter, - PhoneticEncoder, - PhoneticTokenFilter, - ShingleTokenFilter, - SnowballTokenFilterLanguage, - SnowballTokenFilter, - StemmerTokenFilterLanguage, - StemmerTokenFilter, - StemmerOverrideTokenFilter, - StopwordsList, - StopwordsTokenFilter, - SynonymTokenFilter, - TruncateTokenFilter, - UniqueTokenFilter, - WordDelimiterTokenFilter, - ClassicTokenizer, - TokenCharacterKind, - EdgeNGramTokenizer, - MicrosoftTokenizerLanguage, - MicrosoftLanguageTokenizer, - MicrosoftStemmingTokenizerLanguage, - MicrosoftLanguageStemmingTokenizer, - NGramTokenizer, - PathHierarchyTokenizerV2 as PathHierarchyTokenizer, - UaxUrlEmailTokenizer, - Suggester as SearchSuggester, - AnalyzeResult, - AnalyzedTokenInfo, - ConditionalSkill, - KeyPhraseExtractionSkill, - OcrSkill, - ImageAnalysisSkill, - LanguageDetectionSkill, - ShaperSkill, - MergeSkill, - EntityRecognitionSkill, + SearchIndexerSkill, + SearchIndexerSkillset, + SearchIndexStatistics, + SearchResourceEncryptionKey, + SearchServiceStatistics, SentimentSkill, - CustomEntityLookupSkill, - CustomEntityLookupSkillLanguage, - KnownCustomEntityLookupSkillLanguage, - DocumentExtractionSkill, - CustomEntity, - CustomEntityAlias, + SimilarityAlgorithm, + SimpleField, SplitSkill, - PIIDetectionSkill, - EntityRecognitionSkillV3, - EntityLinkingSkill, - SentimentSkillV3, + SynonymMap, TextTranslationSkill, - AzureMachineLearningSkill, - SentimentSkillLanguage, - KnownSentimentSkillLanguage, - SplitSkillLanguage, - KnownSplitSkillLanguage, - TextSplitMode, - KnownTextSplitMode, - TextTranslationSkillLanguage, - KnownTextTranslationSkillLanguage, - DefaultCognitiveServicesAccount, - CognitiveServicesAccountKey, - InputFieldMappingEntry, - OutputFieldMappingEntry, - EntityCategory, - KnownEntityCategory, - EntityRecognitionSkillLanguage, - KnownEntityRecognitionSkillLanguage, - ImageAnalysisSkillLanguage, - KnownImageAnalysisSkillLanguage, - ImageDetail, - KnownImageDetail, - VisualFeature, - KnownVisualFeature, - KeyPhraseExtractionSkillLanguage, - KnownKeyPhraseExtractionSkillLanguage, - OcrSkillLanguage, - KnownOcrSkillLanguage, - FieldMapping, - IndexingParameters, - IndexingSchedule, - FieldMappingFunction, - SearchIndexerStatus, - IndexerExecutionResult, - SearchIndexerLimits, - IndexerStatus, - SearchIndexerError, - IndexerExecutionStatus, - SearchIndexerWarning, - SearchIndexerDataContainer, - SearchIndexerDataSourceType, - KnownSearchIndexerDataSourceType, - SoftDeleteColumnDeletionDetectionPolicy, - SqlIntegratedChangeTrackingPolicy, - HighWaterMarkChangeDetectionPolicy, - SearchIndexerDataUserAssignedIdentity, - SearchIndexerDataNoneIdentity, - ServiceCounters, - ServiceLimits, - ResourceCounter, - LexicalAnalyzerName, - KnownLexicalAnalyzerName, - ClassicSimilarity, - BM25Similarity, - IndexingParametersConfiguration, - BlobIndexerDataToExtract, - KnownBlobIndexerDataToExtract, - IndexerExecutionEnvironment, - BlobIndexerImageAction, - KnownBlobIndexerImageAction, - BlobIndexerParsingMode, - KnownBlobIndexerParsingMode, - BlobIndexerPDFTextRotationAlgorithm, - KnownBlobIndexerPDFTextRotationAlgorithm, - TokenFilter as BaseTokenFilter, - Similarity, - LexicalTokenizer as BaseLexicalTokenizer, - CognitiveServicesAccount as BaseCognitiveServicesAccount, - SearchIndexerSkill as BaseSearchIndexerSkill, - ScoringFunction as BaseScoringFunction, - DataChangeDetectionPolicy as BaseDataChangeDetectionPolicy, - LexicalAnalyzer as BaseLexicalAnalyzer, - CharFilter as BaseCharFilter, - DataDeletionDetectionPolicy as BaseDataDeletionDetectionPolicy, - LexicalNormalizerName, - KnownLexicalNormalizerName, - CustomNormalizer, - TokenFilterName, - KnownTokenFilterName, - CharFilterName, - KnownCharFilterName, - LexicalNormalizer as BaseLexicalNormalizer, - SearchIndexerKnowledgeStoreProjection, - SearchIndexerKnowledgeStoreFileProjectionSelector, - SearchIndexerKnowledgeStoreBlobProjectionSelector, - SearchIndexerKnowledgeStoreProjectionSelector, - SearchIndexerKnowledgeStoreObjectProjectionSelector, - SearchIndexerKnowledgeStoreTableProjectionSelector, - PIIDetectionSkillMaskingMode, - KnownPIIDetectionSkillMaskingMode, - LineEnding, - KnownLineEnding, - SearchIndexerDataIdentity as BaseSearchIndexerDataIdentity, - IndexerState, - IndexerExecutionStatusDetail, - KnownIndexerExecutionStatusDetail, - IndexingMode, - KnownIndexingMode, - SemanticSettings, - SemanticConfiguration, - PrioritizedFields, - SemanticField, - SearchAlias, - NativeBlobSoftDeleteDeletionDetectionPolicy, - SearchIndexerIndexProjectionSelector, - VectorSearchProfile, -} from "./generated/service/models"; -export { AzureKeyCredential } from "@azure/core-auth"; + TokenFilter, + VectorSearch, + VectorSearchAlgorithmConfiguration, + VectorSearchCompressionConfiguration, + VectorSearchVectorizer, + WebApiSkill, +} from "./serviceModels"; export { createSynonymMapFromFile } from "./synonymMapHelper"; -export { KnownSearchAudience } from "./searchAudience"; diff --git a/sdk/search/search-documents/src/indexDocumentsBatch.ts b/sdk/search/search-documents/src/indexDocumentsBatch.ts index 28910ac384f3..1122943bb701 100644 --- a/sdk/search/search-documents/src/indexDocumentsBatch.ts +++ b/sdk/search/search-documents/src/indexDocumentsBatch.ts @@ -7,13 +7,13 @@ import { IndexDocumentsAction } from "./indexModels"; * Class used to perform batch operations * with multiple documents to the index. */ -export class IndexDocumentsBatch { +export class IndexDocumentsBatch { /** * The set of actions taken in this batch. */ - public readonly actions: IndexDocumentsAction[]; + public readonly actions: IndexDocumentsAction[]; - constructor(actions: IndexDocumentsAction[] = []) { + constructor(actions: IndexDocumentsAction[] = []) { this.actions = actions; } @@ -21,8 +21,8 @@ export class IndexDocumentsBatch { * Upload an array of documents to the index. * @param documents - The documents to upload. */ - public upload(documents: T[]): void { - const batch = documents.map>((doc) => { + public upload(documents: TModel[]): void { + const batch = documents.map>((doc) => { return { ...doc, __actionType: "upload", @@ -37,8 +37,8 @@ export class IndexDocumentsBatch { * For more details about how merging works, see https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents * @param documents - The updated documents. */ - public merge(documents: T[]): void { - const batch = documents.map>((doc) => { + public merge(documents: TModel[]): void { + const batch = documents.map>((doc) => { return { ...doc, __actionType: "merge", @@ -53,8 +53,8 @@ export class IndexDocumentsBatch { * For more details about how merging works, see https://docs.microsoft.com/en-us/rest/api/searchservice/AddUpdate-or-Delete-Documents * @param documents - The new/updated documents. */ - public mergeOrUpload(documents: T[]): void { - const batch = documents.map>((doc) => { + public mergeOrUpload(documents: TModel[]): void { + const batch = documents.map>((doc) => { return { ...doc, __actionType: "mergeOrUpload", @@ -69,34 +69,34 @@ export class IndexDocumentsBatch { * @param keyName - The name of their primary key in the index. * @param keyValues - The primary key values of documents to delete. */ - public delete(keyName: keyof T, keyValues: string[]): void; + public delete(keyName: keyof TModel, keyValues: string[]): void; /** * Delete a set of documents. * @param documents - Documents to be deleted. */ - public delete(documents: T[]): void; + public delete(documents: TModel[]): void; - public delete(keyNameOrDocuments: keyof T | T[], keyValues?: string[]): void { + public delete(keyNameOrDocuments: keyof TModel | TModel[], keyValues?: string[]): void { if (keyValues) { - const keyName = keyNameOrDocuments as keyof T; + const keyName = keyNameOrDocuments as keyof TModel; - const batch = keyValues.map>((keyValue) => { + const batch = keyValues.map>((keyValue) => { return { __actionType: "delete", [keyName]: keyValue, - } as IndexDocumentsAction; + } as IndexDocumentsAction; }); this.actions.push(...batch); } else { - const documents = keyNameOrDocuments as T[]; + const documents = keyNameOrDocuments as TModel[]; - const batch = documents.map>((document) => { + const batch = documents.map>((document) => { return { __actionType: "delete", ...document, - } as IndexDocumentsAction; + } as IndexDocumentsAction; }); this.actions.push(...batch); diff --git a/sdk/search/search-documents/src/indexModels.ts b/sdk/search/search-documents/src/indexModels.ts index 713b4180c024..14907ea0110d 100644 --- a/sdk/search/search-documents/src/indexModels.ts +++ b/sdk/search/search-documents/src/indexModels.ts @@ -2,24 +2,29 @@ // Licensed under the MIT license. import { OperationOptions } from "@azure/core-client"; +import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { - AnswerResult, AutocompleteMode, - CaptionResult, - Captions, FacetResult, IndexActionType, - QueryAnswerType, - QueryCaptionType, + QueryAnswerResult, + QueryCaptionResult, + QueryDebugMode, QueryLanguage, QueryResultDocumentRerankerInput, - QuerySpellerType, QueryType, ScoringStatistics, SearchMode, + SemanticFieldState, Speller, } from "./generated/data/models"; -import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SemanticErrorMode, + SemanticErrorReason, + SemanticSearchResultsType, + VectorFilterMode, + VectorQueryKind, +} from "./generatedStringLiteralUnions"; import GeographyPoint from "./geographyPoint"; /** @@ -180,16 +185,9 @@ export type SearchIterator< ListSearchResultsPageSettings >; -export type VectorQueryKind = "vector" | "text"; - -/** - * Determines whether or not filters are applied before or after the vector search is performed. - */ -export type VectorFilterMode = "postFilter" | "preFilter"; - /** The query parameters for vector and hybrid search queries. */ export type VectorQuery = - | RawVectorQuery + | VectorizedQuery | VectorizableTextQuery; /** The query parameters for vector and hybrid search queries. */ @@ -200,16 +198,27 @@ export interface BaseVectorQuery { kNearestNeighborsCount?: number; /** Vector Fields of type Collection(Edm.Single) to be included in the vector searched. */ fields?: SearchFieldArray; - /** When true, triggers an exhaustive k-nearest neighbor search across all vectors within the vector index. Useful for scenarios where exact matches are critical, such as determining ground truth values. */ + /** + * When true, triggers an exhaustive k-nearest neighbor search across all vectors within the + * vector index. Useful for scenarios where exact matches are critical, such as determining ground + * truth values. + */ exhaustive?: boolean; + /** + * Oversampling factor. Minimum value is 1. It overrides the 'defaultOversampling' parameter + * configured in the index definition. It can be set only when 'rerankWithOriginalVectors' is + * true. This parameter is only permitted when a compression method is used on the underlying + * vector field. + */ + oversampling?: number; } /** The query parameters to use for vector search when a raw vector value is provided. */ -export interface RawVectorQuery extends BaseVectorQuery { +export interface VectorizedQuery extends BaseVectorQuery { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "vector"; /** The vector representation of a search query. */ - vector?: number[]; + vector: number[]; } /** The query parameters to use for vector search when a text value that needs to be vectorized is provided. */ @@ -223,179 +232,7 @@ export interface VectorizableTextQuery extends BaseVector /** * Parameters for filtering, sorting, faceting, paging, and other search query behaviors. */ -export interface SearchRequest { - /** - * A value that specifies whether to fetch the total count of results. Default is false. Setting - * this value to true may have a performance impact. Note that the count returned is an - * approximation. - */ - includeTotalCount?: boolean; - /** - * The list of facet expressions to apply to the search query. Each facet expression contains a - * field name, optionally followed by a comma-separated list of name:value pairs. - */ - facets?: string[]; - /** - * The OData $filter expression to apply to the search query. - */ - filter?: string; - /** - * The comma-separated list of field names to use for hit highlights. Only searchable fields can - * be used for hit highlighting. - */ - highlightFields?: string; - /** - * A string tag that is appended to hit highlights. Must be set with highlightPreTag. Default is - * </em>. - */ - highlightPostTag?: string; - /** - * A string tag that is prepended to hit highlights. Must be set with highlightPostTag. Default - * is <em>. - */ - highlightPreTag?: string; - /** - * A number between 0 and 100 indicating the percentage of the index that must be covered by a - * search query in order for the query to be reported as a success. This parameter can be useful - * for ensuring search availability even for services with only one replica. The default is 100. - */ - minimumCoverage?: number; - /** - * The comma-separated list of OData $orderby expressions by which to sort the results. Each - * expression can be either a field name or a call to either the geo.distance() or the - * search.score() functions. Each expression can be followed by asc to indicate ascending, or - * desc to indicate descending. The default is ascending order. Ties will be broken by the match - * scores of documents. If no $orderby is specified, the default sort order is descending by - * document match score. There can be at most 32 $orderby clauses. - */ - orderBy?: string; - /** - * A value that specifies the syntax of the search query. The default is 'simple'. Use 'full' if - * your query uses the Lucene query syntax. Possible values include: 'Simple', 'Full' - */ - queryType?: QueryType; - /** - * A value that specifies whether we want to calculate scoring statistics (such as document - * frequency) globally for more consistent scoring, or locally, for lower latency. The default is - * 'local'. Use 'global' to aggregate scoring statistics globally before scoring. Using global - * scoring statistics can increase latency of search queries. Possible values include: 'Local', - * 'Global' - */ - scoringStatistics?: ScoringStatistics; - /** - * A value to be used to create a sticky session, which can help getting more consistent results. - * As long as the same sessionId is used, a best-effort attempt will be made to target the same - * replica set. Be wary that reusing the same sessionID values repeatedly can interfere with the - * load balancing of the requests across replicas and adversely affect the performance of the - * search service. The value used as sessionId cannot start with a '_' character. - */ - sessionId?: string; - /** - * The list of parameter values to be used in scoring functions (for example, - * referencePointParameter) using the format name-values. For example, if the scoring profile - * defines a function with a parameter called 'mylocation' the parameter string would be - * "mylocation--122.2,44.8" (without the quotes). - */ - scoringParameters?: string[]; - /** - * The name of a scoring profile to evaluate match scores for matching documents in order to sort - * the results. - */ - scoringProfile?: string; - /** - * Allows setting a separate search query that will be solely used for semantic reranking, - * semantic captions and semantic answers. Is useful for scenarios where there is a need to use - * different queries between the base retrieval and ranking phase, and the L2 semantic phase. - */ - semanticQuery?: string; - /** - * The name of a semantic configuration that will be used when processing documents for queries of - * type semantic. - */ - semanticConfiguration?: string; - /** - * Allows the user to choose whether a semantic call should fail completely, or to return partial - * results (default). - */ - semanticErrorHandlingMode?: SemanticErrorHandlingMode; - /** - * Allows the user to set an upper bound on the amount of time it takes for semantic enrichment - * to finish processing before the request fails. - */ - semanticMaxWaitInMilliseconds?: number; - /** - * Enables a debugging tool that can be used to further explore your Semantic search results. - */ - debugMode?: QueryDebugMode; - /** - * A full-text search query expression; Use "*" or omit this parameter to match all documents. - */ - searchText?: string; - /** - * The comma-separated list of field names to which to scope the full-text search. When using - * fielded search (fieldName:searchExpression) in a full Lucene query, the field names of each - * fielded search expression take precedence over any field names listed in this parameter. - */ - searchFields?: string; - /** - * A value that specifies whether any or all of the search terms must be matched in order to - * count the document as a match. Possible values include: 'Any', 'All' - */ - searchMode?: SearchMode; - /** - * A value that specifies the language of the search query. - */ - queryLanguage?: QueryLanguage; - /** - * A value that specified the type of the speller to use to spell-correct individual search - * query terms. - */ - speller?: QuerySpellerType; - /** - * A value that specifies whether answers should be returned as part of the search response. - */ - answers?: QueryAnswerType; - /** - * The comma-separated list of fields to retrieve. If unspecified, all fields marked as - * retrievable in the schema are included. - */ - select?: string; - /** - * The number of search results to skip. This value cannot be greater than 100,000. If you need - * to scan documents in sequence, but cannot use skip due to this limitation, consider using - * orderby on a totally-ordered key and filter with a range query instead. - */ - skip?: number; - /** - * The number of search results to retrieve. This can be used in conjunction with $skip to - * implement client-side paging of search results. If results are truncated due to server-side - * paging, the response will include a continuation token that can be used to issue another - * Search request for the next page of results. - */ - top?: number; - /** - * A value that specifies whether captions should be returned as part of the search response. - */ - captions?: QueryCaptionType; - /** - * The comma-separated list of field names used for semantic search. - */ - semanticFields?: string; - /** - * The query parameters for vector, hybrid, and multi-vector search queries. - */ - vectorQueries?: VectorQuery[]; - /** - * Determines whether or not filters are applied before or after the vector search is performed. - * Default is 'preFilter'. - */ - vectorFilterMode?: VectorFilterMode; -} - -/** - * Parameters for filtering, sorting, faceting, paging, and other search query behaviors. - */ -export interface SearchRequestOptions< +export interface BaseSearchRequestOptions< TModel extends object, TFields extends SelectFields = SelectFields, > { @@ -461,31 +298,6 @@ export interface SearchRequestOptions< * the results. */ scoringProfile?: string; - /** - * Allows setting a separate search query that will be solely used for semantic reranking, - * semantic captions and semantic answers. Is useful for scenarios where there is a need to use - * different queries between the base retrieval and ranking phase, and the L2 semantic phase. - */ - semanticQuery?: string; - /** - * The name of a semantic configuration that will be used when processing documents for queries of - * type semantic. - */ - semanticConfiguration?: string; - /** - * Allows the user to choose whether a semantic call should fail completely, or to return - * partial results (default). - */ - semanticErrorHandlingMode?: SemanticErrorHandlingMode; - /** - * Allows the user to set an upper bound on the amount of time it takes for semantic enrichment to finish - * processing before the request fails. - */ - semanticMaxWaitInMilliseconds?: number; - /** - * Enables a debugging tool that can be used to further explore your search results. - */ - debugMode?: QueryDebugMode; /** * The comma-separated list of field names to which to scope the full-text search. When using * fielded search (fieldName:searchExpression) in a full Lucene query, the field names of each @@ -500,11 +312,6 @@ export interface SearchRequestOptions< * Improve search recall by spell-correcting individual search query terms. */ speller?: Speller; - /** - * This parameter is only valid if the query type is 'semantic'. If set, the query returns answers - * extracted from key passages in the highest ranked documents. - */ - answers?: Answers | AnswersOptions; /** * A value that specifies whether any or all of the search terms must be matched in order to * count the document as a match. Possible values include: 'any', 'all' @@ -543,27 +350,29 @@ export interface SearchRequestOptions< */ top?: number; /** - * This parameter is only valid if the query type is 'semantic'. If set, the query returns captions - * extracted from key passages in the highest ranked documents. When Captions is set to 'extractive', - * highlighting is enabled by default, and can be configured by appending the pipe character '|' - * followed by the 'highlight-true'/'highlight-false' option, such as 'extractive|highlight-true'. Defaults to 'None'. - */ - captions?: Captions; - /** - * The list of field names used for semantic search. - */ - semanticFields?: string[]; - /** - * The query parameters for vector and hybrid search queries. - */ - vectorQueries?: VectorQuery[]; - /** - * Determines whether or not filters are applied before or after the vector search is performed. - * Default is 'preFilter'. + * Defines options for vector search queries */ - vectorFilterMode?: VectorFilterMode; + vectorSearchOptions?: VectorSearchOptions; } +/** + * Parameters for filtering, sorting, faceting, paging, and other search query behaviors. + */ +export type SearchRequestOptions< + TModel extends object, + TFields extends SelectFields = SelectFields, +> = BaseSearchRequestOptions & SearchRequestQueryTypeOptions; + +export type SearchRequestQueryTypeOptions = + | { + queryType: "semantic"; + /** + * Defines options for semantic search queries + */ + semanticSearchOptions: SemanticSearchOptions; + } + | { queryType?: "simple" | "full" }; + /** * Contains a document found by a search query, plus associated metadata. */ @@ -591,7 +400,7 @@ export type SearchResult< * Captions are the most representative passages from the document relatively to the search query. They are often used as document summary. Captions are only returned for queries of type 'semantic'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly captions?: CaptionResult[]; + readonly captions?: QueryCaptionResult[]; document: NarrowedModel; @@ -631,17 +440,17 @@ export interface SearchDocumentsResultBase { * not specified or set to 'none'. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly answers?: AnswerResult[]; + readonly answers?: QueryAnswerResult[]; /** * Reason that a partial response was returned for a semantic search request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly semanticPartialResponseReason?: SemanticPartialResponseReason; + readonly semanticErrorReason?: SemanticErrorReason; /** * Type of partial response that was returned for a semantic search request. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly semanticPartialResponseType?: SemanticPartialResponseType; + readonly semanticSearchResultsType?: SemanticSearchResultsType; } /** @@ -830,13 +639,13 @@ export interface AutocompleteRequest { /** * Represents an index action that operates on a document. */ -export type IndexDocumentsAction = { +export type IndexDocumentsAction = { /** * The operation to perform on a document in an indexing batch. Possible values include: * 'upload', 'merge', 'mergeOrUpload', 'delete' */ __actionType: IndexActionType; -} & Partial; +} & Partial; // END manually modified generated interfaces @@ -1090,83 +899,98 @@ export interface SemanticDebugInfo { } /** - * This parameter is only valid if the query type is 'semantic'. If set, the query returns answers - * extracted from key passages in the highest ranked documents. The number of answers returned can - * be configured by appending the pipe character '|' followed by the 'count-\' option - * after the answers parameter value, such as 'extractive|count-3'. Default count is 1. The - * confidence threshold can be configured by appending the pipe character '|' followed by the - * 'threshold-\' option after the answers parameter value, such as - * 'extractive|threshold-0.9'. Default threshold is 0.7. + * Extracts answer candidates from the contents of the documents returned in response to a query + * expressed as a question in natural language. */ -export type Answers = string; +export interface ExtractiveQueryAnswer { + answerType: "extractive"; + /** + * The number of answers returned. Default count is 1 + */ + count?: number; + /** + * The confidence threshold. Default threshold is 0.7 + */ + threshold?: number; +} /** * A value that specifies whether answers should be returned as part of the search response. * This parameter is only valid if the query type is 'semantic'. If set to `extractive`, the query * returns answers extracted from key passages in the highest ranked documents. */ -export type AnswersOptions = - | { - /** - * Extracts answer candidates from the contents of the documents returned in response to a - * query expressed as a question in natural language. - */ - answers: "extractive"; - /** - * The number of answers returned. Default count is 1 - */ - count?: number; - /** - * The confidence threshold. Default threshold is 0.7 - */ - threshold?: number; - } - | { - /** - * Do not return answers for the query. - */ - answers: "none"; - }; - -/** - * maxWaitExceeded: If 'semanticMaxWaitInMilliseconds' was set and the semantic processing duration - * exceeded that value. Only the base results were returned. - * - * capacityOverloaded: The request was throttled. Only the base results were returned. - * - * transient: At least one step of the semantic process failed. - */ -export type SemanticPartialResponseReason = "maxWaitExceeded" | "capacityOverloaded" | "transient"; +export type QueryAnswer = ExtractiveQueryAnswer; -/** - * baseResults: Results without any semantic enrichment or reranking. - * - * rerankedResults: Results have been reranked with the reranker model and will include semantic - * captions. They will not include any answers, answers highlights or caption highlights. - */ -export type SemanticPartialResponseType = "baseResults" | "rerankedResults"; +/** Extracts captions from the matching documents that contain passages relevant to the search query. */ +export interface ExtractiveQueryCaption { + captionType: "extractive"; + highlight?: boolean; +} /** - * disabled: No query debugging information will be returned. - * - * semantic: Allows the user to further explore their Semantic search results. + * A value that specifies whether captions should be returned as part of the search response. + * This parameter is only valid if the query type is 'semantic'. If set, the query returns captions + * extracted from key passages in the highest ranked documents. When Captions is 'extractive', + * highlighting is enabled by default. Defaults to 'none'. */ -export type QueryDebugMode = "disabled" | "semantic"; +export type QueryCaption = ExtractiveQueryCaption; /** - * partial: If the semantic processing fails, partial results still return. The definition of - * partial results depends on what semantic step failed and what was the reason for failure. - * - * fail: If there is an exception during the semantic processing step, the query will fail and - * return the appropriate HTTP code depending on the error. + * Defines options for semantic search queries */ -export type SemanticErrorHandlingMode = "partial" | "fail"; +export interface SemanticSearchOptions { + /** + * The name of a semantic configuration that will be used when processing documents for queries of + * type semantic. + */ + configurationName?: string; + /** + * Allows the user to choose whether a semantic call should fail completely, or to return partial + * results (default). + */ + errorMode?: SemanticErrorMode; + /** + * Allows the user to set an upper bound on the amount of time it takes for semantic enrichment + * to finish processing before the request fails. + */ + maxWaitInMilliseconds?: number; + /** + * If set, the query returns answers extracted from key passages in the highest ranked documents. + */ + answers?: QueryAnswer; + /** + * If set, the query returns captions extracted from key passages in the highest ranked + * documents. When Captions is set to 'extractive', highlighting is enabled by default. Defaults + * to 'None'. + */ + captions?: QueryCaption; + /** + * Allows setting a separate search query that will be solely used for semantic reranking, + * semantic captions and semantic answers. Is useful for scenarios where there is a need to use + * different queries between the base retrieval and ranking phase, and the L2 semantic phase. + */ + semanticQuery?: string; + /** + * The list of field names used for semantic search. + */ + semanticFields?: string[]; + /** + * Enables a debugging tool that can be used to further explore your search results. + */ + debugMode?: QueryDebugMode; +} /** - * used: The field was fully used for semantic enrichment. - * - * unused: The field was not used for semantic enrichment. - * - * partial: The field was partially used for semantic enrichment. + * Defines options for vector search queries */ -export type SemanticFieldState = "used" | "unused" | "partial"; +export interface VectorSearchOptions { + /** + * The query parameters for vector, hybrid, and multi-vector search queries. + */ + queries: VectorQuery[]; + /** + * Determines whether or not filters are applied before or after the vector search is performed. + * Default is 'preFilter'. + */ + filterMode?: VectorFilterMode; +} diff --git a/sdk/search/search-documents/src/odataMetadataPolicy.ts b/sdk/search/search-documents/src/odataMetadataPolicy.ts index c3854981db6c..c6b873ee83c1 100644 --- a/sdk/search/search-documents/src/odataMetadataPolicy.ts +++ b/sdk/search/search-documents/src/odataMetadataPolicy.ts @@ -10,7 +10,7 @@ import { const AcceptHeaderName = "Accept"; -export type MetadataLevel = "none" | "minimal"; +type MetadataLevel = "none" | "minimal"; const odataMetadataPolicy = "OdataMetadataPolicy"; /** diff --git a/sdk/search/search-documents/src/searchClient.ts b/sdk/search/search-documents/src/searchClient.ts index 6a724e9c87a8..a10bbcf7a139 100644 --- a/sdk/search/search-documents/src/searchClient.ts +++ b/sdk/search/search-documents/src/searchClient.ts @@ -3,29 +3,26 @@ /// +import { isTokenCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; import { InternalClientPipelineOptions } from "@azure/core-client"; -import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; -import { SearchClient as GeneratedClient } from "./generated/data/searchClient"; -import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; -import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; -import { logger } from "./logger"; +import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; +import { bearerTokenAuthenticationPolicy, Pipeline } from "@azure/core-rest-pipeline"; +import { decode, encode } from "./base64"; import { AutocompleteRequest, AutocompleteResult, IndexDocumentsResult, - KnownSemanticPartialResponseReason, - KnownSemanticPartialResponseType, - SuggestRequest, + QueryAnswerType as BaseAnswers, + QueryCaptionType as BaseCaptions, SearchRequest as GeneratedSearchRequest, - Answers, - QueryAnswerType, - VectorQueryUnion as GeneratedVectorQuery, - VectorQuery as GeneratedBaseVectorQuery, - RawVectorQuery as GeneratedRawVectorQuery, + SuggestRequest, VectorizableTextQuery as GeneratedVectorizableTextQuery, + VectorizedQuery as GeneratedVectorizedQuery, + VectorQueryUnion as GeneratedVectorQuery, } from "./generated/data/models"; -import { createSpan } from "./tracing"; -import { deserialize, serialize } from "./serialization"; +import { SearchClient as GeneratedClient } from "./generated/data/searchClient"; +import { SemanticErrorReason, SemanticSearchResultsType } from "./generatedStringLiteralUnions"; +import { IndexDocumentsBatch } from "./indexDocumentsBatch"; import { AutocompleteOptions, CountDocumentsOptions, @@ -35,32 +32,32 @@ import { ListSearchResultsPageSettings, MergeDocumentsOptions, MergeOrUploadDocumentsOptions, + NarrowedModel, + QueryAnswer, + QueryCaption, SearchDocumentsPageResult, SearchDocumentsResult, + SearchFieldArray, SearchIterator, SearchOptions, - SearchRequest, - SelectFields, SearchResult, + SelectArray, + SelectFields, SuggestDocumentsResult, SuggestOptions, UploadDocumentsOptions, - NarrowedModel, - SelectArray, - SearchFieldArray, - AnswersOptions, - BaseVectorQuery, - RawVectorQuery, VectorizableTextQuery, + VectorizedQuery, VectorQuery, } from "./indexModels"; +import { logger } from "./logger"; import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; -import { IndexDocumentsBatch } from "./indexDocumentsBatch"; -import { decode, encode } from "./base64"; -import * as utils from "./serviceUtils"; -import { IndexDocumentsClient } from "./searchIndexingBufferedSender"; -import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; +import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; import { KnownSearchAudience } from "./searchAudience"; +import { IndexDocumentsClient } from "./searchIndexingBufferedSender"; +import { deserialize, serialize } from "./serialization"; +import * as utils from "./serviceUtils"; +import { createSpan } from "./tracing"; /** * Client options used to configure Cognitive Search API requests. @@ -116,12 +113,16 @@ export class SearchClient implements IndexDocumentsClient public readonly indexName: string; /** - * @internal * @hidden * A reference to the auto-generated SearchClient */ private readonly client: GeneratedClient; + /** + * A reference to the internal HTTP pipeline for use with raw requests + */ + public readonly pipeline: Pipeline; + /** * Creates an instance of SearchClient. * @@ -195,6 +196,7 @@ export class SearchClient implements IndexDocumentsClient this.serviceVersion, internalClientPipelineOptions, ); + this.pipeline = this.client.pipeline; if (isTokenCredential(credential)) { const scope: string = options.audience @@ -315,21 +317,32 @@ export class SearchClient implements IndexDocumentsClient private async searchDocuments>( searchText?: string, options: SearchOptions = {}, - nextPageParameters: SearchRequest = {}, + nextPageParameters: GeneratedSearchRequest = {}, ): Promise> { const { + includeTotalCount, + orderBy, searchFields, - semanticFields, select, - orderBy, - includeTotalCount, - vectorQueries, + vectorSearchOptions, + semanticSearchOptions, + ...restOptions + } = options as typeof options & { queryType: "semantic" }; + + const { + semanticFields, + configurationName, + errorMode, answers, - semanticErrorHandlingMode, + captions, debugMode, - ...restOptions - } = options; + ...restSemanticOptions + } = semanticSearchOptions ?? {}; + const { queries, filterMode, ...restVectorOptions } = vectorSearchOptions ?? {}; + const fullOptions: GeneratedSearchRequest = { + ...restSemanticOptions, + ...restVectorOptions, ...restOptions, ...nextPageParameters, searchFields: this.convertSearchFields(searchFields), @@ -337,10 +350,13 @@ export class SearchClient implements IndexDocumentsClient select: this.convertSelect(select) || "*", orderBy: this.convertOrderBy(orderBy), includeTotalResultCount: includeTotalCount, - vectorQueries: vectorQueries?.map(this.convertVectorQuery.bind(this)), - answers: this.convertAnswers(answers), - semanticErrorHandling: semanticErrorHandlingMode, + vectorQueries: queries?.map(this.convertVectorQuery.bind(this)), + answers: this.convertQueryAnswers(answers), + captions: this.convertQueryCaptions(captions), + semanticErrorHandling: errorMode, + semanticConfigurationName: configurationName, debug: debugMode, + vectorFilterMode: filterMode, }; const { span, updatedOptions } = createSpan("SearchClient-searchDocuments", options); @@ -358,10 +374,13 @@ export class SearchClient implements IndexDocumentsClient results, nextLink, nextPageParameters: resultNextPageParameters, - semanticPartialResponseReason, - semanticPartialResponseType, + semanticPartialResponseReason: semanticErrorReason, + semanticPartialResponseType: semanticSearchResultsType, ...restResult - } = result; + } = result as typeof result & { + semanticPartialResponseReason: SemanticErrorReason | undefined; + semanticPartialResponseType: SemanticSearchResultsType | undefined; + }; const modifiedResults = utils.generatedSearchResultToPublicSearchResult( results, @@ -370,16 +389,9 @@ export class SearchClient implements IndexDocumentsClient const converted: SearchDocumentsPageResult = { ...restResult, results: modifiedResults, - semanticPartialResponseReason: - semanticPartialResponseReason as `${KnownSemanticPartialResponseReason}`, - semanticPartialResponseType: - semanticPartialResponseType as `${KnownSemanticPartialResponseType}`, - continuationToken: this.encodeContinuationToken( - nextLink, - resultNextPageParameters - ? utils.generatedSearchRequestToPublicSearchRequest(resultNextPageParameters) - : resultNextPageParameters, - ), + semanticErrorReason, + semanticSearchResultsType, + continuationToken: this.encodeContinuationToken(nextLink, resultNextPageParameters), }; return deserialize>(converted); @@ -605,7 +617,7 @@ export class SearchClient implements IndexDocumentsClient try { const result = await this.client.documents.get(key, { ...updatedOptions, - selectedFields: updatedOptions.selectedFields as string[], + selectedFields: updatedOptions.selectedFields as string[] | undefined, }); return deserialize>(result); } catch (e: any) { @@ -798,7 +810,7 @@ export class SearchClient implements IndexDocumentsClient private encodeContinuationToken( nextLink: string | undefined, - nextPageParameters: SearchRequest | undefined, + nextPageParameters: GeneratedSearchRequest | undefined, ): string | undefined { if (!nextLink || !nextPageParameters) { return undefined; @@ -813,7 +825,7 @@ export class SearchClient implements IndexDocumentsClient private decodeContinuationToken( token?: string, - ): { nextPageParameters: SearchRequest; nextLink: string } | undefined { + ): { nextPageParameters: GeneratedSearchRequest; nextLink: string } | undefined { if (!token) { return undefined; } @@ -824,7 +836,7 @@ export class SearchClient implements IndexDocumentsClient const result: { apiVersion: string; nextLink: string; - nextPageParameters: SearchRequest; + nextPageParameters: GeneratedSearchRequest; } = JSON.parse(decodedToken); if (result.apiVersion !== this.apiVersion) { @@ -877,16 +889,13 @@ export class SearchClient implements IndexDocumentsClient return orderBy; } - private convertAnswers(answers?: Answers | AnswersOptions): QueryAnswerType | undefined { - if (!answers || typeof answers === "string") { + private convertQueryAnswers(answers?: QueryAnswer): BaseAnswers | undefined { + if (!answers) { return answers; } - if (answers.answers === "none") { - return answers.answers; - } const config = []; - const { answers: output, count, threshold } = answers; + const { answerType: output, count, threshold } = answers; if (count) { config.push(`count-${count}`); @@ -903,12 +912,30 @@ export class SearchClient implements IndexDocumentsClient return output; } + private convertQueryCaptions(captions?: QueryCaption): BaseCaptions | undefined { + if (!captions) { + return captions; + } + + const config = []; + const { captionType: output, highlight } = captions; + + if (highlight !== undefined) { + config.push(`highlight-${highlight}`); + } + + if (config.length) { + return output + `|${config.join(",")}`; + } + + return output; + } + private convertVectorQuery(): undefined; - private convertVectorQuery(vectorQuery: RawVectorQuery): GeneratedRawVectorQuery; + private convertVectorQuery(vectorQuery: VectorizedQuery): GeneratedVectorizedQuery; private convertVectorQuery( vectorQuery: VectorizableTextQuery, ): GeneratedVectorizableTextQuery; - private convertVectorQuery(vectorQuery: BaseVectorQuery): GeneratedBaseVectorQuery; private convertVectorQuery(vectorQuery: VectorQuery): GeneratedVectorQuery; private convertVectorQuery(vectorQuery?: VectorQuery): GeneratedVectorQuery | undefined { if (!vectorQuery) { diff --git a/sdk/search/search-documents/src/searchIndexClient.ts b/sdk/search/search-documents/src/searchIndexClient.ts index 4b19a6793b25..229c672a65f0 100644 --- a/sdk/search/search-documents/src/searchIndexClient.ts +++ b/sdk/search/search-documents/src/searchIndexClient.ts @@ -3,13 +3,17 @@ /// -import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; +import { isTokenCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; import { InternalClientPipelineOptions } from "@azure/core-client"; -import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; +import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; +import { bearerTokenAuthenticationPolicy, Pipeline } from "@azure/core-rest-pipeline"; import { AnalyzeResult } from "./generated/service/models"; import { SearchServiceClient as GeneratedClient } from "./generated/service/searchServiceClient"; import { logger } from "./logger"; +import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; +import { KnownSearchAudience } from "./searchAudience"; +import { SearchClient, SearchClientOptions as GetSearchClientOptions } from "./searchClient"; import { AliasIterator, AnalyzeTextOptions, @@ -40,10 +44,6 @@ import { } from "./serviceModels"; import * as utils from "./serviceUtils"; import { createSpan } from "./tracing"; -import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; -import { SearchClientOptions as GetSearchClientOptions, SearchClient } from "./searchClient"; -import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; -import { KnownSearchAudience } from "./searchAudience"; /** * Client options used to configure Cognitive Search API requests. @@ -91,12 +91,16 @@ export class SearchIndexClient { public readonly endpoint: string; /** - * @internal * @hidden * A reference to the auto-generated SearchServiceClient */ private readonly client: GeneratedClient; + /** + * A reference to the internal HTTP pipeline for use with raw requests + */ + public readonly pipeline: Pipeline; + /** * Used to authenticate requests to the service. */ @@ -158,6 +162,7 @@ export class SearchIndexClient { this.serviceVersion, internalClientPipelineOptions, ); + this.pipeline = this.client.pipeline; if (isTokenCredential(credential)) { const scope: string = this.options.audience @@ -732,7 +737,15 @@ export class SearchIndexClient { * @param options - Additional arguments */ public async analyzeText(indexName: string, options: AnalyzeTextOptions): Promise { - const { abortSignal, requestOptions, tracingOptions, ...restOptions } = options; + const { + abortSignal, + requestOptions, + tracingOptions, + analyzerName: analyzer, + tokenizerName: tokenizer, + ...restOptions + } = options; + const operationOptions = { abortSignal, requestOptions, @@ -740,15 +753,11 @@ export class SearchIndexClient { }; const { span, updatedOptions } = createSpan("SearchIndexClient-analyzeText", operationOptions); + try { const result = await this.client.indexes.analyze( indexName, - { - ...restOptions, - analyzer: restOptions.analyzerName, - tokenizer: restOptions.tokenizerName, - normalizer: restOptions.normalizerName, - }, + { ...restOptions, analyzer, tokenizer }, updatedOptions, ); return result; diff --git a/sdk/search/search-documents/src/searchIndexerClient.ts b/sdk/search/search-documents/src/searchIndexerClient.ts index ecd8a5d2c641..12cae27c57f0 100644 --- a/sdk/search/search-documents/src/searchIndexerClient.ts +++ b/sdk/search/search-documents/src/searchIndexerClient.ts @@ -1,20 +1,23 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { KeyCredential, TokenCredential, isTokenCredential } from "@azure/core-auth"; +import { isTokenCredential, KeyCredential, TokenCredential } from "@azure/core-auth"; import { InternalClientPipelineOptions } from "@azure/core-client"; -import { bearerTokenAuthenticationPolicy } from "@azure/core-rest-pipeline"; +import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; +import { bearerTokenAuthenticationPolicy, Pipeline } from "@azure/core-rest-pipeline"; import { SearchIndexerStatus } from "./generated/service/models"; import { SearchServiceClient as GeneratedClient } from "./generated/service/searchServiceClient"; import { logger } from "./logger"; +import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; import { createSearchApiKeyCredentialPolicy } from "./searchApiKeyCredentialPolicy"; +import { KnownSearchAudience } from "./searchAudience"; import { CreateDataSourceConnectionOptions, CreateIndexerOptions, - CreateOrUpdateSkillsetOptions, - CreateSkillsetOptions, CreateorUpdateDataSourceConnectionOptions, CreateorUpdateIndexerOptions, + CreateOrUpdateSkillsetOptions, + CreateSkillsetOptions, DeleteDataSourceConnectionOptions, DeleteIndexerOptions, DeleteSkillsetOptions, @@ -35,9 +38,6 @@ import { } from "./serviceModels"; import * as utils from "./serviceUtils"; import { createSpan } from "./tracing"; -import { createOdataMetadataPolicy } from "./odataMetadataPolicy"; -import { ExtendedCommonClientOptions } from "@azure/core-http-compat"; -import { KnownSearchAudience } from "./searchAudience"; /** * Client options used to configure Cognitive Search API requests. @@ -85,12 +85,16 @@ export class SearchIndexerClient { public readonly endpoint: string; /** - * @internal * @hidden * A reference to the auto-generated SearchServiceClient */ private readonly client: GeneratedClient; + /** + * A reference to the internal HTTP pipeline for use with raw requests + */ + public readonly pipeline: Pipeline; + /** * Creates an instance of SearchIndexerClient. * @@ -140,6 +144,7 @@ export class SearchIndexerClient { this.serviceVersion, internalClientPipelineOptions, ); + this.pipeline = this.client.pipeline; if (isTokenCredential(credential)) { const scope: string = options.audience @@ -469,17 +474,17 @@ export class SearchIndexerClient { "SearchIndexerClient-createOrUpdateIndexer", options, ); + + const { onlyIfUnchanged, ...restOptions } = updatedOptions; try { - const etag = options.onlyIfUnchanged ? indexer.etag : undefined; + const etag = onlyIfUnchanged ? indexer.etag : undefined; const result = await this.client.indexers.createOrUpdate( indexer.name, utils.publicSearchIndexerToGeneratedSearchIndexer(indexer), { - ...updatedOptions, + ...restOptions, ifMatch: etag, - skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, - disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection, }, ); return utils.generatedSearchIndexerToPublicSearchIndexer(result); @@ -516,7 +521,6 @@ export class SearchIndexerClient { { ...updatedOptions, ifMatch: etag, - skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, }, ); return utils.generatedDataSourceToPublicDataSource(result); @@ -553,8 +557,6 @@ export class SearchIndexerClient { { ...updatedOptions, ifMatch: etag, - skipIndexerResetRequirementForCache: options.skipIndexerResetRequirementForCache, - disableCacheReprocessingChangeDetection: options.disableCacheReprocessingChangeDetection, }, ); diff --git a/sdk/search/search-documents/src/searchIndexingBufferedSender.ts b/sdk/search/search-documents/src/searchIndexingBufferedSender.ts index 87f36a355085..9be346a46b09 100644 --- a/sdk/search/search-documents/src/searchIndexingBufferedSender.ts +++ b/sdk/search/search-documents/src/searchIndexingBufferedSender.ts @@ -1,6 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { OperationOptions } from "@azure/core-client"; +import { RestError } from "@azure/core-rest-pipeline"; +import EventEmitter from "events"; +import { IndexDocumentsResult } from "./generated/data/models"; import { IndexDocumentsBatch } from "./indexDocumentsBatch"; import { IndexDocumentsAction, @@ -12,18 +16,13 @@ import { SearchIndexingBufferedSenderOptions, SearchIndexingBufferedSenderUploadDocumentsOptions, } from "./indexModels"; -import { IndexDocumentsResult } from "./generated/data/models"; -import { OperationOptions } from "@azure/core-client"; -import EventEmitter from "events"; +import { delay, getRandomIntegerInclusive } from "./serviceUtils"; import { createSpan } from "./tracing"; -import { delay } from "./serviceUtils"; -import { getRandomIntegerInclusive } from "./serviceUtils"; -import { RestError } from "@azure/core-rest-pipeline"; /** * Index Documents Client */ -export interface IndexDocumentsClient { +export interface IndexDocumentsClient { /** * Perform a set of index modifications (upload, merge, mergeOrUpload, delete) * for the given set of documents. @@ -32,7 +31,7 @@ export interface IndexDocumentsClient { * @param options - Additional options. */ indexDocuments( - batch: IndexDocumentsBatch, + batch: IndexDocumentsBatch, options: IndexDocumentsOptions, ): Promise; } @@ -49,14 +48,10 @@ export const DEFAULT_FLUSH_WINDOW: number = 60000; * Default number of times to retry. */ export const DEFAULT_RETRY_COUNT: number = 3; -/** - * Default retry delay. - */ -export const DEFAULT_RETRY_DELAY: number = 800; /** * Default Max Delay between retries. */ -export const DEFAULT_MAX_RETRY_DELAY: number = 60000; +const DEFAULT_MAX_RETRY_DELAY: number = 60000; /** * Class used to perform buffered operations against a search index, diff --git a/sdk/search/search-documents/src/serviceModels.ts b/sdk/search/search-documents/src/serviceModels.ts index 4605d13741e0..853c7569afd9 100644 --- a/sdk/search/search-documents/src/serviceModels.ts +++ b/sdk/search/search-documents/src/serviceModels.ts @@ -6,6 +6,7 @@ import { AsciiFoldingTokenFilter, AzureMachineLearningSkill, BM25Similarity, + CharFilterName, CjkBigramTokenFilter, ClassicSimilarity, ClassicTokenizer, @@ -13,7 +14,7 @@ import { CommonGramTokenFilter, ConditionalSkill, CorsOptions, - CustomEntityLookupSkill, + CustomEntity, CustomNormalizer, DefaultCognitiveServicesAccount, DictionaryDecompounderTokenFilter, @@ -23,21 +24,19 @@ import { EdgeNGramTokenizer, ElisionTokenFilter, EntityLinkingSkill, - EntityRecognitionSkill, EntityRecognitionSkillV3, FieldMapping, FreshnessScoringFunction, HighWaterMarkChangeDetectionPolicy, - ImageAnalysisSkill, - IndexingParameters, IndexingSchedule, + IndexProjectionMode, KeepTokenFilter, - KeyPhraseExtractionSkill, KeywordMarkerTokenFilter, LanguageDetectionSkill, LengthTokenFilter, LexicalAnalyzerName, LexicalNormalizerName, + LexicalTokenizerName, LimitTokenFilter, LuceneStandardAnalyzer, MagnitudeScoringFunction, @@ -45,25 +44,23 @@ import { MergeSkill, MicrosoftLanguageStemmingTokenizer, MicrosoftLanguageTokenizer, + NativeBlobSoftDeleteDeletionDetectionPolicy, NGramTokenizer, - OcrSkill, - PIIDetectionSkill, PathHierarchyTokenizerV2 as PathHierarchyTokenizer, PatternCaptureTokenFilter, PatternReplaceCharFilter, PatternReplaceTokenFilter, PhoneticTokenFilter, - RegexFlags, + ScalarQuantizationCompressionConfiguration, ScoringFunctionAggregation, SearchAlias, SearchIndexerDataContainer, SearchIndexerDataNoneIdentity, - SearchIndexerDataSourceType, SearchIndexerDataUserAssignedIdentity, - Suggester as SearchSuggester, + SearchIndexerIndexProjectionSelector, + SearchIndexerKnowledgeStoreProjection, SearchIndexerSkill as BaseSearchIndexerSkill, - SemanticSettings, - SentimentSkill, + SemanticSearch, SentimentSkillV3, ServiceCounters, ServiceLimits, @@ -71,25 +68,47 @@ import { ShingleTokenFilter, SnowballTokenFilter, SoftDeleteColumnDeletionDetectionPolicy, - SplitSkill, SqlIntegratedChangeTrackingPolicy, StemmerOverrideTokenFilter, StemmerTokenFilter, StopAnalyzer, StopwordsTokenFilter, + Suggester as SearchSuggester, SynonymTokenFilter, TagScoringFunction, - TextTranslationSkill, TextWeights, + TokenFilterName, TruncateTokenFilter, UaxUrlEmailTokenizer, UniqueTokenFilter, - WordDelimiterTokenFilter, - SearchIndexerKnowledgeStoreProjection, - SearchIndexerIndexProjectionSelector, - NativeBlobSoftDeleteDeletionDetectionPolicy, VectorSearchProfile, + WordDelimiterTokenFilter, } from "./generated/service/models"; +import { + BlobIndexerDataToExtract, + BlobIndexerImageAction, + BlobIndexerParsingMode, + BlobIndexerPDFTextRotationAlgorithm, + CustomEntityLookupSkillLanguage, + EntityCategory, + EntityRecognitionSkillLanguage, + ImageAnalysisSkillLanguage, + ImageDetail, + IndexerExecutionEnvironment, + KeyPhraseExtractionSkillLanguage, + OcrSkillLanguage, + PIIDetectionSkillMaskingMode, + RegexFlags, + SearchIndexerDataSourceType, + SentimentSkillLanguage, + SplitSkillLanguage, + TextSplitMode, + TextTranslationSkillLanguage, + VectorSearchAlgorithmKind, + VectorSearchAlgorithmMetric, + VectorSearchVectorizerKind, + VisualFeature, +} from "./generatedStringLiteralUnions"; import { PagedAsyncIterableIterator } from "@azure/core-paging"; @@ -167,7 +186,7 @@ export interface SearchIndexStatistics { * The amount of memory in bytes consumed by vectors in the index. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vectorIndexSize?: number; + readonly vectorIndexSize: number; } /** @@ -424,31 +443,32 @@ export interface AnalyzeRequest { /** * The name of the analyzer to use to break the given text. If this parameter is not specified, * you must specify a tokenizer instead. The tokenizer and analyzer parameters are mutually - * exclusive. KnownAnalyzerNames is an enum containing known values. + * exclusive. {@link KnownAnalyzerNames} is an enum containing built-in analyzer names. * NOTE: Either analyzerName or tokenizerName is required in an AnalyzeRequest. */ - analyzerName?: string; + analyzerName?: LexicalAnalyzerName; /** * The name of the tokenizer to use to break the given text. If this parameter is not specified, * you must specify an analyzer instead. The tokenizer and analyzer parameters are mutually - * exclusive. KnownTokenizerNames is an enum containing known values. + * exclusive. {@link KnownTokenizerNames} is an enum containing built-in tokenizer names. * NOTE: Either analyzerName or tokenizerName is required in an AnalyzeRequest. */ - tokenizerName?: string; + tokenizerName?: LexicalTokenizerName; /** - * The name of the normalizer to use to normalize the given text. + * The name of the normalizer to use to normalize the given text. {@link KnownNormalizerNames} is + * an enum containing built-in analyzer names. */ normalizerName?: LexicalNormalizerName; /** * An optional list of token filters to use when breaking the given text. This parameter can only * be set when using the tokenizer parameter. */ - tokenFilters?: string[]; + tokenFilters?: TokenFilterName[]; /** * An optional list of character filters to use when breaking the given text. This parameter can * only be set when using the tokenizer parameter. */ - charFilters?: string[]; + charFilters?: CharFilterName[]; } /** @@ -515,21 +535,21 @@ export interface CustomAnalyzer { name: string; /** * The name of the tokenizer to use to divide continuous text into a sequence of tokens, such as - * breaking a sentence into words. KnownTokenizerNames is an enum containing known values. + * breaking a sentence into words. {@link KnownTokenizerNames} is an enum containing built-in tokenizer names. */ - tokenizerName: string; + tokenizerName: LexicalTokenizerName; /** * A list of token filters used to filter out or modify the tokens generated by a tokenizer. For * example, you can specify a lowercase filter that converts all characters to lowercase. The * filters are run in the order in which they are listed. */ - tokenFilters?: string[]; + tokenFilters?: TokenFilterName[]; /** * A list of character filters used to prepare input text before it is processed by the * tokenizer. For instance, they can replace certain characters or symbols. The filters are run * in the order in which they are listed. */ - charFilters?: string[]; + charFilters?: CharFilterName[]; } /** @@ -596,26 +616,26 @@ export interface WebApiSkill extends BaseSearchIndexerSkill { * Contains the possible cases for Skill. */ export type SearchIndexerSkill = + | AzureMachineLearningSkill + | AzureOpenAIEmbeddingSkill | ConditionalSkill - | KeyPhraseExtractionSkill - | OcrSkill + | CustomEntityLookupSkill + | DocumentExtractionSkill + | EntityLinkingSkill + | EntityRecognitionSkill + | EntityRecognitionSkillV3 | ImageAnalysisSkill + | KeyPhraseExtractionSkill | LanguageDetectionSkill - | ShaperSkill | MergeSkill - | EntityRecognitionSkill - | SentimentSkill - | SplitSkill + | OcrSkill | PIIDetectionSkill - | EntityRecognitionSkillV3 - | EntityLinkingSkill + | SentimentSkill | SentimentSkillV3 - | CustomEntityLookupSkill + | ShaperSkill + | SplitSkill | TextTranslationSkill - | DocumentExtractionSkill - | WebApiSkill - | AzureMachineLearningSkill - | AzureOpenAIEmbeddingSkill; + | WebApiSkill; /** * Contains the possible cases for CognitiveServicesAccount. @@ -856,7 +876,8 @@ export type ScoringFunction = * Possible values include: 'Edm.String', 'Edm.Int32', 'Edm.Int64', 'Edm.Double', 'Edm.Boolean', * 'Edm.DateTimeOffset', 'Edm.GeographyPoint', 'Collection(Edm.String)', 'Collection(Edm.Int32)', * 'Collection(Edm.Int64)', 'Collection(Edm.Double)', 'Collection(Edm.Boolean)', - * 'Collection(Edm.DateTimeOffset)', 'Collection(Edm.GeographyPoint)', 'Collection(Edm.Single)' + * 'Collection(Edm.DateTimeOffset)', 'Collection(Edm.GeographyPoint)', 'Collection(Edm.Single)', + * 'Collection(Edm.Half)', 'Collection(Edm.Int16)', 'Collection(Edm.SByte)' * * NB: `Edm.Single` alone is not a valid data type. It must be used as part of a collection type. * @readonly @@ -876,7 +897,10 @@ export type SearchFieldDataType = | "Collection(Edm.Boolean)" | "Collection(Edm.DateTimeOffset)" | "Collection(Edm.GeographyPoint)" - | "Collection(Edm.Single)"; + | "Collection(Edm.Single)" + | "Collection(Edm.Half)" + | "Collection(Edm.Int16)" + | "Collection(Edm.SByte)"; /** * Defines values for ComplexDataType. @@ -917,14 +941,25 @@ export interface SimpleField { */ key?: boolean; /** - * A value indicating whether the field can be returned in a search result. You can enable this + * A value indicating whether the field can be returned in a search result. You can disable this * option if you want to use a field (for example, margin) as a filter, sorting, or scoring - * mechanism but do not want the field to be visible to the end user. This property must be false - * for key fields. This property can be changed on existing fields. - * Disabling this property does not cause any increase in index storage requirements. - * Default is false. + * mechanism but do not want the field to be visible to the end user. This property must be true + * for key fields. This property can be changed on existing fields. Enabling this property does + * not cause any increase in index storage requirements. Default is true for simple fields and + * false for vector fields. */ hidden?: boolean; + /** + * An immutable value indicating whether the field will be persisted separately on disk to be + * returned in a search result. You can disable this option if you don't plan to return the field + * contents in a search response to save on storage overhead. This can only be set during index + * creation and only for vector fields. This property cannot be changed for existing fields or set + * as false for new fields. If this property is set as false, the property `hidden` must be set as + * true. This property must be true or unset for key fields, for new fields, and for non-vector + * fields, and it must be null for complex fields. Disabling this property will reduce index + * storage requirements. The default is true for vector fields. + */ + stored?: boolean; /** * A value indicating whether the field is full-text searchable. This means it will undergo * analysis such as word-breaking during indexing. If you set a searchable field to a value like @@ -1004,7 +1039,7 @@ export interface SimpleField { * The name of the vector search algorithm configuration that specifies the algorithm and * optional parameters for searching the vector field. */ - vectorSearchProfile?: string; + vectorSearchProfileName?: string; } export function isComplexField(field: SearchField): field is ComplexField { @@ -1156,7 +1191,7 @@ export interface SearchIndex { /** * Defines parameters for a search index that influence semantic capabilities. */ - semanticSettings?: SemanticSettings; + semanticSearch?: SemanticSearch; /** * Contains configuration options related to vector search. */ @@ -2094,12 +2129,17 @@ export interface VectorSearch { algorithms?: VectorSearchAlgorithmConfiguration[]; /** Contains configuration options on how to vectorize text vector queries. */ vectorizers?: VectorSearchVectorizer[]; + /** + * Contains configuration options specific to the compression method used during indexing or + * querying. + */ + compressions?: VectorSearchCompressionConfiguration[]; } /** Contains configuration options specific to the algorithm used during indexing and/or querying. */ export type VectorSearchAlgorithmConfiguration = - | HnswVectorSearchAlgorithmConfiguration - | ExhaustiveKnnVectorSearchAlgorithmConfiguration; + | HnswAlgorithmConfiguration + | ExhaustiveKnnAlgorithmConfiguration; /** Contains configuration options specific to the algorithm used during indexing and/or querying. */ export interface BaseVectorSearchAlgorithmConfiguration { @@ -2113,7 +2153,7 @@ export interface BaseVectorSearchAlgorithmConfiguration { * Contains configuration options specific to the hnsw approximate nearest neighbors algorithm * used during indexing time. */ -export type HnswVectorSearchAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { +export type HnswAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { /** * Polymorphic discriminator, which specifies the different types this object can be */ @@ -2155,13 +2195,12 @@ export interface HnswParameters { } /** Contains configuration options specific to the exhaustive KNN algorithm used during querying, which will perform brute-force search across the entire vector index. */ -export type ExhaustiveKnnVectorSearchAlgorithmConfiguration = - BaseVectorSearchAlgorithmConfiguration & { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "exhaustiveKnn"; - /** Contains the parameters specific to exhaustive KNN algorithm. */ - parameters?: ExhaustiveKnnParameters; - }; +export type ExhaustiveKnnAlgorithmConfiguration = BaseVectorSearchAlgorithmConfiguration & { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "exhaustiveKnn"; + /** Contains the parameters specific to exhaustive KNN algorithm. */ + parameters?: ExhaustiveKnnParameters; +}; /** Contains the parameters specific to exhaustive KNN algorithm. */ export interface ExhaustiveKnnParameters { @@ -2262,16 +2301,198 @@ export interface SearchIndexerKnowledgeStoreParameters { synthesizeGeneratedKeyName?: boolean; } -/** The similarity metric to use for vector comparisons. */ -export type VectorSearchAlgorithmMetric = "cosine" | "euclidean" | "dotProduct"; +/** A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */ +export interface IndexingParametersConfiguration { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Represents the parsing mode for indexing from an Azure blob data source. */ + parsingMode?: BlobIndexerParsingMode; + /** Comma-delimited list of filename extensions to ignore when processing from Azure blob storage. For example, you could exclude ".png, .mp4" to skip over those files during indexing. */ + excludedFileNameExtensions?: string; + /** Comma-delimited list of filename extensions to select when processing from Azure blob storage. For example, you could focus indexing on specific application files ".docx, .pptx, .msg" to specifically include those file types. */ + indexedFileNameExtensions?: string; + /** For Azure blobs, set to false if you want to continue indexing when an unsupported content type is encountered, and you don't know all the content types (file extensions) in advance. */ + failOnUnsupportedContentType?: boolean; + /** For Azure blobs, set to false if you want to continue indexing if a document fails indexing. */ + failOnUnprocessableDocument?: boolean; + /** For Azure blobs, set this property to true to still index storage metadata for blob content that is too large to process. Oversized blobs are treated as errors by default. For limits on blob size, see https://docs.microsoft.com/azure/search/search-limits-quotas-capacity. */ + indexStorageMetadataOnlyForOversizedDocuments?: boolean; + /** For CSV blobs, specifies a comma-delimited list of column headers, useful for mapping source fields to destination fields in an index. */ + delimitedTextHeaders?: string; + /** For CSV blobs, specifies the end-of-line single-character delimiter for CSV files where each line starts a new document (for example, "|"). */ + delimitedTextDelimiter?: string; + /** For CSV blobs, indicates that the first (non-blank) line of each blob contains headers. */ + firstLineContainsHeaders?: boolean; + /** For JSON arrays, given a structured or semi-structured document, you can specify a path to the array using this property. */ + documentRoot?: string; + /** Specifies the data to extract from Azure blob storage and tells the indexer which data to extract from image content when "imageAction" is set to a value other than "none". This applies to embedded image content in a .PDF or other application, or image files such as .jpg and .png, in Azure blobs. */ + dataToExtract?: BlobIndexerDataToExtract; + /** Determines how to process embedded images and image files in Azure blob storage. Setting the "imageAction" configuration to any value other than "none" requires that a skillset also be attached to that indexer. */ + imageAction?: BlobIndexerImageAction; + /** If true, will create a path //document//file_data that is an object representing the original file data downloaded from your blob data source. This allows you to pass the original file data to a custom skill for processing within the enrichment pipeline, or to the Document Extraction skill. */ + allowSkillsetToReadFileData?: boolean; + /** Determines algorithm for text extraction from PDF files in Azure blob storage. */ + pdfTextRotationAlgorithm?: BlobIndexerPDFTextRotationAlgorithm; + /** Specifies the environment in which the indexer should execute. */ + executionEnvironment?: IndexerExecutionEnvironment; + /** Increases the timeout beyond the 5-minute default for Azure SQL database data sources, specified in the format "hh:mm:ss". */ + queryTimeout?: string; +} + +/** Represents parameters for indexer execution. */ +export interface IndexingParameters { + /** The number of items that are read from the data source and indexed as a single batch in order to improve performance. The default depends on the data source type. */ + batchSize?: number; + /** The maximum number of items that can fail indexing for indexer execution to still be considered successful. -1 means no limit. Default is 0. */ + maxFailedItems?: number; + /** The maximum number of items in a single batch that can fail indexing for the batch to still be considered successful. -1 means no limit. Default is 0. */ + maxFailedItemsPerBatch?: number; + /** A dictionary of indexer-specific configuration properties. Each name is the name of a specific property. Each value must be of a primitive type. */ + configuration?: IndexingParametersConfiguration; +} + +/** A skill looks for text from a custom, user-defined list of words and phrases. */ +export interface CustomEntityLookupSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.CustomEntityLookupSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: CustomEntityLookupSkillLanguage; + /** Path to a JSON or CSV file containing all the target text to match against. This entity definition is read at the beginning of an indexer run. Any updates to this file during an indexer run will not take effect until subsequent runs. This config must be accessible over HTTPS. */ + entitiesDefinitionUri?: string; + /** The inline CustomEntity definition. */ + inlineEntitiesDefinition?: CustomEntity[]; + /** A global flag for CaseSensitive. If CaseSensitive is not set in CustomEntity, this value will be the default value. */ + globalDefaultCaseSensitive?: boolean; + /** A global flag for AccentSensitive. If AccentSensitive is not set in CustomEntity, this value will be the default value. */ + globalDefaultAccentSensitive?: boolean; + /** A global flag for FuzzyEditDistance. If FuzzyEditDistance is not set in CustomEntity, this value will be the default value. */ + globalDefaultFuzzyEditDistance?: number; +} + +/** + * Text analytics entity recognition. + * + * @deprecated This skill has been deprecated. + */ +export interface EntityRecognitionSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.EntityRecognitionSkill"; + /** A list of entity categories that should be extracted. */ + categories?: EntityCategory[]; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: EntityRecognitionSkillLanguage; + /** Determines whether or not to include entities which are well known but don't conform to a pre-defined type. If this configuration is not set (default), set to null or set to false, entities which don't conform to one of the pre-defined types will not be surfaced. */ + includeTypelessEntities?: boolean; + /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ + minimumPrecision?: number; +} + +/** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */ +export interface ImageAnalysisSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: ImageAnalysisSkillLanguage; + /** A list of visual features. */ + visualFeatures?: VisualFeature[]; + /** A string indicating which domain-specific details to return. */ + details?: ImageDetail[]; +} + +/** A skill that uses text analytics for key phrase extraction. */ +export interface KeyPhraseExtractionSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.KeyPhraseExtractionSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: KeyPhraseExtractionSkillLanguage; + /** A number indicating how many key phrases to return. If absent, all identified key phrases will be returned. */ + maxKeyPhraseCount?: number; + /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ + modelVersion?: string; +} -export type VectorSearchAlgorithmKind = "hnsw" | "exhaustiveKnn"; +/** A skill that extracts text from image files. */ +export interface OcrSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Vision.OcrSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: OcrSkillLanguage; + /** A value indicating to turn orientation detection on or not. Default is false. */ + shouldDetectOrientation?: boolean; +} + +/** Using the Text Analytics API, extracts personal information from an input text and gives you the option of masking it. */ +export interface PIIDetectionSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.PIIDetectionSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: string; + /** A value between 0 and 1 that be used to only include entities whose confidence score is greater than the value specified. If not set (default), or if explicitly set to null, all entities will be included. */ + minimumPrecision?: number; + /** A parameter that provides various ways to mask the personal information detected in the input text. Default is 'none'. */ + maskingMode?: PIIDetectionSkillMaskingMode; + /** The character used to mask the text if the maskingMode parameter is set to replace. Default is '*'. */ + maskingCharacter?: string; + /** The version of the model to use when calling the Text Analytics service. It will default to the latest available when not specified. We recommend you do not specify this value unless absolutely necessary. */ + modelVersion?: string; + /** A list of PII entity categories that should be extracted and masked. */ + categories?: string[]; + /** If specified, will set the PII domain to include only a subset of the entity categories. Possible values include: 'phi', 'none'. Default is 'none'. */ + domain?: string; +} /** - * Defines behavior of the index projections in relation to the rest of the indexer. + * Text analytics positive-negative sentiment analysis, scored as a floating point value in a range of zero to 1. + * + * @deprecated This skill has been deprecated. */ -export type IndexProjectionMode = "skipIndexingParentDocuments" | "includeIndexingParentDocuments"; +export interface SentimentSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.SentimentSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: SentimentSkillLanguage; +} -export type VectorSearchVectorizerKind = "azureOpenAI" | "customWebApi"; +/** A skill to split a string into chunks of text. */ +export interface SplitSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.SplitSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: SplitSkillLanguage; + /** A value indicating which split mode to perform. */ + textSplitMode?: TextSplitMode; + /** The desired maximum page length. Default is 10000. */ + maxPageLength?: number; +} + +/** A skill to translate text from one language to another. */ +export interface TextTranslationSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Text.TranslationSkill"; + /** The language code to translate documents into for documents that don't specify the to language explicitly. */ + defaultToLanguageCode: TextTranslationSkillLanguage; + /** The language code to translate documents from for documents that don't specify the from language explicitly. */ + defaultFromLanguageCode?: TextTranslationSkillLanguage; + /** The language code to translate documents from when neither the fromLanguageCode input nor the defaultFromLanguageCode parameter are provided, and the automatic language detection is unsuccessful. Default is en. */ + suggestedFrom?: TextTranslationSkillLanguage; +} + +/** A skill that analyzes image files. It extracts a rich set of visual features based on the image content. */ +export interface ImageAnalysisSkill extends BaseSearchIndexerSkill { + /** Polymorphic discriminator, which specifies the different types this object can be */ + odatatype: "#Microsoft.Skills.Vision.ImageAnalysisSkill"; + /** A value indicating which language code to use. Default is en. */ + defaultLanguageCode?: ImageAnalysisSkillLanguage; + /** A list of visual features. */ + visualFeatures?: VisualFeature[]; + /** A string indicating which domain-specific details to return. */ + details?: ImageDetail[]; +} + +/** + * Contains configuration options specific to the compression method used during indexing or + * querying. + */ +export type VectorSearchCompressionConfiguration = ScalarQuantizationCompressionConfiguration; // END manually modified generated interfaces diff --git a/sdk/search/search-documents/src/serviceUtils.ts b/sdk/search/search-documents/src/serviceUtils.ts index ec47fabf2186..625479e538d0 100644 --- a/sdk/search/search-documents/src/serviceUtils.ts +++ b/sdk/search/search-documents/src/serviceUtils.ts @@ -1,80 +1,92 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { + SearchResult as GeneratedSearchResult, + SuggestDocumentsResult as GeneratedSuggestDocumentsResult, +} from "./generated/data/models"; import { AzureMachineLearningSkill, + AzureOpenAIVectorizer as GeneratedAzureOpenAIVectorizer, BM25Similarity, ClassicSimilarity, CognitiveServicesAccountKey, CognitiveServicesAccountUnion, ConditionalSkill, - CustomAnalyzer, - CustomEntityLookupSkill, + CustomAnalyzer as BaseCustomAnalyzer, + CustomVectorizer as GeneratedCustomVectorizer, DataChangeDetectionPolicyUnion, DataDeletionDetectionPolicyUnion, DefaultCognitiveServicesAccount, DocumentExtractionSkill, EntityLinkingSkill, - EntityRecognitionSkill, EntityRecognitionSkillV3, - PatternAnalyzer as GeneratedPatternAnalyzer, - SearchField as GeneratedSearchField, - SearchIndex as GeneratedSearchIndex, - SearchIndexer as GeneratedSearchIndexer, - SearchIndexerDataSource as GeneratedSearchIndexerDataSourceConnection, - SearchIndexerSkillset as GeneratedSearchIndexerSkillset, - SearchResourceEncryptionKey as GeneratedSearchResourceEncryptionKey, - SynonymMap as GeneratedSynonymMap, + ExhaustiveKnnAlgorithmConfiguration as GeneratedExhaustiveKnnAlgorithmConfiguration, HighWaterMarkChangeDetectionPolicy, - ImageAnalysisSkill, - KeyPhraseExtractionSkill, + HnswAlgorithmConfiguration as GeneratedHnswAlgorithmConfiguration, LanguageDetectionSkill, - LexicalAnalyzerName, LexicalAnalyzerUnion, - LexicalNormalizerName, LexicalTokenizerUnion, LuceneStandardAnalyzer, MergeSkill, - OcrSkill, - PIIDetectionSkill, + PatternAnalyzer as GeneratedPatternAnalyzer, PatternTokenizer, - RegexFlags, + SearchField as GeneratedSearchField, + SearchIndex as GeneratedSearchIndex, + SearchIndexer as GeneratedSearchIndexer, + SearchIndexerCache as GeneratedSearchIndexerCache, SearchIndexerDataIdentityUnion, SearchIndexerDataNoneIdentity, + SearchIndexerDataSource as GeneratedSearchIndexerDataSourceConnection, SearchIndexerDataUserAssignedIdentity, SearchIndexerKnowledgeStore as BaseSearchIndexerKnowledgeStore, + SearchIndexerSkillset as GeneratedSearchIndexerSkillset, SearchIndexerSkillUnion, - SentimentSkill, + SearchResourceEncryptionKey as GeneratedSearchResourceEncryptionKey, SentimentSkillV3, ShaperSkill, SimilarityUnion, SoftDeleteColumnDeletionDetectionPolicy, - SplitSkill, SqlIntegratedChangeTrackingPolicy, StopAnalyzer, - TextTranslationSkill, + SynonymMap as GeneratedSynonymMap, TokenFilterUnion, - SearchIndexerCache as GeneratedSearchIndexerCache, VectorSearch as GeneratedVectorSearch, - CustomVectorizer as GeneratedCustomVectorizer, - AzureOpenAIVectorizer as GeneratedAzureOpenAIVectorizer, - VectorSearchVectorizerUnion as GeneratedVectorSearchVectorizer, VectorSearchAlgorithmConfigurationUnion as GeneratedVectorSearchAlgorithmConfiguration, - HnswVectorSearchAlgorithmConfiguration as GeneratedHnswVectorSearchAlgorithmConfiguration, - ExhaustiveKnnVectorSearchAlgorithmConfiguration as GeneratedExhaustiveKnnVectorSearchAlgorithmConfiguration, + VectorSearchVectorizerUnion as GeneratedVectorSearchVectorizer, } from "./generated/service/models"; +import { + BlobIndexerDataToExtract, + BlobIndexerImageAction, + BlobIndexerParsingMode, + BlobIndexerPDFTextRotationAlgorithm, + IndexerExecutionEnvironment, + RegexFlags, + SearchIndexerDataSourceType, + VectorSearchAlgorithmMetric, +} from "./generatedStringLiteralUnions"; +import { SearchResult, SelectFields, SuggestDocumentsResult, SuggestResult } from "./indexModels"; import { AzureOpenAIVectorizer, CharFilter, CognitiveServicesAccount, ComplexField, + CustomEntityLookupSkill, CustomVectorizer, DataChangeDetectionPolicy, DataDeletionDetectionPolicy, + EntityRecognitionSkill, + ImageAnalysisSkill, + IndexingParameters, + IndexingParametersConfiguration, + isComplexField, + KeyPhraseExtractionSkill, LexicalAnalyzer, LexicalNormalizer, LexicalTokenizer, + OcrSkill, PatternAnalyzer, + PIIDetectionSkill, ScoringProfile, SearchField, SearchFieldDataType, @@ -83,39 +95,23 @@ import { SearchIndexerCache, SearchIndexerDataIdentity, SearchIndexerDataSourceConnection, + SearchIndexerIndexProjections, SearchIndexerKnowledgeStore, SearchIndexerSkill, SearchIndexerSkillset, SearchResourceEncryptionKey, + SentimentSkill, SimilarityAlgorithm, SimpleField, + SplitSkill, SynonymMap, + TextTranslationSkill, TokenFilter, VectorSearch, VectorSearchAlgorithmConfiguration, - VectorSearchAlgorithmMetric, VectorSearchVectorizer, WebApiSkill, - isComplexField, } from "./serviceModels"; -import { - QueryDebugMode, - SearchFieldArray, - SearchRequest, - SearchResult, - SelectFields, - SemanticErrorHandlingMode, - SuggestDocumentsResult, - SuggestResult, - VectorFilterMode, - VectorQuery, -} from "./indexModels"; -import { - SearchResult as GeneratedSearchResult, - SuggestDocumentsResult as GeneratedSuggestDocumentsResult, - SearchRequest as GeneratedSearchRequest, - VectorQueryUnion as GeneratedVectorQuery, -} from "./generated/data/models"; export function convertSkillsToPublic(skills: SearchIndexerSkillUnion[]): SearchIndexerSkill[] { if (!skills) { @@ -226,7 +222,7 @@ export function convertTokenFiltersToGenerated( return result; } -export function convertAnalyzersToGenerated( +function convertAnalyzersToGenerated( analyzers?: LexicalAnalyzer[], ): LexicalAnalyzerUnion[] | undefined { if (!analyzers) { @@ -257,7 +253,7 @@ export function convertAnalyzersToGenerated( return result; } -export function convertAnalyzersToPublic( +function convertAnalyzersToPublic( analyzers?: LexicalAnalyzerUnion[], ): LexicalAnalyzer[] | undefined { if (!analyzers) { @@ -282,10 +278,7 @@ export function convertAnalyzersToPublic( } as PatternAnalyzer); break; case "#Microsoft.Azure.Search.CustomAnalyzer": - result.push({ - ...analyzer, - tokenizerName: (analyzer as CustomAnalyzer).tokenizerName, - } as CustomAnalyzer); + result.push(analyzer as BaseCustomAnalyzer); break; } } @@ -307,24 +300,21 @@ export function convertFieldsToPublic(fields: GeneratedSearchField[]): SearchFie return result; } else { const type: SearchFieldDataType = field.type as SearchFieldDataType; - const analyzerName: LexicalAnalyzerName | undefined = field.analyzer; - const searchAnalyzerName: LexicalAnalyzerName | undefined = field.searchAnalyzer; - const indexAnalyzerName: LexicalAnalyzerName | undefined = field.indexAnalyzer; const synonymMapNames: string[] | undefined = field.synonymMaps; - const normalizerName: LexicalNormalizerName | undefined = field.normalizer; - const { retrievable, ...restField } = field; + const { retrievable, analyzer, searchAnalyzer, indexAnalyzer, normalizer, ...restField } = + field; const hidden = typeof retrievable === "boolean" ? !retrievable : retrievable; const result: SimpleField = { ...restField, type, hidden, - analyzerName, - searchAnalyzerName, - indexAnalyzerName, + analyzerName: analyzer, + searchAnalyzerName: searchAnalyzer, + indexAnalyzerName: indexAnalyzer, + normalizerName: normalizer, synonymMapNames, - normalizerName, }; return result; } @@ -360,7 +350,7 @@ export function convertFieldsToGenerated(fields: SearchField[]): GeneratedSearch }); } -export function convertTokenizersToGenerated( +function convertTokenizersToGenerated( tokenizers?: LexicalTokenizer[], ): LexicalTokenizerUnion[] | undefined { if (!tokenizers) { @@ -381,7 +371,7 @@ export function convertTokenizersToGenerated( return result; } -export function convertTokenizersToPublic( +function convertTokenizersToPublic( tokenizers?: LexicalTokenizerUnion[], ): LexicalTokenizer[] | undefined { if (!tokenizers) { @@ -391,11 +381,11 @@ export function convertTokenizersToPublic( const result: LexicalTokenizer[] = []; for (const tokenizer of tokenizers) { if (tokenizer.odatatype === "#Microsoft.Azure.Search.PatternTokenizer") { + const patternTokenizer = tokenizer as PatternTokenizer; + const flags = patternTokenizer.flags?.split("|") as RegexFlags[] | undefined; result.push({ ...tokenizer, - flags: (tokenizer as PatternTokenizer).flags - ? ((tokenizer as PatternTokenizer).flags!.split("|") as RegexFlags[]) - : undefined, + flags, }); } else { result.push(tokenizer); @@ -428,7 +418,7 @@ export function convertSimilarityToPublic( } } -export function convertEncryptionKeyToPublic( +function convertEncryptionKeyToPublic( encryptionKey?: GeneratedSearchResourceEncryptionKey, ): SearchResourceEncryptionKey | undefined { if (!encryptionKey) { @@ -450,7 +440,7 @@ export function convertEncryptionKeyToPublic( return result; } -export function convertEncryptionKeyToGenerated( +function convertEncryptionKeyToGenerated( encryptionKey?: SearchResourceEncryptionKey, ): GeneratedSearchResourceEncryptionKey | undefined { if (!encryptionKey) { @@ -490,7 +480,7 @@ export function generatedIndexToPublicIndex(generatedIndex: GeneratedSearchIndex scoringProfiles: generatedIndex.scoringProfiles as ScoringProfile[], fields: convertFieldsToPublic(generatedIndex.fields), similarity: convertSimilarityToPublic(generatedIndex.similarity), - semanticSettings: generatedIndex.semanticSettings, + semanticSearch: generatedIndex.semanticSearch, vectorSearch: generatedVectorSearchToPublicVectorSearch(generatedIndex.vectorSearch), }; } @@ -506,31 +496,32 @@ export function generatedVectorSearchVectorizerToPublicVectorizer( return generatedVectorizer; } - if (generatedVectorizer.kind === "azureOpenAI") { - const { azureOpenAIParameters } = generatedVectorizer as GeneratedAzureOpenAIVectorizer; - const authIdentity = convertSearchIndexerDataIdentityToPublic( - azureOpenAIParameters?.authIdentity, - ); - const vectorizer: AzureOpenAIVectorizer = { - ...(generatedVectorizer as GeneratedAzureOpenAIVectorizer), - azureOpenAIParameters: { ...azureOpenAIParameters, authIdentity }, - }; - return vectorizer; - } - - if (generatedVectorizer.kind === "customWebApi") { - const { customVectorizerParameters } = generatedVectorizer as GeneratedCustomVectorizer; - const authIdentity = convertSearchIndexerDataIdentityToPublic( - customVectorizerParameters?.authIdentity, - ); - const vectorizer: CustomVectorizer = { - ...(generatedVectorizer as GeneratedCustomVectorizer), - customVectorizerParameters: { ...customVectorizerParameters, authIdentity }, - }; - return vectorizer; + switch (generatedVectorizer.kind) { + case "azureOpenAI": { + const { azureOpenAIParameters } = generatedVectorizer as GeneratedAzureOpenAIVectorizer; + const authIdentity = convertSearchIndexerDataIdentityToPublic( + azureOpenAIParameters?.authIdentity, + ); + const vectorizer: AzureOpenAIVectorizer = { + ...(generatedVectorizer as GeneratedAzureOpenAIVectorizer), + azureOpenAIParameters: { ...azureOpenAIParameters, authIdentity }, + }; + return vectorizer; + } + case "customWebApi": { + const { customWebApiParameters } = generatedVectorizer as GeneratedCustomVectorizer; + const authIdentity = convertSearchIndexerDataIdentityToPublic( + customWebApiParameters?.authIdentity, + ); + const vectorizer: CustomVectorizer = { + ...(generatedVectorizer as GeneratedCustomVectorizer), + customVectorizerParameters: { ...customWebApiParameters, authIdentity }, + }; + return vectorizer; + } + default: + throw Error("Unsupported vectorizer"); } - - throw Error("Unsupported vectorizer"); } export function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchAlgorithmConfiguration(): undefined; @@ -546,8 +537,8 @@ export function generatedVectorSearchAlgorithmConfigurationToPublicVectorSearchA if (["hnsw", "exhaustiveKnn"].includes(generatedAlgorithmConfiguration.kind)) { const algorithmConfiguration = generatedAlgorithmConfiguration as - | GeneratedHnswVectorSearchAlgorithmConfiguration - | GeneratedExhaustiveKnnVectorSearchAlgorithmConfiguration; + | GeneratedHnswAlgorithmConfiguration + | GeneratedExhaustiveKnnAlgorithmConfiguration; const metric = algorithmConfiguration.parameters?.metric as VectorSearchAlgorithmMetric; return { ...algorithmConfiguration, @@ -580,18 +571,21 @@ export function generatedSearchResultToPublicSearchResult< >(results: GeneratedSearchResult[]): SearchResult[] { const returnValues: SearchResult[] = results.map>( (result) => { - const { _score, _highlights, rerankerScore, captions, documentDebugInfo, ...restProps } = - result; - const doc: { [key: string]: any } = { - ...restProps, - }; + const { + _score: score, + _highlights: highlights, + _rerankerScore: rerankerScore, + _captions: captions, + documentDebugInfo: documentDebugInfo, + ...restProps + } = result; const obj = { - score: _score, - highlights: _highlights, + score, + highlights, rerankerScore, captions, - document: doc, documentDebugInfo, + document: restProps, }; return obj as SearchResult; }, @@ -606,13 +600,9 @@ export function generatedSuggestDocumentsResultToPublicSuggestDocumentsResult< const results = searchDocumentsResult.results.map>((element) => { const { _text, ...restProps } = element; - const doc: { [key: string]: any } = { - ...restProps, - }; - const obj = { text: _text, - document: doc, + document: restProps, }; return obj as SuggestResult; @@ -643,16 +633,21 @@ export function publicIndexToGeneratedIndex(index: SearchIndex): GeneratedSearch export function generatedSkillsetToPublicSkillset( generatedSkillset: GeneratedSearchIndexerSkillset, ): SearchIndexerSkillset { + const { + skills, + cognitiveServicesAccount, + knowledgeStore, + encryptionKey, + indexProjections, + ...props + } = generatedSkillset; return { - name: generatedSkillset.name, - description: generatedSkillset.description, - skills: convertSkillsToPublic(generatedSkillset.skills), - cognitiveServicesAccount: convertCognitiveServicesAccountToPublic( - generatedSkillset.cognitiveServicesAccount, - ), - knowledgeStore: convertKnowledgeStoreToPublic(generatedSkillset.knowledgeStore), - etag: generatedSkillset.etag, - encryptionKey: convertEncryptionKeyToPublic(generatedSkillset.encryptionKey), + ...props, + skills: convertSkillsToPublic(skills), + cognitiveServicesAccount: convertCognitiveServicesAccountToPublic(cognitiveServicesAccount), + knowledgeStore: convertKnowledgeStoreToPublic(knowledgeStore), + encryptionKey: convertEncryptionKeyToPublic(encryptionKey), + indexProjections: indexProjections as SearchIndexerIndexProjections, }; } @@ -713,30 +708,38 @@ export function publicSearchIndexerToGeneratedSearchIndexer( export function generatedSearchIndexerToPublicSearchIndexer( indexer: GeneratedSearchIndexer, ): SearchIndexer { + const { + parsingMode, + dataToExtract, + imageAction, + pdfTextRotationAlgorithm, + executionEnvironment, + } = indexer.parameters?.configuration ?? {}; + + const configuration: IndexingParametersConfiguration | undefined = indexer.parameters + ?.configuration && { + ...indexer.parameters?.configuration, + parsingMode: parsingMode as BlobIndexerParsingMode | undefined, + dataToExtract: dataToExtract as BlobIndexerDataToExtract | undefined, + imageAction: imageAction as BlobIndexerImageAction | undefined, + pdfTextRotationAlgorithm: pdfTextRotationAlgorithm as + | BlobIndexerPDFTextRotationAlgorithm + | undefined, + executionEnvironment: executionEnvironment as IndexerExecutionEnvironment | undefined, + }; + const parameters: IndexingParameters = { + ...indexer.parameters, + configuration, + }; + return { ...indexer, + parameters, encryptionKey: convertEncryptionKeyToPublic(indexer.encryptionKey), cache: convertSearchIndexerCacheToPublic(indexer.cache), }; } -export function generatedSearchRequestToPublicSearchRequest( - request: GeneratedSearchRequest, -): SearchRequest { - const { semanticErrorHandling, debug, vectorQueries, vectorFilterMode, ...props } = request; - const publicRequest: SearchRequest = { - semanticErrorHandlingMode: semanticErrorHandling as SemanticErrorHandlingMode | undefined, - debugMode: debug as QueryDebugMode | undefined, - vectorFilterMode: vectorFilterMode as VectorFilterMode | undefined, - vectorQueries: vectorQueries - ?.map(convertVectorQueryToPublic) - .filter((v): v is VectorQuery => v !== undefined), - ...props, - }; - - return publicRequest; -} - export function publicDataSourceToGeneratedDataSource( dataSource: SearchIndexerDataSourceConnection, ): GeneratedSearchIndexerDataSourceConnection { @@ -762,7 +765,7 @@ export function generatedDataSourceToPublicDataSource( return { name: dataSource.name, description: dataSource.name, - type: dataSource.type, + type: dataSource.type as SearchIndexerDataSourceType, connectionString: dataSource.credentials.connectionString, container: dataSource.container, identity: convertSearchIndexerDataIdentityToPublic(dataSource.identity), @@ -818,20 +821,6 @@ export function convertDataDeletionDetectionPolicyToPublic( return dataDeletionDetectionPolicy as SoftDeleteColumnDeletionDetectionPolicy; } -function convertVectorQueryToPublic( - vector: GeneratedVectorQuery | undefined, -): VectorQuery | undefined { - if (!vector) { - return vector; - } - - const fields: SearchFieldArray | undefined = vector.fields?.split(",") as - | SearchFieldArray - | undefined; - - return { ...vector, fields }; -} - export function getRandomIntegerInclusive(min: number, max: number): number { // Make sure inputs are integers. min = Math.ceil(min); @@ -852,9 +841,9 @@ export function delay(timeInMs: number): Promise { return new Promise((resolve) => setTimeout(() => resolve(), timeInMs)); } -export const serviceVersions = ["2020-06-30", "2023-10-01-Preview"]; +export const serviceVersions = ["2023-11-01", "2024-03-01-Preview"]; -export const defaultServiceVersion = "2023-10-01-Preview"; +export const defaultServiceVersion = "2024-03-01-Preview"; function convertKnowledgeStoreToPublic( knowledgeStore: BaseSearchIndexerKnowledgeStore | undefined, @@ -869,7 +858,7 @@ function convertKnowledgeStoreToPublic( }; } -function convertSearchIndexerCacheToPublic( +export function convertSearchIndexerCacheToPublic( cache?: GeneratedSearchIndexerCache, ): SearchIndexerCache | undefined { if (!cache) { diff --git a/sdk/search/search-documents/src/synonymMapHelper.ts b/sdk/search/search-documents/src/synonymMapHelper.ts index 873eee754119..6e002f2a7fbc 100644 --- a/sdk/search/search-documents/src/synonymMapHelper.ts +++ b/sdk/search/search-documents/src/synonymMapHelper.ts @@ -1,9 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { SynonymMap } from "./serviceModels"; -import { promisify } from "util"; import * as fs from "fs"; +import { promisify } from "util"; +import { SynonymMap } from "./serviceModels"; const readFileAsync = promisify(fs.readFile); /** diff --git a/sdk/search/search-documents/src/tracing.ts b/sdk/search/search-documents/src/tracing.ts index 4f40e2d0cf45..38bff4bae880 100644 --- a/sdk/search/search-documents/src/tracing.ts +++ b/sdk/search/search-documents/src/tracing.ts @@ -7,7 +7,7 @@ import { createTracingClient } from "@azure/core-tracing"; * Creates a tracing client using the global tracer. * @internal */ -export const tracingClient = createTracingClient({ +const tracingClient = createTracingClient({ namespace: "Microsoft.Search", packageName: "Azure.Search", }); diff --git a/sdk/search/search-documents/swagger/Data.md b/sdk/search/search-documents/swagger/Data.md index 693d413016d0..7185711271cb 100644 --- a/sdk/search/search-documents/swagger/Data.md +++ b/sdk/search/search-documents/swagger/Data.md @@ -10,13 +10,13 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated/data -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b62ddd0ffb844fbfb688a04546800d60645a18ef/specification/search/data-plane/Azure.Search/preview/2023-10-01-Preview/searchindex.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a0151afd7cd14913fc86cb793bde49c71122eb1e/specification/search/data-plane/Azure.Search/preview/2024-03-01-Preview/searchindex.json add-credentials: false title: SearchClient use-extension: - "@autorest/typescript": "6.0.0-alpha.17.20220318.1" + "@autorest/typescript": "6.0.14" core-http-compat-mode: true -package-version: 12.0.0-beta.4 +package-version: 12.1.0-beta.1 disable-async-iterators: true api-version-parameter: choice v3: true @@ -79,7 +79,7 @@ modelerfour: Text: $DO_NOT_NORMALIZE$_text ``` -### Change score to \_score & highlights to \_highlights in SuggestResult +### Preserve underscore prefix in some result type properties ```yaml modelerfour: @@ -87,6 +87,8 @@ modelerfour: override: Score: $DO_NOT_NORMALIZE$_score Highlights: $DO_NOT_NORMALIZE$_highlights + RerankerScore: $DO_NOT_NORMALIZE$_rerankerScore + Captions: $DO_NOT_NORMALIZE$_captions ``` ### Mark score, key and text fields as required in AnswerResult Object @@ -99,7 +101,7 @@ directive: $.required = ['score', 'key', 'text']; ``` -### Rename Vector property `K` +### Renames ```yaml directive: @@ -108,9 +110,19 @@ directive: transform: $["x-ms-client-name"] = "KNearestNeighborsCount"; ``` -### Rename QueryResultDocumentSemanticFieldState +```yaml +directive: + - from: swagger-document + where: $.definitions.SearchRequest.properties.semanticConfiguration + transform: $["x-ms-client-name"] = "semanticConfigurationName"; +``` -Simplify `QueryResultDocumentSemanticFieldState` name by renaming it to `SemanticFieldState` +```yaml +directive: + - from: swagger-document + where: $.definitions.RawVectorQuery + transform: $["x-ms-client-name"] = "VectorizedQuery"; +``` ```yaml directive: @@ -118,3 +130,17 @@ directive: where: $.definitions.QueryResultDocumentSemanticFieldState transform: $["x-ms-enum"].name = "SemanticFieldState"; ``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.AnswerResult + transform: $["x-ms-client-name"] = "QueryAnswerResult"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.CaptionResult + transform: $["x-ms-client-name"] = "QueryCaptionResult"; +``` diff --git a/sdk/search/search-documents/swagger/Service.md b/sdk/search/search-documents/swagger/Service.md index f531d95e7938..f1c287e8f862 100644 --- a/sdk/search/search-documents/swagger/Service.md +++ b/sdk/search/search-documents/swagger/Service.md @@ -10,12 +10,12 @@ generate-metadata: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated/service -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/b62ddd0ffb844fbfb688a04546800d60645a18ef/specification/search/data-plane/Azure.Search/preview/2023-10-01-Preview/searchservice.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a0151afd7cd14913fc86cb793bde49c71122eb1e/specification/search/data-plane/Azure.Search/preview/2024-03-01-Preview/searchservice.json add-credentials: false use-extension: - "@autorest/typescript": "6.0.0-alpha.17.20220318.1" + "@autorest/typescript": "6.0.14" core-http-compat-mode: true -package-version: 12.0.0-beta.4 +package-version: 12.1.0-beta.1 disable-async-iterators: true api-version-parameter: choice v3: true @@ -290,6 +290,83 @@ directive: $["x-ms-client-name"] = "name"; ``` +```yaml +directive: + - from: swagger-document + where: $.definitions.SearchField.properties.dimensions + transform: $["x-ms-client-name"] = "vectorSearchDimensions"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.HnswVectorSearchAlgorithmConfiguration + transform: $["x-ms-client-name"] = "HnswAlgorithmConfiguration"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.ExhaustiveKnnVectorSearchAlgorithmConfiguration + transform: $["x-ms-client-name"] = "ExhaustiveKnnAlgorithmConfiguration"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.PIIDetectionSkill.properties.piiCategories + transform: $["x-ms-client-name"] = "categories"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.SearchField.properties.vectorSearchProfile + transform: $["x-ms-client-name"] = "vectorSearchProfileName"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.SemanticSettings.defaultConfiguration + transform: $["x-ms-client-name"] = "defaultConfigurationName"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.SearchIndex.properties.semantic + transform: $["x-ms-client-name"] = "semanticSearch"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.SemanticSettings + transform: $["x-ms-client-name"] = "SemanticSearch"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.VectorSearchProfile.properties.algorithm + transform: $["x-ms-client-name"] = "algorithmConfigurationName"; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.PIIDetectionSkill.properties.maskingCharacter + transform: $["x-ms-client-name"] = undefined; +``` + +```yaml +directive: + - from: swagger-document + where: $.definitions.VectorSearchCompressionConfiguration + transform: $["x-ms-client-name"] = "BaseVectorSearchCompressionConfiguration"; +``` + ### Deprecations ```yaml @@ -313,17 +390,6 @@ directive: transform: $.description += "\n\n@deprecated"; ``` -### Rename Dimensions - -To ensure alignment with `VectorSearchConfiguration` in intellisense and documentation, rename the `Dimensions` to `VectorSearchDimensions`. - -```yaml -directive: - - from: swagger-document - where: $.definitions.SearchField.properties.dimensions - transform: $["x-ms-client-name"] = "vectorSearchDimensions"; -``` - ### Add `arm-id` format for `AuthResourceId` Add `"format": "arm-id"` for `AuthResourceId` to generate as [Azure.Core.ResourceIdentifier] diff --git a/sdk/search/search-documents/test/compressionDisabled.ts b/sdk/search/search-documents/test/compressionDisabled.ts new file mode 100644 index 000000000000..dc8c1a022a78 --- /dev/null +++ b/sdk/search/search-documents/test/compressionDisabled.ts @@ -0,0 +1,4 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +export const COMPRESSION_DISABLED = true; diff --git a/sdk/search/search-documents/test/internal/serialization.spec.ts b/sdk/search/search-documents/test/internal/serialization.spec.ts index 092973935e7b..d1411fb1ce7a 100644 --- a/sdk/search/search-documents/test/internal/serialization.spec.ts +++ b/sdk/search/search-documents/test/internal/serialization.spec.ts @@ -3,8 +3,8 @@ import { assert } from "chai"; import * as sinon from "sinon"; -import { deserialize, serialize } from "../../src/serialization"; import GeographyPoint from "../../src/geographyPoint"; +import { deserialize, serialize } from "../../src/serialization"; describe("serialization.serialize", function () { it("nested", function () { diff --git a/sdk/search/search-documents/test/internal/serviceUtils.spec.ts b/sdk/search/search-documents/test/internal/serviceUtils.spec.ts index 8040b7b79758..bda81ef1557b 100644 --- a/sdk/search/search-documents/test/internal/serviceUtils.spec.ts +++ b/sdk/search/search-documents/test/internal/serviceUtils.spec.ts @@ -2,10 +2,10 @@ // Licensed under the MIT license. import { assert } from "chai"; -import { convertFieldsToGenerated, convertFieldsToPublic } from "../../src/serviceUtils"; import { SearchField as GeneratedSearchField } from "../../src/generated/service/models/index"; -import { KnownLexicalAnalyzerName } from "../../src/index"; +import { KnownAnalyzerNames } from "../../src/index"; import { ComplexField, SearchField } from "../../src/serviceModels"; +import { convertFieldsToGenerated, convertFieldsToPublic } from "../../src/serviceUtils"; describe("serviceUtils", function () { it("convert generated fields to public fields", function () { @@ -19,10 +19,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, retrievable: false, - analyzer: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzer: KnownLexicalAnalyzerName.ArLucene, - normalizer: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzer: KnownLexicalAnalyzerName.CaLucene, + analyzer: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzer: KnownAnalyzerNames.ArLucene, + normalizer: KnownAnalyzerNames.BgLucene, + searchAnalyzer: KnownAnalyzerNames.CaLucene, synonymMaps: undefined, }, ]); @@ -36,10 +36,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, hidden: true, - analyzerName: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzerName: KnownLexicalAnalyzerName.ArLucene, - normalizerName: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzerName: KnownLexicalAnalyzerName.CaLucene, + analyzerName: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzerName: KnownAnalyzerNames.ArLucene, + normalizerName: KnownAnalyzerNames.BgLucene, + searchAnalyzerName: KnownAnalyzerNames.CaLucene, synonymMapNames: undefined, }); }); @@ -59,10 +59,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, retrievable: false, - analyzer: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzer: KnownLexicalAnalyzerName.ArLucene, - normalizer: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzer: KnownLexicalAnalyzerName.CaLucene, + analyzer: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzer: KnownAnalyzerNames.ArLucene, + normalizer: KnownAnalyzerNames.BgLucene, + searchAnalyzer: KnownAnalyzerNames.CaLucene, synonymMaps: undefined, }, ], @@ -83,10 +83,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, hidden: true, - analyzerName: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzerName: KnownLexicalAnalyzerName.ArLucene, - normalizerName: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzerName: KnownLexicalAnalyzerName.CaLucene, + analyzerName: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzerName: KnownAnalyzerNames.ArLucene, + normalizerName: KnownAnalyzerNames.BgLucene, + searchAnalyzerName: KnownAnalyzerNames.CaLucene, synonymMapNames: undefined, }); }); @@ -102,10 +102,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, hidden: true, - analyzerName: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzerName: KnownLexicalAnalyzerName.ArLucene, - normalizerName: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzerName: KnownLexicalAnalyzerName.CaLucene, + analyzerName: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzerName: KnownAnalyzerNames.ArLucene, + normalizerName: KnownAnalyzerNames.BgLucene, + searchAnalyzerName: KnownAnalyzerNames.CaLucene, synonymMapNames: undefined, }, ]); @@ -119,10 +119,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, retrievable: false, - analyzer: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzer: KnownLexicalAnalyzerName.ArLucene, - normalizer: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzer: KnownLexicalAnalyzerName.CaLucene, + analyzer: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzer: KnownAnalyzerNames.ArLucene, + normalizer: KnownAnalyzerNames.BgLucene, + searchAnalyzer: KnownAnalyzerNames.CaLucene, synonymMaps: undefined, }); }); @@ -142,10 +142,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, hidden: true, - analyzerName: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzerName: KnownLexicalAnalyzerName.ArLucene, - normalizerName: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzerName: KnownLexicalAnalyzerName.CaLucene, + analyzerName: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzerName: KnownAnalyzerNames.ArLucene, + normalizerName: KnownAnalyzerNames.BgLucene, + searchAnalyzerName: KnownAnalyzerNames.CaLucene, synonymMapNames: undefined, }, ], @@ -166,10 +166,10 @@ describe("serviceUtils", function () { filterable: true, facetable: true, retrievable: false, - analyzer: KnownLexicalAnalyzerName.ArMicrosoft, - indexAnalyzer: KnownLexicalAnalyzerName.ArLucene, - normalizer: KnownLexicalAnalyzerName.BgLucene, - searchAnalyzer: KnownLexicalAnalyzerName.CaLucene, + analyzer: KnownAnalyzerNames.ArMicrosoft, + indexAnalyzer: KnownAnalyzerNames.ArLucene, + normalizer: KnownAnalyzerNames.BgLucene, + searchAnalyzer: KnownAnalyzerNames.CaLucene, synonymMaps: undefined, }); }); diff --git a/sdk/search/search-documents/test/narrowedTypes.ts b/sdk/search/search-documents/test/narrowedTypes.ts index d30449b2f156..47f2e86a5db2 100644 --- a/sdk/search/search-documents/test/narrowedTypes.ts +++ b/sdk/search/search-documents/test/narrowedTypes.ts @@ -9,10 +9,10 @@ import { SearchClient, SelectFields } from "../src/index"; import { + NarrowedModel as GenericNarrowedModel, SearchFieldArray, SearchPick, SelectArray, - NarrowedModel as GenericNarrowedModel, SuggestNarrowedModel, } from "../src/indexModels"; @@ -246,7 +246,9 @@ function testNarrowedClient() { async () => { type VectorFields = NonNullable< NonNullable< - NonNullable[1]>["vectorQueries"] + NonNullable< + NonNullable[1]>["vectorSearchOptions"] + >["queries"] >[number]["fields"] >; const a: Equals = "pass"; @@ -379,7 +381,9 @@ function testWideClient() { async () => { type VectorFields = NonNullable< NonNullable< - NonNullable[1]>["vectorQueries"] + NonNullable< + NonNullable[1]>["vectorSearchOptions"] + >["queries"] >[number]["fields"] >; const a: Equals = "pass"; diff --git a/sdk/search/search-documents/test/public/generated/typeDefinitions.ts b/sdk/search/search-documents/test/public/generated/typeDefinitions.ts new file mode 100755 index 000000000000..046e933bd0e3 --- /dev/null +++ b/sdk/search/search-documents/test/public/generated/typeDefinitions.ts @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +/* eslint-disable no-unused-expressions */ +/* eslint-disable no-constant-condition */ +/* eslint-disable @typescript-eslint/ban-ts-comment */ +/* eslint-disable @typescript-eslint/explicit-function-return-type */ +/* eslint-disable @typescript-eslint/no-unused-vars */ + +import { + KnownSemanticErrorMode, + KnownSemanticErrorReason, + KnownSemanticSearchResultsType, + KnownVectorFilterMode, + KnownVectorQueryKind, +} from "../../../src/generated/data"; + +import { + KnownBlobIndexerDataToExtract, + KnownBlobIndexerImageAction, + KnownBlobIndexerPDFTextRotationAlgorithm, + KnownBlobIndexerParsingMode, + KnownCustomEntityLookupSkillLanguage, + KnownEntityCategory, + KnownEntityRecognitionSkillLanguage, + KnownImageAnalysisSkillLanguage, + KnownImageDetail, + KnownIndexerExecutionEnvironment, + KnownKeyPhraseExtractionSkillLanguage, + KnownOcrSkillLanguage, + KnownPIIDetectionSkillMaskingMode, + KnownRegexFlags, + KnownSearchFieldDataType, + KnownSearchIndexerDataSourceType, + KnownSentimentSkillLanguage, + KnownSplitSkillLanguage, + KnownTextSplitMode, + KnownTextTranslationSkillLanguage, + KnownVectorSearchAlgorithmKind, + KnownVectorSearchAlgorithmMetric, + KnownVectorSearchVectorizerKind, + KnownVisualFeature, +} from "../../../src/generated/service"; + +import { + BlobIndexerDataToExtract, + BlobIndexerImageAction, + BlobIndexerPDFTextRotationAlgorithm, + BlobIndexerParsingMode, + CustomEntityLookupSkillLanguage, + EntityCategory, + EntityRecognitionSkillLanguage, + ImageAnalysisSkillLanguage, + ImageDetail, + IndexerExecutionEnvironment, + KeyPhraseExtractionSkillLanguage, + OcrSkillLanguage, + PIIDetectionSkillMaskingMode, + RegexFlags, + SearchFieldDataType, + SearchIndexerDataSourceType, + SemanticErrorMode, + SemanticErrorReason, + SemanticSearchResultsType, + SentimentSkillLanguage, + SplitSkillLanguage, + TextSplitMode, + TextTranslationSkillLanguage, + VectorFilterMode, + VectorQueryKind, + VectorSearchAlgorithmKind, + VectorSearchAlgorithmMetric, + VectorSearchVectorizerKind, + VisualFeature, +} from "../../../src/index"; + +type IsIdentical = + (() => T extends T1 ? true : false) extends () => T extends T2 ? true : false ? any : never; + +type ExpectBlobIndexerDataToExtract = `${KnownBlobIndexerDataToExtract}`; +type ExpectBlobIndexerImageAction = `${KnownBlobIndexerImageAction}`; +type ExpectBlobIndexerParsingMode = `${KnownBlobIndexerParsingMode}`; +type ExpectBlobIndexerPDFTextRotationAlgorithm = `${KnownBlobIndexerPDFTextRotationAlgorithm}`; +type ExpectCustomEntityLookupSkillLanguage = `${KnownCustomEntityLookupSkillLanguage}`; +type ExpectEntityCategory = `${KnownEntityCategory}`; +type ExpectEntityRecognitionSkillLanguage = `${KnownEntityRecognitionSkillLanguage}`; +type ExpectImageAnalysisSkillLanguage = `${KnownImageAnalysisSkillLanguage}`; +type ExpectImageDetail = `${KnownImageDetail}`; +type ExpectIndexerExecutionEnvironment = `${KnownIndexerExecutionEnvironment}`; +type ExpectKeyPhraseExtractionSkillLanguage = `${KnownKeyPhraseExtractionSkillLanguage}`; +type ExpectOcrSkillLanguage = `${KnownOcrSkillLanguage}`; +type ExpectPIIDetectionSkillMaskingMode = `${KnownPIIDetectionSkillMaskingMode}`; +type ExpectRegexFlags = `${KnownRegexFlags}`; +type ExpectSearchFieldDataType = Exclude< + `${KnownSearchFieldDataType}` | `Collection(${KnownSearchFieldDataType})`, + | "Edm.ComplexType" + | "Collection(Edm.ComplexType)" + | "Edm.Single" + | "Edm.Half" + | "Edm.Int16" + | "Edm.SByte" +>; +type ExpectSearchIndexerDataSourceType = `${KnownSearchIndexerDataSourceType}`; +type ExpectSemanticErrorMode = `${KnownSemanticErrorMode}`; +type ExpectSemanticErrorReason = `${KnownSemanticErrorReason}`; +type ExpectSemanticSearchResultsType = `${KnownSemanticSearchResultsType}`; +type ExpectSentimentSkillLanguage = `${KnownSentimentSkillLanguage}`; +type ExpectSplitSkillLanguage = `${KnownSplitSkillLanguage}`; +type ExpectTextSplitMode = `${KnownTextSplitMode}`; +type ExpectTextTranslationSkillLanguage = `${KnownTextTranslationSkillLanguage}`; +type ExpectVectorFilterMode = `${KnownVectorFilterMode}`; +type ExpectVectorQueryKind = `${KnownVectorQueryKind}`; +type ExpectVectorSearchAlgorithmKind = `${KnownVectorSearchAlgorithmKind}`; +type ExpectVectorSearchAlgorithmMetric = `${KnownVectorSearchAlgorithmMetric}`; +type ExpectVectorSearchVectorizerKind = `${KnownVectorSearchVectorizerKind}`; +type ExpectVisualFeature = `${KnownVisualFeature}`; + +// eslint-disable-next-line @typescript-eslint/ban-ts-comment +// @ts-ignore +function fun() { + const a: IsIdentical = "pass"; + const b: IsIdentical = "pass"; + const c: IsIdentical = "pass"; + const d: IsIdentical< + ExpectBlobIndexerPDFTextRotationAlgorithm, + BlobIndexerPDFTextRotationAlgorithm + > = "pass"; + const e: IsIdentical = + "pass"; + const f: IsIdentical = "pass"; + const g: IsIdentical = + "pass"; + const h: IsIdentical = "pass"; + const i: IsIdentical = "pass"; + const j: IsIdentical = "pass"; + const k: IsIdentical = + "pass"; + const l: IsIdentical = "pass"; + const m: IsIdentical = "pass"; + const n: IsIdentical = "pass"; + const o: IsIdentical = "pass"; + const p: IsIdentical = "pass"; + const q: IsIdentical = "pass"; + const r: IsIdentical = "pass"; + const s: IsIdentical = "pass"; + const t: IsIdentical = "pass"; + const u: IsIdentical = "pass"; + const v: IsIdentical = "pass"; + const w: IsIdentical = "pass"; + const x: IsIdentical = "pass"; + const y: IsIdentical = "pass"; + const z: IsIdentical = "pass"; + const aa: IsIdentical = "pass"; + const ab: IsIdentical = "pass"; + const ac: IsIdentical = "pass"; + return [a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z, aa, ab, ac]; +} diff --git a/sdk/search/search-documents/test/public/node/searchClient.spec.ts b/sdk/search/search-documents/test/public/node/searchClient.spec.ts index e783131e065d..997ff3dffe05 100644 --- a/sdk/search/search-documents/test/public/node/searchClient.spec.ts +++ b/sdk/search/search-documents/test/public/node/searchClient.spec.ts @@ -1,12 +1,12 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { env, isLiveMode, Recorder } from "@azure-tools/test-recorder"; import { assert } from "chai"; -import { Context } from "mocha"; -import { Suite } from "mocha"; -import { Recorder, env, isLiveMode } from "@azure-tools/test-recorder"; +import { Context, Suite } from "mocha"; -import { createClients } from "../utils/recordedClient"; +import { OpenAIClient } from "@azure/openai"; +import { versionsToTest } from "@azure/test-utils"; import { AutocompleteResult, AzureKeyCredential, @@ -17,15 +17,15 @@ import { SearchIndexClient, SelectFields, } from "../../../src"; -import { Hotel } from "../utils/interfaces"; -import { WAIT_TIME, createIndex, createRandomIndexName, populateIndex } from "../utils/setup"; -import { delay, serviceVersions } from "../../../src/serviceUtils"; -import { versionsToTest } from "@azure/test-utils"; import { SearchFieldArray, SelectArray } from "../../../src/indexModels"; -import { OpenAIClient } from "@azure/openai"; +import { delay, serviceVersions } from "../../../src/serviceUtils"; +import { COMPRESSION_DISABLED } from "../../compressionDisabled"; +import { Hotel } from "../utils/interfaces"; +import { createClients } from "../utils/recordedClient"; +import { createIndex, createRandomIndexName, populateIndex, WAIT_TIME } from "../utils/setup"; versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { - onVersions({ minVer: "2020-06-30" }).describe("SearchClient tests", function (this: Suite) { + onVersions({ minVer: "2023-11-01" }).describe("SearchClient tests", function (this: Suite) { let recorder: Recorder; let searchClient: SearchClient; let indexClient: SearchIndexClient; @@ -45,7 +45,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { } = await createClients(serviceVersion, recorder, TEST_INDEX_NAME)); await createIndex(indexClient, TEST_INDEX_NAME, serviceVersion); await delay(WAIT_TIME); - await populateIndex(searchClient, openAIClient, serviceVersion); + await populateIndex(searchClient, openAIClient); }); afterEach(async function () { @@ -80,6 +80,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { skip: 0, top: 5, includeTotalCount: true, + select: ["address/streetAddress"], }); assert.equal(searchResults.count, 6); }); @@ -379,7 +380,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { }); }); - onVersions({ minVer: "2023-10-01-Preview" }).describe( + onVersions({ minVer: "2024-03-01-Preview" }).describe( "SearchClient tests", function (this: Suite) { let recorder: Recorder; @@ -401,7 +402,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { } = await createClients(serviceVersion, recorder, TEST_INDEX_NAME)); await createIndex(indexClient, TEST_INDEX_NAME, serviceVersion); await delay(WAIT_TIME); - await populateIndex(searchClient, openAIClient, serviceVersion); + await populateIndex(searchClient, openAIClient); }); afterEach(async function () { @@ -430,7 +431,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { includeTotalCount: true, queryLanguage: KnownQueryLanguage.EnUs, queryType: "semantic", - semanticConfiguration: "semantic-configuration-name", + semanticSearchOptions: { configurationName: "semantic-configuration-name" }, }); assert.equal(searchResults.count, 1); }); @@ -439,9 +440,11 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { const searchResults = await searchClient.search("luxury", { queryLanguage: KnownQueryLanguage.EnUs, queryType: "semantic", - semanticConfiguration: "semantic-configuration-name", - semanticErrorHandlingMode: "fail", - debugMode: "semantic", + semanticSearchOptions: { + configurationName: "semantic-configuration-name", + errorMode: "fail", + debugMode: "semantic", + }, }); for await (const result of searchResults.results) { assert.deepEqual( @@ -457,13 +460,13 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { keywordFields: [ { name: "tags", - state: "unused", + state: "used", }, ], rerankerInput: { content: "Best hotel in town if you like luxury hotels. They have an amazing infinity pool, a spa, and a really helpful concierge. The location is perfect -- right downtown, close to all the tourist attractions. We highly recommend this hotel.", - keywords: "", + keywords: "pool\r\nview\r\nwifi\r\nconcierge", title: "Fancy Stay", }, titleField: { @@ -482,8 +485,10 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { const searchResults = await searchClient.search("What are the most luxurious hotels?", { queryLanguage: KnownQueryLanguage.EnUs, queryType: "semantic", - semanticConfiguration: "semantic-configuration-name", - answers: { answers: "extractive", count: 3, threshold: 0.7 }, + semanticSearchOptions: { + configurationName: "semantic-configuration-name", + answers: { answerType: "extractive", count: 3, threshold: 0.7 }, + }, top: 3, select: ["hotelId"], }); @@ -492,15 +497,17 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { for await (const result of searchResults.results) { resultIds.push(result.document.hotelId); } - assert.deepEqual(["3", "9", "1"], resultIds); + assert.deepEqual(["1", "9", "3"], resultIds); }); it("search with semantic error handling", async function () { const searchResults = await searchClient.search("luxury", { queryLanguage: KnownQueryLanguage.EnUs, queryType: "semantic", - semanticConfiguration: "semantic-configuration-name", - semanticErrorHandlingMode: "partial", + semanticSearchOptions: { + configurationName: "semantic-configuration-name", + errorMode: "partial", + }, select: ["hotelId"], }); @@ -517,21 +524,23 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { this.skip(); } const embeddings = await openAIClient.getEmbeddings( - env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name", + env.AZURE_OPENAI_DEPLOYMENT_NAME ?? "deployment-name", ["What are the most luxurious hotels?"], ); const embedding = embeddings.data[0].embedding; const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - vector: embedding, - kNearestNeighborsCount: 3, - fields: ["vectorDescription"], - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + vector: embedding, + kNearestNeighborsCount: 3, + fields: ["vectorDescription"], + }, + ], + }, top: 3, select: ["hotelId"], }); @@ -549,27 +558,67 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { this.skip(); } const embeddings = await openAIClient.getEmbeddings( - env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name", + env.AZURE_OPENAI_DEPLOYMENT_NAME ?? "deployment-name", ["What are the most luxurious hotels?"], ); const embedding = embeddings.data[0].embedding; const searchResults = await searchClient.search("*", { - vectorQueries: [ - { - kind: "vector", - vector: embedding, - kNearestNeighborsCount: 3, - fields: ["vectorDescription"], - }, - { - kind: "vector", - vector: embedding, - kNearestNeighborsCount: 3, - fields: ["vectorDescription"], - }, - ], + vectorSearchOptions: { + queries: [ + { + kind: "vector", + vector: embedding, + kNearestNeighborsCount: 3, + fields: ["vectorDescription"], + }, + { + kind: "vector", + vector: embedding, + kNearestNeighborsCount: 3, + fields: ["vectorDescription"], + }, + ], + }, + top: 3, + select: ["hotelId"], + }); + + const resultIds = []; + for await (const result of searchResults.results) { + resultIds.push(result.document.hotelId); + } + assert.deepEqual(["1", "3", "4"], resultIds); + }); + + it("oversampling compressed vectors", async function () { + // This live test is disabled due to temporary limitations with the new OpenAI service + if (isLiveMode()) { + this.skip(); + } + // Currently unable to create a compression resource + if (COMPRESSION_DISABLED) { + this.skip(); + } + const embeddings = await openAIClient.getEmbeddings( + env.AZURE_OPENAI_DEPLOYMENT_NAME ?? "deployment-name", + ["What are the most luxurious hotels?"], + ); + + const embedding = embeddings.data[0].embedding; + const searchResults = await searchClient.search("*", { + vectorSearchOptions: { + queries: [ + { + kind: "vector", + vector: embedding, + kNearestNeighborsCount: 3, + fields: ["compressedVectorDescription"], + oversampling: 2, + }, + ], + }, top: 3, select: ["hotelId"], }); @@ -585,7 +634,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { }); versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { - onVersions({ minVer: "2020-06-30" }).describe("SearchClient tests", function (this: Suite) { + onVersions({ minVer: "2023-11-01" }).describe("SearchClient tests", function (this: Suite) { const credential = new AzureKeyCredential("key"); describe("Passing serviceVersion", () => { @@ -607,8 +656,8 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { it("defaults to the current apiVersion", () => { const client = new SearchClient("", "", credential); - assert.equal("2023-10-01-Preview", client.serviceVersion); - assert.equal("2023-10-01-Preview", client.apiVersion); + assert.equal("2024-03-01-Preview", client.serviceVersion); + assert.equal("2024-03-01-Preview", client.apiVersion); }); }); }); diff --git a/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts b/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts index dd53050e556d..b2b1bb70d514 100644 --- a/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts +++ b/sdk/search/search-documents/test/public/node/searchIndexClient.spec.ts @@ -1,10 +1,10 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { Recorder, isLiveMode, env } from "@azure-tools/test-recorder"; -import { Context } from "mocha"; -import { Suite } from "mocha"; +import { env, isLiveMode, Recorder } from "@azure-tools/test-recorder"; +import { versionsToTest } from "@azure/test-utils"; import { assert } from "chai"; +import { Context, Suite } from "mocha"; import { AzureOpenAIVectorizer, SearchIndex, @@ -13,20 +13,19 @@ import { VectorSearchAlgorithmConfiguration, VectorSearchProfile, } from "../../../src"; +import { delay, serviceVersions } from "../../../src/serviceUtils"; import { Hotel } from "../utils/interfaces"; import { createClients } from "../utils/recordedClient"; import { - WAIT_TIME, createRandomIndexName, createSimpleIndex, createSynonymMaps, deleteSynonymMaps, + WAIT_TIME, } from "../utils/setup"; -import { delay, serviceVersions } from "../../../src/serviceUtils"; -import { versionsToTest } from "@azure/test-utils"; versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { - onVersions({ minVer: "2020-06-30" }).describe("SearchIndexClient", function (this: Suite) { + onVersions({ minVer: "2023-11-01" }).describe("SearchIndexClient", function (this: Suite) { let recorder: Recorder; let indexClient: SearchIndexClient; let TEST_INDEX_NAME: string; @@ -232,7 +231,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { }); }); }); - onVersions({ minVer: "2023-10-01-Preview" }).describe( + onVersions({ minVer: "2024-03-01-Preview" }).describe( "SearchIndexClient", function (this: Suite) { let recorder: Recorder; @@ -276,14 +275,14 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { kind: "azureOpenAI", name: "vectorizer", azureOpenAIParameters: { - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, - resourceUri: env.OPENAI_ENDPOINT, + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, + resourceUri: env.AZURE_OPENAI_ENDPOINT, }, }; const profile: VectorSearchProfile = { name: "profile", - algorithm: algorithm.name, + algorithmConfigurationName: algorithm.name, vectorizer: vectorizer.name, }; @@ -300,7 +299,7 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { name: "descriptionVector", vectorSearchDimensions: 1536, searchable: true, - vectorSearchProfile: profile.name, + vectorSearchProfileName: profile.name, }, ], vectorSearch: { @@ -309,8 +308,8 @@ versionsToTest(serviceVersions, {}, (serviceVersion, onVersions) => { profiles: [profile], }, }; - await indexClient.createOrUpdateIndex(index); try { + await indexClient.createOrUpdateIndex(index); index = await indexClient.getIndex(indexName); assert.deepEqual(index.vectorSearch?.algorithms?.[0].name, algorithm.name); assert.deepEqual(index.vectorSearch?.vectorizers?.[0].name, vectorizer.name); diff --git a/sdk/search/search-documents/test/public/typeDefinitions.ts b/sdk/search/search-documents/test/public/typeDefinitions.ts index febc839df32c..f9540063b7d7 100644 --- a/sdk/search/search-documents/test/public/typeDefinitions.ts +++ b/sdk/search/search-documents/test/public/typeDefinitions.ts @@ -8,71 +8,47 @@ /* eslint-disable @typescript-eslint/no-unused-vars */ import { - KnownSearchFieldDataType, - KnownVectorSearchAlgorithmMetric, + KnownCharFilterName, + KnownLexicalAnalyzerName, + KnownLexicalTokenizerName, + KnownTokenFilterName, KnownVectorSearchAlgorithmKind, - KnownIndexProjectionMode, - KnownVectorSearchVectorizerKind, + KnownVectorSearchAlgorithmMetric, } from "../../src/generated/service"; + +import { KnownVectorFilterMode } from "../../src/generated/data"; + import { - KnownSemanticPartialResponseReason, - KnownSemanticPartialResponseType, - KnownQueryDebugMode, - KnownSemanticErrorHandling, - KnownSemanticFieldState, - KnownVectorQueryKind, - KnownVectorFilterMode, -} from "../../src/generated/data"; -import { - ComplexDataType, - SearchFieldDataType, - SemanticPartialResponseReason, - SemanticPartialResponseType, - QueryDebugMode, - SemanticErrorHandlingMode, - SemanticFieldState, - VectorSearchAlgorithmMetric, - VectorSearchAlgorithmKind, - IndexProjectionMode, - VectorSearchVectorizerKind, - VectorQueryKind, + KnownAnalyzerNames, + KnownCharFilterNames, + KnownTokenFilterNames, + KnownTokenizerNames, VectorFilterMode, + VectorSearchAlgorithmKind, + VectorSearchAlgorithmMetric, } from "../../src/index"; type IsIdentical = (() => T extends T1 ? true : false) extends () => T extends T2 ? true : false ? any : never; -type ExpectSearchFieldDataType = Exclude< - `${KnownSearchFieldDataType}` | `Collection(${KnownSearchFieldDataType})`, - ComplexDataType | "Edm.Single" ->; -type ExpectSemanticPartialResponseReason = `${KnownSemanticPartialResponseReason}`; -type ExpectSemanticPartialResponseType = `${KnownSemanticPartialResponseType}`; -type ExpectQueryDebugMode = `${KnownQueryDebugMode}`; -type ExpectSemanticErrorHandlingMode = `${KnownSemanticErrorHandling}`; -type ExpectSemanticFieldState = `${KnownSemanticFieldState}`; type ExpectVectorSearchAlgorithmMetric = `${KnownVectorSearchAlgorithmMetric}`; type ExpectVectorSearchAlgorithmKind = `${KnownVectorSearchAlgorithmKind}`; -type ExpectIndexProjectionMode = `${KnownIndexProjectionMode}`; -type ExpectVectorSearchVectorizerKind = `${KnownVectorSearchVectorizerKind}`; -type ExpectVectorQueryKind = `${KnownVectorQueryKind}`; type ExpectVectorFilterMode = `${KnownVectorFilterMode}`; +type ExpectKnownCharFilterNames = `${KnownCharFilterName}`; +type ExpectKnownAnalyzerNames = `${KnownLexicalAnalyzerName}`; +type ExpectKnownTokenizerNames = `${KnownLexicalTokenizerName}`; +type ExpectKnownTokenFilterNames = `${KnownTokenFilterName}`; // eslint-disable-next-line @typescript-eslint/ban-ts-comment // @ts-ignore function fun() { - const a: IsIdentical = "pass"; - const b: IsIdentical = "pass"; - const c: IsIdentical = "pass"; - const d: IsIdentical = "pass"; - const e: IsIdentical = "pass"; - const f: IsIdentical = "pass"; - const g: IsIdentical = "pass"; - const h: IsIdentical = "pass"; - const i: IsIdentical = "pass"; - const j: IsIdentical = "pass"; - const k: IsIdentical = "pass"; - const l: IsIdentical = "pass"; + const a: IsIdentical = "pass"; + const b: IsIdentical = "pass"; + const c: IsIdentical = "pass"; + const d: IsIdentical = "pass"; + const e: IsIdentical = "pass"; + const f: IsIdentical = "pass"; + const g: IsIdentical = "pass"; - return [a, b, c, d, e, f, g, h, i, j, k, l]; + return [a, b, c, d, e, f, g]; } diff --git a/sdk/search/search-documents/test/public/utils/interfaces.ts b/sdk/search/search-documents/test/public/utils/interfaces.ts index 8cfe01cf2cb0..cbf59ad1d666 100644 --- a/sdk/search/search-documents/test/public/utils/interfaces.ts +++ b/sdk/search/search-documents/test/public/utils/interfaces.ts @@ -8,6 +8,7 @@ export interface Hotel { hotelName?: string | null; description?: string | null; vectorDescription?: number[] | null; + compressedVectorDescription?: number[] | null; descriptionFr?: string | null; category?: string | null; tags?: string[] | null; diff --git a/sdk/search/search-documents/test/public/utils/recordedClient.ts b/sdk/search/search-documents/test/public/utils/recordedClient.ts index d6df77d22847..f36302708e55 100644 --- a/sdk/search/search-documents/test/public/utils/recordedClient.ts +++ b/sdk/search/search-documents/test/public/utils/recordedClient.ts @@ -1,15 +1,21 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { Recorder, RecorderStartOptions, env } from "@azure-tools/test-recorder"; - +import { + assertEnvironmentVariable, + env, + Recorder, + RecorderStartOptions, +} from "@azure-tools/test-recorder"; +import { FindReplaceSanitizer } from "@azure-tools/test-recorder/types/src/utils/utils"; +import { isDefined } from "@azure/core-util"; +import { OpenAIClient } from "@azure/openai"; import { AzureKeyCredential, SearchClient, SearchIndexClient, SearchIndexerClient, } from "../../../src"; -import { OpenAIClient } from "@azure/openai"; export interface Clients { searchClient: SearchClient; @@ -19,58 +25,88 @@ export interface Clients { openAIClient: OpenAIClient; } -const envSetupForPlayback: { [k: string]: string } = { - SEARCH_API_ADMIN_KEY: "admin_key", - SEARCH_API_ADMIN_KEY_ALT: "admin_key_alt", - ENDPOINT: "https://endpoint", - OPENAI_DEPLOYMENT_NAME: "deployment-name", - OPENAI_ENDPOINT: "https://openai.endpoint", - OPENAI_KEY: "openai-key", -}; - -export const testEnv = new Proxy(envSetupForPlayback, { - get: (target, key: string) => { - return env[key] || target[key]; - }, -}); - -const generalSanitizers = []; - -if (env.ENDPOINT) { - generalSanitizers.push({ - regex: false, - value: "subdomain", - target: env.ENDPOINT.match(/:\/\/(.*).search.windows.net/)![1], - }); +interface Env { + SEARCH_API_ADMIN_KEY: string; + SEARCH_API_ADMIN_KEY_ALT: string; + ENDPOINT: string; + AZURE_OPENAI_DEPLOYMENT_NAME: string; + AZURE_OPENAI_ENDPOINT: string; + AZURE_OPENAI_KEY: string; } -if (env.OPENAI_ENDPOINT) { - generalSanitizers.push({ - regex: false, - value: "subdomain", - target: env.OPENAI_ENDPOINT.match(/:\/\/(.*).openai.azure.com/)![1], - }); +// modifies URIs in the environment to end in a trailing slash +const uriEnvVars = ["ENDPOINT", "AZURE_OPENAI_ENDPOINT"] as const; + +function fixEnvironment(): RecorderStartOptions { + const envSetupForPlayback = { + SEARCH_API_ADMIN_KEY: "admin_key", + SEARCH_API_ADMIN_KEY_ALT: "admin_key_alt", + ENDPOINT: "https://subdomain.search.windows.net/", + AZURE_OPENAI_DEPLOYMENT_NAME: "deployment-name", + AZURE_OPENAI_ENDPOINT: "https://subdomain.openai.azure.com/", + AZURE_OPENAI_KEY: "openai-key", + }; + + appendTrailingSlashesToEnvironment(envSetupForPlayback); + const generalSanitizers = getSubdomainSanitizers(); + + return { + envSetupForPlayback, + sanitizerOptions: { + generalSanitizers, + }, + }; +} + +function appendTrailingSlashesToEnvironment(envSetupForPlayback: Env): void { + for (const envBag of [env, envSetupForPlayback]) { + for (const name of uriEnvVars) { + const value = envBag[name]; + if (value) { + envBag[name] = value.endsWith("/") ? value : `${value}/`; + } + } + } } -const recorderOptions: RecorderStartOptions = { - envSetupForPlayback, - sanitizerOptions: { - generalSanitizers, - }, -}; +function getSubdomainSanitizers(): FindReplaceSanitizer[] { + const uriDomainMap: Pick = { + ENDPOINT: "search.windows.net", + AZURE_OPENAI_ENDPOINT: "openai.azure.com", + }; + + const subdomains = Object.entries(uriDomainMap) + .map(([name, domain]) => { + const uri = env[name]; + const subdomain = uri?.match(String.raw`\/\/(.*?)\.` + domain)?.[1]; + + return subdomain; + }) + .filter(isDefined); + + const generalSanitizers = subdomains.map((target) => { + return { + target, + value: "subdomain", + }; + }); + + return generalSanitizers; +} export async function createClients( serviceVersion: string, recorder: Recorder, indexName: string, ): Promise> { + const recorderOptions = fixEnvironment(); await recorder.start(recorderOptions); indexName = recorder.variable("TEST_INDEX_NAME", indexName); - const endPoint: string = env.ENDPOINT ?? "https://endpoint"; - const credential = new AzureKeyCredential(testEnv.SEARCH_API_ADMIN_KEY); - const openAIEndpoint = env.OPENAI_ENDPOINT ?? "https://openai.endpoint"; - const openAIKey = new AzureKeyCredential(env.OPENAI_KEY ?? "openai-key"); + const endPoint: string = assertEnvironmentVariable("ENDPOINT"); + const credential = new AzureKeyCredential(assertEnvironmentVariable("SEARCH_API_ADMIN_KEY")); + const openAIEndpoint = assertEnvironmentVariable("AZURE_OPENAI_ENDPOINT"); + const openAIKey = new AzureKeyCredential(assertEnvironmentVariable("AZURE_OPENAI_KEY")); const searchClient = new SearchClient( endPoint, indexName, diff --git a/sdk/search/search-documents/test/public/utils/setup.ts b/sdk/search/search-documents/test/public/utils/setup.ts index bd7f5580a900..49d3266b0356 100644 --- a/sdk/search/search-documents/test/public/utils/setup.ts +++ b/sdk/search/search-documents/test/public/utils/setup.ts @@ -1,6 +1,9 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. +import { env, isLiveMode, isPlaybackMode } from "@azure-tools/test-recorder"; +import { OpenAIClient } from "@azure/openai"; +import { assert } from "chai"; import { GeographyPoint, KnownAnalyzerNames, @@ -9,11 +12,9 @@ import { SearchIndexClient, SearchIndexerClient, } from "../../../src"; -import { Hotel } from "./interfaces"; import { delay } from "../../../src/serviceUtils"; -import { assert } from "chai"; -import { env, isLiveMode, isPlaybackMode } from "@azure-tools/test-recorder"; -import { OpenAIClient } from "@azure/openai"; +import { COMPRESSION_DISABLED } from "../../compressionDisabled"; +import { Hotel } from "./interfaces"; export const WAIT_TIME = isPlaybackMode() ? 0 : 4000; @@ -23,6 +24,12 @@ export async function createIndex( name: string, serviceVersion: string, ): Promise { + const algorithmConfigurationName = "algorithm-configuration-name"; + const vectorizerName = "vectorizer-name"; + const vectorSearchProfileName = "profile-name"; + const compressedVectorSearchProfileName = "compressed-profile-name"; + const compressionConfigurationName = "compression-configuration-name"; + const hotelIndex: SearchIndex = { name, fields: [ @@ -201,6 +208,23 @@ export async function createIndex( }, ], }, + { + type: "Collection(Edm.Single)", + name: "vectorDescription", + searchable: true, + vectorSearchDimensions: 1536, + hidden: true, + vectorSearchProfileName, + }, + { + type: "Collection(Edm.Half)", + name: "compressedVectorDescription", + searchable: true, + hidden: true, + vectorSearchDimensions: 1536, + vectorSearchProfileName: compressedVectorSearchProfileName, + stored: false, + }, ], suggesters: [ { @@ -230,57 +254,77 @@ export async function createIndex( // for browser tests allowedOrigins: ["*"], }, - }; - - if (serviceVersion.includes("Preview")) { - const algorithm = "algorithm-configuration"; - const vectorizer = "vectorizer"; - const profile = "profile"; - - hotelIndex.fields.push({ - type: "Collection(Edm.Single)", - name: "vectorDescription", - searchable: true, - vectorSearchDimensions: 1536, - hidden: true, - vectorSearchProfile: profile, - }); - - hotelIndex.vectorSearch = { + vectorSearch: { algorithms: [ { - name: algorithm, - kind: "exhaustiveKnn", + name: algorithmConfigurationName, + kind: "hnsw", parameters: { metric: "dotProduct", }, }, ], - vectorizers: [ + vectorizers: serviceVersion.includes("Preview") + ? [ + { + kind: "azureOpenAI", + name: vectorizerName, + azureOpenAIParameters: { + apiKey: env.AZURE_OPENAI_KEY, + deploymentId: env.AZURE_OPENAI_DEPLOYMENT_NAME, + resourceUri: env.AZURE_OPENAI_ENDPOINT, + }, + }, + ] + : undefined, + compressions: [ { - kind: "azureOpenAI", - name: vectorizer, - azureOpenAIParameters: { - apiKey: env.OPENAI_KEY, - deploymentId: env.OPENAI_DEPLOYMENT_NAME, - resourceUri: env.OPENAI_ENDPOINT, - }, + name: compressionConfigurationName, + kind: "scalarQuantization", + parameters: { quantizedDataType: "int8" }, + rerankWithOriginalVectors: true, }, ], - profiles: [{ name: profile, vectorizer, algorithm }], - }; - hotelIndex.semanticSettings = { + profiles: [ + { + name: vectorSearchProfileName, + vectorizer: serviceVersion.includes("Preview") ? vectorizerName : undefined, + algorithmConfigurationName, + }, + { + name: compressedVectorSearchProfileName, + vectorizer: serviceVersion.includes("Preview") ? vectorizerName : undefined, + algorithmConfigurationName, + compressionConfigurationName, + }, + ], + }, + semanticSearch: { configurations: [ { name: "semantic-configuration-name", prioritizedFields: { titleField: { name: "hotelName" }, - prioritizedContentFields: [{ name: "description" }], - prioritizedKeywordsFields: [{ name: "tags" }], + contentFields: [{ name: "description" }], + keywordsFields: [{ name: "tags" }], }, }, ], - }; + }, + }; + + // This feature isn't publically available yet + if (COMPRESSION_DISABLED) { + hotelIndex.fields = hotelIndex.fields.filter( + (field) => field.name !== "compressedVectorDescription", + ); + const vs = hotelIndex.vectorSearch; + if (vs) { + delete vs.compressions; + vs.profiles = vs.profiles?.filter( + (profile) => profile.name !== compressedVectorSearchProfileName, + ); + } } await client.createIndex(hotelIndex); @@ -290,7 +334,6 @@ export async function createIndex( export async function populateIndex( client: SearchClient, openAIClient: OpenAIClient, - serviceVersion: string, ): Promise { // test data from https://github.com/Azure/azure-sdk-for-net/blob/master/sdk/search/Azure.Search.Documents/tests/Utilities/SearchResources.Data.cs const testDocuments: Hotel[] = [ @@ -495,7 +538,7 @@ export async function populateIndex( }, ]; - if (serviceVersion.includes("Preview") && !isLiveMode()) { + if (!isLiveMode()) { await addVectorDescriptions(testDocuments, openAIClient); } @@ -514,29 +557,22 @@ async function addVectorDescriptions( documents: Hotel[], openAIClient: OpenAIClient, ): Promise { - const deploymentName = process.env.OPENAI_DEPLOYMENT_NAME ?? "deployment-name"; - - const descriptionMap: Map = documents.reduce((map, document, i) => { - map.set(i, document); - return map; - }, new Map()); + const deploymentName = process.env.AZURE_OPENAI_DEPLOYMENT_NAME ?? "deployment-name"; const descriptions = documents .filter(({ description }) => description) .map(({ description }) => description!); - // OpenAI only supports one description at a time at the moment - const embeddingsArray = await Promise.all( - descriptions.map((description) => openAIClient.getEmbeddings(deploymentName, [description])), - ); + const embeddingsArray = await openAIClient.getEmbeddings(deploymentName, descriptions); - embeddingsArray.forEach((embeddings, i) => - embeddings.data.forEach((embeddingItem) => { - const { embedding, index: j } = embeddingItem; - const document = descriptionMap.get(i + j)!; - document.vectorDescription = embedding; - }), - ); + embeddingsArray.data.forEach((embeddingItem) => { + const { embedding, index } = embeddingItem; + const document = documents[index]; + document.vectorDescription = embedding; + if (!COMPRESSION_DISABLED) { + document.compressedVectorDescription = embedding; + } + }); } // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters diff --git a/sdk/search/search-documents/tsconfig.json b/sdk/search/search-documents/tsconfig.json index 2249af41759a..5b2c1fce7aa9 100644 --- a/sdk/search/search-documents/tsconfig.json +++ b/sdk/search/search-documents/tsconfig.json @@ -1,11 +1,11 @@ { "extends": "../../../tsconfig.package", "compilerOptions": { - "outDir": "./dist-esm", "declarationDir": "./types", + "outDir": "./dist-esm", "paths": { "@azure/search-documents": ["./src/index"] } }, - "include": ["src/**/*.ts", "test/**/*.ts", "samples-dev/**/*.ts"] + "include": ["samples-dev/**/*.ts", "src/**/*.ts", "test/**/*.ts"] } From e8109d6e8258500302e71a9c1e014076d75aea4d Mon Sep 17 00:00:00 2001 From: ZiWei Chen <98569699+kazrael2119@users.noreply.github.com> Date: Mon, 18 Mar 2024 14:26:54 +0800 Subject: [PATCH 56/57] [mgmt] quantum release (#28880) https://github.com/Azure/sdk-release-request/issues/4998 --- common/config/rush/pnpm-lock.yaml | 763 ++++++++-------- sdk/quantum/arm-quantum/CHANGELOG.md | 34 +- sdk/quantum/arm-quantum/LICENSE | 2 +- sdk/quantum/arm-quantum/_meta.json | 8 +- sdk/quantum/arm-quantum/assets.json | 2 +- sdk/quantum/arm-quantum/package.json | 18 +- .../arm-quantum/review/arm-quantum.api.md | 61 +- .../samples-dev/offeringsListSample.ts | 2 +- .../samples-dev/operationsListSample.ts | 2 +- .../workspaceCheckNameAvailabilitySample.ts | 8 +- .../samples-dev/workspaceListKeysSample.ts | 43 + .../workspaceRegenerateKeysSample.ts | 45 + .../workspacesCreateOrUpdateSample.ts | 22 +- .../samples-dev/workspacesDeleteSample.ts | 4 +- .../samples-dev/workspacesGetSample.ts | 2 +- .../workspacesListByResourceGroupSample.ts | 4 +- .../workspacesListBySubscriptionSample.ts | 2 +- .../samples-dev/workspacesUpdateTagsSample.ts | 6 +- .../samples/v1-beta/javascript/README.md | 26 +- .../v1-beta/javascript/offeringsListSample.js | 2 +- .../javascript/operationsListSample.js | 2 +- .../workspaceCheckNameAvailabilitySample.js | 4 +- .../javascript/workspaceListKeysSample.js | 36 + .../workspaceRegenerateKeysSample.js | 41 + .../workspacesCreateOrUpdateSample.js | 20 +- .../javascript/workspacesDeleteSample.js | 2 +- .../v1-beta/javascript/workspacesGetSample.js | 2 +- .../workspacesListByResourceGroupSample.js | 2 +- .../workspacesListBySubscriptionSample.js | 2 +- .../javascript/workspacesUpdateTagsSample.js | 4 +- .../samples/v1-beta/typescript/README.md | 26 +- .../typescript/src/offeringsListSample.ts | 2 +- .../typescript/src/operationsListSample.ts | 2 +- .../workspaceCheckNameAvailabilitySample.ts | 8 +- .../typescript/src/workspaceListKeysSample.ts | 43 + .../src/workspaceRegenerateKeysSample.ts | 45 + .../src/workspacesCreateOrUpdateSample.ts | 22 +- .../typescript/src/workspacesDeleteSample.ts | 4 +- .../typescript/src/workspacesGetSample.ts | 2 +- .../workspacesListByResourceGroupSample.ts | 4 +- .../src/workspacesListBySubscriptionSample.ts | 2 +- .../src/workspacesUpdateTagsSample.ts | 6 +- .../src/azureQuantumManagementClient.ts | 35 +- sdk/quantum/arm-quantum/src/lroImpl.ts | 6 +- sdk/quantum/arm-quantum/src/models/index.ts | 171 +++- sdk/quantum/arm-quantum/src/models/mappers.ts | 843 ++++++++++-------- .../arm-quantum/src/models/parameters.ts | 79 +- .../arm-quantum/src/operations/offerings.ts | 41 +- .../arm-quantum/src/operations/operations.ts | 32 +- .../arm-quantum/src/operations/workspace.ts | 104 ++- .../arm-quantum/src/operations/workspaces.ts | 227 +++-- .../src/operationsInterfaces/offerings.ts | 2 +- .../src/operationsInterfaces/operations.ts | 2 +- .../src/operationsInterfaces/workspace.ts | 35 +- .../src/operationsInterfaces/workspaces.ts | 32 +- sdk/quantum/arm-quantum/src/pagingHelper.ts | 2 +- .../test/quantum_operations_test.spec.ts | 17 +- 57 files changed, 1804 insertions(+), 1161 deletions(-) create mode 100644 sdk/quantum/arm-quantum/samples-dev/workspaceListKeysSample.ts create mode 100644 sdk/quantum/arm-quantum/samples-dev/workspaceRegenerateKeysSample.ts create mode 100644 sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js create mode 100644 sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js create mode 100644 sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts create mode 100644 sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 741e6b5594e5..816dce76b2c1 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -10487,7 +10487,7 @@ packages: dev: false file:projects/abort-controller.tgz: - resolution: {integrity: sha512-iNr+bUFLjcImxSkKGfTvrMXdvN+Xr2uo0pe1VAQ5yxDLRwekMIoD0LJTgxqbMH9X+0ZTQdvANRTXKGf0Vg5gMQ==, tarball: file:projects/abort-controller.tgz} + resolution: {integrity: sha512-6KmwcmAc6Zw8aAD3MJMfxMFu/eU1by4j5WCbNbMnTh+SAEBmhRppxYLE57CHk/4zJEAr+ssjbLGmiSDO9XWAqg==, tarball: file:projects/abort-controller.tgz} name: '@rush-temp/abort-controller' version: 0.0.0 dependencies: @@ -10520,7 +10520,7 @@ packages: dev: false file:projects/agrifood-farming.tgz: - resolution: {integrity: sha512-wAQvtrrdmX+2Bva2/aeO1N4UYS/nOcPQrPdBDFE6ZWAOzeOF7/EozfYF/754AYKYjmWhJ1eVKk6fwkDsPZvqEQ==, tarball: file:projects/agrifood-farming.tgz} + resolution: {integrity: sha512-1gJtIqsdb3A7n3iKVYX+cO9GlxwAx98jKfiFw+9rOmBZzyH3+AVNwCR5y/qego33s7BOEtVBYTBfE+RE2g+u7A==, tarball: file:projects/agrifood-farming.tgz} name: '@rush-temp/agrifood-farming' version: 0.0.0 dependencies: @@ -10564,7 +10564,7 @@ packages: dev: false file:projects/ai-anomaly-detector.tgz: - resolution: {integrity: sha512-1D5XNSIsMuHod/Ga1MvLOMSZ7SnsmJ1C1QQps7z/Lu3Bn2HeE/PaprRY6oLdG0lpFv2QImE5IXWffLrL6VG08g==, tarball: file:projects/ai-anomaly-detector.tgz} + resolution: {integrity: sha512-4RFMxeQv1SvqJCIIXuHWetqcaZypgMXBD4y5KRpyYJTn5IqgypkpxQDlU5Fzau51QjuGovlngIFGYhUK6ChHZw==, tarball: file:projects/ai-anomaly-detector.tgz} name: '@rush-temp/ai-anomaly-detector' version: 0.0.0 dependencies: @@ -10608,7 +10608,7 @@ packages: dev: false file:projects/ai-content-safety.tgz: - resolution: {integrity: sha512-pKa4o99jHH5JO9Y0rzBJC9xekW78nEjxZ549EGZAum2Ro6+cUR3x3l/EGL5Re5dHyhfljfxpX2MYvNFIBAMvkw==, tarball: file:projects/ai-content-safety.tgz} + resolution: {integrity: sha512-6lwZLHLgH7pSNwF2YBkR18lySMvokaRLXby1EOj1ARxHwO1txv3VJzB4MkbITljyQAwwf0LBy7FZWGq++7wHKQ==, tarball: file:projects/ai-content-safety.tgz} name: '@rush-temp/ai-content-safety' version: 0.0.0 dependencies: @@ -10651,7 +10651,7 @@ packages: dev: false file:projects/ai-document-intelligence.tgz: - resolution: {integrity: sha512-K1pn4bMflvrhHSOp2OIfBXRZaHGszteFE7TxUJQW1yv6OsRM02nnclIcKavqg9fboSWrDg5cWjyPBgzC2hKrvA==, tarball: file:projects/ai-document-intelligence.tgz} + resolution: {integrity: sha512-BzeiADIeoIIlJ8LRyX4rq6JouqAj7vz9S+/YE9KQXRP9URaP0ke8pY0Wzi4mOEW7dIrecN0ePd0TJqxrImmrdQ==, tarball: file:projects/ai-document-intelligence.tgz} name: '@rush-temp/ai-document-intelligence' version: 0.0.0 dependencies: @@ -10695,7 +10695,7 @@ packages: dev: false file:projects/ai-document-translator.tgz: - resolution: {integrity: sha512-dWR4dFSVukPRd0wgny/m2a0LUBL1vlLQHpVTzjunyoM71gap1ZUGhPiSZ+6HVEu9KgEEp65QtUYp4Oic2fsXdA==, tarball: file:projects/ai-document-translator.tgz} + resolution: {integrity: sha512-nJmJTeS99cjSGz7F593eBVWe9e8z5MlBcL/RPYc1X7GqLarVvQDy8CRvNotVwlKqZXIDFU5SZQfm79ariToNEA==, tarball: file:projects/ai-document-translator.tgz} name: '@rush-temp/ai-document-translator' version: 0.0.0 dependencies: @@ -10738,7 +10738,7 @@ packages: dev: false file:projects/ai-form-recognizer.tgz: - resolution: {integrity: sha512-obvG9Pyeh3oCfjyjfZIdiWnUUh3QHYdQ+oWUO9bE4ZT+Nqa3Ix7v4UJnm70eedgqTtK1/QNQDQXTqc2ANnXUJg==, tarball: file:projects/ai-form-recognizer.tgz} + resolution: {integrity: sha512-diW8HFTJtQYPHtBCCTcY5ijE8lH5+MrWF36K19IFl6McafkYs8mh5/oXLXV/PBTnXtUk00gDT58b2X6iC4mrXA==, tarball: file:projects/ai-form-recognizer.tgz} name: '@rush-temp/ai-form-recognizer' version: 0.0.0 dependencies: @@ -10785,7 +10785,7 @@ packages: dev: false file:projects/ai-language-conversations.tgz: - resolution: {integrity: sha512-SmlaqC8pKs7sb67AsLVRmaIn0+f3npLN63yN7BHhFdpf+Rth+DLDhZ1dzhLjqXUZQdPkFqriSrWJkV0ROs5iMQ==, tarball: file:projects/ai-language-conversations.tgz} + resolution: {integrity: sha512-zgE5BUWLB90nEH+Nd+UHPHz7t08SHyUzrjQ/EgBiUuoHTBkP2q7cHziIl7AlO9LjBIU1zMe+zQyYPihhvP0SNw==, tarball: file:projects/ai-language-conversations.tgz} name: '@rush-temp/ai-language-conversations' version: 0.0.0 dependencies: @@ -10833,7 +10833,7 @@ packages: dev: false file:projects/ai-language-text.tgz: - resolution: {integrity: sha512-Xxb9oGASDhz+Qjv4Lmb1oyjsToKVg0s+vXlaizxhh/t6q1lZaADyNAa/vOdKz8ycOcGbuBNY4mE1G4nudGrLQg==, tarball: file:projects/ai-language-text.tgz} + resolution: {integrity: sha512-qnXx4I2V8KgR+lYOuTi6Ku4zWlgMz8WmYssVtNG3LDQtrcDmi8eqHQhCYuz51S2LebSDT0e4HOX0QVsNibqHEw==, tarball: file:projects/ai-language-text.tgz} name: '@rush-temp/ai-language-text' version: 0.0.0 dependencies: @@ -10880,7 +10880,7 @@ packages: dev: false file:projects/ai-language-textauthoring.tgz: - resolution: {integrity: sha512-+t8Q7pUW63hRFCgAA14Kg2ypyBKvBH9fI/Zta/k1fegdI78goRNjsExAMBGrk/fV18C6qHIzON8C6GGhJTjPfA==, tarball: file:projects/ai-language-textauthoring.tgz} + resolution: {integrity: sha512-L55Jdp4pix57yOZRUz3E61njkW4SsdSaxP7pTkl37rWvz0uWdz7hngTuxyiVNkq0ILjlMsI9nEdce5cZOkl64Q==, tarball: file:projects/ai-language-textauthoring.tgz} name: '@rush-temp/ai-language-textauthoring' version: 0.0.0 dependencies: @@ -10905,7 +10905,7 @@ packages: dev: false file:projects/ai-metrics-advisor.tgz: - resolution: {integrity: sha512-LHiJRXI1Y8vFpannHomfmMKM10Amp/vSzyZoIF+NwHc2ZJdsmsqWdctyXNmOYTFVNIogKt0CryjLZpiGp534YQ==, tarball: file:projects/ai-metrics-advisor.tgz} + resolution: {integrity: sha512-ywS2xkL3j+OT/TGdNqEnlS3sn6dCjDmjdc7Tq0S6WG5UWtP7jJxV+xViqzVI/ND4MB7YpZDSdaw4J49XttTxDA==, tarball: file:projects/ai-metrics-advisor.tgz} name: '@rush-temp/ai-metrics-advisor' version: 0.0.0 dependencies: @@ -10948,7 +10948,7 @@ packages: dev: false file:projects/ai-personalizer.tgz: - resolution: {integrity: sha512-8pWBjymcvSVHxWk4tougH/CzuZYnHVWNeFDGkMpMX3u34GMs4EqoTCTZZxz8cGt66RmJND3A08pOmtVwkaK+yA==, tarball: file:projects/ai-personalizer.tgz} + resolution: {integrity: sha512-1YSdKuRqIO9U6bdAngcYXnJAqg1sFvk+fNl0D/2cOL56RV0lNrbTaxnJEo4yvM7/aQ4/JojgOP4i48BnP1fQWg==, tarball: file:projects/ai-personalizer.tgz} name: '@rush-temp/ai-personalizer' version: 0.0.0 dependencies: @@ -10991,7 +10991,7 @@ packages: dev: false file:projects/ai-text-analytics.tgz: - resolution: {integrity: sha512-z21IyncrTycb7fJSyH486fdoc3bfSICN5efEkp+/N1Ed26rKd2HSw9HUgEbqJXUyMAkFlD+XzbhIc2LGs/a6rw==, tarball: file:projects/ai-text-analytics.tgz} + resolution: {integrity: sha512-xIVLnFsYlJw7fjbKeTAjnneKWoeSgvcEK7QPZG6LLZfQpoErjPDJh/1VinYhM+kfuuDFkddCtZ9IGK2uZ1o9Dw==, tarball: file:projects/ai-text-analytics.tgz} name: '@rush-temp/ai-text-analytics' version: 0.0.0 dependencies: @@ -11037,7 +11037,7 @@ packages: dev: false file:projects/ai-translation-text.tgz: - resolution: {integrity: sha512-PwMYx4S6HQOcwVprsWOXUQcIy13EeJm7xcDNfd4VShU6STuGTgNdf0F5+pp24+LLfZ5fcOWxfqOxfGemcwettw==, tarball: file:projects/ai-translation-text.tgz} + resolution: {integrity: sha512-ETbxAv2PSXMdT9s2t6fy84Th7wl4mon7K0lOInT5nWAMd9MeqdjPxQ1ivqW9jDA1vovsKQ8qUaPIuBYn5QrnhQ==, tarball: file:projects/ai-translation-text.tgz} name: '@rush-temp/ai-translation-text' version: 0.0.0 dependencies: @@ -11080,7 +11080,7 @@ packages: dev: false file:projects/ai-vision-image-analysis.tgz: - resolution: {integrity: sha512-BTGRoZOmU+cmrNgx8b5wgrZ3PqbiO0rSQ+8jGNwVZP6TUcBN1Ne9nYHnIQxZCaGB2vf+4uKJ6NCMCw2TkLsu0Q==, tarball: file:projects/ai-vision-image-analysis.tgz} + resolution: {integrity: sha512-tKgHLBvnEh7Q9FyyOC6WnpAFb4NJxOK2LFfaAWiZSEVwi1vlfkdAckelu0lPxqSiY7rwllrC8VsBGAWcQ415/Q==, tarball: file:projects/ai-vision-image-analysis.tgz} name: '@rush-temp/ai-vision-image-analysis' version: 0.0.0 dependencies: @@ -11123,7 +11123,7 @@ packages: dev: false file:projects/api-management-custom-widgets-scaffolder.tgz: - resolution: {integrity: sha512-ILWxIgL8Fu+WN9uD8SqwoDsJGBAKDKlgXHhB0ggTzXayZ/890ADv+LJxN65P+TvxfAlzsE9NMg/JrtsU2DCvsg==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} + resolution: {integrity: sha512-4Rktgk3WHldMSBL7EMvssgkC2lds/H6eF789SNkPmwvTv8lrk/BQhpO3gkltFpJ4MNolcsuLVfs47kgqFndM3g==, tarball: file:projects/api-management-custom-widgets-scaffolder.tgz} name: '@rush-temp/api-management-custom-widgets-scaffolder' version: 0.0.0 dependencies: @@ -11165,7 +11165,7 @@ packages: dev: false file:projects/api-management-custom-widgets-tools.tgz: - resolution: {integrity: sha512-ryd7sqfaOWJhxOOsThaBeSvhi2vuX6n4budqkOZyjeTNTYHhvme7eK+BZYSuB8EPjTr27FcsT3QkB5oSadhnIg==, tarball: file:projects/api-management-custom-widgets-tools.tgz} + resolution: {integrity: sha512-Wyj3HbKSuoSY7eNvMUldvhnMqi5kKO8QXcP5Kab2D+RI76V1TYiDNB/1ffC+jN96ZsLOvaOH1xpFeGIcRfnjgw==, tarball: file:projects/api-management-custom-widgets-tools.tgz} name: '@rush-temp/api-management-custom-widgets-tools' version: 0.0.0 dependencies: @@ -11216,7 +11216,7 @@ packages: dev: false file:projects/app-configuration.tgz: - resolution: {integrity: sha512-hdktXjbcBGvA0FHTn22UDjSVXhFlQU56GwYbHaqj+rphRrYSM4gply8nms7Ob6wguO7YPdwkFlkXIFcVmX/AtQ==, tarball: file:projects/app-configuration.tgz} + resolution: {integrity: sha512-yZ5eoxFyedjpLHPzgkwFAv2HhPvIWNHm1yn/sa8fqSp+SLfb/D2gOciNlANeEiiUgy9xldH4WXfTONmn+Wsf4w==, tarball: file:projects/app-configuration.tgz} name: '@rush-temp/app-configuration' version: 0.0.0 dependencies: @@ -11255,7 +11255,7 @@ packages: dev: false file:projects/arm-advisor.tgz: - resolution: {integrity: sha512-OTfKEJPA4yb4uvJh4k/vEuleTC8VFATTm6fufuGRo/tfZzh1sl4h7YXjBvr4UbSUOeNxHEwV/xsVJHGh1jvXbA==, tarball: file:projects/arm-advisor.tgz} + resolution: {integrity: sha512-ROD8jk3cSov/vE48keG4Nu0rftlbMlbMwQbuL8cw564ZjyxcYvmKwW/mj+dyWtjYbuCj27/MTG11+baciBUgEw==, tarball: file:projects/arm-advisor.tgz} name: '@rush-temp/arm-advisor' version: 0.0.0 dependencies: @@ -11281,7 +11281,7 @@ packages: dev: false file:projects/arm-agrifood.tgz: - resolution: {integrity: sha512-KHlACz3MiXabvxhbQZNVZ76eLFAPV8hlyR9XYb3vpYJ0rC8o+oFVimtXtjIvS/5t77FUwscIeIq6VmHDRKlGxQ==, tarball: file:projects/arm-agrifood.tgz} + resolution: {integrity: sha512-Eq8GFhNd/oJociPIg1rktInQeN9SNAGJzOhamq2MgkU56XwmS6wcBn1JOti8JJeKaE/QXO3yKpewSyct3g+Qjg==, tarball: file:projects/arm-agrifood.tgz} name: '@rush-temp/arm-agrifood' version: 0.0.0 dependencies: @@ -11307,7 +11307,7 @@ packages: dev: false file:projects/arm-analysisservices.tgz: - resolution: {integrity: sha512-gKdDM68eaEu4Lxc2m/MZBfsrYuve36VXh36B8GkQhr2Fy74fkB0hxVIaybXwRkBQe+NFheOV2nR2eWjU8VkCOQ==, tarball: file:projects/arm-analysisservices.tgz} + resolution: {integrity: sha512-K60F16ABp0NPA67efoMfwVPIevG22mZLc9IDlRWUsF1sEI+r0j87PM1XpcvxyPaBwdj/m9hJlA1YncxM7iNxJg==, tarball: file:projects/arm-analysisservices.tgz} name: '@rush-temp/arm-analysisservices' version: 0.0.0 dependencies: @@ -11333,7 +11333,7 @@ packages: dev: false file:projects/arm-apicenter.tgz: - resolution: {integrity: sha512-I7XVaUB5zLRaozqNoPd0XDmfpMBMbEicQxn8lFbAe5pm1C9l3C07LLk6jU6UkwO7XMZ6KHmtvvGmsdP/83W4IQ==, tarball: file:projects/arm-apicenter.tgz} + resolution: {integrity: sha512-+pRFPielS0gDX8JVCaOPr0hufVi5RDa6CVbp3lRglARFGjy3zK2Cf6/QJUZXmoxEdYTFqKjwgIcJdkCJk+bwFQ==, tarball: file:projects/arm-apicenter.tgz} name: '@rush-temp/arm-apicenter' version: 0.0.0 dependencies: @@ -11361,7 +11361,7 @@ packages: dev: false file:projects/arm-apimanagement.tgz: - resolution: {integrity: sha512-ju2yrtwuRTesvgr/BfJcgDWjH4/TgLJsKospTQ64cZEpJgkiVjKf96UNryaVel4MxuxM85NKYxarul71R6mN2Q==, tarball: file:projects/arm-apimanagement.tgz} + resolution: {integrity: sha512-JzZWr0hc/ZNg1TekAQAKyht82tdhGnk+NZG0fJ36AqsfwWP3xm9la0zFq2S6OdhG/pEzmFW32Gt/ewJ2No6zWg==, tarball: file:projects/arm-apimanagement.tgz} name: '@rush-temp/arm-apimanagement' version: 0.0.0 dependencies: @@ -11388,7 +11388,7 @@ packages: dev: false file:projects/arm-appcomplianceautomation.tgz: - resolution: {integrity: sha512-NtiILsjaOd0fwgZhEL7+SaP2a02m4zETgRa8/34N9PNcn8MN/tZFmvmDh6ZjROqIg1X/GIxyKIpwnQSfhE/+/w==, tarball: file:projects/arm-appcomplianceautomation.tgz} + resolution: {integrity: sha512-maN4MPboagaxwfe8eh2nHyfAicYFfJGj3qAcGGKNEQ86MCXL6cC00xIdUT08QO5Mu2AF/u17gCs6znuDHwKDvw==, tarball: file:projects/arm-appcomplianceautomation.tgz} name: '@rush-temp/arm-appcomplianceautomation' version: 0.0.0 dependencies: @@ -11414,7 +11414,7 @@ packages: dev: false file:projects/arm-appconfiguration.tgz: - resolution: {integrity: sha512-4v96saBHfbHekdsUuRpNLycDOlo+7v5dYJCPOaomud0XrAdl5c2hbpPNag7Mu5FxywXPMyc3NiCdi5etZY8WAQ==, tarball: file:projects/arm-appconfiguration.tgz} + resolution: {integrity: sha512-gtrl3Hqq0gmpifajc4RgLdCXIH7sT72oPGIklzYW37Y4fssGQNeoWMXwvP5d4vLG/Apz3WXyPyxs4rcPCNQwBA==, tarball: file:projects/arm-appconfiguration.tgz} name: '@rush-temp/arm-appconfiguration' version: 0.0.0 dependencies: @@ -11441,7 +11441,7 @@ packages: dev: false file:projects/arm-appcontainers.tgz: - resolution: {integrity: sha512-IvoH/GAa4+uOxQ54m9x2GHYy/18gIvzXH6tZmbH4IHkMn9BiBIDq3Z0Bg0RoQ3fnf79sRjhN4TpNq9jW1rD0EQ==, tarball: file:projects/arm-appcontainers.tgz} + resolution: {integrity: sha512-7WPgejLGKgOh2vPVgdi0dMKg+iBkbUeoopTskBmNemYPZv/IbY2L07kru2erL0s11m3teLBDro/ssrPrqDboCA==, tarball: file:projects/arm-appcontainers.tgz} name: '@rush-temp/arm-appcontainers' version: 0.0.0 dependencies: @@ -11468,7 +11468,7 @@ packages: dev: false file:projects/arm-appinsights.tgz: - resolution: {integrity: sha512-WveWOZAHZWF58vZvK3pdvIx84fyR4VWrcCydr3F/UStxrXcgPVpW5qZYEucy6sdsql1keOff0i5QEpvySgvT9A==, tarball: file:projects/arm-appinsights.tgz} + resolution: {integrity: sha512-I34zQkAWNFmMo89ZFt2EM4nUwIymNs3zAmF640abJkJh/L+GNu2fMfy2dI5IrOhj/f1+KTrpGRpDPTz/IrnnDQ==, tarball: file:projects/arm-appinsights.tgz} name: '@rush-temp/arm-appinsights' version: 0.0.0 dependencies: @@ -11493,7 +11493,7 @@ packages: dev: false file:projects/arm-appplatform.tgz: - resolution: {integrity: sha512-kWl3JeqgYBz4K19XI76Pq2kdLSwC8yG+PtqruJng/HadLD47zI49erNs4te6JNytsobVRzc9GLcXwL7G1xSdPQ==, tarball: file:projects/arm-appplatform.tgz} + resolution: {integrity: sha512-+qvA56xDmFhYVyBkJSMPw5rssZ7dcUPhEsdUoENLA6hLLgauw7hoyagObPLVJrEGXNCgkABSR5V8+bTf3uWtQQ==, tarball: file:projects/arm-appplatform.tgz} name: '@rush-temp/arm-appplatform' version: 0.0.0 dependencies: @@ -11521,7 +11521,7 @@ packages: dev: false file:projects/arm-appservice-1.tgz: - resolution: {integrity: sha512-oCf1w1dQgRqUaU8CuQI+35t3/VOmv9NqUnRe4kKetJWZNDj2BsOeqOnLLewVUsYYwSCowOeX3L+zOiyxQvbpqw==, tarball: file:projects/arm-appservice-1.tgz} + resolution: {integrity: sha512-n9SiDwWNM6NvRyxLXP85XacmYutdry1HFVz14/Ku6TF6yvZ5/VLx9unSPUKd1kKaG/GiwcrXn4v/xlKfAqi+Wg==, tarball: file:projects/arm-appservice-1.tgz} name: '@rush-temp/arm-appservice-1' version: 0.0.0 dependencies: @@ -11549,7 +11549,7 @@ packages: dev: false file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-TwZgQgk0vsQbAgaGZjjA9QH+89/zcVRTkZqB/8BMnYP4CyjGWj46pRc92Aj9ef03vC5/I6sxyZUhfZZtZ0mZfw==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-mkO1V5mAXU3DXRK51F/22W8UVpQtDdbq8T7Eqa0yOdByJjdBLB4FBnqwJmcYKTIdyUT7vmS3FqT6kQuOOzEPcg==, tarball: file:projects/arm-appservice-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-appservice-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -11576,7 +11576,7 @@ packages: dev: false file:projects/arm-appservice.tgz: - resolution: {integrity: sha512-/QFWX/YoXfT4/nIu3WtRXEWrCHYS4rIyFHhm76cNjBIBWjONfbQQZt+jKkrmd7dlUik5t3CUF632KC9zn8vcAA==, tarball: file:projects/arm-appservice.tgz} + resolution: {integrity: sha512-njmusO6mmbSKbVWfPaO5s8ZxhbVPJdCUBSqrB32Zz1XGljPg1TyEwNoYxVEaN12vcwvSmcwQBqnhx/2/9D2/hQ==, tarball: file:projects/arm-appservice.tgz} name: '@rush-temp/arm-appservice' version: 0.0.0 dependencies: @@ -11619,7 +11619,7 @@ packages: dev: false file:projects/arm-astro.tgz: - resolution: {integrity: sha512-9WhXfWQ2IRgbLqxa1ZPCCpAHEIgBGTbEGhQDzaF6tiaOb8iBnU4o2Tjk2WhoN7opuV+opjcsYQOmMfOGsH0iFg==, tarball: file:projects/arm-astro.tgz} + resolution: {integrity: sha512-pfLYFPuJdkULAxrnj9El8VyRO+vaLNJgInb0OAgAWYtrvXpn5IUO2uSSrnAFHcQbi405BS+X6gCMQDZhmPC+DA==, tarball: file:projects/arm-astro.tgz} name: '@rush-temp/arm-astro' version: 0.0.0 dependencies: @@ -11647,7 +11647,7 @@ packages: dev: false file:projects/arm-attestation.tgz: - resolution: {integrity: sha512-CC5FeafaJaQQUVap3hU16FnRfk/dH+MQstKPMluYUN3yOSwoSnzOYpUhE2A8A/X3ntd5ZayS3eCQ8KQoDttPqQ==, tarball: file:projects/arm-attestation.tgz} + resolution: {integrity: sha512-W9YXfJPtPSHsFheKhG9b0Z6mwPLgf0W//VXP/Y6WmgUwddcKGxG4ltBYSvVGIsweYmCgblAAQ2QeLb9rbR4JmA==, tarball: file:projects/arm-attestation.tgz} name: '@rush-temp/arm-attestation' version: 0.0.0 dependencies: @@ -11672,7 +11672,7 @@ packages: dev: false file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-SE+y4mqIuScTDDH6hBlhT41I+8QTNBR9wA9540ymYjYAlchKpYGojSrxiTZnxKGnQ9ioWaikEWPkoKY9eALJdA==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-4YEuNADyUOVmwESJbnO5v1amsCokgIjVBv1+7JDeFyeVOHwYIsI5CBWBccu40Y5lXa+OuuinEf6SyRF8+hFq6Q==, tarball: file:projects/arm-authorization-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-authorization-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -11698,7 +11698,7 @@ packages: dev: false file:projects/arm-authorization.tgz: - resolution: {integrity: sha512-y3ID88BoTobWQ90d8h8i21UIMdjhhjnCfkIaHG4XYDzucNddjyvRl1LYHCRIheUBgbp6sKuUsIUymAmOh8870w==, tarball: file:projects/arm-authorization.tgz} + resolution: {integrity: sha512-UAaYVqdL+QU7UGdM4HnWbie2G6uofI3o9ATwno6B8gPQoWXO6u77l7yXPVX79p84dqt9HnJxMFwwjQXfm6wkVw==, tarball: file:projects/arm-authorization.tgz} name: '@rush-temp/arm-authorization' version: 0.0.0 dependencies: @@ -11725,7 +11725,7 @@ packages: dev: false file:projects/arm-automanage.tgz: - resolution: {integrity: sha512-TrPitisx+wX1fn+WDN5+Imn4wpDYRRki5hMTk2AxNwAVSTekGwdrgahKvchCEybBAw+Ow6UVvpBnxtCddFQ6bw==, tarball: file:projects/arm-automanage.tgz} + resolution: {integrity: sha512-WZJfe67gslSRoYPk6z6Qfoi1fwxp2GEwDB8elkicB5wKc7o10NsgpKrPHJr180zGEaqgP5AVjDXU4i9qDMox4g==, tarball: file:projects/arm-automanage.tgz} name: '@rush-temp/arm-automanage' version: 0.0.0 dependencies: @@ -11751,7 +11751,7 @@ packages: dev: false file:projects/arm-automation.tgz: - resolution: {integrity: sha512-ZYcv8NIFOEDa/+Hr6hyv6D411e5d6jgSvcDP3R4o+XPXVYeBgHnfJuFkHiawfZ9lsfupgr4jZvXodhkB+MCe1Q==, tarball: file:projects/arm-automation.tgz} + resolution: {integrity: sha512-fU4K8Q56JPN5PdbmdhCozG+AxiyjQnD2yV3AQC4UmhSYtQqnf5iw+98MMNS2Rv3fybvvFJ6gBKF/O0am/EhX4A==, tarball: file:projects/arm-automation.tgz} name: '@rush-temp/arm-automation' version: 0.0.0 dependencies: @@ -11778,7 +11778,7 @@ packages: dev: false file:projects/arm-avs.tgz: - resolution: {integrity: sha512-LK0uvecM2hEjGv0O4sWN3GU2z/Aq5IuFulZuA4/GBWMeKaLG26v15677xEJ9aTVSOHttQG5A7VubPKPy2hhnjg==, tarball: file:projects/arm-avs.tgz} + resolution: {integrity: sha512-vvOMpwBsj6dUZhJa2p8KBuZ76OXRloJt9IzrwLN3OduAcirG/1kXWajm7ttOKv7kbgdkgYosdoVW/y5K3+ZdUg==, tarball: file:projects/arm-avs.tgz} name: '@rush-temp/arm-avs' version: 0.0.0 dependencies: @@ -11805,7 +11805,7 @@ packages: dev: false file:projects/arm-azureadexternalidentities.tgz: - resolution: {integrity: sha512-D2DwhGegbgi6zoaZVoPaiWck6nevz5Nr5XjYDXCEneOhKC5yXdC4d+tJ2RVGHO7lXqmQD0CXbpnm+VZoHHxKaA==, tarball: file:projects/arm-azureadexternalidentities.tgz} + resolution: {integrity: sha512-rjtKIBKvq6ND8N2gDtElANgFd5mLw7fQFEA8cC+7OomaKl5R5QvAjeeLv6fAKgMZK5qpFIGFVzb3yhBrduc34g==, tarball: file:projects/arm-azureadexternalidentities.tgz} name: '@rush-temp/arm-azureadexternalidentities' version: 0.0.0 dependencies: @@ -11831,7 +11831,7 @@ packages: dev: false file:projects/arm-azurestack.tgz: - resolution: {integrity: sha512-hK5vGbD/wzs92bRHzjfoiMgmtULUmvBX/Dy4glEGxjdB2nVJj2YJQnHrEJEGqXsxsrAKCi4HLkPN7JOgzS+uIQ==, tarball: file:projects/arm-azurestack.tgz} + resolution: {integrity: sha512-wrt99LenEOf4kvtZZgZ0KjUceMo53uXxApffabcRTHH+Ld/YJuj+Mc3O7n8VE4nrQm7XkBrNotHyZ5o0WBBqKQ==, tarball: file:projects/arm-azurestack.tgz} name: '@rush-temp/arm-azurestack' version: 0.0.0 dependencies: @@ -11856,7 +11856,7 @@ packages: dev: false file:projects/arm-azurestackhci.tgz: - resolution: {integrity: sha512-wnd5b+JTHJgKEzDePeSWPoY+ff9OT9kOF8KTRhjLNDQzuXvkt6fBpQujQ2DxsPazK2eT0jC6WFff4Bn5qd67Og==, tarball: file:projects/arm-azurestackhci.tgz} + resolution: {integrity: sha512-GsBAUCcQuPH/hPNL/XTrlL2Z9og7Em4vq/WV2UL54qxKYd9CPCyHr8hm30qhvLDVoe9OB6Nf5emR0FEbdpzm3A==, tarball: file:projects/arm-azurestackhci.tgz} name: '@rush-temp/arm-azurestackhci' version: 0.0.0 dependencies: @@ -11883,7 +11883,7 @@ packages: dev: false file:projects/arm-baremetalinfrastructure.tgz: - resolution: {integrity: sha512-kFoYePU/3fnaxe08ofujx8mhP9UXbkLl78TUGykAWG68KD66Q5lMFfhKxbu3tL34Q/h13YSKCqETwwHk4Yq1Kw==, tarball: file:projects/arm-baremetalinfrastructure.tgz} + resolution: {integrity: sha512-KurIkPZ2lUf3lMlZ4lNcbkzxlmTtzgoENoiODXck+4dtqb1FvRFugG35AOdhIH9F+gblOhQV6faOpVq/N00bDw==, tarball: file:projects/arm-baremetalinfrastructure.tgz} name: '@rush-temp/arm-baremetalinfrastructure' version: 0.0.0 dependencies: @@ -11911,7 +11911,7 @@ packages: dev: false file:projects/arm-batch.tgz: - resolution: {integrity: sha512-pWMLj2SwHE9cooxAADD0taGAJlO+ZNiwbqFHUrgUHzmEAg/MRGrjZrq5wnhLTaR7XBWXue7nfwdd8sN9yCV94w==, tarball: file:projects/arm-batch.tgz} + resolution: {integrity: sha512-1Wb1aeZcfhEO+J7zydeuAiK4+VhVSX2oxk+yWBXAswJb30qBQ+GyOz1pqPVih2LCqIBB1Wk6q6I4nv0rAAXQ+A==, tarball: file:projects/arm-batch.tgz} name: '@rush-temp/arm-batch' version: 0.0.0 dependencies: @@ -11939,7 +11939,7 @@ packages: dev: false file:projects/arm-billing.tgz: - resolution: {integrity: sha512-8Ar2AtBLcmHBiIqIcd0WaKxupb6+mw5/2dV01aDSOELTcJiUesXoPCWHXBeNlOCsp0ozacWvBcs7my/kOCt/2Q==, tarball: file:projects/arm-billing.tgz} + resolution: {integrity: sha512-GEUeAL6i+mZgPNLvk9zwai9NrPtFdscZzU1L/CeLqcKntRJQeYYZWU31LlbwaLQsoiwJm1u2Z4ESqXswcHqsQg==, tarball: file:projects/arm-billing.tgz} name: '@rush-temp/arm-billing' version: 0.0.0 dependencies: @@ -11965,7 +11965,7 @@ packages: dev: false file:projects/arm-billingbenefits.tgz: - resolution: {integrity: sha512-mnDKuxl54/MRRwmaR2neH1bb23gs8aMaZOwCPOIsALGwGAvoGyWJFH5TbSMo+eVhkfMSlvgVSB7pxpwFWV2PTw==, tarball: file:projects/arm-billingbenefits.tgz} + resolution: {integrity: sha512-A65JYJp+n/aj/DdNeMs3KEE1iPkRUbVk4L2dCidglVInOSYGdvCv8tAyBxEbJo82KcN4lpRUlXl/T95na3nNDw==, tarball: file:projects/arm-billingbenefits.tgz} name: '@rush-temp/arm-billingbenefits' version: 0.0.0 dependencies: @@ -11991,7 +11991,7 @@ packages: dev: false file:projects/arm-botservice.tgz: - resolution: {integrity: sha512-TEuEGBl+SWiYAmnrlhJbDiF0cYhEjQ700OYM/bk5Ol0Wepc0hEF7vGqDthzObsjy6MSvNhbKzQEWWEieliC5Sg==, tarball: file:projects/arm-botservice.tgz} + resolution: {integrity: sha512-0J61YSYrnqNHnwt+3iVjsB7P8iw6OfCyp+jAKIAE6QMciS0iVzTAXepo6yQdTTgPUOhKyD5a9nZnBVRfStofAg==, tarball: file:projects/arm-botservice.tgz} name: '@rush-temp/arm-botservice' version: 0.0.0 dependencies: @@ -12018,7 +12018,7 @@ packages: dev: false file:projects/arm-cdn.tgz: - resolution: {integrity: sha512-hdoZpJkxaB/yaRxVRdvNAraroDsYzLyO+glVTjNQ1AMaxOmTBt/Lh7QGjbqRlOLViXBCom9kBxoJ8L3NHTqfMw==, tarball: file:projects/arm-cdn.tgz} + resolution: {integrity: sha512-G2My3ELDLnMAu1hU1+U8cWflO3o4jnvXZoRl5tc7kbzjKk2/olbkV79sTEHsFWDzn6B6OWtXCE422YKUD89Vrw==, tarball: file:projects/arm-cdn.tgz} name: '@rush-temp/arm-cdn' version: 0.0.0 dependencies: @@ -12045,7 +12045,7 @@ packages: dev: false file:projects/arm-changeanalysis.tgz: - resolution: {integrity: sha512-wr+WPh67FWR2NRQKgrbkqsy/U4CvwO7/gbotwbxLolAiDKZxPmVw+OV8UHihBcgaJ2l80xeHbOvTlg8KAwH/8Q==, tarball: file:projects/arm-changeanalysis.tgz} + resolution: {integrity: sha512-DsaCiFJEbPuBwYg10wpaeEdE3xRlpV73CgAEi8nWif9kv+JRH+AiYndpFgazGrJcnHbXoWy1HRoihs4uSRqlkQ==, tarball: file:projects/arm-changeanalysis.tgz} name: '@rush-temp/arm-changeanalysis' version: 0.0.0 dependencies: @@ -12070,7 +12070,7 @@ packages: dev: false file:projects/arm-changes.tgz: - resolution: {integrity: sha512-n3UKJZpU3gfZLABS+bNjCW0zmXeYr49am/B9uSITckGvuhu/JqN8O+MqSKG2yhZ+0+rcH68DRD1+xN4EfTObEg==, tarball: file:projects/arm-changes.tgz} + resolution: {integrity: sha512-b9VZ25FT7P33XmmdcqIuurof8/qlDCefvuFzJZcP5W8vww54laviQp3OZMe21gZNoTF0tJCAsisUwCRFtGkfaQ==, tarball: file:projects/arm-changes.tgz} name: '@rush-temp/arm-changes' version: 0.0.0 dependencies: @@ -12095,7 +12095,7 @@ packages: dev: false file:projects/arm-chaos.tgz: - resolution: {integrity: sha512-D/9pHkYWHNIGglI/J6hu38+kHRLQI9k+XjIhJBi4LcFHzCKJ8vrF3lbO05y+p338a2mteTddG749eNGnfpRDQA==, tarball: file:projects/arm-chaos.tgz} + resolution: {integrity: sha512-AYe2IRqlS5udUUwHLB+nBpfwEGN+g3f+4mU3aYzFq4VPJa0+sn4WyhR9uq1kH2ZM1N7mHyMOwqmbF16k95RXrA==, tarball: file:projects/arm-chaos.tgz} name: '@rush-temp/arm-chaos' version: 0.0.0 dependencies: @@ -12124,7 +12124,7 @@ packages: dev: false file:projects/arm-cognitiveservices.tgz: - resolution: {integrity: sha512-ceoamDcbMZIYDtblhTT5SzwQB/f/ZfOeZTKmgCrIWOgRqq7EblaCWEsPgE81I8b5xs6If+DdhtgT+Ihysyz+Pw==, tarball: file:projects/arm-cognitiveservices.tgz} + resolution: {integrity: sha512-9v35I+3xKtYLWq9DIAQqu5k0btXBqcThaBewMC4E5FjwyNUb8eEHi2c/602OiAx8MP7UgxJm05ZTmxCOkamXYw==, tarball: file:projects/arm-cognitiveservices.tgz} name: '@rush-temp/arm-cognitiveservices' version: 0.0.0 dependencies: @@ -12151,7 +12151,7 @@ packages: dev: false file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-cuP9Lj6fq8aOX+H2Gb/o7cKZQ+IOaADcMQ19mgt5epCNgWsNZeXqYm0ypDcyAo1D5FdU2NbQ8576vKXphvX39w==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-KtJEFzp8CujGIy5qfF93himm77C3TyZBSIWoYy+S3Blenj+D7Sx4IRCSG18goRF2MZPzBk8+DaADJ9jysCci2g==, tarball: file:projects/arm-commerce-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-commerce-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12177,7 +12177,7 @@ packages: dev: false file:projects/arm-commerce.tgz: - resolution: {integrity: sha512-YBAusB0+e3cjkTEQMfr3Q8xAxRRS0JbcnVmnt9cyB3MC02XeXGB+oIjKP/TY08cq1IT9HHTKosMrWfKKStGf9g==, tarball: file:projects/arm-commerce.tgz} + resolution: {integrity: sha512-rDkddX2oFvwSl3L1L46ftJvLhW889lRV9x814MVYX3SPzba70rjRpF9i/WtgcePpk/GO50bly0HEhSRA+5+g4g==, tarball: file:projects/arm-commerce.tgz} name: '@rush-temp/arm-commerce' version: 0.0.0 dependencies: @@ -12202,7 +12202,7 @@ packages: dev: false file:projects/arm-commitmentplans.tgz: - resolution: {integrity: sha512-JJ0/r61xKy+uCmtVCD0p+dATwjU3ygUHe93NgfBnGqM6n5k2+Ai3qKIJqz3Wi44e2XEDEFywK6aN76zOZZToBw==, tarball: file:projects/arm-commitmentplans.tgz} + resolution: {integrity: sha512-8E4bEbSKH3YBk46CzI7NvKJMvaydAv8IPy8jGbu8MoLoDjp2RiGVWu2VyExx6Fw99kt1AGk+V46xF0e4PTwtcg==, tarball: file:projects/arm-commitmentplans.tgz} name: '@rush-temp/arm-commitmentplans' version: 0.0.0 dependencies: @@ -12227,7 +12227,7 @@ packages: dev: false file:projects/arm-communication.tgz: - resolution: {integrity: sha512-28goF7jU56MIHXDocfXRU5JuIZswJWtgWggniRkeihyxhqHlKZ8C/piQs9oz4H66tkJT1hZJyNfBdUZTXIOjKg==, tarball: file:projects/arm-communication.tgz} + resolution: {integrity: sha512-uPS2+p1oI2HYbDoM/nIA24Zp4g4luf44EwFtnc/IcqJbC5WXGUyw5XpP521K/LRjqrhcpvYnJUTXvsihMjAXGg==, tarball: file:projects/arm-communication.tgz} name: '@rush-temp/arm-communication' version: 0.0.0 dependencies: @@ -12255,7 +12255,7 @@ packages: dev: false file:projects/arm-compute-1.tgz: - resolution: {integrity: sha512-j5ZxYBDOMNSO0GulYlTmjT9vYMOd4CgHsYczwi5yMg9IeCAVscfPlXCKwC5rt2B8DpSxbqDGuBlUJc5bkWOQHQ==, tarball: file:projects/arm-compute-1.tgz} + resolution: {integrity: sha512-6kizDVCfAG6+zAQX1P8BHI3RaYu7F6ph/ucmDSY51RR9c1/XqbpnJErgJJoBdP3TID2tPJjvFDixaxw4n/BagA==, tarball: file:projects/arm-compute-1.tgz} name: '@rush-temp/arm-compute-1' version: 0.0.0 dependencies: @@ -12284,7 +12284,7 @@ packages: dev: false file:projects/arm-compute-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-wSxjWtY7Gayq5u+Vrbc5SF8S65rlr/heUQBVi59n/ceKQ9wwSmFFIANjvHGBCVjeEV8h/STQRyo9ohorR1BqGA==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-sugpl9M5blLaRNbg6GQn76g7xom9iu1jKejYj5KeNhn5iHgbpHPXjo4OQcs8IRmwd2tRnkLwksIuAxm2W6QuYw==, tarball: file:projects/arm-compute-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-compute-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12311,7 +12311,7 @@ packages: dev: false file:projects/arm-compute.tgz: - resolution: {integrity: sha512-rfM24fKeGnO3k+9xouP8VC9tZO37dejzMq69JJfgX+QQ03NhhI0+7W1Sfydq6z+nHpvT0rZ5dq55sG24fSouGA==, tarball: file:projects/arm-compute.tgz} + resolution: {integrity: sha512-nnxE+DnW6deUaCiJsb6Vdz1zOTzv6uoW3B0vNx42bn8LVf7O84d/0k60ls7Nbp77vr2C97NnkISLcLPWhUmzwg==, tarball: file:projects/arm-compute.tgz} name: '@rush-temp/arm-compute' version: 0.0.0 dependencies: @@ -12355,7 +12355,7 @@ packages: dev: false file:projects/arm-confidentialledger.tgz: - resolution: {integrity: sha512-pBzv+N2QSgppOXMHAJzMkaE/qaiUmi/ecnoLl+UGY6ejTy3yIhiM2pgeAULdLqwe2J7L8R+LIzhAbNz+tv1O6Q==, tarball: file:projects/arm-confidentialledger.tgz} + resolution: {integrity: sha512-3wcjT0JV7C63qdIAx0daBkxtRYAD86cGgwmM8bUNhScppREhP+LDLpAQKr07Dc+CNmtDTZyIf1+CvOlChK3NYw==, tarball: file:projects/arm-confidentialledger.tgz} name: '@rush-temp/arm-confidentialledger' version: 0.0.0 dependencies: @@ -12382,7 +12382,7 @@ packages: dev: false file:projects/arm-confluent.tgz: - resolution: {integrity: sha512-nJjOjZ00EbI/BClYWgzLvAPYRKzxdXuf+OCzB7A5p8nOTHL+IiOJc0H+4FNsc3CNJxCWBoOSEYIpL0GKnygItQ==, tarball: file:projects/arm-confluent.tgz} + resolution: {integrity: sha512-/E6JDfmmxi2eexK1iCXVigRy2KNWahi9l1jPHBgiZRugKZVCdYebz3m5Lc5ASfDNFn4Kwsdv39Tf2yJy3HJ1VA==, tarball: file:projects/arm-confluent.tgz} name: '@rush-temp/arm-confluent' version: 0.0.0 dependencies: @@ -12410,7 +12410,7 @@ packages: dev: false file:projects/arm-connectedvmware.tgz: - resolution: {integrity: sha512-T5BQynIcWR+pR0OBRmCgiNLPARef7bQptKTgvCsnPfsewfWLV3YMa85iAcoPLMduQ5/JtR5DCET5pyDFPjKoEA==, tarball: file:projects/arm-connectedvmware.tgz} + resolution: {integrity: sha512-w1gIubjRTzBHfnaTbZz/c1dP5955JMMUqizIoyNLeoTWTDWehQxSVqZNYnch91imOTmzB+TxU7GlIsntOJwL+g==, tarball: file:projects/arm-connectedvmware.tgz} name: '@rush-temp/arm-connectedvmware' version: 0.0.0 dependencies: @@ -12437,7 +12437,7 @@ packages: dev: false file:projects/arm-consumption.tgz: - resolution: {integrity: sha512-gIGza2f9pMwhSMoWvuoOMowtkiBRZ4FLs4eo3jWkQOdfUV8yW7Aqs4pcve0CLxCtD7juxoQ+VsCyAbJNwiPIag==, tarball: file:projects/arm-consumption.tgz} + resolution: {integrity: sha512-2FDsNPauBwRkdMElXzq9rWo4XkrVxbLu9qqIOG6riyhoLTT+LgA0TJEV+iG6gu/NgRng840zTpNo8yuPQGGWQA==, tarball: file:projects/arm-consumption.tgz} name: '@rush-temp/arm-consumption' version: 0.0.0 dependencies: @@ -12463,7 +12463,7 @@ packages: dev: false file:projects/arm-containerinstance.tgz: - resolution: {integrity: sha512-Jh00YMt5IjPlB570BSjOupuw8nrDwcPaRinDvCspv1XfVTn8ca64lljJkn6YVvg7Ewka5vm+k2xjgje+wgHJug==, tarball: file:projects/arm-containerinstance.tgz} + resolution: {integrity: sha512-xJAXM2Ld+QXlUS+lRl2h8kvvABj5+B04QH+tBPup9lHEzMW058av9Zg1Q2FTerpNTXl9AtrIY7fiOLzPoS/UaA==, tarball: file:projects/arm-containerinstance.tgz} name: '@rush-temp/arm-containerinstance' version: 0.0.0 dependencies: @@ -12490,7 +12490,7 @@ packages: dev: false file:projects/arm-containerregistry.tgz: - resolution: {integrity: sha512-eGal/cz0lUPpDx7YSpPlprQK9yKIV0jJ52YANdbKgTKQi11dEyXhB+NFfUmBxpk/hGAYSCYdQRtXEij3gUSDWg==, tarball: file:projects/arm-containerregistry.tgz} + resolution: {integrity: sha512-UtNY5pFfILJVY5uKq3grSAj/eX8knsdw/pjkfvOgFOUMLn+Zc2KTgJ4sX1fqUGLFz4o1OJ4NAc9uSbOIdBd5Cw==, tarball: file:projects/arm-containerregistry.tgz} name: '@rush-temp/arm-containerregistry' version: 0.0.0 dependencies: @@ -12518,7 +12518,7 @@ packages: dev: false file:projects/arm-containerservice-1.tgz: - resolution: {integrity: sha512-6T0lGGJ3XCcGfzzlWPbJImUGNvh0mPDht6imcPFhw/LHb4eLsVi53/Kp6JLQKbAS8UTpXuWtQwGAHP3blgWguA==, tarball: file:projects/arm-containerservice-1.tgz} + resolution: {integrity: sha512-CgE1+0qzGsKIGBfvZjAaeQ3jI+BkFnyy2s1J2hS/GDxqqS6ONXukQkR+wtq8chLjG5/Rkp3E7vNw8UO/iYLsAw==, tarball: file:projects/arm-containerservice-1.tgz} name: '@rush-temp/arm-containerservice-1' version: 0.0.0 dependencies: @@ -12546,7 +12546,7 @@ packages: dev: false file:projects/arm-containerservice.tgz: - resolution: {integrity: sha512-EEAj4QAchBgQ5gEyUXlyVFbt6rYVQlyQsmNDEl/xF/4/9fZe25OPTHhbQqBjg3BhyCzPI/vzVpFu6PxaKHBKVQ==, tarball: file:projects/arm-containerservice.tgz} + resolution: {integrity: sha512-mnoUjEOVqAMufPECqy+8yqBMX/PI8zFX8yfgbPgXC6vtxk26pLTAqEo9NfVkzboai86QG1zLE8Bjy98RhV4gOw==, tarball: file:projects/arm-containerservice.tgz} name: '@rush-temp/arm-containerservice' version: 0.0.0 dependencies: @@ -12589,7 +12589,7 @@ packages: dev: false file:projects/arm-containerservicefleet.tgz: - resolution: {integrity: sha512-L7FZF+zECSYP3h0lGOxlcba5MIoAaS4cLDcLw9uI7OgkNOeXvwVp3AIyVM0gY0zQtqMMV8yOHSdMnb0aBGNa5w==, tarball: file:projects/arm-containerservicefleet.tgz} + resolution: {integrity: sha512-/O2LUTrmXAZhj+9FnT4Ai7koBQY/Mjl6hgjFNcIvWhv/DZV/sOUAdGUE+1L6X37a/NMegSmFEzrvwA/7w1Zvsw==, tarball: file:projects/arm-containerservicefleet.tgz} name: '@rush-temp/arm-containerservicefleet' version: 0.0.0 dependencies: @@ -12617,7 +12617,7 @@ packages: dev: false file:projects/arm-cosmosdb.tgz: - resolution: {integrity: sha512-D1OaeYIGlvVSBRKL77fzRSsc7CLEJfB/VT+MeX7zxhr04M6LNfpT8M3Gxs19IFYtRy3V069aQ0MbeSLQ2nyHBw==, tarball: file:projects/arm-cosmosdb.tgz} + resolution: {integrity: sha512-ZLOw/zxspfcaDH8PvlS0yHmTEUeyQZ4JAW3tBxOgiAoLllY0qXvrfYEYH/WY8bq8dL5elf1Krb9WuKe0IH3PxQ==, tarball: file:projects/arm-cosmosdb.tgz} name: '@rush-temp/arm-cosmosdb' version: 0.0.0 dependencies: @@ -12645,7 +12645,7 @@ packages: dev: false file:projects/arm-cosmosdbforpostgresql.tgz: - resolution: {integrity: sha512-oolLtC+bh7x7BChJYnlqD3JM5TOeiyN4KMITqWQnVrzp4kL8W9CSGoT3eCJptWWGLIIdDds5pUx07PbB2VyK2w==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} + resolution: {integrity: sha512-1kFWZx86s/1MB7d50kKIqEXOd20/HYaa76Vr6znMZ1oi7VhNM82bwcFXhqr/Ha8QJp7+tp95dRGyOkZPX4Q6OQ==, tarball: file:projects/arm-cosmosdbforpostgresql.tgz} name: '@rush-temp/arm-cosmosdbforpostgresql' version: 0.0.0 dependencies: @@ -12672,7 +12672,7 @@ packages: dev: false file:projects/arm-costmanagement.tgz: - resolution: {integrity: sha512-RnC0T5i0CFwhUqicfDmIHEAcGBzNptHyVaS3nWy9Cm1l5+Up5PUf63HnwYcDtIn+E/BZZFFRQa4f5mBJ1eWzSw==, tarball: file:projects/arm-costmanagement.tgz} + resolution: {integrity: sha512-tU2jx2ArM2PKoHgCaJni2AJbDbwV6tUw5nsXggsmpilbQrbIrbgkiyj5NqHpsH82QI1Y+SE9R0hPPVtotb6JQQ==, tarball: file:projects/arm-costmanagement.tgz} name: '@rush-temp/arm-costmanagement' version: 0.0.0 dependencies: @@ -12699,7 +12699,7 @@ packages: dev: false file:projects/arm-customerinsights.tgz: - resolution: {integrity: sha512-7oyjRjn4wwCMSoO2yAYUGqE35HvvvmD+b1b72A/XlCjKky+i0yJBhx49yXxOttek4WzzoaOxDA+CMNaRZKTfwg==, tarball: file:projects/arm-customerinsights.tgz} + resolution: {integrity: sha512-DaJqL0jm0XwPs/tGBQilxBHgPGeQSxZOP20x3p5LYEE6M+cX0BFf7KPt+aI9ORzB0VFehMh+c2HNMepUy8ksjA==, tarball: file:projects/arm-customerinsights.tgz} name: '@rush-temp/arm-customerinsights' version: 0.0.0 dependencies: @@ -12725,7 +12725,7 @@ packages: dev: false file:projects/arm-dashboard.tgz: - resolution: {integrity: sha512-CkZcQ41MBIbPmZsddog4V7xZvYQmGMNe5bJ26IBeELZMLvZdC1U+CEteUQCd+bWEIhm+3SHZeoPohmgvbyHqRQ==, tarball: file:projects/arm-dashboard.tgz} + resolution: {integrity: sha512-FUpsLqJ868RBg6ZQlqON83WYnD0bGYjQbMUrRS4Gj5qM6W2oU6+ne/9ixmbnWm5Ol7MjkM/C/yo5HFpKKELZCw==, tarball: file:projects/arm-dashboard.tgz} name: '@rush-temp/arm-dashboard' version: 0.0.0 dependencies: @@ -12753,7 +12753,7 @@ packages: dev: false file:projects/arm-databox.tgz: - resolution: {integrity: sha512-9Ho7a21W7lc5nfCXQMrjEatGfcwGbA4n+tEiRUwhFc5iF6BCdw5yP+qU192soLinMW1WHagom40zXT3/suIJ4w==, tarball: file:projects/arm-databox.tgz} + resolution: {integrity: sha512-95x+lKer6oJ/LYK5mUj//gdCQO3LciDM45igpyBCF0nkTXEddLM2MfM7Puiiozs0FfyykLUwVBxpnoLHE7IdvQ==, tarball: file:projects/arm-databox.tgz} name: '@rush-temp/arm-databox' version: 0.0.0 dependencies: @@ -12780,7 +12780,7 @@ packages: dev: false file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-2KU2P7WPFDddoatPMuhvDwICItynOhnR0YGUzONCXjgcyZ5nwmA/Nb/X9T5NHrjLxP72sOSMHnhwVu47fHoPTQ==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-aUw/CoDH0URZhZMkb1n15XCPdGJ6kMIZTRxR3Aiio1FEy+s02GYAmtiwWDybhHtfy89U1x2deFaqmMmN5ggDiw==, tarball: file:projects/arm-databoxedge-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-databoxedge-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -12807,7 +12807,7 @@ packages: dev: false file:projects/arm-databoxedge.tgz: - resolution: {integrity: sha512-DWu7ADx8EkbeH9DsufkkjANTx0p+g301D4mFVpbJMXC0MarD64knAGX8Q9PTD3Hb8TdNRK5GRkwnRPyR1Eygvg==, tarball: file:projects/arm-databoxedge.tgz} + resolution: {integrity: sha512-qoayTHHIiQQzO5sYgATMJ/TdqpfGaInAWAwUa4RB12pw19AhyrcUj19X0F4npIHhWcA1E8W40sg+xPO0j4K4Ig==, tarball: file:projects/arm-databoxedge.tgz} name: '@rush-temp/arm-databoxedge' version: 0.0.0 dependencies: @@ -12833,7 +12833,7 @@ packages: dev: false file:projects/arm-databricks.tgz: - resolution: {integrity: sha512-WAtAXKJCfNKF/uJy3vZmZ+CE/PXZa8uOReOOz0NbfHdUo9ompAUAH291ZpBMP/oyMavRNBCIqrHFcUbnLVnHdw==, tarball: file:projects/arm-databricks.tgz} + resolution: {integrity: sha512-n/SMNzAiyfN/lFpt5YJzd32fES9ze8jGLUbLkIxNW7w6TdqkPVXTMB7B6EcLuqmxFJPfek4A2LMJu2dBx+UhcA==, tarball: file:projects/arm-databricks.tgz} name: '@rush-temp/arm-databricks' version: 0.0.0 dependencies: @@ -12861,7 +12861,7 @@ packages: dev: false file:projects/arm-datacatalog.tgz: - resolution: {integrity: sha512-G3ZU/CjjEMr60xcEIdmS9mKFc0xdvut+pWl3VouNsC564gB21KvYoyzay77yUzbBJlU99fAmkWyUovFoO5fdSA==, tarball: file:projects/arm-datacatalog.tgz} + resolution: {integrity: sha512-iG9whd+FoDBL6MT9pzGFw7LY7lhcOx8OOZR6WzTzzkxD/PPfJDSNxMICeWrIwseaUKHEQ9urN2FhDCkAnTQ7tQ==, tarball: file:projects/arm-datacatalog.tgz} name: '@rush-temp/arm-datacatalog' version: 0.0.0 dependencies: @@ -12887,7 +12887,7 @@ packages: dev: false file:projects/arm-datadog.tgz: - resolution: {integrity: sha512-zdSyPOGITXN9mRdxHC+LFI4f3ZOh+hP/ZckLNl84YXRVqSQoB1QQKawY2SCvqJ0tncIqBASHXMfRUt3KzC7gdQ==, tarball: file:projects/arm-datadog.tgz} + resolution: {integrity: sha512-m7YpvxhygnEI2hacwst8DGNvAY77ZK1NpYENUa1210NPWMZgEl1HKQOKJ1yL6vLwC0x5i99k7cOhiSVVU/qZJw==, tarball: file:projects/arm-datadog.tgz} name: '@rush-temp/arm-datadog' version: 0.0.0 dependencies: @@ -12915,7 +12915,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-DEESanPBKFpZDHHeIkAkVYya0p+L95cmwlI/3B7V6ZcagEEX34to4tLeGIqW3yQ+Gx0P9z5XxWilDnbI6iP6jg==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-XGhwQZHGfFXGNMfv23OzBKzsPwaK68pnal4ROBygO84ikqARhpS/l9mZzUIL3rZUVCeis97ihREzvsGpk/EXJA==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -12943,7 +12943,7 @@ packages: dev: false file:projects/arm-datalake-analytics.tgz: - resolution: {integrity: sha512-yzVw8Q2+JxjUvyeRTbq/j0vQhkEHW8t6TR3fZ9mECDlaG8Q+N+NKmrbTAomwbRbNPlgFKukLP7r+rHjXunD69w==, tarball: file:projects/arm-datalake-analytics.tgz} + resolution: {integrity: sha512-QL5xwYAg2Qkccprt0iBNs1d9gQmavTnls/LgX+lQlCDTafSagMzKyRkLU/5xFFtNaDK0O/cAo/JePDAxi7lD+g==, tarball: file:projects/arm-datalake-analytics.tgz} name: '@rush-temp/arm-datalake-analytics' version: 0.0.0 dependencies: @@ -12969,7 +12969,7 @@ packages: dev: false file:projects/arm-datamigration.tgz: - resolution: {integrity: sha512-kv/yjdIuPAYgY/6GWaiPjnu31bSTCwHvfHaqsZVaKR/4+4b7AauMO3KuDdr8UkkWRyhIkUFI2RvxjHmi2b5+Gg==, tarball: file:projects/arm-datamigration.tgz} + resolution: {integrity: sha512-2tfaY9yVh5aJuPz8eS1/PbLP9E3nJIbyWHVanL347BOpqPIQkYe2zHSsxoUahOBqJqB90g36FOQWNo/m6Eiu7w==, tarball: file:projects/arm-datamigration.tgz} name: '@rush-temp/arm-datamigration' version: 0.0.0 dependencies: @@ -12995,7 +12995,7 @@ packages: dev: false file:projects/arm-dataprotection.tgz: - resolution: {integrity: sha512-JtJ/t64GsctvAnLtCM4/55fMH379WeaFMASG1sW5DJ3x2C+n02sPVRM8Z6Mu/T32JXZwJf0KSj+7wzXBQhAjIQ==, tarball: file:projects/arm-dataprotection.tgz} + resolution: {integrity: sha512-RqdUOXE/gW+7zXfFneqfQFn9j7PgM9AsXFc0n8xMzrRGrCz+Uqh6ia4cGW3A4wehnQpz2gYXDW9wJHMLQeT7Rw==, tarball: file:projects/arm-dataprotection.tgz} name: '@rush-temp/arm-dataprotection' version: 0.0.0 dependencies: @@ -13023,7 +13023,7 @@ packages: dev: false file:projects/arm-defendereasm.tgz: - resolution: {integrity: sha512-ivDbQzCDJKN8hQwxYGFMkn+vJAjxdvzQ8lYzHqyMxBc/3qifsKwEPAOcZ+TUiD8+c8hsKTmRPaHu4UZKaJHsIA==, tarball: file:projects/arm-defendereasm.tgz} + resolution: {integrity: sha512-cgw3iDKW2y2/oMPVBzv5NqsaTleca6OtAVz8eE2oNT+F9oQqPazDj4faSRDacLp5f6KqK6xFic6QjskNxXjcqA==, tarball: file:projects/arm-defendereasm.tgz} name: '@rush-temp/arm-defendereasm' version: 0.0.0 dependencies: @@ -13050,7 +13050,7 @@ packages: dev: false file:projects/arm-deploymentmanager.tgz: - resolution: {integrity: sha512-tfRJMGzxOftlogx/5EpDXnGQCHTYaHfKmkt4VKXB3LI5phOLpybJQt3GwHzErp5a3xz/TcpYT2otMdZBGoNLlA==, tarball: file:projects/arm-deploymentmanager.tgz} + resolution: {integrity: sha512-L1tbQid0NzP48zct5cpTnU7J/5GrGMKoQFjx/pvenb9fY8mSPQre8CHc73Y5zyerehemv6eRjKy7eU8NDcV1zg==, tarball: file:projects/arm-deploymentmanager.tgz} name: '@rush-temp/arm-deploymentmanager' version: 0.0.0 dependencies: @@ -13076,7 +13076,7 @@ packages: dev: false file:projects/arm-desktopvirtualization.tgz: - resolution: {integrity: sha512-zV09nRqplUpK5w5By61XKVG/v70haO0z+1yA3ZtgMinQyV6qwGyRf8BQAt1VPWV5sgUiL6MtkFPKrJe3oNgctA==, tarball: file:projects/arm-desktopvirtualization.tgz} + resolution: {integrity: sha512-L7sX1Hp5EvvKokbHuNAvLkgBkFbo915Y+RGdasvN1LT81KW0AceqnoWLIQksovU/wM6I7FN0OGIEFisODYzsIg==, tarball: file:projects/arm-desktopvirtualization.tgz} name: '@rush-temp/arm-desktopvirtualization' version: 0.0.0 dependencies: @@ -13102,7 +13102,7 @@ packages: dev: false file:projects/arm-devcenter.tgz: - resolution: {integrity: sha512-J2lsKIst4SNdWTPVT4yPLwK8a/PL+6OBYrjvqM6kqp/MTpGbVppzDEgpjYLyf2F/YGMT0vKsCx2OZmdfz3TTvQ==, tarball: file:projects/arm-devcenter.tgz} + resolution: {integrity: sha512-CSmAgzjlR+IZFb5bp67z2SVFs9NQ9LS0VRLKZzpwCRkplrQBfMMPeu7/z/5vlc2QaHUyj5GEXWcUl3tqa3Yk0A==, tarball: file:projects/arm-devcenter.tgz} name: '@rush-temp/arm-devcenter' version: 0.0.0 dependencies: @@ -13129,7 +13129,7 @@ packages: dev: false file:projects/arm-devhub.tgz: - resolution: {integrity: sha512-0OwGVUxeTCi2Z67hUZA+iIq2OcgIaU8R0S+EGFKN3DZ/tQlkV0iLLcXHPO3BNl5Qjc42eLPPIvlUbCa94hSQ9Q==, tarball: file:projects/arm-devhub.tgz} + resolution: {integrity: sha512-aCEH3Yr5kA48YQh5EE7OIP0hieQ37FXMh7vNdh7xvd45KAI1e77Q99uhvqvNAam+mNYNo8jo+nn3Rl7cpqv4mg==, tarball: file:projects/arm-devhub.tgz} name: '@rush-temp/arm-devhub' version: 0.0.0 dependencies: @@ -13155,7 +13155,7 @@ packages: dev: false file:projects/arm-deviceprovisioningservices.tgz: - resolution: {integrity: sha512-95AnQnzoBbVQSuQVQqWUOiZc43cePOTKXhWpdg5G3Ve65GIdqhBhkV8c5DuHMPMJl4Cr+5PNpiEjmMqn04uTqg==, tarball: file:projects/arm-deviceprovisioningservices.tgz} + resolution: {integrity: sha512-mL5ybtkui/g7nDHobTu3HbF5JqO4Z6MjqZaWUuvR0OnDCTqOsHdS835yDQ5tQeKHLwlZjQF4YexqsrD49yZVkA==, tarball: file:projects/arm-deviceprovisioningservices.tgz} name: '@rush-temp/arm-deviceprovisioningservices' version: 0.0.0 dependencies: @@ -13182,7 +13182,7 @@ packages: dev: false file:projects/arm-deviceupdate.tgz: - resolution: {integrity: sha512-7Y0eayeF8+fcdXu5cybX7y411bbB2aD21zJAhQmui4/1i1x/VS95rRsUd5L0KgZbl9axpafTRqbho/m1W4EphQ==, tarball: file:projects/arm-deviceupdate.tgz} + resolution: {integrity: sha512-qmHGIRkfxEpsumb3kK5HiS61itFrmyxboJ5AYdNG8gmprcTfyyZ8GQxQz+yh9JkdCoEE1tI/K0O5PmGnIBtEZg==, tarball: file:projects/arm-deviceupdate.tgz} name: '@rush-temp/arm-deviceupdate' version: 0.0.0 dependencies: @@ -13210,7 +13210,7 @@ packages: dev: false file:projects/arm-devspaces.tgz: - resolution: {integrity: sha512-t2kMrMDwxJGkX+Cm5qWFejx4SsnEO34Dmgema+0z3FcNXpawASFceufwbyfWuy4Ub3dTqK8N3x5TW5qWK2sKGw==, tarball: file:projects/arm-devspaces.tgz} + resolution: {integrity: sha512-9iJ3t2A5kZDOfeDbN//2WclIOfqc47Ys6GOkIThF9UrcMcT4T9UKsun8jG9qATAciA98dOUgczW0QAiPH1K8bQ==, tarball: file:projects/arm-devspaces.tgz} name: '@rush-temp/arm-devspaces' version: 0.0.0 dependencies: @@ -13236,7 +13236,7 @@ packages: dev: false file:projects/arm-devtestlabs.tgz: - resolution: {integrity: sha512-7Zzxwb9A/reKClHoux8ig3fRjvmHzNFmAvMYmbz6hc/gK9cbdQ08CeAaT+juiwIdscGYQVaNdWj1ELzhxb37xA==, tarball: file:projects/arm-devtestlabs.tgz} + resolution: {integrity: sha512-se54K80CkdLHAtjR5pbWbWxJnpmHkHvG8/n9d9b5/16ROIXe1IpZzFVO6HAtSEPZgDClzhLwYKcZIBCO+HuS5g==, tarball: file:projects/arm-devtestlabs.tgz} name: '@rush-temp/arm-devtestlabs' version: 0.0.0 dependencies: @@ -13262,7 +13262,7 @@ packages: dev: false file:projects/arm-digitaltwins.tgz: - resolution: {integrity: sha512-3nmEXmnL1Uwz8iFOjAlKHXxewcyB4vWwTdjDlgI/pv3getqmbI2iv/kQhv6TQTI6sUeVo4s4+HAho7Dc2+6Eow==, tarball: file:projects/arm-digitaltwins.tgz} + resolution: {integrity: sha512-nAmmiAhrzWJJ8jWgSXh8cWEbGYaHQd6aOnAWjzjK9Tkq2mJ+3JOWDNhuVb0gIWu0dFQl1S7FQ3Vl1gOgI2NEug==, tarball: file:projects/arm-digitaltwins.tgz} name: '@rush-temp/arm-digitaltwins' version: 0.0.0 dependencies: @@ -13289,7 +13289,7 @@ packages: dev: false file:projects/arm-dns-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-d1Amw85hvHEi/fTzEtmnf75J/sbvzr8FTa9dot50CZR1l43/LMX0k0TS0bWsQ7j61uRJNYjGsShJdpu1aSGzzw==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-Ci2u7IAGUdydHCe2wmCAROKWx7T97dNixQuMMRDfRUNcOqnSaVHljSUcZPtBehVzkzDP+bNsvAhkIdBsjTGzGA==, tarball: file:projects/arm-dns-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-dns-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13316,7 +13316,7 @@ packages: dev: false file:projects/arm-dns.tgz: - resolution: {integrity: sha512-BhOUzgZYYDM/0qGf0/B2G8VQRK7fvaRdojljK9iRXReGDUrPGGjNDmDEFh3gjHzmjIQllwvOdmatLSf7FmjHyg==, tarball: file:projects/arm-dns.tgz} + resolution: {integrity: sha512-IB9vkq0I4UsJ8zRn5BmXyLzCuKzl3cPQIGa/cBw2hRdOrv7RZd3NjArVx5AMlCGli2KZGd1R+yFc3CyRKK+Z8g==, tarball: file:projects/arm-dns.tgz} name: '@rush-temp/arm-dns' version: 0.0.0 dependencies: @@ -13342,7 +13342,7 @@ packages: dev: false file:projects/arm-dnsresolver.tgz: - resolution: {integrity: sha512-3xFMt7gl5l4keq9+6rGly8556taKv/ZLgtXzRbcTibxkP/1OiyPEQ/+77Q0P01I/c45VW9NioiyKz9D8W8br6w==, tarball: file:projects/arm-dnsresolver.tgz} + resolution: {integrity: sha512-wB8nKJdqPLraKxFYvDlWZWIZSQHuwm0kvnly/tEntmuwJmTx3Z4vYCJyCSvoJ1FXFqsf7A4IrlZXP7E3ynOKQw==, tarball: file:projects/arm-dnsresolver.tgz} name: '@rush-temp/arm-dnsresolver' version: 0.0.0 dependencies: @@ -13369,7 +13369,7 @@ packages: dev: false file:projects/arm-domainservices.tgz: - resolution: {integrity: sha512-DLla3k4VcNjF3GugA2DkkwdrqrBU4w+VyNQYn2pNBlsYZFaqnVCtv4dv4lyKf485Y01n+HfcH/Ca5Hatmseudg==, tarball: file:projects/arm-domainservices.tgz} + resolution: {integrity: sha512-nOFIdKFHWkJiat01An1GtkiOo5zpzhr2q4ZIm8wjPi0rBAVhoMA3pk7iJLacN0DfsSkw2/WWjBpLIReXRoTp9w==, tarball: file:projects/arm-domainservices.tgz} name: '@rush-temp/arm-domainservices' version: 0.0.0 dependencies: @@ -13395,7 +13395,7 @@ packages: dev: false file:projects/arm-dynatrace.tgz: - resolution: {integrity: sha512-AB3PZ5K/JTl3MC2yI6ya929462uDf1rcl9TStJ5OAn+lMOGwiMZN2jBbBYZvuzG3827jYUfjS3BglFpE++rd5A==, tarball: file:projects/arm-dynatrace.tgz} + resolution: {integrity: sha512-Aj7evbmiifblx0tOWQ7wU1HUeoYcuWE2M+aemxezXhfnFGmyUCMOS2UBbSUJpOToJXH7zuh+LPM0VcLaCBKyfw==, tarball: file:projects/arm-dynatrace.tgz} name: '@rush-temp/arm-dynatrace' version: 0.0.0 dependencies: @@ -13422,7 +13422,7 @@ packages: dev: false file:projects/arm-education.tgz: - resolution: {integrity: sha512-bIEvXOy/NdGOKIIjzI8zDrrtBg+Qop15BbWcuEtvThiFjqMmHnVvl+vkwe2atDsGemd5fVxGN1mHh+E/lKgz/Q==, tarball: file:projects/arm-education.tgz} + resolution: {integrity: sha512-mlkeCAjcXwuHm0TrydOWkbReaCgch+H9eUV6MByE4Fex73ndrHtZ+eH2b4WdtOwxgV9SaIiVilqNbLZ7MqT/eQ==, tarball: file:projects/arm-education.tgz} name: '@rush-temp/arm-education' version: 0.0.0 dependencies: @@ -13448,7 +13448,7 @@ packages: dev: false file:projects/arm-elastic.tgz: - resolution: {integrity: sha512-OrQ9rRDwqORmRGVNe6r7BiUadq9NM8FbNVLLLTdeIAdjZsA7iwnIHefGOWfpNwh73E9tSXqqsEfqFEHddi0Ipw==, tarball: file:projects/arm-elastic.tgz} + resolution: {integrity: sha512-OMj/8g2mHmFPvJ4nvNgV1BK9Rd1Zg1jY9z3rL0iyVGdzMyCXPcM5oWUUALKDGv8o1bdcZzB03PQAQxPHeAdxsA==, tarball: file:projects/arm-elastic.tgz} name: '@rush-temp/arm-elastic' version: 0.0.0 dependencies: @@ -13475,7 +13475,7 @@ packages: dev: false file:projects/arm-elasticsan.tgz: - resolution: {integrity: sha512-vmNI5cI19QbV3WiP6J23i7VSh8K+hglsYTvs7l6p9s/sgdSCMobVPvdfCihIfQ2DgGnPYthVVajHhmT1Jm/DYA==, tarball: file:projects/arm-elasticsan.tgz} + resolution: {integrity: sha512-EAUd2c4BeOeBXQ89uLiqr+PY5EVB2DFZ5PBaRUdUkk+uRa0xQBikVl/SNur7Xv+l29yMfxqnNYc5OSbiAoeolA==, tarball: file:projects/arm-elasticsan.tgz} name: '@rush-temp/arm-elasticsan' version: 0.0.0 dependencies: @@ -13503,7 +13503,7 @@ packages: dev: false file:projects/arm-eventgrid.tgz: - resolution: {integrity: sha512-fWLIetf7dckzxUe5esh6TNETTQ0XfcKoZIqRfRTPq6n/lRjLshLxpSlMNZJri6eBjMZZoVFCCbAMhca9UA6MyA==, tarball: file:projects/arm-eventgrid.tgz} + resolution: {integrity: sha512-pjBiFum5B8TaJzHGpvGCKvAoOKORPC1LVWvdsNMXjXHMynJOGKP+Ve+W1yI9pOBb6mMLArsYK4kpx4Fzwp5Hgg==, tarball: file:projects/arm-eventgrid.tgz} name: '@rush-temp/arm-eventgrid' version: 0.0.0 dependencies: @@ -13531,7 +13531,7 @@ packages: dev: false file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-JAaJGD1tnTE0ly7rneoYftcgHWBC64ka+7joqNSggH+TH3XRml7r5pVvhaYfbCAyivAAuIK6YPwrziNFSkW0ew==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-CCLqoFVy77SjW2XxQWJkTpISynFVFrdyMhOJAglpXoPkZ/5cDrNTcxGIcsi7TaHVmnEzPpOH3jwr4sGgwuZ8kQ==, tarball: file:projects/arm-eventhub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-eventhub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -13558,7 +13558,7 @@ packages: dev: false file:projects/arm-eventhub.tgz: - resolution: {integrity: sha512-0mmGr7D+JOpiJmS4UXxLghHuH96mMVP+3ad9lHIoIWhmySSHg8KHa218RFech9nrMoH6tE/0ETFsBit0XMbTLg==, tarball: file:projects/arm-eventhub.tgz} + resolution: {integrity: sha512-yGdta9jk/Vv76SSabezPlh12nUpX1Jt3FBfknm7qjO5/58bdTbUOJ7NM+EGKaMxtBTbChFClqJmMueUb/3mcVQ==, tarball: file:projects/arm-eventhub.tgz} name: '@rush-temp/arm-eventhub' version: 0.0.0 dependencies: @@ -13586,7 +13586,7 @@ packages: dev: false file:projects/arm-extendedlocation.tgz: - resolution: {integrity: sha512-K25YK0qmvnTcoNnQ80TAqKTbaGV1kHFLsjH0TF4Ed4UT0kyntsECs/3qRcadj8ODgTxmEl1sQV33khegU1IZoA==, tarball: file:projects/arm-extendedlocation.tgz} + resolution: {integrity: sha512-6yXtaEcYAXCnPk0yNAQGCfB4NK2NZea1Gbu0UuPWLdHEAcHPzKS3tGvz4NtTj9QsQw02RgTK8QU465Jlf/XVWg==, tarball: file:projects/arm-extendedlocation.tgz} name: '@rush-temp/arm-extendedlocation' version: 0.0.0 dependencies: @@ -13613,7 +13613,7 @@ packages: dev: false file:projects/arm-features.tgz: - resolution: {integrity: sha512-9f1c5YSs+FnI8FP18n/TY9yv2Qt9s9yXnLVIOJx4NAbmwCgbSA8qORK+hw9tmKrt8yLKxFg3tRKZXPyqAse4Jw==, tarball: file:projects/arm-features.tgz} + resolution: {integrity: sha512-fVMZ3HspsXWI4G4RiWvzZ7wzL5eKJKCI3v8px+tJN5FWi4Eoy32qVrjqVtNn77IzE0JyWwe6DugT3sRu9JrkCw==, tarball: file:projects/arm-features.tgz} name: '@rush-temp/arm-features' version: 0.0.0 dependencies: @@ -13638,7 +13638,7 @@ packages: dev: false file:projects/arm-fluidrelay.tgz: - resolution: {integrity: sha512-cxV8lGIc6qBho8Z/P9SDEfvPT7QkEHkcqTrAQBnm7XEyUR90jXUumTais+DGwYd9TuUOaySAE3Cq9TOtsD8n3Q==, tarball: file:projects/arm-fluidrelay.tgz} + resolution: {integrity: sha512-mu/7lmKqtBZiHUmLgoRX+DUNMGli60POYBkX/oInW/lhte2lDMpUwT2CfNwaIsa5lIzcmukdPs8pyPCZkFYs9A==, tarball: file:projects/arm-fluidrelay.tgz} name: '@rush-temp/arm-fluidrelay' version: 0.0.0 dependencies: @@ -13664,7 +13664,7 @@ packages: dev: false file:projects/arm-frontdoor.tgz: - resolution: {integrity: sha512-WiPoeP0wmVQm+wF3/1No2z4+1dhaNHMpIczIEj2lgvSqDZOUg7Vsky2Ypwf6ayRCyWG1xMqxkHn8VSsxSGjhrA==, tarball: file:projects/arm-frontdoor.tgz} + resolution: {integrity: sha512-izX2d+tCBAsTArlKXWZPE7dC+JZBwf6RzZexfi2O8YH4SEGaWKE7Z5+ufBxxlM03MhE36tvrdZozWb0hjGDICA==, tarball: file:projects/arm-frontdoor.tgz} name: '@rush-temp/arm-frontdoor' version: 0.0.0 dependencies: @@ -13691,7 +13691,7 @@ packages: dev: false file:projects/arm-graphservices.tgz: - resolution: {integrity: sha512-TwgY8kp0XnjxyGXghLjmT7SQTJGtSWEZlccxWvN5Kizah5FW0QaoVFqrT2KGq1efS40TUxbUUJ/wD9fvxq0crw==, tarball: file:projects/arm-graphservices.tgz} + resolution: {integrity: sha512-lVSPNDsTFpmn+0NfABQU2ulAqE1fDBeW4at7Yo+/1dbqblsyiYQxRKsfhMcS3bmcVMo7/F5TLrzcbY3PnSs33A==, tarball: file:projects/arm-graphservices.tgz} name: '@rush-temp/arm-graphservices' version: 0.0.0 dependencies: @@ -13718,7 +13718,7 @@ packages: dev: false file:projects/arm-hanaonazure.tgz: - resolution: {integrity: sha512-ws5mhvxHYC6HQl5DHRne0d5IWSVunp5PZ10NqYgl0hA+Kx3X4gVPg5/6olxJapbpymXfUAbms09JK56bSdk6Tw==, tarball: file:projects/arm-hanaonazure.tgz} + resolution: {integrity: sha512-HgPgdOYD0GC1VbSniyOKV+k8NQP+Nf4Y8gUcQgmvkpd4GmKGOYWIOJLAGRVkXJcP1JUhHn7XxsR0XGAiWNKu4Q==, tarball: file:projects/arm-hanaonazure.tgz} name: '@rush-temp/arm-hanaonazure' version: 0.0.0 dependencies: @@ -13744,7 +13744,7 @@ packages: dev: false file:projects/arm-hardwaresecuritymodules.tgz: - resolution: {integrity: sha512-wTxwkOtBLi68wc50lodK3gaUoHAEEDM/UumdXLQJGzV0GzJi2nzWqJvHlDBMuOJ14paiEwYfUeqEwAncAqm4nw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} + resolution: {integrity: sha512-nA6QiHAbJBIynUYqo4VaqLyU9i5lp3F+yUocs6dmVSuhohHAx7bfe0FAnCDl/UezrO71wAykb5moe276qXWXsw==, tarball: file:projects/arm-hardwaresecuritymodules.tgz} name: '@rush-temp/arm-hardwaresecuritymodules' version: 0.0.0 dependencies: @@ -13772,7 +13772,7 @@ packages: dev: false file:projects/arm-hdinsight.tgz: - resolution: {integrity: sha512-AC1nlOLofqoFh7fIxslrXKueMzH9NBzsDBagOJirMUvR2561t8SOiZQJ99hOechNEzV9rYi5jL7hMJHU2rc9UA==, tarball: file:projects/arm-hdinsight.tgz} + resolution: {integrity: sha512-NPqD1UGqFAN0iiYxgzsD+5UYekqhoKTquGDR/5AlUB2wJYIebyhSzCelZvqbn+xhrBELw+MsVhNYwVJmK+LXyA==, tarball: file:projects/arm-hdinsight.tgz} name: '@rush-temp/arm-hdinsight' version: 0.0.0 dependencies: @@ -13799,7 +13799,7 @@ packages: dev: false file:projects/arm-hdinsightcontainers.tgz: - resolution: {integrity: sha512-rss20Yb178oeAFD0Se5k6req3ISEo18wahvChMulBOBrxgLuWIe5M0YGHwGAOFPDgF75jyiS6MoKcQylsviBqA==, tarball: file:projects/arm-hdinsightcontainers.tgz} + resolution: {integrity: sha512-MKVqAlcqZxOros4bknf/8NHB4o2X21VtvvBZ0byeh1/Or/OB9rlp0FqUC9A8KEPLWXyV/ddYOhJ/rAyYnbT54w==, tarball: file:projects/arm-hdinsightcontainers.tgz} name: '@rush-temp/arm-hdinsightcontainers' version: 0.0.0 dependencies: @@ -13826,7 +13826,7 @@ packages: dev: false file:projects/arm-healthbot.tgz: - resolution: {integrity: sha512-VMLVDqZrBva4XSc96fyZ+yEc6gPnmw3MGVaXEvCQZAtaT+kyOQQfE+QGIIbCFCAUX5UfWk8nHE6wS8QzdT1Dpw==, tarball: file:projects/arm-healthbot.tgz} + resolution: {integrity: sha512-5FFjCGmPTl6jhVc22w++BvTUb2LwQaR+/exnnJCnQBf7GGRpJOeTcpmBm2rlmS2wbyr1T6Qzih2q9w4eyqxCAw==, tarball: file:projects/arm-healthbot.tgz} name: '@rush-temp/arm-healthbot' version: 0.0.0 dependencies: @@ -13852,7 +13852,7 @@ packages: dev: false file:projects/arm-healthcareapis.tgz: - resolution: {integrity: sha512-yiiLuQ9PmrsGf1M8W+ZROkF2y+egwrM0Cv0Yct9fRk/lE28ZJjVxofNp64nDZBEVULtRy8uexYek5rTIcHERKA==, tarball: file:projects/arm-healthcareapis.tgz} + resolution: {integrity: sha512-3DAcFCisgyQlaYSKkCZyYAOLHl51ed8wiK+2FsTcObuCx7Fq7/K86fl2Btoy6/Lhx5TntW74MHB2dSnkknSFxQ==, tarball: file:projects/arm-healthcareapis.tgz} name: '@rush-temp/arm-healthcareapis' version: 0.0.0 dependencies: @@ -13880,7 +13880,7 @@ packages: dev: false file:projects/arm-hybridcompute.tgz: - resolution: {integrity: sha512-dp7VY5hqr4kKMHm8E8voKdabfPeIvwHqpt3/v2t/hdvnrnNFkAh6e4Ktipn+NGfw4icTjtFjy2ePN5l1SZCoZQ==, tarball: file:projects/arm-hybridcompute.tgz} + resolution: {integrity: sha512-t6yBBcu+y9ZiyK7+HgWwHELlBzDvihFx3gVys1hfo+5iF3p/DxqYWBVsEwJIEMYl7T27WwzL7ddt5JlKoPeBXA==, tarball: file:projects/arm-hybridcompute.tgz} name: '@rush-temp/arm-hybridcompute' version: 0.0.0 dependencies: @@ -13908,7 +13908,7 @@ packages: dev: false file:projects/arm-hybridconnectivity.tgz: - resolution: {integrity: sha512-ei3dXbw0SPBO7472e5Lc2k2U4zGgoVaLnKd3Cj6jTia88sTZW/GkmmZHfRChOthiaU/skOzZ/Nmlvj6DFoah6w==, tarball: file:projects/arm-hybridconnectivity.tgz} + resolution: {integrity: sha512-UoXd//VD88eyTFXh7pK2KjKfWCN9iJgKuAJpTiJlOPjtNsyGKBKrrBCNFjPpsZ+cbBGJ72C9+03J49tpcXDb6w==, tarball: file:projects/arm-hybridconnectivity.tgz} name: '@rush-temp/arm-hybridconnectivity' version: 0.0.0 dependencies: @@ -13934,7 +13934,7 @@ packages: dev: false file:projects/arm-hybridcontainerservice.tgz: - resolution: {integrity: sha512-jaQ9mOdgkp1Q0iioQI3CH4Vd96kQQICbN61iuDmabjybD9YDPkkcGsgs9s3k+DLLy2z00nHtugf2NngsUqmCmA==, tarball: file:projects/arm-hybridcontainerservice.tgz} + resolution: {integrity: sha512-Sy5p8Gfs1IANvvG1j35dRubNwpi2rK4VlhhlLhXRN6f3Laxxy6f0KR9wz658HF/AOYA/SEkt703waCeBfyYlyw==, tarball: file:projects/arm-hybridcontainerservice.tgz} name: '@rush-temp/arm-hybridcontainerservice' version: 0.0.0 dependencies: @@ -13962,7 +13962,7 @@ packages: dev: false file:projects/arm-hybridkubernetes.tgz: - resolution: {integrity: sha512-eOGMj0hE798uQgwsFhk07Tlv+X5v3J5CHViZcVkP3T5Q3PDwAGWKImRY5KoNCVRn5OhlNaqP1jfASv75hAsTPg==, tarball: file:projects/arm-hybridkubernetes.tgz} + resolution: {integrity: sha512-QhFL8mPuYVp9XnRzSKBav++afPgp0MkdhTaB14//IOFCS6yaY6XOmVKQhshoHk7lPeBw+XcxiMGZvbn9hrlKYw==, tarball: file:projects/arm-hybridkubernetes.tgz} name: '@rush-temp/arm-hybridkubernetes' version: 0.0.0 dependencies: @@ -13988,7 +13988,7 @@ packages: dev: false file:projects/arm-hybridnetwork.tgz: - resolution: {integrity: sha512-dgmRfWg1hnBn5L4dbm0/A55CP747c1U6ut/GG2FeUHQ+fiHB94z0CrCknyX6cer3nUI44R1WntdRtR03JG9vPw==, tarball: file:projects/arm-hybridnetwork.tgz} + resolution: {integrity: sha512-xqfMYQWliSpAFgm11vF2rQSeJhfxgUiTcXSarj2PKbb+IQ+3nH21YDs/ftJuyOOLihLFbmxlQvT8eKuQStRoeQ==, tarball: file:projects/arm-hybridnetwork.tgz} name: '@rush-temp/arm-hybridnetwork' version: 0.0.0 dependencies: @@ -14016,7 +14016,7 @@ packages: dev: false file:projects/arm-imagebuilder.tgz: - resolution: {integrity: sha512-EDPsPyOrfkNm5eGS2F0IhirUBQidpeOBlKVDj/uByJzVznz56yxIAuRTRxWbNYUZfC2fLSgRmdgTN+q6ahd6cA==, tarball: file:projects/arm-imagebuilder.tgz} + resolution: {integrity: sha512-jtoCXQudxlOMVFYekAyBSLImoRlpAvAFvXFEgBb/GVXscEzSeDsTd5VCUH1Zvrs8B9CTqy7U2nA0NaveCXa06A==, tarball: file:projects/arm-imagebuilder.tgz} name: '@rush-temp/arm-imagebuilder' version: 0.0.0 dependencies: @@ -14044,7 +14044,7 @@ packages: dev: false file:projects/arm-iotcentral.tgz: - resolution: {integrity: sha512-EzFNFoH25ciLltRS5mTnby6xKHJxrPqArc8bizMXffyEkUioNgMQPehlooRg2YTXa1DwQGeoOBDW1Zr2R16JRw==, tarball: file:projects/arm-iotcentral.tgz} + resolution: {integrity: sha512-+d/6wcGG3OeAnrexKwryshVou4efDM5mhgKeICKfzTozbGhN1osPZREFQKN8cBa5X9WATQ7kVyTPyUlIfwv7SQ==, tarball: file:projects/arm-iotcentral.tgz} name: '@rush-temp/arm-iotcentral' version: 0.0.0 dependencies: @@ -14070,7 +14070,7 @@ packages: dev: false file:projects/arm-iotfirmwaredefense.tgz: - resolution: {integrity: sha512-TVCRaGPO1/PFRav4n7v79oTPfBsAUROLR/IAhd/zuhPM9eVfXFjB2yzPzpbtKEe+GxREpOgCEy4qxpbBTYpE/g==, tarball: file:projects/arm-iotfirmwaredefense.tgz} + resolution: {integrity: sha512-WjogQNEjuVkfiAN9gnaphl5L0qQxUQQeHY9TIv1ntiGFcHFuK4X5irE3erwuZa8aBPCE3lBEnFWIGTfk/ix7Jw==, tarball: file:projects/arm-iotfirmwaredefense.tgz} name: '@rush-temp/arm-iotfirmwaredefense' version: 0.0.0 dependencies: @@ -14096,7 +14096,7 @@ packages: dev: false file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-ap+Z6OrBcTh8HXomCKUgo84XPUgrCbp4GSxGaXRqIeU/pT+yjcB8hL+xz3Qy4VODIqnEiGiq5i37BCWxqo9I3g==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-ndygVizo0cHx1f9cVvkvxX0NSLNi1b03leE9VYaa4ZL6YWG0FcpldvUyWXjXtqnXfT8Gt1pYvxde74aSj/XgOA==, tarball: file:projects/arm-iothub-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-iothub-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14123,7 +14123,7 @@ packages: dev: false file:projects/arm-iothub.tgz: - resolution: {integrity: sha512-IK93gDYqcxLAd5/fprkJBfMYWTwFE+jKSZTY8+CkfWrx8v8sFEUMndDu9C8wkylqpZ9ahvqe560fsI7/WDoTGw==, tarball: file:projects/arm-iothub.tgz} + resolution: {integrity: sha512-Fv0lEr32w1wHSr/++mppG8Usw+fDCsdWCd3L3n3nXd05meGuVEjlNbrUGj7orLoFQE5v839JlAUec5uPIGxL7Q==, tarball: file:projects/arm-iothub.tgz} name: '@rush-temp/arm-iothub' version: 0.0.0 dependencies: @@ -14150,7 +14150,7 @@ packages: dev: false file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-lT/DvF/9sFj5AUJnqnxHx13A+C+KGWWdg1oTPTE5YcVSyvCiMANU/0kVsi5llBXbgvjR5iE0ZLNertZGj0bjVg==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-srfYMkQo+2vzcw1FuYDN4ygHKff8u0p5DmS8/WQme9KmSrnoXSebMFYNfWlLhESHwI3TZoq7jngKYriebz/C/Q==, tarball: file:projects/arm-keyvault-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-keyvault-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14177,7 +14177,7 @@ packages: dev: false file:projects/arm-keyvault.tgz: - resolution: {integrity: sha512-5J26dX52OdiglGFO2C5HEYBHJ/cAglmw0+6C0/h5GI0K9i991TwZyhu2drE/InXY0Bye+DafznjMfbworbcHRQ==, tarball: file:projects/arm-keyvault.tgz} + resolution: {integrity: sha512-CxgUmA5b8mNXEHzxim6ap/evv1p6YZIAdfmet9qsbu74tcwSb+ty+Fkit7xwvyqlEZ3XAggzmkuH8g8qUPZjQw==, tarball: file:projects/arm-keyvault.tgz} name: '@rush-temp/arm-keyvault' version: 0.0.0 dependencies: @@ -14205,7 +14205,7 @@ packages: dev: false file:projects/arm-kubernetesconfiguration.tgz: - resolution: {integrity: sha512-UCuOUS8jLbg9fqrFldv65BoWTCv7zUtY7GcAsPmWjktn5avFyR1CVa25VrzmEwI7Kz3MAe4NQ4kd+5yeSd38tg==, tarball: file:projects/arm-kubernetesconfiguration.tgz} + resolution: {integrity: sha512-FzzUjDedwl6PgApeoOoQPbh9TRWMq5pfolQ3g1C5Xa/VGPz/Qdy0HvFswt00uHSeyuoAi4+aQZvr2VI9M0Wb1w==, tarball: file:projects/arm-kubernetesconfiguration.tgz} name: '@rush-temp/arm-kubernetesconfiguration' version: 0.0.0 dependencies: @@ -14232,7 +14232,7 @@ packages: dev: false file:projects/arm-kusto.tgz: - resolution: {integrity: sha512-ZGcWF+8qoEOWnZt2LVMCrlOAlPkHlWG+icwN+7HgD0GWrhp2aQbk2FQxyXEcM5KZ/xFyC+Usl9YYUbCJRuiibQ==, tarball: file:projects/arm-kusto.tgz} + resolution: {integrity: sha512-+S9nWXmKnozmTEeevAyzGORODSi4S4kUjzZe+m2101+ualinDLfkkBjRHy635Y0pHmJ1i7ywNv0BcfhMHiH7og==, tarball: file:projects/arm-kusto.tgz} name: '@rush-temp/arm-kusto' version: 0.0.0 dependencies: @@ -14259,7 +14259,7 @@ packages: dev: false file:projects/arm-labservices.tgz: - resolution: {integrity: sha512-5B7F/ARVRCMje4lEBtAYKO2cchl/bCdYxsEe1UzVx2LC9dH5oKFSehKkMBUIb5VVI5lUOZ0WwQ/FeG8O1DOQSg==, tarball: file:projects/arm-labservices.tgz} + resolution: {integrity: sha512-i64F2+sfyinjeI6+7ZM+hJfYeF075HeRGm43IPoMmYILG/GY06SMB/4oelcoTDd+Ct8eboNVQB3iRCWd3c1NDA==, tarball: file:projects/arm-labservices.tgz} name: '@rush-temp/arm-labservices' version: 0.0.0 dependencies: @@ -14286,7 +14286,7 @@ packages: dev: false file:projects/arm-largeinstance.tgz: - resolution: {integrity: sha512-sdpJjnXZnSAusOEmdMUO8AKVbVh1efEc0pv+nmGJrlqgv5Ky6h+elrHR2FwrAtdZsodoubh0owGBeqCccqA4Kg==, tarball: file:projects/arm-largeinstance.tgz} + resolution: {integrity: sha512-lO9Q5RIVa9eIxfL1ni3r8h27ysSkSdC+KH9mcgBsRJkhSZywAvepIqnn+aPtnRxyx4L25Ca9FRJTdTHOttlgnA==, tarball: file:projects/arm-largeinstance.tgz} name: '@rush-temp/arm-largeinstance' version: 0.0.0 dependencies: @@ -14314,7 +14314,7 @@ packages: dev: false file:projects/arm-links.tgz: - resolution: {integrity: sha512-0MrD1N27J/zHy0WuJWhDnH5yigl/7ideSPOq8jvphElPaf63WPsKt/y+zZA6yX85LwTs5xW9dlMTZ1GCHrgHFg==, tarball: file:projects/arm-links.tgz} + resolution: {integrity: sha512-McQK4lLqTDACdrIbX2PQoRk/AAJDDcFYBzGhsUhPSkhAPXQHJNG3iP3L3kstgzBYfYRlNGPHXMhV9wbn0XMOwg==, tarball: file:projects/arm-links.tgz} name: '@rush-temp/arm-links' version: 0.0.0 dependencies: @@ -14339,7 +14339,7 @@ packages: dev: false file:projects/arm-loadtesting.tgz: - resolution: {integrity: sha512-3mNR1SA2SXx+lyCzHchx0WGoDaGhN0HN/hLwql+FWr0YbBWO38ys0TVsRhJWYyE9Sd+2NkgnSVVLUwINmcDzrg==, tarball: file:projects/arm-loadtesting.tgz} + resolution: {integrity: sha512-yYDAiubQWvh5dv2HkaSZkXBnPUGgmu2bppWeY+OctiD0kdWuziv3+dlQJTcsYHJYbIXak8mRgp8D+fOpOIUpUw==, tarball: file:projects/arm-loadtesting.tgz} name: '@rush-temp/arm-loadtesting' version: 0.0.0 dependencies: @@ -14366,7 +14366,7 @@ packages: dev: false file:projects/arm-locks-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-MM1YQWv+Djqo44GlUOaVms1ry8pZN/XdPPXF1UTnGy5T/Z+rPHHX/9cpSBjKVzdOnhfBnbIDh8BhLamBGvDB6w==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-aP3BKP6x6VloB97Z64xb5PGsb41pzAHamL8fD6lj2EyKKxoBW1Fo4GgUw6gvRELhSl0KbDg3n7TmAGlu2furgw==, tarball: file:projects/arm-locks-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-locks-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14392,7 +14392,7 @@ packages: dev: false file:projects/arm-locks.tgz: - resolution: {integrity: sha512-NvQ3Z1c6s2jwz+1CCF/Soh6x1iaBCUR3sK6PbLQXyUBOMEAZ0TvjiMrk3SsTq5Ib04nNDnBAGTNECI+/txCtQw==, tarball: file:projects/arm-locks.tgz} + resolution: {integrity: sha512-3gK+FF8jTwpVOwgkkgdPqTNmFL+txflMo4lPDggW4M0u1vnOqa5+wCoi/RihWA8lhjhPTMwBmqIk1KgCau2P6w==, tarball: file:projects/arm-locks.tgz} name: '@rush-temp/arm-locks' version: 0.0.0 dependencies: @@ -14417,7 +14417,7 @@ packages: dev: false file:projects/arm-logic.tgz: - resolution: {integrity: sha512-a/dJxaYa/V4zraMumW+JUERMqiWJRJmCADrtAi8vN534bHzFD2bpOPrnqRs7+IhTtqSpS3y6AHSFry0krduxow==, tarball: file:projects/arm-logic.tgz} + resolution: {integrity: sha512-MOQTVkl5V1eisNyW/TEDd8g2pHY9PdnPxyQ15+cZhdOlVx8JrptUVrgr1UUeEYSUqMK03eT9bouUa71zzipIbQ==, tarball: file:projects/arm-logic.tgz} name: '@rush-temp/arm-logic' version: 0.0.0 dependencies: @@ -14444,7 +14444,7 @@ packages: dev: false file:projects/arm-machinelearning.tgz: - resolution: {integrity: sha512-R6LzfhCCd2XgsGzXan+Ah1PjWvAVBKrK16boVBCJq0baPh+zamTG8CxBrMrvrY1xsFQfoHh98qnb/7FfpS1O+w==, tarball: file:projects/arm-machinelearning.tgz} + resolution: {integrity: sha512-75hb8WOyINOoDc38e7gYKDr/Sz8SrFz10wxhWkQ7DHoZ9FQLCH3j41TwEBCnuXy27mzedozklcZxVbE189VgZQ==, tarball: file:projects/arm-machinelearning.tgz} name: '@rush-temp/arm-machinelearning' version: 0.0.0 dependencies: @@ -14470,7 +14470,7 @@ packages: dev: false file:projects/arm-machinelearningcompute.tgz: - resolution: {integrity: sha512-clysHmuJIoRN6GLbav2Ef0LbI/9Kgg+AJbuzndElf6okICaBW709mzH9q95y/kU8xLA1Pv+6VK5+kKGUQs8JQA==, tarball: file:projects/arm-machinelearningcompute.tgz} + resolution: {integrity: sha512-I9FNymQpc2olKVXL9gws1OZ/MAPvu1IYEnYyEHeTI0PJTUTOaLAimaitGRPvUGS6VSiERUPMP8ZVK8WqwMJw3Q==, tarball: file:projects/arm-machinelearningcompute.tgz} name: '@rush-temp/arm-machinelearningcompute' version: 0.0.0 dependencies: @@ -14496,7 +14496,7 @@ packages: dev: false file:projects/arm-machinelearningexperimentation.tgz: - resolution: {integrity: sha512-zzTrdQzKuDO7WB7aZSDSj82VDrf4+ampa4FaZIkKjnvXPqZ/8RG5oZUSfhKt6IGu38i/lkFmEw9i5zVT08YeEA==, tarball: file:projects/arm-machinelearningexperimentation.tgz} + resolution: {integrity: sha512-GHFW6M81BuG7EZUBBrSUNvnhiwmu0MonuTL2iBFC4wHOo1FCFrD+zeJzMhb3PGoWqVmjRrwC9XRr4ZXRtLAytw==, tarball: file:projects/arm-machinelearningexperimentation.tgz} name: '@rush-temp/arm-machinelearningexperimentation' version: 0.0.0 dependencies: @@ -14522,7 +14522,7 @@ packages: dev: false file:projects/arm-maintenance.tgz: - resolution: {integrity: sha512-yuidOEP7AWn1zvqUEAM7WI8rTRCKeQAPmzfZ3NZMRK5SK/kbfHd31ckhcG6FUPQX33lj8QA2d4TI5+1PqMzqGg==, tarball: file:projects/arm-maintenance.tgz} + resolution: {integrity: sha512-9dEsnfcOz/nNTOcpaoekSTPdI2wIes9gC7r3dI2xU6LbEx980+RAVnK5hPWgnQ75w9PMbbHEWESKauF1gOEZoQ==, tarball: file:projects/arm-maintenance.tgz} name: '@rush-temp/arm-maintenance' version: 0.0.0 dependencies: @@ -14545,7 +14545,7 @@ packages: dev: false file:projects/arm-managedapplications.tgz: - resolution: {integrity: sha512-x45e4cSI4uAh1K8TZKBjIEBa8ONrS2pndGLkNJALxeCF0WnPfnjnin9ievz0SEn33vCQYHDWhA0mTa9T1j71SA==, tarball: file:projects/arm-managedapplications.tgz} + resolution: {integrity: sha512-xcC2gXy4yMak1dsAQZ90+L15G7r5c3yFMkyh9OKosi8wG87lhAc55k1jk+nWS2B6WoqIwKWbWdF3xAuQLTjurw==, tarball: file:projects/arm-managedapplications.tgz} name: '@rush-temp/arm-managedapplications' version: 0.0.0 dependencies: @@ -14572,7 +14572,7 @@ packages: dev: false file:projects/arm-managednetworkfabric.tgz: - resolution: {integrity: sha512-UpgMeaPtnHKpfIJveCbCBFBvALedwS5J1ZmylwfWWnVk8Fk4wJkBphLdCbPP9VtJrcG7+7mopGb9gNMuinGdog==, tarball: file:projects/arm-managednetworkfabric.tgz} + resolution: {integrity: sha512-p7RcdA+wL3TCKxLeVjpurjFLU7ETSE6NZJbSst/2SDe85kIRjxNa0v9oZL/c6Bwxjk3ABOcxiM87qPXVHhW2Kg==, tarball: file:projects/arm-managednetworkfabric.tgz} name: '@rush-temp/arm-managednetworkfabric' version: 0.0.0 dependencies: @@ -14599,7 +14599,7 @@ packages: dev: false file:projects/arm-managementgroups.tgz: - resolution: {integrity: sha512-naErVuF6NP7dUvNRnLnQyQLAxhBrG4vClYWBBeBcue01sG1H+yPsKTMHRWF0FvrNKkhJ2QXJ7cUE3bBfIDwdkw==, tarball: file:projects/arm-managementgroups.tgz} + resolution: {integrity: sha512-B7O4vAu0ZU9NLnrC+9XEoEnaCqZsofKWeeJBJf4iqLBNpXPyEr9S4vegeinuponSHgkPX7K3VMWoJGl9u52a4Q==, tarball: file:projects/arm-managementgroups.tgz} name: '@rush-temp/arm-managementgroups' version: 0.0.0 dependencies: @@ -14625,7 +14625,7 @@ packages: dev: false file:projects/arm-managementpartner.tgz: - resolution: {integrity: sha512-V/5vfpNX3DzXMWL1Doz+af2hWGrnRM+5vO7FOTK86appRUuPA3CDBza8uYQFsGvTJFdbeDhJNYo7rbYbV2IK9w==, tarball: file:projects/arm-managementpartner.tgz} + resolution: {integrity: sha512-RnwjZkNbDxsLU7STx1Wjie0EcbmMzKLQsef/yx5VrilY/pa7kKLerawjMVYn1iM7rOYV/itMxBOzEnXM7Umu+w==, tarball: file:projects/arm-managementpartner.tgz} name: '@rush-temp/arm-managementpartner' version: 0.0.0 dependencies: @@ -14651,7 +14651,7 @@ packages: dev: false file:projects/arm-maps.tgz: - resolution: {integrity: sha512-iyevSHmaCF3/3r0HnXyLeD+UDAnu0eFFC7l+B+6KS7w6002PbA8qI3wZKIKtkNJ3EjD00Jl/KjiZszXPqLJ4fg==, tarball: file:projects/arm-maps.tgz} + resolution: {integrity: sha512-LBFxDOR4MDgM8ER2PIIvO4v48K+xhHLFwr4agj29JVtWGnP+qU3NiUtBIYcCjzF2P9yh3K0l2WVuxOIRcmgX/w==, tarball: file:projects/arm-maps.tgz} name: '@rush-temp/arm-maps' version: 0.0.0 dependencies: @@ -14677,7 +14677,7 @@ packages: dev: false file:projects/arm-mariadb.tgz: - resolution: {integrity: sha512-MWtCbkD8+NPqz7gEONslSXEIAZistS7cxUuk5IcobtAre+TCY0r5ePIIto9A1J4Ry2E1kI4PgbJoKyzzlo2T8A==, tarball: file:projects/arm-mariadb.tgz} + resolution: {integrity: sha512-vE2H9yszk8Fsmt6okk93OVMRjd2TaPLGhVlbQn7MaQiXI2qxQmIN76gmmuTWph50SiWT+FmUNqJniY0aD9M67A==, tarball: file:projects/arm-mariadb.tgz} name: '@rush-temp/arm-mariadb' version: 0.0.0 dependencies: @@ -14703,7 +14703,7 @@ packages: dev: false file:projects/arm-marketplaceordering.tgz: - resolution: {integrity: sha512-BFieCiiReWqBU4Bn90MT/nct9TfLeElIIWVJRvM350z7is07/Zhj7EiKkGL7w/iT+lZhfE9LwiKXd9ooU8WqrQ==, tarball: file:projects/arm-marketplaceordering.tgz} + resolution: {integrity: sha512-mvbBWVanivDkhML7A+B7Ajhc9viR+MWRsejF0xf3vLJCtHC7uZ8oHUDEc9f6PRf71jnrCdNMe8t7onC4rZpmww==, tarball: file:projects/arm-marketplaceordering.tgz} name: '@rush-temp/arm-marketplaceordering' version: 0.0.0 dependencies: @@ -14729,7 +14729,7 @@ packages: dev: false file:projects/arm-mediaservices.tgz: - resolution: {integrity: sha512-CDOlz7BXiXRyWt8iUyf4eVpx3NEErWajEeIQABkPjeIWyoIvv8D0pAMQNzl+niGGkgGLTsBfVKby3Sl+GHP96w==, tarball: file:projects/arm-mediaservices.tgz} + resolution: {integrity: sha512-7QLoLg9/16IN1LvSC4Rg4l8ZVz5teMzswqgyy5OXwrTv645DTrO1Uscm3ghbiE6yG6po17T+ElxlwmF3Q5HyQQ==, tarball: file:projects/arm-mediaservices.tgz} name: '@rush-temp/arm-mediaservices' version: 0.0.0 dependencies: @@ -14756,7 +14756,7 @@ packages: dev: false file:projects/arm-migrate.tgz: - resolution: {integrity: sha512-v8R/vweVHlHPNNLDAoQvKfeRVQ7oXpt4YEeV8G7PylAKGAJVG4tKpsiG6Kkg5xAWUwF+5CQjIrsFgyU8SV+23g==, tarball: file:projects/arm-migrate.tgz} + resolution: {integrity: sha512-LsBo7tCSvyNR+fMaTJfJ3+tEm28s2yDvosgL/AcDjZCuxDaEnH8NI1k7NVTmBnXJx+5TuZ3mK3/VjNlSyFZW7A==, tarball: file:projects/arm-migrate.tgz} name: '@rush-temp/arm-migrate' version: 0.0.0 dependencies: @@ -14782,7 +14782,7 @@ packages: dev: false file:projects/arm-mixedreality.tgz: - resolution: {integrity: sha512-sYBluPy2FMEuhw35LFzDGCUBt5tRNZ+s32SdZQ4X4lZxTgyYunBA8u8XOaZNM4fKGdkRFwLg6EjLIvDp4cTwfQ==, tarball: file:projects/arm-mixedreality.tgz} + resolution: {integrity: sha512-Q+psd8EPbLB0M9BQ0/FhxytuM9rslkjHw0NXLagRgQ0wIIsdOAKtupBgnkaXN/dqu7hRxTMkvkaUqQCFXnakzw==, tarball: file:projects/arm-mixedreality.tgz} name: '@rush-temp/arm-mixedreality' version: 0.0.0 dependencies: @@ -14807,7 +14807,7 @@ packages: dev: false file:projects/arm-mobilenetwork.tgz: - resolution: {integrity: sha512-szV/QySx5b2H7nf86GrReqVlXdKlnnwJ/I6RYZvbJSC+0m/4VKwjh91uUPls/8lJeKNikrJ9JwSO3dewJREKpA==, tarball: file:projects/arm-mobilenetwork.tgz} + resolution: {integrity: sha512-vFnMCn9qVBX91fybM9i+Grl1zb9IvgR/SbdqrpsS0K3edmMJVahXhR44CSBI/bD2zrzFlZnCnibVWDIq3Um2fQ==, tarball: file:projects/arm-mobilenetwork.tgz} name: '@rush-temp/arm-mobilenetwork' version: 0.0.0 dependencies: @@ -14835,7 +14835,7 @@ packages: dev: false file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-cofYNg0UFFy+EfxpFwqzS3po2NIGuMeY5658PhcuwFK4JrF3B6KqtIx5PFFaMiZlnv6nTB9W0yXqKrnnxaQLUA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-HWAbTdMI2a3v/HGSyijai42JPgzaSxRgspUTGnIIxw5f+8w+50s1IyVFQHNJeQKkxg01eu2ue0MHnziLnv37DA==, tarball: file:projects/arm-monitor-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-monitor-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -14861,7 +14861,7 @@ packages: dev: false file:projects/arm-monitor.tgz: - resolution: {integrity: sha512-Efshfh+xTjfC56URQqDUCrE4Uz4CXRgP+O22PnXhrrmtufY52ttt0ChaeKHzhFIcliTi2BIKbWNPc5dBAppl9g==, tarball: file:projects/arm-monitor.tgz} + resolution: {integrity: sha512-LGe1iNUoZQYZrNM4/RNoR1/+EF8IbcjoApmtx/watdJQTkPGiiGJoZCf4s6VitBSLdthc+xSJ9+72cKXFvPLEw==, tarball: file:projects/arm-monitor.tgz} name: '@rush-temp/arm-monitor' version: 0.0.0 dependencies: @@ -14888,7 +14888,7 @@ packages: dev: false file:projects/arm-msi.tgz: - resolution: {integrity: sha512-wdc183yCbS5B1hWay56jl87v8C15ofpipmg/LkjC/96X05HiBgCE6mo0JXtUi01lyqMV55sJshDIan7SCF1U1w==, tarball: file:projects/arm-msi.tgz} + resolution: {integrity: sha512-Lwn16GKLfnJfDlPBpQQ3S7AVMHDUZABIS+e1mWDYgukN4ZPVPn0pXNuc9WoT970JtF8eaVdKJwjzzRLfB+UUXA==, tarball: file:projects/arm-msi.tgz} name: '@rush-temp/arm-msi' version: 0.0.0 dependencies: @@ -14914,7 +14914,7 @@ packages: dev: false file:projects/arm-mysql-flexible.tgz: - resolution: {integrity: sha512-2OWuTKr2dm2jloyaQUujNd02bDOpBxP/mFFlYz3b9Om6U+6LHk96HbnNawaFE0r/i/ni+JhdedEqx1bgJuUkdQ==, tarball: file:projects/arm-mysql-flexible.tgz} + resolution: {integrity: sha512-8ct3yqJVZgtDf4RG5p0cEoWq3Diu67dixpHz/vJT6XppTF9LFC9Eg6phTc2Mdv/R5KqE6fas1XrbhT0YiVsHeQ==, tarball: file:projects/arm-mysql-flexible.tgz} name: '@rush-temp/arm-mysql-flexible' version: 0.0.0 dependencies: @@ -14941,7 +14941,7 @@ packages: dev: false file:projects/arm-mysql.tgz: - resolution: {integrity: sha512-ezWS1P7whjPMUjyfb6m9BSZbKg7kCA874ldLoYbNytscFviQn2p8StF4pBLwxqD6m2GGKQxeaHo38Pn1r0nWmg==, tarball: file:projects/arm-mysql.tgz} + resolution: {integrity: sha512-h+BTVXYteK0CeDUVTBqwDmwB1ZpRjOftvYOtLgwwt1K0GU8n0RNNANLYQLCpV3I5QchUFHZDMWpgMzFschmzhw==, tarball: file:projects/arm-mysql.tgz} name: '@rush-temp/arm-mysql' version: 0.0.0 dependencies: @@ -14967,7 +14967,7 @@ packages: dev: false file:projects/arm-netapp.tgz: - resolution: {integrity: sha512-iOr22rUz3RnnZpiCDvp3RSo4bmPK1WzN4Xu5OF8wdmzW5Yg59oQVQlTOHhwNzvs/cA11omf0ttR4TmNaj/F68Q==, tarball: file:projects/arm-netapp.tgz} + resolution: {integrity: sha512-NRbSU4tJHEd86VfwKHMbcal8t80wxgIPUPDqTeSleNgMA45Ri9gMA2nly60ouqM7yEO4OdIF9GTPflKSfSMPIg==, tarball: file:projects/arm-netapp.tgz} name: '@rush-temp/arm-netapp' version: 0.0.0 dependencies: @@ -14995,7 +14995,7 @@ packages: dev: false file:projects/arm-network-1.tgz: - resolution: {integrity: sha512-kcCcRRDpCucKA17wiiYbOvna84m4alTq68FhRTv6QtZa5OGACaE/se+vJokITCz1d5toOujUCyZ6jjkdbrWSPA==, tarball: file:projects/arm-network-1.tgz} + resolution: {integrity: sha512-+/uTgvdvzxGR+YCty75Sy6WOIEQArVbrpD6ZzEfrxrRpqW36HQjs72d77+73qPVQ08fpigR5eCASUK5H0DsCGA==, tarball: file:projects/arm-network-1.tgz} name: '@rush-temp/arm-network-1' version: 0.0.0 dependencies: @@ -15023,7 +15023,7 @@ packages: dev: false file:projects/arm-network-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-tSqD3NQBVDjJ+3SxQNTPVkexM1HlO5maMeh7wYvJD42PMPni4uH7ojYnTtDXoUu7KlkQ66laBwSvr/XNDiYHng==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-LCineChGQdQRI2T/DTEtrG+i/A+XZrp7h/j8/2CxbveH94qQpxWrqVnCLlPgEEG9jXAlu2Q/unYxGu5o2OK7VQ==, tarball: file:projects/arm-network-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-network-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15050,7 +15050,7 @@ packages: dev: false file:projects/arm-network.tgz: - resolution: {integrity: sha512-jI23ki0LYxtwy59OFvnMY3sYBbrtpuJZP84Rdyv3R7JzlyB3LVfaoT7PsPkQcdjCs6OfiNBbpI48qMK/DgG95Q==, tarball: file:projects/arm-network.tgz} + resolution: {integrity: sha512-JoKUmprfuOrjFxiY68Y8NQlfVMoMGjoxRmQokRHL4mxgPkO1vcm/1o0r5+9JHnN9y+rYta/43v/eluNHt0c2WQ==, tarball: file:projects/arm-network.tgz} name: '@rush-temp/arm-network' version: 0.0.0 dependencies: @@ -15093,7 +15093,7 @@ packages: dev: false file:projects/arm-networkanalytics.tgz: - resolution: {integrity: sha512-C379kFhClyqTlThUmNlHIfBUkJ/D7Bpz8FpPPH/VxT9PFHeBOBRugg8DETWzEFhPjgFTB6GbV2YiXE5dGkApkQ==, tarball: file:projects/arm-networkanalytics.tgz} + resolution: {integrity: sha512-eVa07skT/98o2bwqgqQbEN1y/UwzoFOOIfUg/YWFWz8w7iYzktIN8GyeblJMnmB2J2/Lo8hQdgD8mfK3XVu9AA==, tarball: file:projects/arm-networkanalytics.tgz} name: '@rush-temp/arm-networkanalytics' version: 0.0.0 dependencies: @@ -15121,7 +15121,7 @@ packages: dev: false file:projects/arm-networkcloud.tgz: - resolution: {integrity: sha512-/jywTEuTPqjudCfBCxEYW/HQdRkNeifVdr4jPMhulVTRwsMRLBRijaAuf2gWNlDb61k5Wwyx3lvLpneaQJy/WQ==, tarball: file:projects/arm-networkcloud.tgz} + resolution: {integrity: sha512-NCBJCvly9qFhObxV7wLo7M/LaYkwfSx1Aw4mXzOYDNsukmrH3pHUnwZi80tUh4+oiAVd4NSa9MEiTqDlZd9llQ==, tarball: file:projects/arm-networkcloud.tgz} name: '@rush-temp/arm-networkcloud' version: 0.0.0 dependencies: @@ -15148,7 +15148,7 @@ packages: dev: false file:projects/arm-networkfunction.tgz: - resolution: {integrity: sha512-W0xCa7YjUaJ8KWL48v+dSChszFcpar9VYJkckqzrqqtr+rVpXA+Qlghmmq4UwuFPSKpzdWCQztTz3tMxuTv38A==, tarball: file:projects/arm-networkfunction.tgz} + resolution: {integrity: sha512-Z34SPZJ2yJ6iyU2XhNtss2so3u9r700aK+jrSIBHDlHUi7SCVr+srrWXHViolEwnARFFTCjkFPcGICjr9S7ccw==, tarball: file:projects/arm-networkfunction.tgz} name: '@rush-temp/arm-networkfunction' version: 0.0.0 dependencies: @@ -15174,7 +15174,7 @@ packages: dev: false file:projects/arm-newrelicobservability.tgz: - resolution: {integrity: sha512-fSwUreQRzyD3E2QvkZ7RHVaq++ZpZHYwV4igjsiBXi/xKjbtGOgxjABDnUimkTz5kHjBAGpNmNy1wQG3znpwkw==, tarball: file:projects/arm-newrelicobservability.tgz} + resolution: {integrity: sha512-OX7qpyv3z9EQxyDSzQt4K0iwOacNu/o0r58CHC8k5kHRHquAVDia5sE6j0tN5Q+odhvdxZKUooXw4LRQC8FG5g==, tarball: file:projects/arm-newrelicobservability.tgz} name: '@rush-temp/arm-newrelicobservability' version: 0.0.0 dependencies: @@ -15201,7 +15201,7 @@ packages: dev: false file:projects/arm-nginx.tgz: - resolution: {integrity: sha512-UWfk58+Oa2IygrftoJrMt9kBO7RG4+g5qZrjrOz9AU8m2sC8BJFh7NybgRl9wgLy8ESHQR6HuUNpy3X5ef7wwg==, tarball: file:projects/arm-nginx.tgz} + resolution: {integrity: sha512-LoqehVB1afT29IOfLh7Qk5tO0L+Shm6R2NDTuhARtR741dNCcFgJGvcwfG15h9SoMvNE0r9dToFU1gMloGTLsw==, tarball: file:projects/arm-nginx.tgz} name: '@rush-temp/arm-nginx' version: 0.0.0 dependencies: @@ -15229,7 +15229,7 @@ packages: dev: false file:projects/arm-notificationhubs.tgz: - resolution: {integrity: sha512-I1FS9xc0y545E4Q8dJFj1uFhkbykV2RJVI61eqy8nL3bh2R0Z8cxMbtd/rYIRdiy/l62QCC8iX7KomAWsO6NSQ==, tarball: file:projects/arm-notificationhubs.tgz} + resolution: {integrity: sha512-jKI293g20PoBmUCOGlCyMaqSELaMO10wwcclQyqOwdJJrophygB6lLXXFW8APhhlo8DhtAOv1/jIf9OWzodipQ==, tarball: file:projects/arm-notificationhubs.tgz} name: '@rush-temp/arm-notificationhubs' version: 0.0.0 dependencies: @@ -15255,7 +15255,7 @@ packages: dev: false file:projects/arm-oep.tgz: - resolution: {integrity: sha512-uEx7/GpRn6UiRy0iVP38og9AaR6FB9yQES8mDcS21TuazUwMYteEONiHCz5snmQiLTSG8eqD6Q1naHUo7Sq/OA==, tarball: file:projects/arm-oep.tgz} + resolution: {integrity: sha512-gxo797QyCyQe7orCyMnvnzy7u436O0VJn71cbCBolurYom8f8ljS0PWt9hfT8NQ+dYvnWncGkHRALMAwaGdm+w==, tarball: file:projects/arm-oep.tgz} name: '@rush-temp/arm-oep' version: 0.0.0 dependencies: @@ -15281,7 +15281,7 @@ packages: dev: false file:projects/arm-operationalinsights.tgz: - resolution: {integrity: sha512-LnXw8KN1Xetot9SxduGDGub5SJlIHcZVAfvHYknMEK7laeFsthbDtaJhMLBnDVmuhWSGv0Pp35c91zEdPf+iYQ==, tarball: file:projects/arm-operationalinsights.tgz} + resolution: {integrity: sha512-Wyb7Eb0ySdtcocGGKaKgFkednNki++RMfltXBtWGvyC097tud2IQz/QxM26dqlIzLkHhgpRR+BbZBzAi0wHvuw==, tarball: file:projects/arm-operationalinsights.tgz} name: '@rush-temp/arm-operationalinsights' version: 0.0.0 dependencies: @@ -15308,7 +15308,7 @@ packages: dev: false file:projects/arm-operations.tgz: - resolution: {integrity: sha512-hXOQDmMAllVkylM7KYMMgtQIZUJ12DH/6RowMWU961RYR1Q/E0ilHMu7Y2tdT/TIzBpS+8ksmF7giXlFsiStpA==, tarball: file:projects/arm-operations.tgz} + resolution: {integrity: sha512-dpgWL0kDJp4/hfPNsEYozAAg6YMwwi6cXfHn7wsmv7R+qktlTa2PEQyuirfoDQIFD1chTEgquQ7WtpwI+KN7nw==, tarball: file:projects/arm-operations.tgz} name: '@rush-temp/arm-operations' version: 0.0.0 dependencies: @@ -15334,7 +15334,7 @@ packages: dev: false file:projects/arm-orbital.tgz: - resolution: {integrity: sha512-tXA9+IdDIWnwYyeoe6bUpNT3Q5rcPnA7BsBtGaIsdW6oN+nqpbg9098U6BT5Q8ak36o0TBiT+dx/Tu6dEWhL8w==, tarball: file:projects/arm-orbital.tgz} + resolution: {integrity: sha512-i4wi1IyjC0rtnSs3znILZx+jLnUHejlGb9wB0SGRr8hWCRMhlUqLnYmA19ex923NQwU/Vc53Z6mSNTSe/WeEVQ==, tarball: file:projects/arm-orbital.tgz} name: '@rush-temp/arm-orbital' version: 0.0.0 dependencies: @@ -15361,7 +15361,7 @@ packages: dev: false file:projects/arm-paloaltonetworksngfw.tgz: - resolution: {integrity: sha512-SaodGf9bzBLZLfAkVcSdAodHHLKlf3LHYIN2WpwkAdXKzm4OPV/+MD7F+IMZmQRDH8jY8pfipka6l5UBUFbLbA==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} + resolution: {integrity: sha512-+s2/hTPQ+ei20+UDdn8CBJQzWlXSJvPHr3Bg4OuBmN1MVrpQXVDOHYCWWiNTNX2slbijSSYxFj92QWohThNHXQ==, tarball: file:projects/arm-paloaltonetworksngfw.tgz} name: '@rush-temp/arm-paloaltonetworksngfw' version: 0.0.0 dependencies: @@ -15389,7 +15389,7 @@ packages: dev: false file:projects/arm-peering.tgz: - resolution: {integrity: sha512-bMJcA6Z2q0AZlFEFmf3swnCUS9Uh+SzdjCFhkrNbLtb4uhvCUrzzuf5bvfXxR/sDz9Hltv7lHIev3DigcFc8aA==, tarball: file:projects/arm-peering.tgz} + resolution: {integrity: sha512-nwxqfuEt8kAizeFNun74U6uy9qPQRHbNIkGqAIEmcjcw141TAaSdPe5vYH1pyoxaO4WajA1b6cH5FqC5aMV4dQ==, tarball: file:projects/arm-peering.tgz} name: '@rush-temp/arm-peering' version: 0.0.0 dependencies: @@ -15414,7 +15414,7 @@ packages: dev: false file:projects/arm-playwrighttesting.tgz: - resolution: {integrity: sha512-CJf33p9Vv7ylIvsbdEzMuXFikIrP2QojqX601qJoHwFanjrU05ADROulvioErYQgMjafcnUV2TaxQRv7e89mbA==, tarball: file:projects/arm-playwrighttesting.tgz} + resolution: {integrity: sha512-uvMCb4UDoIroxhOOohR+imdakfekXiJkBk0ltX3gJ7i+as7tkqfauzRGRzpSTJCaEVDXSW50P2nBUFZp63xKtQ==, tarball: file:projects/arm-playwrighttesting.tgz} name: '@rush-temp/arm-playwrighttesting' version: 0.0.0 dependencies: @@ -15442,7 +15442,7 @@ packages: dev: false file:projects/arm-policy-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-ScDB/DBpaVYtx/VyVsUvIlGLL38Ob0vFMj6kOdTvwtBz3GBW8YK76hHbwzq5p9UY+3CWNFlGdWBPM3ogPqzU/Q==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-Wa8k5UqQgrp4U/+GrOitGrrx3hiG+b8O3t3wc2d1ijEMSyKSyuFYg56HQlGWsbZBIJpz0lQxL5l1nU9nEnAUlQ==, tarball: file:projects/arm-policy-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-policy-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -15468,7 +15468,7 @@ packages: dev: false file:projects/arm-policy.tgz: - resolution: {integrity: sha512-AEZgoj/i7SNLMWguRNvmLssudvwgZ0S6IiPxj/EKZrFJjIYgQdWuQA2RlzjIIB2jz217+VolAwO9XRXSZfylyA==, tarball: file:projects/arm-policy.tgz} + resolution: {integrity: sha512-aB2FSfveainXfLvZI6RowqO90yRj2xCFke52+mVFnXAwv03jGxQ6ewsf+MKp3ALHsSrIDfMcSOX/sWwfbSABaA==, tarball: file:projects/arm-policy.tgz} name: '@rush-temp/arm-policy' version: 0.0.0 dependencies: @@ -15494,7 +15494,7 @@ packages: dev: false file:projects/arm-policyinsights.tgz: - resolution: {integrity: sha512-qvjuosuqlOAfGzKH5kr3XKzeDrE1zmd/u2c0gML81dz3Cah1tSdeZaXED4uziqro4WLTdrn5PSN6m6XvVUDfiA==, tarball: file:projects/arm-policyinsights.tgz} + resolution: {integrity: sha512-KRYQKocGsCeJ+CDRWzkV4vweX0Qxgil7Y7lrTNhsWdBXLYmMIEn4IBmDb6uTOao+klGCGhqZp9R+Sa7EecLJ+Q==, tarball: file:projects/arm-policyinsights.tgz} name: '@rush-temp/arm-policyinsights' version: 0.0.0 dependencies: @@ -15521,7 +15521,7 @@ packages: dev: false file:projects/arm-portal.tgz: - resolution: {integrity: sha512-2/pAo489o9F6JvBw1qjuFgPRxbNqM/LqqvH2N3eCuHF+o6jPWCaFrnUaduvRvITU+90e7wnKy0ma1xpNYHzKug==, tarball: file:projects/arm-portal.tgz} + resolution: {integrity: sha512-OT6lsn37reuBJ5wweEPXg+Sx4K0Q7Vz0qhnzVETQutPDn/h7TzRtc5XW/znrdI1cmelSl+nJaY4FLAxGc4eBSw==, tarball: file:projects/arm-portal.tgz} name: '@rush-temp/arm-portal' version: 0.0.0 dependencies: @@ -15547,7 +15547,7 @@ packages: dev: false file:projects/arm-postgresql-flexible.tgz: - resolution: {integrity: sha512-l0vG6NpEp/wDV8Fotsu59mf16K2gelt+zcA4oj2F0rlCR/LPDYIs29GS0P6hbBz8cvJhbeYGxLENs6r1RVKIXw==, tarball: file:projects/arm-postgresql-flexible.tgz} + resolution: {integrity: sha512-l0Hc7dJBOdXsPU6AZ4XQwmwsq9bjfTIm4CLaCTTbS9wrvs3lJn/HshqsF+shfCdRhQPCX9zkLOIhKutTsWr3QQ==, tarball: file:projects/arm-postgresql-flexible.tgz} name: '@rush-temp/arm-postgresql-flexible' version: 0.0.0 dependencies: @@ -15575,7 +15575,7 @@ packages: dev: false file:projects/arm-postgresql.tgz: - resolution: {integrity: sha512-LBmz0Y4Rka9qVxtNekE7hUZHzSJ1Wak5pvO7qAps4xrRGVJ3D35Q5FUSDQOxtb44FxX5i+z7a2LyfREpI+MhnA==, tarball: file:projects/arm-postgresql.tgz} + resolution: {integrity: sha512-M5ds2idICzu8Gw/+v6o/xYvp+2UaYke3IJtoyy11KRvqmT/DF4v4VZTAw5INVRx5nFbtQN/lp72ZvLWGOI/K5g==, tarball: file:projects/arm-postgresql.tgz} name: '@rush-temp/arm-postgresql' version: 0.0.0 dependencies: @@ -15601,7 +15601,7 @@ packages: dev: false file:projects/arm-powerbidedicated.tgz: - resolution: {integrity: sha512-ajCMyddRyk4S7o5Dg51r82VCn7kiC7w6CUWJLjceafh+4eU3vkSERS8Gatw9JWS6vyP3quxJzh0J7SiJnH8XAA==, tarball: file:projects/arm-powerbidedicated.tgz} + resolution: {integrity: sha512-5Qa8t92V81IOeEsn/1yi4cDf9lxui561+EnV2MezUq247fD8P3UFhb4ocRMIWsQ2AWawtCPvOsBOeAG6FVXWxw==, tarball: file:projects/arm-powerbidedicated.tgz} name: '@rush-temp/arm-powerbidedicated' version: 0.0.0 dependencies: @@ -15628,7 +15628,7 @@ packages: dev: false file:projects/arm-powerbiembedded.tgz: - resolution: {integrity: sha512-dbkP9c/pUaT6jXZOv2usIoT8Vcd6HRfVFu/GzZbGZiMENqRBdMQ/bXMNtPRSExqpP1y6AsNNVUTPSBSNJO4p9A==, tarball: file:projects/arm-powerbiembedded.tgz} + resolution: {integrity: sha512-yZSYyun5j0/HNDTHSfmHp6ox5vHB1zRvVfqfKkLUUBay2wVhMbo26tK0dkHUB5easM8bxI9NfrAjp/deGVPg1A==, tarball: file:projects/arm-powerbiembedded.tgz} name: '@rush-temp/arm-powerbiembedded' version: 0.0.0 dependencies: @@ -15654,7 +15654,7 @@ packages: dev: false file:projects/arm-privatedns.tgz: - resolution: {integrity: sha512-Go/oNw0Y+VzYySaXVplOaAjQ808KKCytP2QRoJoad34bj7SIF1PzpzX0G0nGAQTMimCUD8KjeY5QbKrVXHfYiw==, tarball: file:projects/arm-privatedns.tgz} + resolution: {integrity: sha512-iaQLjspd71wTIt4eSsvbIAP45CTozAm5paQyI7fWVcJzWrIGC6mFOTz+OBeeuupKzUcoAR0X8VMCUMWvlde7uw==, tarball: file:projects/arm-privatedns.tgz} name: '@rush-temp/arm-privatedns' version: 0.0.0 dependencies: @@ -15681,7 +15681,7 @@ packages: dev: false file:projects/arm-purview.tgz: - resolution: {integrity: sha512-vGftQJy9mWyJQ/wL92XNBfHK9njHJ1u7FY1UNMBpVIVOF2plh2ueErK3XZZ63AJQKMzJnJ8aKEkUaUjQSLZPGg==, tarball: file:projects/arm-purview.tgz} + resolution: {integrity: sha512-x+zC/tSdWxGQIAXh4IQtQygsK+VO7Z+ndKNFvHighw+pDeyCOqabJ/EDBfYRiUbKKsHG9cZZ9dHrBpD/8eAldg==, tarball: file:projects/arm-purview.tgz} name: '@rush-temp/arm-purview' version: 0.0.0 dependencies: @@ -15707,7 +15707,7 @@ packages: dev: false file:projects/arm-quantum.tgz: - resolution: {integrity: sha512-M8kaJltyou+nUeP0MF+p0i3uZX7MWK4VPt/ef5Rck79ikz5R5g1TPJ5ZBQod2Wp2h5NPsFNwaiWFkePrUGImHQ==, tarball: file:projects/arm-quantum.tgz} + resolution: {integrity: sha512-qzUmUJh/zFka1tRc79IZ4unPxia2XdsZ/QOTW5HwARZDewNEwqGPjTgjDILmvJ+bjRFIcGeYLlF6dSA9ZXqW8g==, tarball: file:projects/arm-quantum.tgz} name: '@rush-temp/arm-quantum' version: 0.0.0 dependencies: @@ -15720,6 +15720,7 @@ packages: chai: 4.3.10 cross-env: 7.0.3 dotenv: 16.4.5 + esm: 3.2.25 mkdirp: 2.1.6 mocha: 10.3.0 rimraf: 5.0.5 @@ -15734,7 +15735,7 @@ packages: dev: false file:projects/arm-qumulo.tgz: - resolution: {integrity: sha512-GNfb2C0thI6BztiDRxWxekFhaNMrxfr49TUTM6I8FqAcQX3TZ7+Xn6not89GXiMWVathvrFf8TMkoJ7ZGrYKKg==, tarball: file:projects/arm-qumulo.tgz} + resolution: {integrity: sha512-g3rgrE9ZtbElbL8Te8fKtmIQAhZWqVTaXEV6FW9vTlCGspjh1zTV7IYIE+Poc12Agg4IOeLKWM/UOVvmyGPNbg==, tarball: file:projects/arm-qumulo.tgz} name: '@rush-temp/arm-qumulo' version: 0.0.0 dependencies: @@ -15761,7 +15762,7 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-NCB8Nen24P4lV4Wy+a95Sw4HrMVkqcklyfs3HMOb0IxFrpThJiOJhS1rXkvD5Ec1okfBfNPcwzWQLvt3HOEjWA==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-SliWaIN+Rcv9IO/Jg5OpZ8rxNzffNfZJOa375V45hPzipbZhzW0s+9MaxYzA3zFcbuiL7UMLpoOVYxWMQejEzQ==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: @@ -15789,7 +15790,7 @@ packages: dev: false file:projects/arm-recoveryservices-siterecovery.tgz: - resolution: {integrity: sha512-b/d81K7IFPOaKtope73jrqBUNX3I3gT8DCJD2gFLWxwmkkjD0CJLFOmMUhAxlIO0RSyvOakXpwYaKwsc1BF7nA==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} + resolution: {integrity: sha512-oHs4BOulQEkaG3QFPJe0IyomjAZEinjir0bYx2s68YRO+rGj0A+Sv/Qnm8LoB/6BTjUl42nLBCS7eJUpYe4WmQ==, tarball: file:projects/arm-recoveryservices-siterecovery.tgz} name: '@rush-temp/arm-recoveryservices-siterecovery' version: 0.0.0 dependencies: @@ -15817,7 +15818,7 @@ packages: dev: false file:projects/arm-recoveryservices.tgz: - resolution: {integrity: sha512-OzGxbqydzboTjE7i/WUZZuPcWWP5hrWN1Y5sz51julbp5mrrCEsbAfLJ77/AcS2C8tjFQjkpoHNXbUkJ3QoJ7A==, tarball: file:projects/arm-recoveryservices.tgz} + resolution: {integrity: sha512-iqNtY8YcvXuQYIeUxhbhCvkji454xHj9UjfVM9r6N3akRvT+oVW7sjpNmm6Gw589QjHwdQgR5EGJnRrTsUrMMg==, tarball: file:projects/arm-recoveryservices.tgz} name: '@rush-temp/arm-recoveryservices' version: 0.0.0 dependencies: @@ -15844,7 +15845,7 @@ packages: dev: false file:projects/arm-recoveryservicesbackup.tgz: - resolution: {integrity: sha512-vJd7uw+vO2EWOgb4Q2VS1w730vcEK4IKXWEdHKeULLiKQkOMC2R5yv+ScT4W5qLrpPWxofVGdtvlTChaVFuxNQ==, tarball: file:projects/arm-recoveryservicesbackup.tgz} + resolution: {integrity: sha512-CgDiJWEfBie5uPa9+Dm/wsTvLuvtJjhMB41s1uiteo4ApKDyqJhEEaSONEdpQG6LIgfrJiywobzqGUjNIfMEAg==, tarball: file:projects/arm-recoveryservicesbackup.tgz} name: '@rush-temp/arm-recoveryservicesbackup' version: 0.0.0 dependencies: @@ -15872,7 +15873,7 @@ packages: dev: false file:projects/arm-recoveryservicesdatareplication.tgz: - resolution: {integrity: sha512-+BeQXBTf7kqyP76WWTlQv4QWnH7jTEp5YeFTlLmFPqNmW0Bc/Eo3A1CwWk5vXlax+CluToqUJWWwOlY0t+2djw==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} + resolution: {integrity: sha512-24kYQGbM58lv5R/61dogsGUC0izDyJKrMTR3KWJKYQH76CtODDn71J0E90qeyXrjRuwGqw+b34eZCaUqyUHX5Q==, tarball: file:projects/arm-recoveryservicesdatareplication.tgz} name: '@rush-temp/arm-recoveryservicesdatareplication' version: 0.0.0 dependencies: @@ -15899,7 +15900,7 @@ packages: dev: false file:projects/arm-rediscache.tgz: - resolution: {integrity: sha512-4n8ys1OvtE9/Glu+R82iq1RAXAy8bQCdqfKCnmpi/XBBBTQy09gCxa2oaFd2gz2cvWpaQ+9iPEztdy4j/Vi5ng==, tarball: file:projects/arm-rediscache.tgz} + resolution: {integrity: sha512-mqMdKd0YceLk1s62hkd4wG7WdHbH+lAHLHvzg27AHCgw24bq2y9C1WuVSkhxVKk1TRx1zBihrxPy8Xb3fzEaYQ==, tarball: file:projects/arm-rediscache.tgz} name: '@rush-temp/arm-rediscache' version: 0.0.0 dependencies: @@ -15927,7 +15928,7 @@ packages: dev: false file:projects/arm-redisenterprisecache.tgz: - resolution: {integrity: sha512-s+JbUbQxJxp9Xp8Em9GYV0o7ngPo55Mg97VaiwgBe6l9vu5LMcTTD383xdtwO7UDGkSfXEFUoNbNw+G4jKGtDw==, tarball: file:projects/arm-redisenterprisecache.tgz} + resolution: {integrity: sha512-sI/vErh7yDc9Oufx+TIXMwNp1EH8DEznIA3832PJ9TeG+Z+dS6e2+b96N86cfm6KrXbRfGHnONJfp6BEH+3B8g==, tarball: file:projects/arm-redisenterprisecache.tgz} name: '@rush-temp/arm-redisenterprisecache' version: 0.0.0 dependencies: @@ -15955,7 +15956,7 @@ packages: dev: false file:projects/arm-relay.tgz: - resolution: {integrity: sha512-JlXpIV1zrOr+LpiWchISq1AlyNe8NpFmbnd8Us1TNJ5UrYOv942PP25GjqjOTIPt9dfmvx7+WyvxT11YPK+Mag==, tarball: file:projects/arm-relay.tgz} + resolution: {integrity: sha512-xnKnpIHxEpsKfRhulihBggq//JkicyBaY7eyKIFi1utQ7H3qO33ZdCaQSVpNULOUdnfwoGhS3lZeMvlrkIYFSw==, tarball: file:projects/arm-relay.tgz} name: '@rush-temp/arm-relay' version: 0.0.0 dependencies: @@ -15982,7 +15983,7 @@ packages: dev: false file:projects/arm-reservations.tgz: - resolution: {integrity: sha512-vasJSz66UVx6WHC/riLzubuHEUXbZjRdSb4tWNUW3Tn6tflQE53bzn1ItzFVZwdGYkIqjAesNhiVIA9tmrogCQ==, tarball: file:projects/arm-reservations.tgz} + resolution: {integrity: sha512-3iRs3Rasp6wqQReALavxv1Dyn08akPMzF72PJYYtLT6n9w0h+OhrmqJ93kkZlWbkY/yujmqHGI12z17zVahvuA==, tarball: file:projects/arm-reservations.tgz} name: '@rush-temp/arm-reservations' version: 0.0.0 dependencies: @@ -16009,7 +16010,7 @@ packages: dev: false file:projects/arm-resourceconnector.tgz: - resolution: {integrity: sha512-gy7eAtkdZt738VAx8eTfHQa5lc8Fj2FQjAk6W/uUVAAbmXLZ3ASm370F4gVOsRVUzxcZKVMKVgtx79xjiw6YxQ==, tarball: file:projects/arm-resourceconnector.tgz} + resolution: {integrity: sha512-B9lagXZTe7K5PZ8NejCd5z8k3+7ZGwbdqlaHPH5RBrX55bV1IS4qhq3AJ6CuXVM8wejBdQYdu8wIdRc4KZsvdw==, tarball: file:projects/arm-resourceconnector.tgz} name: '@rush-temp/arm-resourceconnector' version: 0.0.0 dependencies: @@ -16036,7 +16037,7 @@ packages: dev: false file:projects/arm-resourcegraph.tgz: - resolution: {integrity: sha512-xQzcEpIRXN7JoZUW1lA8YasKIzAb8R53i9pJxiKq+OKSLqYl5h5Vk6Zbi2+LbPYRM0C+NlHm04r/gpE+eThJdg==, tarball: file:projects/arm-resourcegraph.tgz} + resolution: {integrity: sha512-zUH7LG2pwzVDPlZCI4VhBJre2Df2c33s7NV+ux4ZRc6MSlt1mcxtXxEYvfMXNf7+Zr+sZBXmfcMiVs8+VuhQCA==, tarball: file:projects/arm-resourcegraph.tgz} name: '@rush-temp/arm-resourcegraph' version: 0.0.0 dependencies: @@ -16061,7 +16062,7 @@ packages: dev: false file:projects/arm-resourcehealth.tgz: - resolution: {integrity: sha512-Z51b5HFcWWH29xEmIXXHHtKVUfQypZzALV6iTjCdD0qXITxApCxJLFse21nYLA48sBUbt088A9GHYCIBD/m2SQ==, tarball: file:projects/arm-resourcehealth.tgz} + resolution: {integrity: sha512-QKYu1rCesMdlYKEKRHiTU1UeDDxNFERyKyXDh2847lxymwPP/D1MRzCP//Ctri6pe2jvXNUIZQ7fGV9ufLdtyQ==, tarball: file:projects/arm-resourcehealth.tgz} name: '@rush-temp/arm-resourcehealth' version: 0.0.0 dependencies: @@ -16087,7 +16088,7 @@ packages: dev: false file:projects/arm-resourcemover.tgz: - resolution: {integrity: sha512-k7+ll78u2TfVXKR/W7UCIbPeSxCCrX8KSU+NEvUGgxNK+aygpqTmXUM8meudXQetPCcDa4TgMH/LbYA2ybzthw==, tarball: file:projects/arm-resourcemover.tgz} + resolution: {integrity: sha512-GfCk+cFykR+OoOwOAK4sETZulOSenwWMKQFKXow28F1TOsR7nWWRONcKMB0WOqsl4Os0XxMPF5y4uSSnAxx94w==, tarball: file:projects/arm-resourcemover.tgz} name: '@rush-temp/arm-resourcemover' version: 0.0.0 dependencies: @@ -16114,7 +16115,7 @@ packages: dev: false file:projects/arm-resources-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-bmv6pnZKwvc1JpOIRG0VLSIUFOsU3d1X9SzP2+a6PEdaDEHgPQCxT7esdcfW78m788GB2IX+eJAZ7/ftw5Nvpw==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-nMgyss1eb62firJEw9NM09/3z5YvqP7giS46NZ5e9ll9yHX4cJ3NWT3wHrNtwDpvb9lrV84laOv1RI5gScxpGQ==, tarball: file:projects/arm-resources-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-resources-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16141,7 +16142,7 @@ packages: dev: false file:projects/arm-resources-subscriptions.tgz: - resolution: {integrity: sha512-aQa+zQmiVvqTjQNxtLs23aDqz6HvjnuhasprXgO/HC3URmZHryBN9B5fFO1RquR5xkgPWdE11518gFpBNu+m0w==, tarball: file:projects/arm-resources-subscriptions.tgz} + resolution: {integrity: sha512-ZLi8oi6cLlSk+Oc7Crje7aaZRCpFhQrTIRfH3p9Y0UbxM2uNB2C3DkTw2IYyNqezxrhPZfHg+3OHmm1b+U0qEA==, tarball: file:projects/arm-resources-subscriptions.tgz} name: '@rush-temp/arm-resources-subscriptions' version: 0.0.0 dependencies: @@ -16167,7 +16168,7 @@ packages: dev: false file:projects/arm-resources.tgz: - resolution: {integrity: sha512-VcsfgszOelIZOoH/4FhhWsUTtjFl2pvOLcQ3z2njGu5B8zkoIK1M1b7xu8kGp8b0iTnJUzcJHniFpXrb+9Ij7w==, tarball: file:projects/arm-resources.tgz} + resolution: {integrity: sha512-Qmu9lAuw2ebF6CJejpXYRp6msY9Tm80FEOUXCstYv1HTeuMT/XHWE51uiKtlzRX8mXIzEtKWqTLJbnA29HWAsw==, tarball: file:projects/arm-resources.tgz} name: '@rush-temp/arm-resources' version: 0.0.0 dependencies: @@ -16194,7 +16195,7 @@ packages: dev: false file:projects/arm-resourcesdeploymentstacks.tgz: - resolution: {integrity: sha512-lcPYLyrvFVCkBL19YeAJOCcUyfKqX6Nn2gKUsgvy29vISakXeveFY21qqBINa8/VgTCHOURhZ67CP8fDZ1umAQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} + resolution: {integrity: sha512-JYfii9hNv1nNo/MVURWinVZLvStXzUhgAFwWGhwda9MEVnGqWxC2chsUZmB4SGjnsIQITuH/ValmCIPrRI6ZhQ==, tarball: file:projects/arm-resourcesdeploymentstacks.tgz} name: '@rush-temp/arm-resourcesdeploymentstacks' version: 0.0.0 dependencies: @@ -16221,7 +16222,7 @@ packages: dev: false file:projects/arm-scvmm.tgz: - resolution: {integrity: sha512-6dtp0PZjlfSwh/I+Qf/R4nUjW0BF6kY6I4LNSbGSdk+bJoAdZ+6+UXZrUkBfFjv//pNI5Uf2GBF5NhhzpewYgg==, tarball: file:projects/arm-scvmm.tgz} + resolution: {integrity: sha512-IXoHjgmuDT6lZv//NRYrQorGCNV4qvQZMw3nqZa+TVETc7SXtZ1XUJoChT7hIIFnAbvYBZx+9trbunaB8a7Y3A==, tarball: file:projects/arm-scvmm.tgz} name: '@rush-temp/arm-scvmm' version: 0.0.0 dependencies: @@ -16248,7 +16249,7 @@ packages: dev: false file:projects/arm-search.tgz: - resolution: {integrity: sha512-g+7Hqxlm3v74YPvirCItNzAfEE+dFVKiZYfUTu8O8SUlJJqtcXWRcRu1XFd5sNrvjuPavzf61c2I1Oy3adkANg==, tarball: file:projects/arm-search.tgz} + resolution: {integrity: sha512-Na4arZcPzswhzF8Fi0O0+dX7HyhCx21d/zu8uDFsqF4t7vhArbxewOFnYfMWGBubDvkRslDDUKWbZOsMI/57Yw==, tarball: file:projects/arm-search.tgz} name: '@rush-temp/arm-search' version: 0.0.0 dependencies: @@ -16275,7 +16276,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-qACFhnnwBFrThZ7rTUvxpSe+rFOlKRbgGZ/qy5Q6Mnu5ggDk+9p/7abIJG+Yyj8NC5HS09eELEs+K4eM9uB4wQ==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-u2esuhP1W9Bw2VFdjt2PWia9UCncJ4MSKDfRZiBjompPLsoxhK6YzKNjzRlj6xy/D9CRRveQ7tV/1w/Jt7eCkw==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -16302,7 +16303,7 @@ packages: dev: false file:projects/arm-securitydevops.tgz: - resolution: {integrity: sha512-WFwbxg49BxfXBOH0+8P4kdnuri/AH9oNPKYS9O5Cmi87313R0Eht/Zzgb7/SMY78yo3s5deoJURru8t0DNrh6A==, tarball: file:projects/arm-securitydevops.tgz} + resolution: {integrity: sha512-28flvZM982prcnmb138ArBvrXooi85fOQeMoGj3J0okzqkKWjtkmCtO6Xz9tJY3aZ/Fuvg/r5kHvgZbU0kP0dA==, tarball: file:projects/arm-securitydevops.tgz} name: '@rush-temp/arm-securitydevops' version: 0.0.0 dependencies: @@ -16329,7 +16330,7 @@ packages: dev: false file:projects/arm-securityinsight.tgz: - resolution: {integrity: sha512-AQjct2rPlZn1Ru8fQ67UDbfVujDJUTnrHs+2Cv2ufopL6Orv5vVDBmp4kKQMIviKjTgDDyo0AVBtrIeaJCADKQ==, tarball: file:projects/arm-securityinsight.tgz} + resolution: {integrity: sha512-nmSllrgu/D2fIm0lEg+JBXXZszU/FM4LFJJkZXRDjLQNVUi1Lz/yz4x8b2CvoXsW1a871gTXOi8q1Y8gUpZc9w==, tarball: file:projects/arm-securityinsight.tgz} name: '@rush-temp/arm-securityinsight' version: 0.0.0 dependencies: @@ -16356,7 +16357,7 @@ packages: dev: false file:projects/arm-selfhelp.tgz: - resolution: {integrity: sha512-OLahXFLD5DfBdbjyUkVzHNRBhKeM8HSPBkkFKSVufIOk+EfPH6E4gAUMGoMXf12nZ5UIsSIDSOZs3CEZ5oe8kg==, tarball: file:projects/arm-selfhelp.tgz} + resolution: {integrity: sha512-q0aIALRKdXZ7X7EweAexYcIZIZcl1CebIl5ZjMHrAMew2cA1bkpCr9Qt2yejiuO7xEZCDVFREZxCLwQODbagMA==, tarball: file:projects/arm-selfhelp.tgz} name: '@rush-temp/arm-selfhelp' version: 0.0.0 dependencies: @@ -16384,7 +16385,7 @@ packages: dev: false file:projects/arm-serialconsole.tgz: - resolution: {integrity: sha512-dl5F+DsMnDb26lV4oUQ0JwXTQEZLk8iGTzLHO0XVUYw3WB6wFmeNs3Q5xaij/TbNOq4cn6fDtICW+kl/eLRyPg==, tarball: file:projects/arm-serialconsole.tgz} + resolution: {integrity: sha512-i5RTkCVappoHBeA3b3r/hiST+az8+zDEC7CeCvOi8SAlyu58zJewIUn6AioE+ZKQ5g3mKL7vhWvr/VyA9rgTeQ==, tarball: file:projects/arm-serialconsole.tgz} name: '@rush-temp/arm-serialconsole' version: 0.0.0 dependencies: @@ -16409,7 +16410,7 @@ packages: dev: false file:projects/arm-servicebus.tgz: - resolution: {integrity: sha512-MUuRxRAplWENpyAbZ9YlyNTPoMS6k8LfnfwqCt7g+TFqHTOsD/99ChEBqhB6be+QC9D9jmGy4J7Nw+JODDupvg==, tarball: file:projects/arm-servicebus.tgz} + resolution: {integrity: sha512-71bEJOwUVHboeY+C685ShbjvT/cdO9NXdlcedl5eSugD32bShnObW3pKZ+Py0NiOxtCT+Xmk/gzZ0f0M0D7FEQ==, tarball: file:projects/arm-servicebus.tgz} name: '@rush-temp/arm-servicebus' version: 0.0.0 dependencies: @@ -16436,7 +16437,7 @@ packages: dev: false file:projects/arm-servicefabric-1.tgz: - resolution: {integrity: sha512-2wxThW5vKAnYilJYqr4MdEdcPMPiz0ASVLSR1Jd7AgBAeeS/QhMDD8H4bWnpqs/4WzdxiZk5a+2Qr+NOxy5l8g==, tarball: file:projects/arm-servicefabric-1.tgz} + resolution: {integrity: sha512-nsxfrZy9e4+uvS0s4SnZVNA49Lmk22yUTB3TZRC00zzoGuTl2/zXgbxjJ/DCRXojTAHPxAj4/enrOMVwNaj9yA==, tarball: file:projects/arm-servicefabric-1.tgz} name: '@rush-temp/arm-servicefabric-1' version: 0.0.0 dependencies: @@ -16464,7 +16465,7 @@ packages: dev: false file:projects/arm-servicefabric.tgz: - resolution: {integrity: sha512-Co2PAgIlcFoJjZ3WHlg8TGDJCA0sdQLYXihgV0s0/Xd6sB9fXZt6NX1OzB86zQpWwF/ILhqQbUSGBVlhvdZ9eg==, tarball: file:projects/arm-servicefabric.tgz} + resolution: {integrity: sha512-dHSXtV5HilhWtF8WyDnTJ7DgLe4F85DVzVMs8BbN5EDioNrdalZ8tzPk+BiGsyBrtQ/VSPsRC/8EMps7HWY4UQ==, tarball: file:projects/arm-servicefabric.tgz} name: '@rush-temp/arm-servicefabric' version: 0.0.0 dependencies: @@ -16507,7 +16508,7 @@ packages: dev: false file:projects/arm-servicefabricmesh.tgz: - resolution: {integrity: sha512-hKIFXk5ywgwQf3Z2KxLSVivFg/WlCUf0MNOS4g0/D4nzX68OcGbKEA3veA7QD+HPaPBxfh81JkkjKRvPNGc2ug==, tarball: file:projects/arm-servicefabricmesh.tgz} + resolution: {integrity: sha512-H40bxL/Rk2irrl7vylbxma3yRTJ1CzRHmlbvQEXBpjKFQifkCACxVGP13HAMBcAbZAMlkyqsMDVgH5daiE8TXw==, tarball: file:projects/arm-servicefabricmesh.tgz} name: '@rush-temp/arm-servicefabricmesh' version: 0.0.0 dependencies: @@ -16533,7 +16534,7 @@ packages: dev: false file:projects/arm-servicelinker.tgz: - resolution: {integrity: sha512-gO1Ynv8xmh6gAV292Xg8lRnpIDUuyLER88wTAFfByirhpWhiAA36TevG7igdodB5I7LSJ7wgP6A8mHyEXFSNRQ==, tarball: file:projects/arm-servicelinker.tgz} + resolution: {integrity: sha512-ypfjkL6zxTQCeV1wGnuZ5jp+6xFn8xr3xxpSV7meOUpbK5g/FsPgAp+17VgL72PBWUOs7xXp5IFKYShcLKoX0g==, tarball: file:projects/arm-servicelinker.tgz} name: '@rush-temp/arm-servicelinker' version: 0.0.0 dependencies: @@ -16560,7 +16561,7 @@ packages: dev: false file:projects/arm-servicemap.tgz: - resolution: {integrity: sha512-5hAvmxN/pYBveHQdAWYkGNFpAzMJKCyt+cjS6CxHnZlxT9jmv0JmqZ4iyxrJY9v0tZJLf5iKpSkldSujFZuSrg==, tarball: file:projects/arm-servicemap.tgz} + resolution: {integrity: sha512-HcGK/ZGbBMFlRmQEjFOHxh2eEAiJD4oOktIWkw7b1ad1VSUayDyqEtyO+kwDD7Cye7+eqnOKK5KXtyq6bpCN/Q==, tarball: file:projects/arm-servicemap.tgz} name: '@rush-temp/arm-servicemap' version: 0.0.0 dependencies: @@ -16586,7 +16587,7 @@ packages: dev: false file:projects/arm-servicenetworking.tgz: - resolution: {integrity: sha512-K/vw/qAVpygyid7wTMqoM9xOHEddvU/xstuFkGbC6TWdBHpPHdvpwhgEEZ0Lg/LpUJAAbo/DZRtjX7Tlf235Eg==, tarball: file:projects/arm-servicenetworking.tgz} + resolution: {integrity: sha512-1xeaplkloqUsU44Ww4L31jRxPXDNeB2vwZ71Vj4IVGThs/bJwAGRTin4AniXTGiI26OXZyNNoGbo7EvqdYOAkw==, tarball: file:projects/arm-servicenetworking.tgz} name: '@rush-temp/arm-servicenetworking' version: 0.0.0 dependencies: @@ -16614,7 +16615,7 @@ packages: dev: false file:projects/arm-signalr.tgz: - resolution: {integrity: sha512-psByUZapvok/o+/UzSkfOicwB36a/80uOzZNekSWT7gx/yU3DOjzzLJRt4h4EvH1t8K2v1u6EJ5dVqvamis9YA==, tarball: file:projects/arm-signalr.tgz} + resolution: {integrity: sha512-ZmMAsux5HFfA9YBrhXDyL1WiehPZSn2EoKESqoG14Zeo7POAxcIkP66kHx05vkfOYLwmfYewI9wbp0tQ990Y2g==, tarball: file:projects/arm-signalr.tgz} name: '@rush-temp/arm-signalr' version: 0.0.0 dependencies: @@ -16641,7 +16642,7 @@ packages: dev: false file:projects/arm-sphere.tgz: - resolution: {integrity: sha512-7bB3KNhZkCOV4UuBBjk1eMAWMLgPwabZlacuN3UWTGk4hZipIi+BzbLxq59T8YR2jJVd/RjpbkTNf0EpImLDLA==, tarball: file:projects/arm-sphere.tgz} + resolution: {integrity: sha512-FecbO1rrKc54C8B70FYQblM9IMZu3xp+MYvqp1u+9VUoSGFsmkw47mZap9ApSqr2fbzXDFUVwl5faMAOl9iDCw==, tarball: file:projects/arm-sphere.tgz} name: '@rush-temp/arm-sphere' version: 0.0.0 dependencies: @@ -16668,7 +16669,7 @@ packages: dev: false file:projects/arm-springappdiscovery.tgz: - resolution: {integrity: sha512-Cvx3054L4wjXLqPYez9k27Kk6jV14PEnCRZQnX3E8JintkVnee/s0LwgDNtaRMcIG0Nwctmp7iJb4zUHdzzDqg==, tarball: file:projects/arm-springappdiscovery.tgz} + resolution: {integrity: sha512-A2tlPSTSESOP8s72ohjMiNNc7W7kN8Pgw9wsV/zDSF35uegD/9bh23qRy8UWHk65fzivRT6677tPfLyYIVrp/A==, tarball: file:projects/arm-springappdiscovery.tgz} name: '@rush-temp/arm-springappdiscovery' version: 0.0.0 dependencies: @@ -16696,7 +16697,7 @@ packages: dev: false file:projects/arm-sql.tgz: - resolution: {integrity: sha512-f2JeKbczdfYUglBcV15ua5iQWX0+kQiuANYmKb2jIr33ZvrqI8ITj5nY9wJwwf39VjknNUqG+YYlt+AgLOwzLg==, tarball: file:projects/arm-sql.tgz} + resolution: {integrity: sha512-ex3UJHDftkICLCA5doTfowXFXLLV4D2nc4rTG/shZZjNsxDI92pqASoxVQgatsHDeFd4oklXVCoQHIG105bc4g==, tarball: file:projects/arm-sql.tgz} name: '@rush-temp/arm-sql' version: 0.0.0 dependencies: @@ -16724,7 +16725,7 @@ packages: dev: false file:projects/arm-sqlvirtualmachine.tgz: - resolution: {integrity: sha512-H3PCZcUj4J8LGTEMYqRtR3rRuqaVZ+J4ntuGONNiBSdDosHkyR2Zb9PCqJ6BpEyD+pY+XGIgO0NrHOf/N+9Fvg==, tarball: file:projects/arm-sqlvirtualmachine.tgz} + resolution: {integrity: sha512-/lyrMBelmHzvGtPf/WfQd7Ie/3zjXgC4QmkwnRkPtiqCf+0DXIR54w+MYcsmxy/5XXKxbpfDRNOgPQqejCShcQ==, tarball: file:projects/arm-sqlvirtualmachine.tgz} name: '@rush-temp/arm-sqlvirtualmachine' version: 0.0.0 dependencies: @@ -16751,7 +16752,7 @@ packages: dev: false file:projects/arm-storage-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-A/lDTGj63BcUVlKDracjMmjqLnK6BSZYyVww2uvaHizZ1oKkQNPHdrSwy3CsLVZm0jzcM5a5oA47AyxQEGOhEQ==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-I6N9Dzp45uKP74OaTD+Zz0tsWS4nPf6e4FPs95IgGDCoWzeTDnesgj36U3rf/cq8ZXMtULEM3kf35aoe62QTzQ==, tarball: file:projects/arm-storage-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-storage-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -16778,7 +16779,7 @@ packages: dev: false file:projects/arm-storage.tgz: - resolution: {integrity: sha512-IsrRlXy9gZvyVd2b2l1pwItXE0Ny2/KktW1yHAL0SDZQrKdVDIUQl59swXoexqgYTGR5NOPKfXFVv2dd0Wflfg==, tarball: file:projects/arm-storage.tgz} + resolution: {integrity: sha512-NaCFNQ7Pdl53jqJiSRCyGeftSaEiLOoAViaxVEz0ATYqkQTKX8GQgRtZya02ZjOX6zE7JyPAWTslA+IFTXLJVA==, tarball: file:projects/arm-storage.tgz} name: '@rush-temp/arm-storage' version: 0.0.0 dependencies: @@ -16805,7 +16806,7 @@ packages: dev: false file:projects/arm-storagecache.tgz: - resolution: {integrity: sha512-fM8T5Xb2jI4+F4Qh6yq2mwkfi+pSw781mYwVS9QvZcwoEpSAr779vVEdfdjyHseT5aGvVxMtdHUoSadfFgDSGg==, tarball: file:projects/arm-storagecache.tgz} + resolution: {integrity: sha512-BmqN6ugeFzb49BkhF1bWQ6xJ8CD5y0mfAg+d+ZweVu0kjPTKCbhF8+Mh/mLpJ0zp2ha7S0EEE7ePWhTk0CAVpw==, tarball: file:projects/arm-storagecache.tgz} name: '@rush-temp/arm-storagecache' version: 0.0.0 dependencies: @@ -16833,7 +16834,7 @@ packages: dev: false file:projects/arm-storageimportexport.tgz: - resolution: {integrity: sha512-uiE/VT89Q+7TwXl3eBjcvDT/1gpGCMKWY1mT01K6JHicwGHmYrf5TxAEBw1RXKywwQ1siEk04dtTDIzyJOJVhg==, tarball: file:projects/arm-storageimportexport.tgz} + resolution: {integrity: sha512-GHyQElSN8jBqq+5ag5eZrOHi4VeXfOywe2GaORyTnFXTte2XTYSgpMxXfpxt3DPybZej2jieWmxqUG/b6VewqA==, tarball: file:projects/arm-storageimportexport.tgz} name: '@rush-temp/arm-storageimportexport' version: 0.0.0 dependencies: @@ -16859,7 +16860,7 @@ packages: dev: false file:projects/arm-storagemover.tgz: - resolution: {integrity: sha512-MFYVDNTzld7P77u8Ahv4hiPhUR3JYENMX3X+H62gfFzIvea4yswoKJ7k5GlzDG1uJ/grAUz5oIrnNXz3j7ln0A==, tarball: file:projects/arm-storagemover.tgz} + resolution: {integrity: sha512-3PKBf2cm5mX9aivD/2DwLgpn95PyO3thDFjJ0CE58D1UzmwJNUOmhsEZ6ZKy7pFFmh2jYmTFzNIoU+xwg3sh7w==, tarball: file:projects/arm-storagemover.tgz} name: '@rush-temp/arm-storagemover' version: 0.0.0 dependencies: @@ -16886,7 +16887,7 @@ packages: dev: false file:projects/arm-storagesync.tgz: - resolution: {integrity: sha512-8eSsDVILdgrJHqo9fh3hVqo9OAlTz5gu/mZu6TXBbTon2oAhQ/dVFji/DsmgqTC+Hp0OqGsZT4W1d0b2X8oQOw==, tarball: file:projects/arm-storagesync.tgz} + resolution: {integrity: sha512-joRm8SmJIc86XZEolXZdFUCn5n/lnMynWLeX9dXR24yJxpY8wpO8bwJIKxfCPbUxohHiFq8lIxl63rEwgg1eCg==, tarball: file:projects/arm-storagesync.tgz} name: '@rush-temp/arm-storagesync' version: 0.0.0 dependencies: @@ -16912,7 +16913,7 @@ packages: dev: false file:projects/arm-storsimple1200series.tgz: - resolution: {integrity: sha512-KQePcPFTCqHq+6UQ16uMNhkvwRKVLB8hduJkVh4OfsrA9kfffsPifxvfCRo/SgMg9sxWuhj5bqvSiZD7NLJWXg==, tarball: file:projects/arm-storsimple1200series.tgz} + resolution: {integrity: sha512-j91FpbfColfGYFcqG/Zdd5iJsHU7m4RzS3ilxSuMneHS277eCwpPlLpx4uLpFQxqTXeU84OJZI4zfMAzUIuc/Q==, tarball: file:projects/arm-storsimple1200series.tgz} name: '@rush-temp/arm-storsimple1200series' version: 0.0.0 dependencies: @@ -16938,7 +16939,7 @@ packages: dev: false file:projects/arm-storsimple8000series.tgz: - resolution: {integrity: sha512-75eXnb9cnIg1faRH4oHjM0+8FtD3vmKtb7oYVhV2gL0O10Cr8UN8yQ8tA6N/cL/Zh+4O4cJDQRJwULKHrGkb7w==, tarball: file:projects/arm-storsimple8000series.tgz} + resolution: {integrity: sha512-VRQ/YjAU5r/GytNGuxkLQm8dY6DYauU8tEZK4QiuHDKK2PAMi3htlfiG9zgvcZpY5qDhgCS6NG6bXHLIJZ13sA==, tarball: file:projects/arm-storsimple8000series.tgz} name: '@rush-temp/arm-storsimple8000series' version: 0.0.0 dependencies: @@ -16964,7 +16965,7 @@ packages: dev: false file:projects/arm-streamanalytics.tgz: - resolution: {integrity: sha512-lUO5FclctX19VVQ2hjcS9wBbwCjkgS2ruhc/e4slK88hBm6oSsdR5ZFGSGXlIVUaFfoMiDqZkN2DvDeKeIsz8w==, tarball: file:projects/arm-streamanalytics.tgz} + resolution: {integrity: sha512-bMBT/aKNcnJEPV/Dsoyly19s7obyxzppiRLG8QPeFpIjI8UarUMpLDlqPc7yYG767tbtOiqsTjQGb3kAE9VPNw==, tarball: file:projects/arm-streamanalytics.tgz} name: '@rush-temp/arm-streamanalytics' version: 0.0.0 dependencies: @@ -16992,7 +16993,7 @@ packages: dev: false file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz: - resolution: {integrity: sha512-YRcQwLa7VJXk4rqSbKwvOrLX3P05ASOzFq3Yv/j6kxp7cRd7MOtcWA9Lkio563EHmfSmJ7cBnQGkpaWYQWW8bQ==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} + resolution: {integrity: sha512-MFbYzgXZkhn0o2uvUgheWdCscLB6BJQRw1bxodgsbgBxOLjl6NAYiG6K8PJgQtjT66Km7/J6TjAZmbnG3fEAGw==, tarball: file:projects/arm-subscriptions-profile-2020-09-01-hybrid.tgz} name: '@rush-temp/arm-subscriptions-profile-2020-09-01-hybrid' version: 0.0.0 dependencies: @@ -17018,7 +17019,7 @@ packages: dev: false file:projects/arm-subscriptions.tgz: - resolution: {integrity: sha512-M7rp04rhDaNUbmRR2V57BZ6GomyX37GVC6vUmtpV+4DLyJADh6Brl+1btNL5EN/0MySAYgcOBjKo+QmeNMWrhA==, tarball: file:projects/arm-subscriptions.tgz} + resolution: {integrity: sha512-u7yuFd+M/tLW7d1vgyQalQUSfNPutU1UEbfpuMxRMdzFvzUJdVbxDy6ktk6YXDNg34X6AjDdi0T4usMfip69Fg==, tarball: file:projects/arm-subscriptions.tgz} name: '@rush-temp/arm-subscriptions' version: 0.0.0 dependencies: @@ -17044,7 +17045,7 @@ packages: dev: false file:projects/arm-support.tgz: - resolution: {integrity: sha512-XgHePCWuTKjXuSHkZz20+016AqnFYLJ9cVZfFW77mqqU9JfJ9v29bYUXkJroBv3AWSIbRGE16qI+JIyv0nHK9w==, tarball: file:projects/arm-support.tgz} + resolution: {integrity: sha512-3JVcl02aSpUgesD81sxncG7rK0U1nKN1aG2PO76mEizvWZYCtgU7j+UtFaBKr8hQQgnFv5nKUmc2Gg7ixKc/4A==, tarball: file:projects/arm-support.tgz} name: '@rush-temp/arm-support' version: 0.0.0 dependencies: @@ -17071,7 +17072,7 @@ packages: dev: false file:projects/arm-synapse.tgz: - resolution: {integrity: sha512-kOuS3lRnosyB8YQ3TziUxlUwgwGPCjz1Z7jlvXBMgH8TO8omKadOFQY/9hWQ4v6RARlVolwSHP1GNSvePmbfTQ==, tarball: file:projects/arm-synapse.tgz} + resolution: {integrity: sha512-MpXgMplw6Ub2Cq3+wICiu2K434EIL3VHbUY0gQgARXmHqFYb+AK8133N4ARiGI37DIjoGPeQmzSsHVWGZnoKGA==, tarball: file:projects/arm-synapse.tgz} name: '@rush-temp/arm-synapse' version: 0.0.0 dependencies: @@ -17098,7 +17099,7 @@ packages: dev: false file:projects/arm-templatespecs.tgz: - resolution: {integrity: sha512-EmKy5ke81PZG2w6t/d67Mqza32v/gsJ3/q3qSIfIU63+QCvmfXqcy2o88YsvLNPNRfFjylRJMSTgSwJczc7W6w==, tarball: file:projects/arm-templatespecs.tgz} + resolution: {integrity: sha512-e0UAtbuCrJ+ciKRKtK6GZCxe2ZzA6SnOJwMwkrWGU4oPROxsapRN8p8DjNu+OUAqLZPuMrOIZjrW14Y1It6lnQ==, tarball: file:projects/arm-templatespecs.tgz} name: '@rush-temp/arm-templatespecs' version: 0.0.0 dependencies: @@ -17123,7 +17124,7 @@ packages: dev: false file:projects/arm-timeseriesinsights.tgz: - resolution: {integrity: sha512-XoZWa4Jt0GMYTuSd2qRUglUWPG/sa/ty6703EJX8r/b6x3dd2YKucD5Ke5p/zq7csu8uCEb/klBkduj44vuRXw==, tarball: file:projects/arm-timeseriesinsights.tgz} + resolution: {integrity: sha512-snC/fy5M7czA6QMqbhHDAJpOW7t2OUU9K50R3eT/ZExoqsuolkYmYPHV+UGP4H5RqcarIlIxT59+t0IoQnVVcQ==, tarball: file:projects/arm-timeseriesinsights.tgz} name: '@rush-temp/arm-timeseriesinsights' version: 0.0.0 dependencies: @@ -17150,7 +17151,7 @@ packages: dev: false file:projects/arm-trafficmanager.tgz: - resolution: {integrity: sha512-bg8nHImFEb1ciZRKU956sIjJGBNyqeckeiwaVbHrFtYORI0Sjt/2VNMTtAApCxJ38UASSisSVPUW7njG9sSEJg==, tarball: file:projects/arm-trafficmanager.tgz} + resolution: {integrity: sha512-K2hxsxFmVn+tzlhpo+KQzr5gIxRY0CWyQY6rKQJ/kll1ws0Q4f/uKThWAju4uAnr3woVR1UmX4i3GOIyNObABg==, tarball: file:projects/arm-trafficmanager.tgz} name: '@rush-temp/arm-trafficmanager' version: 0.0.0 dependencies: @@ -17176,7 +17177,7 @@ packages: dev: false file:projects/arm-visualstudio.tgz: - resolution: {integrity: sha512-1Y9NsgDZSlN8vWd6LCK0Pem/9NYpSWamCh/bWSGLcs+UtmaUV1GuSwMnzjx/vVE6+ZJimBn+1FreRI198JVD8g==, tarball: file:projects/arm-visualstudio.tgz} + resolution: {integrity: sha512-brjdBlZByMiKwKgdpxJA0uhCCg73m5NNOffwG5Wfli2JI25oPcnXNk2Vw0mghamnamqOcak/6BDi1/+7opOILg==, tarball: file:projects/arm-visualstudio.tgz} name: '@rush-temp/arm-visualstudio' version: 0.0.0 dependencies: @@ -17202,7 +17203,7 @@ packages: dev: false file:projects/arm-vmwarecloudsimple.tgz: - resolution: {integrity: sha512-zhj2hQWVp2fvoUQhs1HseU6eV84EciqNDRA8j2OUtXtG0APU2XnnC26xb80cWJlk/mfHG5QCjq1arUi2zUeQDA==, tarball: file:projects/arm-vmwarecloudsimple.tgz} + resolution: {integrity: sha512-r9gtrD1gCaCbQ1XH4XSM/LfdE6keWeOaiSbPtb7QRs3f4UYar3/8zOt4uXjVNpnC+ho0o1bChpJ6y0rFsaPe0w==, tarball: file:projects/arm-vmwarecloudsimple.tgz} name: '@rush-temp/arm-vmwarecloudsimple' version: 0.0.0 dependencies: @@ -17229,7 +17230,7 @@ packages: dev: false file:projects/arm-voiceservices.tgz: - resolution: {integrity: sha512-IxfZerPD/9wJd0cnwIod168ubCV8tbS1XxSR5LUTTnmMErHluo2GID+MzMlH/5UqyAj1vA2m3FgMJr8x7KAaQA==, tarball: file:projects/arm-voiceservices.tgz} + resolution: {integrity: sha512-3eB17MMGPKdd1mp3nXelGat2GBWw3Xy89Af4xJCFPYXuqs/Clnavu4FhsDr5osCEx+JR+apEIdW8ObjL3KMA4g==, tarball: file:projects/arm-voiceservices.tgz} name: '@rush-temp/arm-voiceservices' version: 0.0.0 dependencies: @@ -17256,7 +17257,7 @@ packages: dev: false file:projects/arm-webpubsub.tgz: - resolution: {integrity: sha512-OkIVPy5PpCCVJsorwfLwI/vvCcnQn0t2UU41O4QRbmosZfwRbF38+Ir0Wax3+s+d0kyRw8vMVX3rnovasBfnRg==, tarball: file:projects/arm-webpubsub.tgz} + resolution: {integrity: sha512-kjw/v4io7Hov1LS/yzhZpDvnqeubKxwt+hVjxp6FFBW/HUVCOOe4VQAWlhhN3BOBV5KBtokD7G+iT40k74uAaA==, tarball: file:projects/arm-webpubsub.tgz} name: '@rush-temp/arm-webpubsub' version: 0.0.0 dependencies: @@ -17283,7 +17284,7 @@ packages: dev: false file:projects/arm-webservices.tgz: - resolution: {integrity: sha512-Bs60yKzm+nOJlATCNhnb8/yHZ6WPQ5UOgPkdayU0nmdXk6FXn4hbM4zdVVeUWu+HjsEjdDjABabvXCXGINrZHQ==, tarball: file:projects/arm-webservices.tgz} + resolution: {integrity: sha512-yyBiTNj8d3HVeYHjBlXZmvrzBKEw/uc2HgD/520PCFunarhhGU2aHcM7963avjSKvO5hDKlPFPbCBWnu8m0hnw==, tarball: file:projects/arm-webservices.tgz} name: '@rush-temp/arm-webservices' version: 0.0.0 dependencies: @@ -17309,7 +17310,7 @@ packages: dev: false file:projects/arm-workloads.tgz: - resolution: {integrity: sha512-lr5KIJunk0HbSI18EMRZhtKgzxwGjq/Ucy6PrizHnbUjTx+6sNI5KWvzOGCVd3hVBrmgag10dSq7X6abx9qgEA==, tarball: file:projects/arm-workloads.tgz} + resolution: {integrity: sha512-XKudilLFmlEgKCwBkIm8nfpwBGLogLxfz3o5CS3tEm2lFIleiqLxbkT/TqJ3Gmi5D9/XgeYNGI6+2tUEyW0nwA==, tarball: file:projects/arm-workloads.tgz} name: '@rush-temp/arm-workloads' version: 0.0.0 dependencies: @@ -17336,7 +17337,7 @@ packages: dev: false file:projects/arm-workspaces.tgz: - resolution: {integrity: sha512-L8DySKHpx3B/lB3Eem+ecbloZWvHXe4jSJnJhytVZGYO89/HOM+Acp2NquPbzzRYpHp3geVLQnZu5QqcfvAYLw==, tarball: file:projects/arm-workspaces.tgz} + resolution: {integrity: sha512-kI0Z+inDWhOs2eqg0lqAc4Q/2VhtxMZaIm6Uii4xuyvPkm9B/LRQOTJabYoOdl4rbFZ918sJbA9elNHM3/nd8w==, tarball: file:projects/arm-workspaces.tgz} name: '@rush-temp/arm-workspaces' version: 0.0.0 dependencies: @@ -17361,7 +17362,7 @@ packages: dev: false file:projects/attestation.tgz: - resolution: {integrity: sha512-Tyyw19qYotupz4mlS4DmPUF2zB70bpChZno35Q4D+A1PfIgBKI7ao/xnMqrNV0TlcVjq3w5BpI2+IOZeWnck1g==, tarball: file:projects/attestation.tgz} + resolution: {integrity: sha512-YwIN3qeropX+TPwF8EdEBOidsU00CxgzefGqPUVjIDduG9miM1hTUgN7W+yHW597qvL66APhxN0q5+v6RUiAAg==, tarball: file:projects/attestation.tgz} name: '@rush-temp/attestation' version: 0.0.0 dependencies: @@ -17411,7 +17412,7 @@ packages: dev: false file:projects/communication-alpha-ids.tgz: - resolution: {integrity: sha512-294gcuMdC40IF/5CXi/H5JRQOfTEZYLXOoytJS0DxsvUxbCg44Jc7fGIelw5Q5FvF7+UOC7KmvjWEXy5JK+E5w==, tarball: file:projects/communication-alpha-ids.tgz} + resolution: {integrity: sha512-8yd47IqUf2ma+MaLeDBMpoUUaiJQU8g/vXoZeOzM7aBnIWQZ+pynNBbo1yckG4XJ7HvMVLAhGn/yBT453ko65w==, tarball: file:projects/communication-alpha-ids.tgz} name: '@rush-temp/communication-alpha-ids' version: 0.0.0 dependencies: @@ -17454,7 +17455,7 @@ packages: dev: false file:projects/communication-call-automation.tgz: - resolution: {integrity: sha512-GlfaW8LpMQIUhPvcm8hPXAhIFXJm0ya38369m1RHeWxOY0MMGU11jUOYLlv2FLUVEIomHS9Qsj34SLNxiZ5s+w==, tarball: file:projects/communication-call-automation.tgz} + resolution: {integrity: sha512-NINnKZH10wqygxFc72wx3HTkdwnwovij11fd30P0Dlpx7IeosO/kZy2eZ3hIM4Ma5PAqJTQgrW89QhVoBSxL2Q==, tarball: file:projects/communication-call-automation.tgz} name: '@rush-temp/communication-call-automation' version: 0.0.0 dependencies: @@ -17500,7 +17501,7 @@ packages: dev: false file:projects/communication-chat.tgz: - resolution: {integrity: sha512-AQBomA10nLQB2QRgSfR3gWNrxtHCz+4PEwfy3RIIV+GUzKL+ERsvsaKT1oMe7xtRGPcV6qBvT5wuirJh4Wz8lA==, tarball: file:projects/communication-chat.tgz} + resolution: {integrity: sha512-zHfAT3Jlmoxh9aAFe7K6Oi5Mk75jpndAi6emM2aNafxxM10wJFiMrKBSMIeo56d1qIDxNiamDRAxgXcA17bAbg==, tarball: file:projects/communication-chat.tgz} name: '@rush-temp/communication-chat' version: 0.0.0 dependencies: @@ -17550,7 +17551,7 @@ packages: dev: false file:projects/communication-common.tgz: - resolution: {integrity: sha512-60J2fhLVxzSYMGCI4mFkiVH6NmTFd0DAhQydqgYbWzdYThUNyBACjHU7eo3hll9Kjun7KtezhJl8V8w+dEmy7A==, tarball: file:projects/communication-common.tgz} + resolution: {integrity: sha512-9ElzIgkR+3Kv6IhNRJt9atGlIZa97gqjXCvVD2WxlrcdM6GODGRtIFS8bNbcUFywbJP3+2I31YE4EMsuxGS6oQ==, tarball: file:projects/communication-common.tgz} name: '@rush-temp/communication-common' version: 0.0.0 dependencies: @@ -17597,7 +17598,7 @@ packages: dev: false file:projects/communication-email.tgz: - resolution: {integrity: sha512-82DSQ18aDqMYJztC7/2cR7p9zFQ48gTZVQGR1kABj0OTtI+5LGKPGGGuRWiqiRbf32OJqVIyKgGKIyFrS+CXwQ==, tarball: file:projects/communication-email.tgz} + resolution: {integrity: sha512-KdQRPiGnVECE3zjqt8AiHtvluFeGuZwAHTqWjvbLNGVEfccUh3a+85viGKC34+PLilPpJyxUtjJwQmSgrJOAag==, tarball: file:projects/communication-email.tgz} name: '@rush-temp/communication-email' version: 0.0.0 dependencies: @@ -17637,7 +17638,7 @@ packages: dev: false file:projects/communication-identity.tgz: - resolution: {integrity: sha512-n0zbMYfUqfxoIfuoiGKp5zvCB6PgKBTZtg42KCEpo8m4+vw6w5ncYRG+ZGNIZT/BCv8vPh8GkPxNGFH1a1R4Dw==, tarball: file:projects/communication-identity.tgz} + resolution: {integrity: sha512-zfrzDjBCmfhJBcv9semQ+F5QstOdvioprljAVPNzkCPHRG86PqhliRrVKMd7k33sRMxtc0Fxi+zeIDkntvoGIw==, tarball: file:projects/communication-identity.tgz} name: '@rush-temp/communication-identity' version: 0.0.0 dependencies: @@ -17683,7 +17684,7 @@ packages: dev: false file:projects/communication-job-router-1.tgz: - resolution: {integrity: sha512-TAYak9UA+YtHtXk9/DRIGhSOWuXv8KOxdPEo9Mxz9G8EsNWGeA18Hi+Qe2AKo6XcxX55wZDxkyJheBVVwRzJJg==, tarball: file:projects/communication-job-router-1.tgz} + resolution: {integrity: sha512-+NNoBNG/Bl9XQEy5HX+7uYcxGjOUMNIJowNfJK36J70rFZ0xPY0w1mxYO2IOHgmCDW/nq5EMcKzcSqcEEFA8fw==, tarball: file:projects/communication-job-router-1.tgz} name: '@rush-temp/communication-job-router-1' version: 0.0.0 dependencies: @@ -17731,7 +17732,7 @@ packages: dev: false file:projects/communication-job-router.tgz: - resolution: {integrity: sha512-HBXK5G5i/gMmoZH7qaA7KeN+dB01FDAj+v1S6OErZTspJNMSw8Nz+KY75OjHWOLV2XfyIx5endQH1BgPYHewqg==, tarball: file:projects/communication-job-router.tgz} + resolution: {integrity: sha512-desk9yMknQZik9abM0PiJhgOyw+Aq3MBTiSFM36lA1c8PGoR8NLXGnoe1rl7KyEnqnPO0CqIs09AAeAs9iIeSg==, tarball: file:projects/communication-job-router.tgz} name: '@rush-temp/communication-job-router' version: 0.0.0 dependencies: @@ -17773,7 +17774,7 @@ packages: dev: false file:projects/communication-messages.tgz: - resolution: {integrity: sha512-ay8Z7Sikte3gL1nRo6XQGltuZAkclwGt6dkZANAd/bltC4f15OpEcWT1XDqcNlclsCS2QVaPQdAd1iduVPp2Vg==, tarball: file:projects/communication-messages.tgz} + resolution: {integrity: sha512-ALfKMarmraBZVs9xT6K7B2sMkt931FOSYzjXc5h3FounSsSuHbWiDbv0Cn4ywQqWpZWb5bUWsJURuhbrEDxRcQ==, tarball: file:projects/communication-messages.tgz} name: '@rush-temp/communication-messages' version: 0.0.0 dependencies: @@ -17816,7 +17817,7 @@ packages: dev: false file:projects/communication-network-traversal.tgz: - resolution: {integrity: sha512-FYD1FvbT7KM1L10R+soek1v49kycvpzt4hk+Tu/TlkAj/VWnfrv0o/z6Bu0iETelTDJIfaiL4vR4Ju95hsdrgA==, tarball: file:projects/communication-network-traversal.tgz} + resolution: {integrity: sha512-MlzemQSCkDYbcSrR9XBDhjHi5Z3/asZDkC0qcLpB8cYtx3IKY+ivG6yNseQmN35Vvf4hmVn9LofMFfXnw0Iziw==, tarball: file:projects/communication-network-traversal.tgz} name: '@rush-temp/communication-network-traversal' version: 0.0.0 dependencies: @@ -17862,7 +17863,7 @@ packages: dev: false file:projects/communication-phone-numbers.tgz: - resolution: {integrity: sha512-C/1Aur+M6cFGETSxmpjH1N7viR/S+CPeDL9EoqfnrWLfmrxKSz+3OhVs5MQdZYlxu8X39+oFuh6SVxPcCs1BsA==, tarball: file:projects/communication-phone-numbers.tgz} + resolution: {integrity: sha512-JzXOayITg3nqzZ27xSySo78kW5/DPgSpLsn0fOWUOtw2sQbv15ZeDnYXb11eQ6ly8Sts//ii1jYhf3yw0+vAFw==, tarball: file:projects/communication-phone-numbers.tgz} name: '@rush-temp/communication-phone-numbers' version: 0.0.0 dependencies: @@ -17906,7 +17907,7 @@ packages: dev: false file:projects/communication-recipient-verification.tgz: - resolution: {integrity: sha512-mGvSiGEn/LCH/HebBz5bVCwWRnoPNwtRoUZ5vwtMNb7yCPpqpg7sAcg3IZkpJaAbRZjiTw4cTvDlrZfcqiAh2A==, tarball: file:projects/communication-recipient-verification.tgz} + resolution: {integrity: sha512-hMfurY3Uh2Bs3QmOg4DJ0mzlycC8l37MW8PghNHNgHQWQ61VUVCFYptGewt1p4endsu9oYrLqIgv7UuXD6PSpA==, tarball: file:projects/communication-recipient-verification.tgz} name: '@rush-temp/communication-recipient-verification' version: 0.0.0 dependencies: @@ -17952,7 +17953,7 @@ packages: dev: false file:projects/communication-rooms.tgz: - resolution: {integrity: sha512-37laV/u3tPNunKHVlZBx2aDk0c7iJA2isAYHCaDejCapWs5ox47yAiV47jeDqLWfvpLkj24VIfxOZHrJDqq2gg==, tarball: file:projects/communication-rooms.tgz} + resolution: {integrity: sha512-Jp5ZETyt7ubXG5sGlg42nfxPsFPbpsDvA84+5m3kkjnkpc56boFDtJT+2Fc9ZF7AQ3fCzA1diA1MDtSCAEWo/A==, tarball: file:projects/communication-rooms.tgz} name: '@rush-temp/communication-rooms' version: 0.0.0 dependencies: @@ -17986,7 +17987,7 @@ packages: dev: false file:projects/communication-short-codes.tgz: - resolution: {integrity: sha512-SLoCCQkqIbUrmX4CAtH3QLKxm0GM4JXPX24ucoXxP43UNGjI/83x35ZN1ryDQSzTKAZoVj8w6PK0xSpvecyc7g==, tarball: file:projects/communication-short-codes.tgz} + resolution: {integrity: sha512-c6gu2B7TY1jOjDgjMnncaXR69eRonypm26I++NV1tpuBZWSdZiNqPwkxQv2QcFzPb990Qd5e+8Duw169tn+Ajg==, tarball: file:projects/communication-short-codes.tgz} name: '@rush-temp/communication-short-codes' version: 0.0.0 dependencies: @@ -18032,7 +18033,7 @@ packages: dev: false file:projects/communication-sms.tgz: - resolution: {integrity: sha512-QH1ojOfspANa/398LyCbgm65fB7oCRClO6dTizPduJp6RLfL6BpNkQ3Z3PfkG6rp6WGQZ1V1hXiV75ExSdFJeg==, tarball: file:projects/communication-sms.tgz} + resolution: {integrity: sha512-AG0uIUZif3jDOmxdY78S9EJbAF1SU9G6pF12/q6hVPmrKPNdND06domPdkp9QX2D4dkJNejEIrKuMQgr96jpRA==, tarball: file:projects/communication-sms.tgz} name: '@rush-temp/communication-sms' version: 0.0.0 dependencies: @@ -18077,7 +18078,7 @@ packages: dev: false file:projects/communication-tiering.tgz: - resolution: {integrity: sha512-BFGZCZu4YmXn4F9PYNbDzz7iCDFnDsQgsJqZ5q1KbGicMXpKBpC09SfjXZkQA2eiGjAlg6T5f8n9MeRfvYNUXQ==, tarball: file:projects/communication-tiering.tgz} + resolution: {integrity: sha512-C/UipvVfbb9lMrYtG9rZ06v/lSCOuEyENCxu4UMKRtJ9iIbPwTsfPOHQNBGZo6LIlY3hO5AUqrbGcrDB8ueiIg==, tarball: file:projects/communication-tiering.tgz} name: '@rush-temp/communication-tiering' version: 0.0.0 dependencies: @@ -18123,7 +18124,7 @@ packages: dev: false file:projects/communication-toll-free-verification.tgz: - resolution: {integrity: sha512-guA0GcaKeK5ePDFxXqegPcvAi6bfjF6H+IBcL+H0/hvEve5gPsszaaAHFTe1gnLQP8ISZUJydTQtYHJFQ8iOew==, tarball: file:projects/communication-toll-free-verification.tgz} + resolution: {integrity: sha512-Lnd58M5AuJ2Y6sNsumMKfkhgnnD1bF02Mn5fthFjm6K4vx+VnFxxLbgaUksMKBMvlrVV/+WnvMRWjNk1GzFYEA==, tarball: file:projects/communication-toll-free-verification.tgz} name: '@rush-temp/communication-toll-free-verification' version: 0.0.0 dependencies: @@ -18166,7 +18167,7 @@ packages: dev: false file:projects/confidential-ledger.tgz: - resolution: {integrity: sha512-9idUUYAK2cpLiiBo0CzOkySEf/VZ0gxKOQVR3Pq3MZ5rAFSqIdIV/7cla5qc4oODAxnoa7YCBVSfYi/vG62R5g==, tarball: file:projects/confidential-ledger.tgz} + resolution: {integrity: sha512-PS+z+CsVtMitqUn1QCt0cO3URjvFkEq/UfQM2IPZod4x+VRUpYLDqEhysatKa6nXxfF+lg30KewHMOvn8SJ02A==, tarball: file:projects/confidential-ledger.tgz} name: '@rush-temp/confidential-ledger' version: 0.0.0 dependencies: @@ -18194,7 +18195,7 @@ packages: dev: false file:projects/container-registry.tgz: - resolution: {integrity: sha512-3RspgAOXX3qvk3JBFV1rdQYz8ml3jB0RNVF0zoe4Fg8We5BM3ERneXg5GFkvpQWQZpkY3MYfRjb6H7eY5dMqgw==, tarball: file:projects/container-registry.tgz} + resolution: {integrity: sha512-ii92awiqoHoZc08k2pJO9Q19HWjKA+oUR/42BFtE3HyTtOOODGKG2q3DdfUiPYzNKIfRGVNwBUkPG7mgBe2ZnA==, tarball: file:projects/container-registry.tgz} name: '@rush-temp/container-registry' version: 0.0.0 dependencies: @@ -18238,7 +18239,7 @@ packages: dev: false file:projects/core-amqp.tgz: - resolution: {integrity: sha512-ICsMjmllReqeC1y07hti4J86Udpgn1BXyJtSWi6lvsPiiHPGM8NlciGqN4QNLvV8lgss6H1+gXwExsxkRWDyAQ==, tarball: file:projects/core-amqp.tgz} + resolution: {integrity: sha512-h6a/mCt2qYR/JfmGNeige8PDCTT3/8Vpkj9FypbqmH3opXycLtaN5Dro1f3ejlV9t3F19A17GrSMW+WD77waLA==, tarball: file:projects/core-amqp.tgz} name: '@rush-temp/core-amqp' version: 0.0.0 dependencies: @@ -18281,7 +18282,7 @@ packages: dev: false file:projects/core-auth.tgz: - resolution: {integrity: sha512-K96YceOVe8qaxhMMzBkZCoFxcj+pj9B1nSfQHQfxy+5DvE/XnGANhIyCZw3pO8uYhmIMZW1gKVTnZTV3ObV1Kg==, tarball: file:projects/core-auth.tgz} + resolution: {integrity: sha512-1LK36hxl/yFX4MHmS5CUf58rso7ZrsDtta31EihcL2mIW0rMVX4dlwG4iu2NvRvl4W1q475ps748uDNjE5Z21w==, tarball: file:projects/core-auth.tgz} name: '@rush-temp/core-auth' version: 0.0.0 dependencies: @@ -18314,7 +18315,7 @@ packages: dev: false file:projects/core-client-1.tgz: - resolution: {integrity: sha512-yrsRgyVw1pJ406mbPES7sVLkTnwYAoJuy5L09RiBVRFG1GTvV5qUlrvL+uAAL7xLWAL8+vetNYYTgZqPFN8KOQ==, tarball: file:projects/core-client-1.tgz} + resolution: {integrity: sha512-OLJyHTL0U4vLGSMZ1Uwm/cbaCSnQpJWNwZxfuqyuHvtF6GoyCXBb9RdB6KZgMhJJgBvEZr3BhxTqM57nciV7lg==, tarball: file:projects/core-client-1.tgz} name: '@rush-temp/core-client-1' version: 0.0.0 dependencies: @@ -18347,7 +18348,7 @@ packages: dev: false file:projects/core-client.tgz: - resolution: {integrity: sha512-38pzXw+IilxQ47iaH8qqQIDKBXJu2dnmz+293f/E3wOoLQbfVnkGMPeM+U9OnsSmUXax5cn7nObnV0nF4CDLDw==, tarball: file:projects/core-client.tgz} + resolution: {integrity: sha512-J+mQDVAxm/CPhw9yQFUrQt3TLclaYwfzkmNDWVcG3wYLZPyNF6m6Oz5ZyzQpwtQgA1GrZFMtJ6ALGyXqdOYGww==, tarball: file:projects/core-client.tgz} name: '@rush-temp/core-client' version: 0.0.0 dependencies: @@ -18380,7 +18381,7 @@ packages: dev: false file:projects/core-http-compat.tgz: - resolution: {integrity: sha512-tJPVNWs3bvk80ejwdQWP4r+PL5FO0v6SJ40GugfqBq8vserFyZxRkVq0zDee39eORw1zVDyGp2XfZMY6BBeKxA==, tarball: file:projects/core-http-compat.tgz} + resolution: {integrity: sha512-o4+VSa/YjxAuW8meTMp04lfhMav4XhxI2mQBUsgLm6qrsG+UInoYc1XjeoG9dxsSbtoDT8iNguuNKzCXTdAEnA==, tarball: file:projects/core-http-compat.tgz} name: '@rush-temp/core-http-compat' version: 0.0.0 dependencies: @@ -18412,7 +18413,7 @@ packages: dev: false file:projects/core-lro.tgz: - resolution: {integrity: sha512-I2vOznyNVg96o2ndmFcAi2oeJ4sM38eR0ueE6mDKa1DCg02qlf80RxrlRZGUElS19xpWKGbdnERPqCskAMyjSw==, tarball: file:projects/core-lro.tgz} + resolution: {integrity: sha512-4z+td5KBrB4E4AC1W8sIikhPFggJTtbjtzYitU01rvQe6H97SnwxgSX95X3VYJuuz6FTtaTu8Ygodk7U9AvdUA==, tarball: file:projects/core-lro.tgz} name: '@rush-temp/core-lro' version: 0.0.0 dependencies: @@ -18445,7 +18446,7 @@ packages: dev: false file:projects/core-paging.tgz: - resolution: {integrity: sha512-vvZhetkvZ2gG2gxrDKB3AK+6758n4iCXqNQTlWCX2s3JHTGFhkNXQCBzejDjPVyBAA4UxCCsFJca70eX1J2h4A==, tarball: file:projects/core-paging.tgz} + resolution: {integrity: sha512-ZSI0Vg4yD2/EK/sq4+YxdzQy9YGswtLd5DeTD397iaMoy0vyp/6BKURyIPiSoBTofFUIV3j7MwaO9tfkyHbT8Q==, tarball: file:projects/core-paging.tgz} name: '@rush-temp/core-paging' version: 0.0.0 dependencies: @@ -18478,7 +18479,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-e72dDkqu0Svpxcftt3FqHr1KhLRk8t8Bago/FyrchzuS8WJB2Z4BoU3rA4dWt9GM/7Sa+CQ9V1mn+5t6J0407w==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-SxZK8Sn3iHsCf4SUWs631chCquZR4EoAnGCZIBAN53fzEx7zu7Fn5kMgthrV7k6sZqNh3Gr+2UoTzrdfd96aKA==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -18513,7 +18514,7 @@ packages: dev: false file:projects/core-sse.tgz: - resolution: {integrity: sha512-0ulh4nAfDJFxvDkzU3PKjDgRSIUPsB6vMgZ5/U0xPNS7JPPF1q8h3cv/ZcalSTNDdAAuGihR8fEqd/JeaflLAg==, tarball: file:projects/core-sse.tgz} + resolution: {integrity: sha512-SQ12AH5WYq1DSw8s4W2KBK4lI0JqidtDTYrSBid8ji11C+5EG6brZOmlEsstwrE4/ou2BRGQZjYOiFhCQASPOw==, tarball: file:projects/core-sse.tgz} name: '@rush-temp/core-sse' version: 0.0.0 dependencies: @@ -18547,7 +18548,7 @@ packages: dev: false file:projects/core-tracing.tgz: - resolution: {integrity: sha512-l14HhQTeoS4qlO/6BfJB4/2Z4KTf3qPD3cOGuO1UJIvYfX0mwmwJHiXc7VLPwCL0khQr8f2rhwfxS81pJcPAlg==, tarball: file:projects/core-tracing.tgz} + resolution: {integrity: sha512-OiN48Pr2CrhzGy/wuAmQKNxNq/JVEDsgVVIbSTMLBh09mRgHVAt1dDP2RiazPOUoVgO+a8sg0lUlT9UuJkbLQA==, tarball: file:projects/core-tracing.tgz} name: '@rush-temp/core-tracing' version: 0.0.0 dependencies: @@ -18580,7 +18581,7 @@ packages: dev: false file:projects/core-util.tgz: - resolution: {integrity: sha512-b1AbMmtrh+KrnMICvIwX44gHMJ8GET4Hof9rl6JAmrc02wDYKa56ZHkHaeQg+ajFIL2tdJnm8Fp8kaDQY5YSUQ==, tarball: file:projects/core-util.tgz} + resolution: {integrity: sha512-m6EGouRXU6ZC5lviRF/UxOy9EcUOR0s05AMbEYkhx9w71Ohu4X8eWea8RiX5kplEaCvQj/Pxpjpk+FqIMiq6tw==, tarball: file:projects/core-util.tgz} name: '@rush-temp/core-util' version: 0.0.0 dependencies: @@ -18613,7 +18614,7 @@ packages: dev: false file:projects/core-xml.tgz: - resolution: {integrity: sha512-9pzkE3iMmjofYRSecx5G+GoXTBh7IkDfBph8D+Bi89w5fljuGlyAx7dcJL2Bw8+lr/nQEifF9vlu8Rq2WjVw4w==, tarball: file:projects/core-xml.tgz} + resolution: {integrity: sha512-nHFQ7K/R0RCToo50zrD/m7qx1IwTGRhgSD2sa/u5eP323N1Ekv9SolsTKReAM3bqD1PPirvytI8pP9WC2dvkpg==, tarball: file:projects/core-xml.tgz} name: '@rush-temp/core-xml' version: 0.0.0 dependencies: @@ -18648,7 +18649,7 @@ packages: dev: false file:projects/cosmos.tgz: - resolution: {integrity: sha512-g2CHsQoYTDcTtSfv9WMBVR9gKsIwtB2TdGfcwsVq8jMZceOIfLt2QwQT4471bxhG4fQ+vGpkQ8oKilKgWtVu9Q==, tarball: file:projects/cosmos.tgz} + resolution: {integrity: sha512-QvMe4hvJqxGu27gFk9gSt5x0vTeAtrKAv2YfWx1f/lkIeVBhzS4PeFaw9+Gb3cfDLIqB1l9KUkOgoZzWbjgLAQ==, tarball: file:projects/cosmos.tgz} name: '@rush-temp/cosmos' version: 0.0.0 dependencies: @@ -18696,7 +18697,7 @@ packages: dev: false file:projects/data-tables.tgz: - resolution: {integrity: sha512-3JEF2N6kEpndgHmxC5jqp5wdTeluMOLqER3YoAcGIatApN1jZ9/5jYHQcXN8JuPZqPFBcAIH8g2c6F2hMXSQVA==, tarball: file:projects/data-tables.tgz} + resolution: {integrity: sha512-iVIBl8MiXrmlB0wceNOApa29oWDJq6U5IU7Iql2aPWo8Nr/cO35zGNEC4GSLnz9xnk0mPyo/30C+SLc7onJ8DQ==, tarball: file:projects/data-tables.tgz} name: '@rush-temp/data-tables' version: 0.0.0 dependencies: @@ -18739,7 +18740,7 @@ packages: dev: false file:projects/defender-easm.tgz: - resolution: {integrity: sha512-Feg1PWTklRinRbb0fpSl9DlGPs0F+mJPSiPF2pc26+VRmMeYq65b5jUD8EoJI0i8P0ita/XXbL5HMCTzZCSjng==, tarball: file:projects/defender-easm.tgz} + resolution: {integrity: sha512-cExnd6UJQQIshWTVKi3p43lDS2pAunjd056VzfoZ4auZpdMfZEh1JXWL8a2d8edmRvnLwS7dNRszanFBafh4kA==, tarball: file:projects/defender-easm.tgz} name: '@rush-temp/defender-easm' version: 0.0.0 dependencies: @@ -18783,7 +18784,7 @@ packages: dev: false file:projects/dev-tool.tgz: - resolution: {integrity: sha512-+bhDzfvPvq4GZ7wsCa2n88wV/biduasOH0FbtwxebJKfG7Br9lefJ0RHB+vpn/S/fN9rv7E1sA0V2j5NB3huKQ==, tarball: file:projects/dev-tool.tgz} + resolution: {integrity: sha512-COAzPkDCKpsPZD0iyU3vk8letk0oh0SMzpVHrj2FPDEB6jwtl0PUaHq/9aDqFoaT6E3+HQ7n3BOwMsjM6mDvZg==, tarball: file:projects/dev-tool.tgz} name: '@rush-temp/dev-tool' version: 0.0.0 dependencies: @@ -18854,7 +18855,7 @@ packages: dev: false file:projects/developer-devcenter.tgz: - resolution: {integrity: sha512-bfK4GOlAJ9vC+9A95OHPc+JzAJ2eRgLqDfppqIfGV0gFN/GoXTCAp8wjibbr2Byy/SqgSBJrIIQ21DlVNTCYuA==, tarball: file:projects/developer-devcenter.tgz} + resolution: {integrity: sha512-9Row3h2eFyesNCODAS99pVVD0EHWgMj+adg6Xh+HGbuLSKTLzRGmiaiZQ1QydAPjIVfPQN2J6ioWsz4y5lqC0A==, tarball: file:projects/developer-devcenter.tgz} name: '@rush-temp/developer-devcenter' version: 0.0.0 dependencies: @@ -18898,7 +18899,7 @@ packages: dev: false file:projects/digital-twins-core.tgz: - resolution: {integrity: sha512-7/162x/wY+xN2QTxxexv5jQn+cK6qLdRi1qR6vwr/j7f/CivsHNeo5bZ4juc2qfWT5lQKwo75Kym/cZwTGLnNg==, tarball: file:projects/digital-twins-core.tgz} + resolution: {integrity: sha512-WABaWf9yAF6rhuVYZinqJqHzhTAjkcb/wt1nry76qwmZImWlM7zLD2KxSnOeLAr1UMOrZtg6L7i3a82Q/N7F7A==, tarball: file:projects/digital-twins-core.tgz} name: '@rush-temp/digital-twins-core' version: 0.0.0 dependencies: @@ -18943,7 +18944,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk-helper.tgz: - resolution: {integrity: sha512-c2p8g6bTDtMUiM6D02QH5VPifOavw3/sEXQRQhMooIM0SyRU82dZR2qtzOGw9ZGQ2oXOmPPpW7i/N8ifmjSw/A==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} + resolution: {integrity: sha512-81LjcHURGDNhd99ICbhwWc+aJH10sWa3J7QjDxFc5WhdewTN9gCHQRLXUlXT5oxBl6VK/7cOt8+MHIZ9Ezq8Xg==, tarball: file:projects/eslint-plugin-azure-sdk-helper.tgz} name: '@rush-temp/eslint-plugin-azure-sdk-helper' version: 0.0.0 dependencies: @@ -18962,7 +18963,7 @@ packages: dev: false file:projects/eslint-plugin-azure-sdk.tgz: - resolution: {integrity: sha512-l4Tfx2HM9nIs5nsD8bx1N7Y1zFQ0eGuqbFbyh9loN2Am9X3m2qvsD6Ou8A5+b+kBxd/qFYhmngaESt/dCl+Gnw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} + resolution: {integrity: sha512-QWCQpxYTL732c0p0LhhgoNH+PBuwMeWeCUVO6p/y5HVftrAf1V7fCMuNTH6MkVmX6OhcHY941iWQMGnzskrITw==, tarball: file:projects/eslint-plugin-azure-sdk.tgz} name: '@rush-temp/eslint-plugin-azure-sdk' version: 0.0.0 dependencies: @@ -19000,7 +19001,7 @@ packages: dev: false file:projects/event-hubs.tgz: - resolution: {integrity: sha512-lnKf3XksF5BrjWw+it3UJehsePqWocTU/zwZtJ1MIYSvQc9UGq4wE9TBH3jjsTf2v3pxCVCNTu98vVdM58sIRg==, tarball: file:projects/event-hubs.tgz} + resolution: {integrity: sha512-2w5+Fho+ZEbuc8EHMwjZBU8TnU2OLZoZrUXw0svdg6gzQcEuseEC0dzWMyYfYYSpRySwV2jGo/AA5e4XY4KFsQ==, tarball: file:projects/event-hubs.tgz} name: '@rush-temp/event-hubs' version: 0.0.0 dependencies: @@ -19061,7 +19062,7 @@ packages: dev: false file:projects/eventgrid.tgz: - resolution: {integrity: sha512-JA/5o9eLAnSxEpBzxWVIf+fVdRJXv4Ss4K4aLYnsWECtP4XSbzODq20l5BaZQkpO0EWSpxKCTodRmw9G6gGw6A==, tarball: file:projects/eventgrid.tgz} + resolution: {integrity: sha512-n4uul6UnWNvKSlQ++Zs0e5paVpd2DITzP1WZ7WigL+eUTvsSBsfeR35Dviw790NvjuuUiPVhZ/1SL5Ehn7ACPw==, tarball: file:projects/eventgrid.tgz} name: '@rush-temp/eventgrid' version: 0.0.0 dependencies: @@ -19103,7 +19104,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-blob.tgz: - resolution: {integrity: sha512-GZttLKha1yC6gORy3lLWOjzpiVHKORUDKX3goHAJKtbmKnSe+0RJ8O1SX0HJ+NQ/6/mIDzG6eiLNBkPcqqc8vQ==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} + resolution: {integrity: sha512-9tCkRIV+ana29MG9f705LWm33vr5QP32MQSj2Ugc/FzjJFIo7m7jURJXzUnys8m6Dn4NOCrLa3fNYqzsUq5v2A==, tarball: file:projects/eventhubs-checkpointstore-blob.tgz} name: '@rush-temp/eventhubs-checkpointstore-blob' version: 0.0.0 dependencies: @@ -19153,7 +19154,7 @@ packages: dev: false file:projects/eventhubs-checkpointstore-table.tgz: - resolution: {integrity: sha512-e2e2OZ9p4QPVXWesw+cp9dIu1L3+GjmB6Y/18qEISNDPYOc8JX1XaWBK7JnX7TSo6/xb0CsebOAQZogMEIX1vA==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} + resolution: {integrity: sha512-MNAnVLgZpP2tCpMUYctWUxl1p+RHQswDcdueCxd56pcKq2nmRufWnos6IcR6xbBaJ9i5Rqc5pkFX8matcMwjJQ==, tarball: file:projects/eventhubs-checkpointstore-table.tgz} name: '@rush-temp/eventhubs-checkpointstore-table' version: 0.0.0 dependencies: @@ -19200,7 +19201,7 @@ packages: dev: false file:projects/functions-authentication-events.tgz: - resolution: {integrity: sha512-lXoHzjMxtbz8NSmoiT9+c/HUItezv40AHHW3NHLBnKXX6kufB2Gv3He1p4iGCBJoBOGAwKQYiB4dqS4YYtm1WA==, tarball: file:projects/functions-authentication-events.tgz} + resolution: {integrity: sha512-763pAUuz9DAzi7jlsrmynNZo5SWzxx84mSaoRo6Fp5gcbiTl83FaL4IQxDJgSyMbasckrmb0YgsH3Jzs3wpq7g==, tarball: file:projects/functions-authentication-events.tgz} name: '@rush-temp/functions-authentication-events' version: 0.0.0 dependencies: @@ -19244,7 +19245,7 @@ packages: dev: false file:projects/health-insights-cancerprofiling.tgz: - resolution: {integrity: sha512-eYSSKmiQ7PV0CFwAuZR0K9uPivC+fkXFlpbk0iCti0yF4fsAZUkaoMrwfg3lhPZ1F0K5nd1a+lJWdQpP9kRwBA==, tarball: file:projects/health-insights-cancerprofiling.tgz} + resolution: {integrity: sha512-8h2H3YNeXGdEGQ+TnUHAsDV6KLvHzLTR+qsSjKocCScNrRdwJBhaSrIo3QtLjBaB7K+iPoPxtsdm3k+lBvKCEQ==, tarball: file:projects/health-insights-cancerprofiling.tgz} name: '@rush-temp/health-insights-cancerprofiling' version: 0.0.0 dependencies: @@ -19288,7 +19289,7 @@ packages: dev: false file:projects/health-insights-clinicalmatching.tgz: - resolution: {integrity: sha512-rc5CIO0faOvOu8tAe26x9g9drWFj41DNzK3xd1P9m6xepSCXy/g0V8hL0ECldsRQemB7icVFOz9debRa02NfbA==, tarball: file:projects/health-insights-clinicalmatching.tgz} + resolution: {integrity: sha512-R9izTxpyw5PG+oUlt8ZEJwcbNJntRoQUsktQ63K5423Ah7UG1UgDPwIiYIrSrVS+X8OxEIu3DDPo7/oeRVJd3g==, tarball: file:projects/health-insights-clinicalmatching.tgz} name: '@rush-temp/health-insights-clinicalmatching' version: 0.0.0 dependencies: @@ -19332,7 +19333,7 @@ packages: dev: false file:projects/health-insights-radiologyinsights.tgz: - resolution: {integrity: sha512-LzShHe5C9t4zZLNVcQO9e9ber1j7KcYsK7AtcQ4Wyy4IcmqqSb3u0cAGnOEddemfOrtdjBA81uLXBFl47FfGUg==, tarball: file:projects/health-insights-radiologyinsights.tgz} + resolution: {integrity: sha512-MgqSqs4TL6lf77N+K1LLcTc0OArMhm7942eyZq4LOE5RQoYx+STFg+wOpncRL0oYlXQ5mLl0XjISd/DmTXb7Hg==, tarball: file:projects/health-insights-radiologyinsights.tgz} name: '@rush-temp/health-insights-radiologyinsights' version: 0.0.0 dependencies: @@ -19376,7 +19377,7 @@ packages: dev: false file:projects/identity-broker.tgz: - resolution: {integrity: sha512-RE+YqSTaxxR3bgxMrHGjkuJjywZPJpdr10nDdOkrJ22/So+aW0kisoQEPaQ6WBL7HD6PSN9fWxfTBYsKfBGe2w==, tarball: file:projects/identity-broker.tgz} + resolution: {integrity: sha512-pEzSuEC+bJbFJ/bJ0uWL98hxzLq3DrXEkDOnBhOkgXIqsZ/N2i5MkwCpmF1uUtd6c/Jj7GeoBalZRKDp9rb92g==, tarball: file:projects/identity-broker.tgz} name: '@rush-temp/identity-broker' version: 0.0.0 dependencies: @@ -19406,7 +19407,7 @@ packages: dev: false file:projects/identity-cache-persistence.tgz: - resolution: {integrity: sha512-LCwbkL8GhVO0eQEUVYw5NtzezkcIVPHnwXZZ/f0YWGuevw7+KpOVzw+ZptL8VOqaM1+DOFJNfBxemjv/sxx0BA==, tarball: file:projects/identity-cache-persistence.tgz} + resolution: {integrity: sha512-xjW/usWexAhmcVMN898Kbi+t7A50zceGD22B5femIIF2pIKyExrmUN78+73vvuRWgovG22UHZ5CZwQRm02+PvQ==, tarball: file:projects/identity-cache-persistence.tgz} name: '@rush-temp/identity-cache-persistence' version: 0.0.0 dependencies: @@ -19442,7 +19443,7 @@ packages: dev: false file:projects/identity-vscode.tgz: - resolution: {integrity: sha512-WCE5QHoZnOoqtCgxVpD5cYrQDumqgTNKpzUT/hXeLEkJ8Mu7NmDd8QnIWYd9J6MP0pwZDI2IKRVJRv+Wn6fl+A==, tarball: file:projects/identity-vscode.tgz} + resolution: {integrity: sha512-vnqh3FnIhswMRabiCjc7s1kUEaRMfrXE643pVnnfrap6XtXLobo/uocB9Rc1XBLwpCUMp4CrgRL93ssVCehxNQ==, tarball: file:projects/identity-vscode.tgz} name: '@rush-temp/identity-vscode' version: 0.0.0 dependencies: @@ -19477,7 +19478,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-eWwcHy7qVgJKYZylPZArxZ9mF4TxBqvuDUGf7/I/q/tBRofMWlSm5+epmkPB5EsFWmLE965r5SwyPapJh5lvrw==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-j1761zpFWorjbpu/tWmXQ8wDc6t1/9J0pguRlSl1ibFzo/G3in6FLnG1Cc/8UUcQfvEUbRU3tLf+M0WffpCWdA==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: @@ -19534,7 +19535,7 @@ packages: dev: false file:projects/iot-device-update.tgz: - resolution: {integrity: sha512-UFNINAFOToP7NJR8stMLUfmepJc8b8YXGZJy5z2ZJYf7Db/xKAvjYOcysmy8lIPB3SyjOWiemD3U3/v0r572og==, tarball: file:projects/iot-device-update.tgz} + resolution: {integrity: sha512-L6CoANIvkPHd8wxwZtE2GCnmcSnhfq76pfbSFKkRIQxdAovBcUfjGWEqLn+8eefB3FG02REvWxyCFi0KBkBBTA==, tarball: file:projects/iot-device-update.tgz} name: '@rush-temp/iot-device-update' version: 0.0.0 dependencies: @@ -19580,7 +19581,7 @@ packages: dev: false file:projects/iot-modelsrepository.tgz: - resolution: {integrity: sha512-gvMttKI/ZrYHvurbJpfqJcivpEXmmMTOGiLQhMW68m+j1LHsL+3IguNZSffPIox7lRNsDYnpIrLOZ10DbXV+/w==, tarball: file:projects/iot-modelsrepository.tgz} + resolution: {integrity: sha512-RpJ79+50X8ksqxlW0AWqk7c6zVguxpmmP4MhfNkuU44sRaJH96URi9ROItmGIpVRBFbpuuRUOae72ippUgzqew==, tarball: file:projects/iot-modelsrepository.tgz} name: '@rush-temp/iot-modelsrepository' version: 0.0.0 dependencies: @@ -19624,7 +19625,7 @@ packages: dev: false file:projects/keyvault-admin.tgz: - resolution: {integrity: sha512-7MJ5EAxk5BnbrztcD9YgCF89aLz3bUNFh1AbWvk5HR0exX5dZ32iKnJVY7wyc5bclBYGJayh+QQlhbPJN3Scyg==, tarball: file:projects/keyvault-admin.tgz} + resolution: {integrity: sha512-RLWOSxjyGjR5IK5Zn3K3qhTbssFq8TbHNqWNwm9Mk3SQsUR66+jhDk6lxN6A6lkfSI2p0ACVVIe9gZCGcYTNsg==, tarball: file:projects/keyvault-admin.tgz} name: '@rush-temp/keyvault-admin' version: 0.0.0 dependencies: @@ -19655,7 +19656,7 @@ packages: dev: false file:projects/keyvault-certificates.tgz: - resolution: {integrity: sha512-OYVRsqy7v/QmN1pxwJQ5FhKJsWMfzAUELoLvT7XudEVa9wOvBZs6bzkKmNjobcyHAmxYU8zjgpsaRv0IrU8Wfg==, tarball: file:projects/keyvault-certificates.tgz} + resolution: {integrity: sha512-gzE1si0y81RzmpykipQJd3J30EtyRdJafBQ8wL2EO5MmVOr2sGqyFTJiEOW2HivbwCtCn98DsADi2ikdNyyDxA==, tarball: file:projects/keyvault-certificates.tgz} name: '@rush-temp/keyvault-certificates' version: 0.0.0 dependencies: @@ -19700,7 +19701,7 @@ packages: dev: false file:projects/keyvault-common.tgz: - resolution: {integrity: sha512-3eTt0Qa30nw+eIjDezcF8kQ9jFhiFXqTZA6XBNiQAiHrBIeOX4xWXB3kpQ1Xbz2Pqq4G+UnXsc8h3td75Etdgw==, tarball: file:projects/keyvault-common.tgz} + resolution: {integrity: sha512-6/RGVMxWL5HA1fMuirrHr6Uppay8SRLhT6XUpKkX7keBA3efjjzpxMBoUweLcAx6wc5i1YzxcRkej8Yc0mp/yQ==, tarball: file:projects/keyvault-common.tgz} name: '@rush-temp/keyvault-common' version: 0.0.0 dependencies: @@ -19730,7 +19731,7 @@ packages: dev: false file:projects/keyvault-keys.tgz: - resolution: {integrity: sha512-tGzJ200FaETep8Y2lb4/bqtGwstjimWTnepRZwgjrHYFEsjWTfhRGhYKsATCKCKbf8C5NTuQTcNdbgkN8hTLKg==, tarball: file:projects/keyvault-keys.tgz} + resolution: {integrity: sha512-i0gI/mv+vaJvIboQd4AJ5bMYIpvzsSRRAP60/tu35ednO3qPh0ro5KXboNtYq2i2mMQB0tHGrOzT0Mm7CtrZiQ==, tarball: file:projects/keyvault-keys.tgz} name: '@rush-temp/keyvault-keys' version: 0.0.0 dependencies: @@ -19776,7 +19777,7 @@ packages: dev: false file:projects/keyvault-secrets.tgz: - resolution: {integrity: sha512-ceC2UCgZnkE+7/DscilyDhsx9ZVLk1jZR71J7kVXb/JIOQgkyHbQNFAYSQ2EdQRyrq4aYoeeSsKEaJT7k8qXdA==, tarball: file:projects/keyvault-secrets.tgz} + resolution: {integrity: sha512-PDO+E1zM3OC6ky8klGdxzc18kSgJon5yW616l0ZwUHEtCtrf+tpb4Spe1jO4+Wj5x9CRSPmkh0hk3dyT78sr8Q==, tarball: file:projects/keyvault-secrets.tgz} name: '@rush-temp/keyvault-secrets' version: 0.0.0 dependencies: @@ -19819,7 +19820,7 @@ packages: dev: false file:projects/load-testing.tgz: - resolution: {integrity: sha512-d8IluGAh4OKdvzXCJSFJmobjvON5nq3IOAfjkafs8Ef4SDTa3QLtA195glf1tVXkfZcJq20Ak5lQ7H2yZracBw==, tarball: file:projects/load-testing.tgz} + resolution: {integrity: sha512-9KppaB75cGaUL3m1zIWsNuS+d9Xu3ycBx1hlwOmKRXF4q4Eb1FwKd3rog2t8w3+/fJNClCK8zCMpIH+vmXki9Q==, tarball: file:projects/load-testing.tgz} name: '@rush-temp/load-testing' version: 0.0.0 dependencies: @@ -19865,7 +19866,7 @@ packages: dev: false file:projects/logger.tgz: - resolution: {integrity: sha512-jUkUA5MVUavt5VKFk1vFVZdC9Qo2YOFYXMcz8lJyUPn9xZNzJ2dIqNbrO15US44xUiLinfcx6W4qr+A7+9pcdA==, tarball: file:projects/logger.tgz} + resolution: {integrity: sha512-+9REBcc8JqvPZtrlasULq44Rf/SZCr0g9nSSc62oxWhgQPsk/YBYMbcsfim7y562Vno8uYTFfqAH3xEjznwgnA==, tarball: file:projects/logger.tgz} name: '@rush-temp/logger' version: 0.0.0 dependencies: @@ -19899,7 +19900,7 @@ packages: dev: false file:projects/maps-common.tgz: - resolution: {integrity: sha512-3GpElejNNohWM/YZB4HYYpZsbjPr3iXqG2qqlASff6ercwPgzyU/zjmFgZj31zrnOFPNj9l7z0aoxyHhoLJlpQ==, tarball: file:projects/maps-common.tgz} + resolution: {integrity: sha512-MshhAL16Di9s1phne1vgvSkvX9YI1UWTu80q2UYuUxgBHPnwtw5DwXHlGu+WnMKhGS3VbmOkwXanBPJx7AgDTQ==, tarball: file:projects/maps-common.tgz} name: '@rush-temp/maps-common' version: 0.0.0 dependencies: @@ -19917,7 +19918,7 @@ packages: dev: false file:projects/maps-geolocation.tgz: - resolution: {integrity: sha512-aSRlzsxpI3DVj260DBALkhBOduoCUT/qMHaTS9AJmFFftrdJ89IPdJOeIRO89WR7BG1SaKR2d3n0gQF54JvH/w==, tarball: file:projects/maps-geolocation.tgz} + resolution: {integrity: sha512-0xRLrvXCaJE17JNnFY1oUoejow+942QyefXiTjL/kvTmj4eYQ5HDCOtmOeZP4rSUXT/qadXX60Uzvdwmy+9ucg==, tarball: file:projects/maps-geolocation.tgz} name: '@rush-temp/maps-geolocation' version: 0.0.0 dependencies: @@ -19961,7 +19962,7 @@ packages: dev: false file:projects/maps-render.tgz: - resolution: {integrity: sha512-U65JVg+RhikkPqt810eFVXpZO7scNbuR81bS7dFjeqjqjd4tEUsU6argF1XOsWWQxNOHaUhUp/OGZ1by4Vgbcw==, tarball: file:projects/maps-render.tgz} + resolution: {integrity: sha512-Mcdw8CbEFcOY5bEc4EpeHsyqXXeNpO1qwyjHbe9mkK3mlUuXymZlzvUEuLGfjVsSDHP0iPqXTXsHRlp4/AuVCQ==, tarball: file:projects/maps-render.tgz} name: '@rush-temp/maps-render' version: 0.0.0 dependencies: @@ -20005,7 +20006,7 @@ packages: dev: false file:projects/maps-route.tgz: - resolution: {integrity: sha512-BoHJHYBKoMovRTG7o3iNC3pxZdk8W+inVFXa/PcdM3qygQuWNA92bv9vP+7aeF5UAkkp5f1OD+6PGor5U7SbCg==, tarball: file:projects/maps-route.tgz} + resolution: {integrity: sha512-/zpn44m8aiOTEBEbWXQMnP412K1ihf3w5mfQVfgb6iBJM7IncdDpvsbFQokItVG5AkA6rEgJsi47xF4//Ctoag==, tarball: file:projects/maps-route.tgz} name: '@rush-temp/maps-route' version: 0.0.0 dependencies: @@ -20049,7 +20050,7 @@ packages: dev: false file:projects/maps-search.tgz: - resolution: {integrity: sha512-YVkCCBVFwS4TRx32GjOuE3qGM3/GKNH64DNYI8l/nrYcNdrO1laeq2hb6uWpvchbgcK3dFE5Nq2/cVii5uc8gw==, tarball: file:projects/maps-search.tgz} + resolution: {integrity: sha512-B4YewDv3JmTWVIMpYJDHR/am1Cr6AP6qIs2IPDNBldh7eRq2NJVYEvGE9mhqKoVwlSmZbsI7mCdb+JGZ0cQzQA==, tarball: file:projects/maps-search.tgz} name: '@rush-temp/maps-search' version: 0.0.0 dependencies: @@ -20093,7 +20094,7 @@ packages: dev: false file:projects/mixed-reality-authentication.tgz: - resolution: {integrity: sha512-kyN9szevkPlknBySlT8Pgt46s4O0irEKZcUpNI6K2wU8SQ6oPCKMwSYqJgWB5OGgncPvEDc/F+wi8vH/PYCgmg==, tarball: file:projects/mixed-reality-authentication.tgz} + resolution: {integrity: sha512-YmEfvYGblBDCX3ShDK6pH5vpYeehwj8YFL82EIKHRC3yOCilxojdnXY6XlWoKlGnR8PmKPacTjyv8ZLbwzm4Sg==, tarball: file:projects/mixed-reality-authentication.tgz} name: '@rush-temp/mixed-reality-authentication' version: 0.0.0 dependencies: @@ -20135,7 +20136,7 @@ packages: dev: false file:projects/mixed-reality-remote-rendering.tgz: - resolution: {integrity: sha512-Lx5F3/Uhzb8W+K4uDjllDC+El5XrcN3pSZDhsQ+NYBgWmTihXkDm0uOgeIZi5VQMZLOEHNDgegMBZf25W3VJxw==, tarball: file:projects/mixed-reality-remote-rendering.tgz} + resolution: {integrity: sha512-bYue2z4X1o4zb+l9BKAAX0KItEqWIf0HIXwnNjbUB6/qEFpp/emif1nqJO3v5aytxdNQGbrCpKaAeNETsvWfcA==, tarball: file:projects/mixed-reality-remote-rendering.tgz} name: '@rush-temp/mixed-reality-remote-rendering' version: 0.0.0 dependencies: @@ -20182,7 +20183,7 @@ packages: dev: false file:projects/mock-hub.tgz: - resolution: {integrity: sha512-cF5biFHCBknMGeAoMtk9cec5IzeT3ABz8tle5SCZMjc1UFO8hOUeOpL26O/SAwfdz97VYr6NeOL6XWL/l/Ng+g==, tarball: file:projects/mock-hub.tgz} + resolution: {integrity: sha512-0iFt6iHLpfCmW64Hgw/dxsQJuhX5FWqOFbYNpztGMMZ5z/EYnJ+0blwPQA47vwp6HRJCs93XGCEo9/PL8RvgUQ==, tarball: file:projects/mock-hub.tgz} name: '@rush-temp/mock-hub' version: 0.0.0 dependencies: @@ -20202,7 +20203,7 @@ packages: dev: false file:projects/monitor-ingestion.tgz: - resolution: {integrity: sha512-dfdhur+86HxCJzb09f8aa7lRIZxjhCuZfv2/FA+dhVKsIp+KvZuQuGtbiezUd8Q6nQweFBGYS9hZbTysa5E0iA==, tarball: file:projects/monitor-ingestion.tgz} + resolution: {integrity: sha512-XTy7LjKs5BRxWuIZxdTaKpNkghCBuYKEdLuU9ax+9I/dc0XwTZ3Ia5pFYk9DYL6bKhK5u+VQIrC6+gD2NUqOyA==, tarball: file:projects/monitor-ingestion.tgz} name: '@rush-temp/monitor-ingestion' version: 0.0.0 dependencies: @@ -20250,7 +20251,7 @@ packages: dev: false file:projects/monitor-opentelemetry-exporter.tgz: - resolution: {integrity: sha512-kTOHl9kMbOSOskX+nYUM3Sb7Vk6EgewbgaXKqjz+Brir3IvHoWDSgb+qZM85SeHIjYxEhQI/36jd18HyM4oepg==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} + resolution: {integrity: sha512-i9hsI43Tay+ncKJXY+RE8JceeUyZWTf8y9OwHkQ2bMkXUhWubxymosdjVfffVEi5coO+ig7B5KGK+4EGjj4Ddw==, tarball: file:projects/monitor-opentelemetry-exporter.tgz} name: '@rush-temp/monitor-opentelemetry-exporter' version: 0.0.0 dependencies: @@ -20285,7 +20286,7 @@ packages: dev: false file:projects/monitor-opentelemetry.tgz: - resolution: {integrity: sha512-oY3JKxapMG5+aFPyq2/ae4IToa2aKOocXo2pcX0O/LBqLry3Hm6fzY302mbH8oW2LjDL7UX/82k5yxXHMXxPgQ==, tarball: file:projects/monitor-opentelemetry.tgz} + resolution: {integrity: sha512-CRGorpqmC8cGVfKJJAGjWtjMhxH/WRWsKnD8Eqg7QyRi80lJ86DIP95lQ+SCHss1dtSYOfe6lhHdMZ2Ug0Xzrw==, tarball: file:projects/monitor-opentelemetry.tgz} name: '@rush-temp/monitor-opentelemetry' version: 0.0.0 dependencies: @@ -20331,7 +20332,7 @@ packages: dev: false file:projects/monitor-query.tgz: - resolution: {integrity: sha512-APfUA0snPDgNqjL0lwKnltwvMRAk88dB212p8rG31+7RU11DlirWZhqEiRdm9yv/SAFl1hBOzFUFkzuyi6tKEQ==, tarball: file:projects/monitor-query.tgz} + resolution: {integrity: sha512-NNfdquPNUyR+6XKI1UpNBijLT7vkqkFXqCVbN6BwNBiKWNVBjVv9y8N9QmcB6fBI1z7vBKBobIaPAuO3mGZotw==, tarball: file:projects/monitor-query.tgz} name: '@rush-temp/monitor-query' version: 0.0.0 dependencies: @@ -20374,7 +20375,7 @@ packages: dev: false file:projects/notification-hubs.tgz: - resolution: {integrity: sha512-s/yAfCbzDTCZhbHVodYO0Vyrehxkpxk771NPRrphdJznZu8v7t6V5o+Bmxx/ys92RNf36oZf9eA+nT4SgdLjDQ==, tarball: file:projects/notification-hubs.tgz} + resolution: {integrity: sha512-wYVvhqm1c9pu0sVGbUmow/+Y1RVDeGgQPeSEXNbxXH5BBO4XS0NUD1rsS0sny/ZuiOyBmH584mTuYPitc27Qww==, tarball: file:projects/notification-hubs.tgz} name: '@rush-temp/notification-hubs' version: 0.0.0 dependencies: @@ -20415,7 +20416,7 @@ packages: dev: false file:projects/openai-1.tgz: - resolution: {integrity: sha512-nHl5TY8ZI+5uXiQGGDdh3YtcZWRLa365QOqeSypMKKywAkRcrhFnYE+UHqFGY7caOgans8Q+wZJU6OwvjS0rmg==, tarball: file:projects/openai-1.tgz} + resolution: {integrity: sha512-J+fEGzw/cTpp6pt2s4N3Hrq4O+aJZHiqfiH5zTtD9s9tHiHLvGcwurZPNaNrrqNtvyCHwgS5rVAJa85c5PX63Q==, tarball: file:projects/openai-1.tgz} name: '@rush-temp/openai-1' version: 0.0.0 dependencies: @@ -20459,7 +20460,7 @@ packages: dev: false file:projects/openai-assistants.tgz: - resolution: {integrity: sha512-+Al2BAe9J57+TktRmgFrEC7nr1RV2TdhPDA2qY3+/+7L3+y/KzhH1h8KoHL9SreoEtPM3B1iFni7iryatvuonw==, tarball: file:projects/openai-assistants.tgz} + resolution: {integrity: sha512-sAmQpau4Yt0j6ZWlakq60s7g0PJlloqpTh3opxH6LgYqH5ZMNQVHFUaoAHVVCEj4y7Al/hF68AfuyOYt8yX2LA==, tarball: file:projects/openai-assistants.tgz} name: '@rush-temp/openai-assistants' version: 0.0.0 dependencies: @@ -20501,7 +20502,7 @@ packages: dev: false file:projects/openai.tgz: - resolution: {integrity: sha512-obXb6vm/bNL9CLo3VIhpsCeY0v9qbzpa8/iCAGWGHLQCqiKrC38nOBVU86j6McQhLyTeviWOz04ax4b0w2Df8g==, tarball: file:projects/openai.tgz} + resolution: {integrity: sha512-8k0W5UZO4jYWW3R0sw4J8w/xFEovBBusdYQqIGUMlwGq7t869oE0XXOfahDsZIGDBACj32ci3maBGF8PN/MhUQ==, tarball: file:projects/openai.tgz} name: '@rush-temp/openai' version: 0.0.0 dependencies: @@ -20519,7 +20520,7 @@ packages: dev: false file:projects/opentelemetry-instrumentation-azure-sdk.tgz: - resolution: {integrity: sha512-My75scGbzqjp9IkJaEISCLmVKRPW2dc7a369c8s3+uFHMKIzqiz4BjITxqYlI2N7zZ1o+SAW4QV26zY7Tka3EA==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} + resolution: {integrity: sha512-un+vPAwYp1VAxQfyUB4EyC1FceIz943vk6fqY/00ICMtP27Ya0YMbcDF+2AQNwJko5usWdR+Lr75enxF1tQO+g==, tarball: file:projects/opentelemetry-instrumentation-azure-sdk.tgz} name: '@rush-temp/opentelemetry-instrumentation-azure-sdk' version: 0.0.0 dependencies: @@ -20563,7 +20564,7 @@ packages: dev: false file:projects/perf-ai-form-recognizer.tgz: - resolution: {integrity: sha512-nHlDtG65YHF/9vLOzaSVYQAl0uGyfB95ZLConBASNnarAdHdTJuzsJYMH3H6STz3z9UcN9rHw7DhXh4KZsi6kw==, tarball: file:projects/perf-ai-form-recognizer.tgz} + resolution: {integrity: sha512-jwvM/uBXz+A91uURcwEDNZj8aaDBn4bQbL/jKk89Kwfd0T9KbivN8gcuAV+cogmZXxukHgRhyPbV8Ha2guuSjw==, tarball: file:projects/perf-ai-form-recognizer.tgz} name: '@rush-temp/perf-ai-form-recognizer' version: 0.0.0 dependencies: @@ -20582,7 +20583,7 @@ packages: dev: false file:projects/perf-ai-language-text.tgz: - resolution: {integrity: sha512-h5bRfw9HxK0T8exTBPJ0hrJrldRzd4i38FAt8SwD54R8IEJIgZY4hOdMI7SjE+oUSae9ZTt8YIPZujU0TIdFUQ==, tarball: file:projects/perf-ai-language-text.tgz} + resolution: {integrity: sha512-zmMlXP481S2leaGbiTPTdoAgWZMmIDLzTjjPgiTqU0qfd9YHtIdaelmqBnwr9F0uRkaKYFR46r97FjSGbsQh3w==, tarball: file:projects/perf-ai-language-text.tgz} name: '@rush-temp/perf-ai-language-text' version: 0.0.0 dependencies: @@ -20601,7 +20602,7 @@ packages: dev: false file:projects/perf-ai-metrics-advisor.tgz: - resolution: {integrity: sha512-aRLifFK3T0HVAG5f/nS5lnGDJjtrkVIRYvdoFtDq14eoUFTYbKXVblms3mGhTAh2cCaZK4QoBa6R4IPhxO7tHg==, tarball: file:projects/perf-ai-metrics-advisor.tgz} + resolution: {integrity: sha512-1Qj2vbfJQ10Gkhk3ZAx7pWWzVzFHtPEqiQqWwiGfZxErxv8k/flqDznrr0v9L5KBIml+ygYdHMKhyNFjLjAL+A==, tarball: file:projects/perf-ai-metrics-advisor.tgz} name: '@rush-temp/perf-ai-metrics-advisor' version: 0.0.0 dependencies: @@ -20619,7 +20620,7 @@ packages: dev: false file:projects/perf-ai-text-analytics.tgz: - resolution: {integrity: sha512-87DiBf7cu6ukgc1f/3ZsG/JTCeJyIIQ8OaWui2YcKuPIiLPIUCdWztfytciNd49RNCLrnhyiR8UbGFAsLKcudA==, tarball: file:projects/perf-ai-text-analytics.tgz} + resolution: {integrity: sha512-OSuAsD6WyU5XHFVTOIm883IVdqON4sm7COUyxmxP2s/JGz5Nuo0p2jwyFgLl+CkAk7znEvuXA9tcg5wvEE0n5g==, tarball: file:projects/perf-ai-text-analytics.tgz} name: '@rush-temp/perf-ai-text-analytics' version: 0.0.0 dependencies: @@ -20638,7 +20639,7 @@ packages: dev: false file:projects/perf-app-configuration.tgz: - resolution: {integrity: sha512-4VBBoLiknqGY1Pf5W0b3DQXnhOPiTtwRn352YoZUqN0LtfSIl0On7t0o3bkT3wVKV9YOZHBjfKpB5jRqXJlufg==, tarball: file:projects/perf-app-configuration.tgz} + resolution: {integrity: sha512-McDuRdZ+MgkgonF+gWWqY2MR3Uu/ZXlzv46lA5/AM2onKI/n+DMyvDai26aDDHrhmgWJ8MG2NNuJXZ8uFOvrKg==, tarball: file:projects/perf-app-configuration.tgz} name: '@rush-temp/perf-app-configuration' version: 0.0.0 dependencies: @@ -20657,7 +20658,7 @@ packages: dev: false file:projects/perf-container-registry.tgz: - resolution: {integrity: sha512-lKrzqDt/jRSznA+hDQ/YMrYgsNq/WIqlCa0f4/ExOk9WPrFnOH6iVeY/cBCKyRa1lsYa7vUUqcDTZNAXM0f/qQ==, tarball: file:projects/perf-container-registry.tgz} + resolution: {integrity: sha512-UknYlNsrzb9/E4tBwf0OT5CZz1Czn1VRG/CbEKG+usukq0711J+rqfaCfQS2yrwPED1r3W3Su6odqBe+MHzPew==, tarball: file:projects/perf-container-registry.tgz} name: '@rush-temp/perf-container-registry' version: 0.0.0 dependencies: @@ -20675,7 +20676,7 @@ packages: dev: false file:projects/perf-core-rest-pipeline.tgz: - resolution: {integrity: sha512-1kp1CzvjTJooy5VARRN9YdUO5E9WJV4t8SvHxlnmrr4UPpT1j0gs0Qd0EK0CaQ9NVAlzXfZLHX+EuYhzkFi4bw==, tarball: file:projects/perf-core-rest-pipeline.tgz} + resolution: {integrity: sha512-d4G9rQMyMyIAfEwY9p+m6QCM9OTaEjS8/pvg89QnJRW56qqxRwI64iGfApGfQX55YXqdtLM+m4Q+a+dR8Uq/mA==, tarball: file:projects/perf-core-rest-pipeline.tgz} name: '@rush-temp/perf-core-rest-pipeline' version: 0.0.0 dependencies: @@ -20698,7 +20699,7 @@ packages: dev: false file:projects/perf-data-tables.tgz: - resolution: {integrity: sha512-0JtuW3D7cXwdLvx2QeViId9d5TJDN1yEEYBsd79DLVxpUJOkS7BsKRpYx55rz4YVeYgJwflSkz4lv+THB706Yw==, tarball: file:projects/perf-data-tables.tgz} + resolution: {integrity: sha512-+LFt85LhKL0KYqYvEJfmyUZbv3TX27CM45MC4EI0gnCwuLi23qCSEiQdDwGj4JDtMlCUwdyuWG3y7ijNYfOPmw==, tarball: file:projects/perf-data-tables.tgz} name: '@rush-temp/perf-data-tables' version: 0.0.0 dependencies: @@ -20716,7 +20717,7 @@ packages: dev: false file:projects/perf-event-hubs.tgz: - resolution: {integrity: sha512-8kFxLUSuT66qoYQwltzcSVmhTNhEQlj35vD0JHeXFcXY537RRLe9ie63OrlBgWU7kLPawf2VTjIINFRNectKzw==, tarball: file:projects/perf-event-hubs.tgz} + resolution: {integrity: sha512-D+ZExqVjiKJUcmHO44U8xr/kNkvSQed8CEsp6e66LJ4RWNEHVZud6Rsul8LKJe87ETfXepNHUTbWkBfS4waqLA==, tarball: file:projects/perf-event-hubs.tgz} name: '@rush-temp/perf-event-hubs' version: 0.0.0 dependencies: @@ -20737,7 +20738,7 @@ packages: dev: false file:projects/perf-eventgrid.tgz: - resolution: {integrity: sha512-/bxfs9aM9gkVTPEZcV8kkH9nulqltQe/9UhCc2YFV8qP8RLGBivNsaJzwmq/4nG+5XGx15CJ8oFDRtwuT746kw==, tarball: file:projects/perf-eventgrid.tgz} + resolution: {integrity: sha512-787Mjzr4zBib6gFgA+xA8VgA1TTgiipDgVQEZUd+oWDuPC6jFihrPfXng9ogHgR/CVt0h81BwJmsjQ2If7upWg==, tarball: file:projects/perf-eventgrid.tgz} name: '@rush-temp/perf-eventgrid' version: 0.0.0 dependencies: @@ -20755,7 +20756,7 @@ packages: dev: false file:projects/perf-identity.tgz: - resolution: {integrity: sha512-4kKWzWkL3zi2Fm6cp3kBwDEnex1v6SHXK0/5dfeBaQi1djJ4kYHo6GFs7WqLiLq3tNhMYysMdUm1po+N7QXuBQ==, tarball: file:projects/perf-identity.tgz} + resolution: {integrity: sha512-dHYs1Lha6y1+zLOYjV3Ja6AZukV+yf1Js1B0j72wgzEG33F6R7+EuJuUJf1elC/zNqfS/oFHYatfrB9RBEL/Gg==, tarball: file:projects/perf-identity.tgz} name: '@rush-temp/perf-identity' version: 0.0.0 dependencies: @@ -20775,7 +20776,7 @@ packages: dev: false file:projects/perf-keyvault-certificates.tgz: - resolution: {integrity: sha512-TkBrpgsbj2qtDnLPvQSyEjJ3Bd7ftehcJN2oiMGQLoP2nPMKh8h/ZA95KBtPSYjZ2fofHw7DIWQKvam0Q3XnZA==, tarball: file:projects/perf-keyvault-certificates.tgz} + resolution: {integrity: sha512-cabh08grEft+jxOhMZoXdbZfqdN/yGoCRniuXihWC1+Hq4PzOq22wQrvjXM3n5IR65BWMqd8sOw/bLBONnZ5Ig==, tarball: file:projects/perf-keyvault-certificates.tgz} name: '@rush-temp/perf-keyvault-certificates' version: 0.0.0 dependencies: @@ -20796,7 +20797,7 @@ packages: dev: false file:projects/perf-keyvault-keys.tgz: - resolution: {integrity: sha512-Q0ubdUt2FjQKN59273vG/T+Jngcx20FT8qy87CjcOuUYkWLdXC/AQ5DkbMCZMXfmjYHg2TD0BYZXlEfZtqksuw==, tarball: file:projects/perf-keyvault-keys.tgz} + resolution: {integrity: sha512-ALF0NZ5LHk6croBUbpAxJmjXHRbDQTXQNo53rwJTq9kQ7YMFtZ8ohtmsR4+D3GsTSVkpAy8HgJzh3zCAHuwqmg==, tarball: file:projects/perf-keyvault-keys.tgz} name: '@rush-temp/perf-keyvault-keys' version: 0.0.0 dependencies: @@ -20817,7 +20818,7 @@ packages: dev: false file:projects/perf-keyvault-secrets.tgz: - resolution: {integrity: sha512-8ka8qvilTUigrzElOGOAfOz13zfeJyaGrm6rY3hDFjy2R875w/e6twe1CTmyVgZMFf9hS1KVuljf/vCpNLzhSQ==, tarball: file:projects/perf-keyvault-secrets.tgz} + resolution: {integrity: sha512-ZFa2bHaE3iAI/Wz/4BpDvA34VhYUC2TYJ4jJmaYUFNfVWqdoCSsFjvhVWSFJeVwgBfPD76NraCmoeUvUTkcKmw==, tarball: file:projects/perf-keyvault-secrets.tgz} name: '@rush-temp/perf-keyvault-secrets' version: 0.0.0 dependencies: @@ -20838,7 +20839,7 @@ packages: dev: false file:projects/perf-monitor-ingestion.tgz: - resolution: {integrity: sha512-RXBrhJZ15i6xXfeTJiQsclwIaRDnQlaJkafTNQwofVeIo/GuMECIUG1+inwMV7Ybsj9INqrzhd8k4qppMagZPg==, tarball: file:projects/perf-monitor-ingestion.tgz} + resolution: {integrity: sha512-NGJiYRptN2G5Aa6j0/VCmlCTFRBtboUBFKm5RfYe0odqykbXSmSUlRAHZajR4wgUN1Zc7FsSezkLnWG8pePXKg==, tarball: file:projects/perf-monitor-ingestion.tgz} name: '@rush-temp/perf-monitor-ingestion' version: 0.0.0 dependencies: @@ -20857,7 +20858,7 @@ packages: dev: false file:projects/perf-monitor-opentelemetry.tgz: - resolution: {integrity: sha512-CuiiwICnnW5XusZrqq1Cme8qL8cgFMzpcWcdUMt2z7i2enKRuYurcb0R4I2yU6gIq7RAmT3/4ZrJ9tcuuvDZKQ==, tarball: file:projects/perf-monitor-opentelemetry.tgz} + resolution: {integrity: sha512-j7Ky/BPp40IYmh6SzJEe9X/aTt55W1vgfKDQpZLX2hKiAcetAUlk5jue0OPRzTOqmKz1dFQKAIgeHduTL9d1fA==, tarball: file:projects/perf-monitor-opentelemetry.tgz} name: '@rush-temp/perf-monitor-opentelemetry' version: 0.0.0 dependencies: @@ -20875,7 +20876,7 @@ packages: dev: false file:projects/perf-monitor-query.tgz: - resolution: {integrity: sha512-XxFW/3sYSD6EP8He4TK6kA/y7A+gmJ+clnkWvEEP8T8vOc0eFx8yLhTWutjHqKAftAV4EwXfR4QSQR9SMJ1E0A==, tarball: file:projects/perf-monitor-query.tgz} + resolution: {integrity: sha512-aCUoxgLoqo0l8QNC7iTzU70WDorCIA5GGZrLSJhA8NxGGVLfvSi4DeYwL0Zle/5uqbSWt6hUYA+rf4TmjWD/jg==, tarball: file:projects/perf-monitor-query.tgz} name: '@rush-temp/perf-monitor-query' version: 0.0.0 dependencies: @@ -20894,7 +20895,7 @@ packages: dev: false file:projects/perf-schema-registry-avro.tgz: - resolution: {integrity: sha512-jZlTTBK8TgRGSjDuWJn556aq32zaAiHB9D7dXQdGsMaYkybe6ekJCwl47L7RFAqyEC17TjYLpV7vy0a27C8z2Q==, tarball: file:projects/perf-schema-registry-avro.tgz} + resolution: {integrity: sha512-LQb4g3NZ6t2QvZU9ZKrWJLawDWAt+/o5TivCr080ynesRmFdkwjpIKfQ0/V7Ysz9bs28s5oA32OWOAk9rx+oVA==, tarball: file:projects/perf-schema-registry-avro.tgz} name: '@rush-temp/perf-schema-registry-avro' version: 0.0.0 dependencies: @@ -20913,7 +20914,7 @@ packages: dev: false file:projects/perf-search-documents.tgz: - resolution: {integrity: sha512-5sk3UwtcDYdV0qXL8+QfzH7+KTyQGDKD5klsIqVTbOf19jO6e7t58aW/uJZlk/Fj5Nw7Zwe6jDcOQrmnOXNjrQ==, tarball: file:projects/perf-search-documents.tgz} + resolution: {integrity: sha512-/wwYog/xdKyz/CrY2SRiFjkOfTqN2lJ3q1JWXt6ZZRlEzSKNVpZCY3PKLCxQDEQ2qEChU5sBl5Yn7uBSu8XZmQ==, tarball: file:projects/perf-search-documents.tgz} name: '@rush-temp/perf-search-documents' version: 0.0.0 dependencies: @@ -20932,7 +20933,7 @@ packages: dev: false file:projects/perf-service-bus.tgz: - resolution: {integrity: sha512-x/dXLp6qDtd0NCXLGGi1g8zNYU5mBegh4EP6JAqOZPKYN5DkO4BVrBbr2cP/6nnqXJc3w4lNCNWEjSl6Lk45zA==, tarball: file:projects/perf-service-bus.tgz} + resolution: {integrity: sha512-Y9OPWqLFNZ7nAuhgpm8AgSbr9mHAgRks7m57FDhbrbGYKSNC0Cluw0TISH2Lq7IflZ1a7PkTf+jGSxzb7ZQ8kg==, tarball: file:projects/perf-service-bus.tgz} name: '@rush-temp/perf-service-bus' version: 0.0.0 dependencies: @@ -20952,7 +20953,7 @@ packages: dev: false file:projects/perf-storage-blob.tgz: - resolution: {integrity: sha512-I75PQWgXOw4kRwD4WNMOlc644NER4SPKpyk0l3GE5UW9C3fYpRL4zLkmgyDILHiTaLtHH9P9x8V3kLMte7aB7w==, tarball: file:projects/perf-storage-blob.tgz} + resolution: {integrity: sha512-P+LlljVMsRTiuNOETQudyNNf8IKC9+dIMp7DzrCY6Ivg6Lqnvdvr7Fs3tyON7p/bo78dzH9S+4JI4klArw6txA==, tarball: file:projects/perf-storage-blob.tgz} name: '@rush-temp/perf-storage-blob' version: 0.0.0 dependencies: @@ -20970,7 +20971,7 @@ packages: dev: false file:projects/perf-storage-file-datalake.tgz: - resolution: {integrity: sha512-UDg47biWhgKXxKxxli0Pjbhm5omIkfJs754EizXDBTRtS00oiMIiLGnZe3wd6BeSbPT7ZKvRichK7WrFs0U2VA==, tarball: file:projects/perf-storage-file-datalake.tgz} + resolution: {integrity: sha512-TUiBoGVM83x0pglCFNA/EyVsCZwrrMJTg5H6Ykx7/8oYhX6JDoT9A1YM1YQHytz5IhdThB4HNuLm3DbQRADhQw==, tarball: file:projects/perf-storage-file-datalake.tgz} name: '@rush-temp/perf-storage-file-datalake' version: 0.0.0 dependencies: @@ -20990,7 +20991,7 @@ packages: dev: false file:projects/perf-storage-file-share.tgz: - resolution: {integrity: sha512-FtcpUKv/bZdTp691/xaBDmi4j/jINmE3PBmqMqPuFjlX85WPapkaM5QGabvSZPzDhOV0cW/1M2V0N4GTTXnz+w==, tarball: file:projects/perf-storage-file-share.tgz} + resolution: {integrity: sha512-GRHAAh7r9j3+rjt1IkqzegBHLSo2hI/OZqcCHZvw78r1ff1TlwpH51DkGafS1DiMV57gwygapbK7AlOn/sbmQQ==, tarball: file:projects/perf-storage-file-share.tgz} name: '@rush-temp/perf-storage-file-share' version: 0.0.0 dependencies: @@ -21010,7 +21011,7 @@ packages: dev: false file:projects/perf-template.tgz: - resolution: {integrity: sha512-G2YxZvjCVJOdkhd+Kpkzac+ixyDc3t5zsxgYRjqLMYoVjSogzp+w8guG+RlVJfxGMkQyaSXo0z29zmgTYvb6Hg==, tarball: file:projects/perf-template.tgz} + resolution: {integrity: sha512-QECzXzK8cPMGodFUP38hT9EX5C8jPKrGyc7A+qtGd/4pj+3tdapDoBkLwI/i9e7QRwzSa+tEjZoynwNDYWPV2g==, tarball: file:projects/perf-template.tgz} name: '@rush-temp/perf-template' version: 0.0.0 dependencies: @@ -21030,7 +21031,7 @@ packages: dev: false file:projects/purview-administration.tgz: - resolution: {integrity: sha512-huaMHk3sAyDpT9oL5gA1eVSz3VlmUiWALFdjQeNnFwMPnA3sMi9b9Py+2u+cMMKOR61cdoFQbqt37oU3lLNMZQ==, tarball: file:projects/purview-administration.tgz} + resolution: {integrity: sha512-Gi/RDg2fXA+2d06Uy7wYhhrp0z81BlrzuiREg0z//DNGVd8qE+1kMwdpTTOcnyiz78Ko52afaBUDOpkNS0vssg==, tarball: file:projects/purview-administration.tgz} name: '@rush-temp/purview-administration' version: 0.0.0 dependencies: @@ -21072,7 +21073,7 @@ packages: dev: false file:projects/purview-catalog.tgz: - resolution: {integrity: sha512-xPjDgsD/6hQS8hrfIkUct9AO/g1YoSG6Hig6KoR3n2/5Z36NR7H7iCJx4uWQnvmwdkdHL4Jo1L2tlblGqkBbyg==, tarball: file:projects/purview-catalog.tgz} + resolution: {integrity: sha512-V9Ewq7Pzce0ceIH/xh81nWVIW9380HAebpPjJ4slzR/K1lRwKIkzaoa+V2zjVAKadlyj6xx1lTNSrFV+0c4FAA==, tarball: file:projects/purview-catalog.tgz} name: '@rush-temp/purview-catalog' version: 0.0.0 dependencies: @@ -21114,7 +21115,7 @@ packages: dev: false file:projects/purview-datamap.tgz: - resolution: {integrity: sha512-KYZ07b+xDgBmx68jS0Hr0g8M4EJvUCTY1qxA9PanWfe5bPQ2iNlgU3T8SUQKbGOikWijreqebroJNvEjw71GQA==, tarball: file:projects/purview-datamap.tgz} + resolution: {integrity: sha512-jMEVqxCSt9ZMsdYVFwcfhwLLa8sZdkZBEGbrKUi0UqTsmXnp8frn/pkdTrn1qQAMt+zhqbBGs+bnmZR+RoGD5A==, tarball: file:projects/purview-datamap.tgz} name: '@rush-temp/purview-datamap' version: 0.0.0 dependencies: @@ -21157,7 +21158,7 @@ packages: dev: false file:projects/purview-scanning.tgz: - resolution: {integrity: sha512-+i9Wn3lF42PuCG9SAFbJAqaUxEne8/0PNj0lj3gwcIzSHoykd38BWeXcsggHWc/sVGp3CwDLC5y2THpsc1hEFg==, tarball: file:projects/purview-scanning.tgz} + resolution: {integrity: sha512-rvbG0MGCQjGXE+djxJRab7Cz3i8C43p5n6Vnx3KGqA2EqMasoFPzWfcb75aYY08b0ZRu/WKcfPpJDEztOnc6Nw==, tarball: file:projects/purview-scanning.tgz} name: '@rush-temp/purview-scanning' version: 0.0.0 dependencies: @@ -21199,7 +21200,7 @@ packages: dev: false file:projects/purview-sharing.tgz: - resolution: {integrity: sha512-jGmmE0vpjwO4bm/Z880xzUdesP9iWlKCmpRecy2/j0ZYAR2zA0Fj94xjUre3wVOIdO10pOFE+hzt2ChtiJPWeQ==, tarball: file:projects/purview-sharing.tgz} + resolution: {integrity: sha512-lc9YhGhZxgTmkzgVi52tC44tHalgQHm33H1Z+yyq54ajqxP7JzFMYv68y8KZ8ce0RrcrfNeGFxkLFGFHis3vlw==, tarball: file:projects/purview-sharing.tgz} name: '@rush-temp/purview-sharing' version: 0.0.0 dependencies: @@ -21243,7 +21244,7 @@ packages: dev: false file:projects/purview-workflow.tgz: - resolution: {integrity: sha512-We2FWj+dxhV+6c/q5d+1BXwZJgoAmKlRg1pCvLx6khC6Ij9eFlhDNPJI1gFo+3U6F/17tlpA9iaHfBQvyIUirg==, tarball: file:projects/purview-workflow.tgz} + resolution: {integrity: sha512-Sv3iT2nyU6/cqFlO+PSN1IEq4/EWOCbxVQg52HvEsvw6cgt+Cw3oo4f2KvIMvqzuOaTWWfHIHwmLOt7HWGr4rQ==, tarball: file:projects/purview-workflow.tgz} name: '@rush-temp/purview-workflow' version: 0.0.0 dependencies: @@ -21286,7 +21287,7 @@ packages: dev: false file:projects/quantum-jobs.tgz: - resolution: {integrity: sha512-ynaCHfJXwZY6tCS8I0jED9ghd+ku1+w2PC81cB1Za0+nXaS+PXRBLwH1XSAoxU0l53NZTlfRPpUTTI0EUi2psQ==, tarball: file:projects/quantum-jobs.tgz} + resolution: {integrity: sha512-I1oC934zXF04xfBjYHygauOm9kupQAqX4km7iJdpEsq9PV0RED69nevGTlLCV/AJJ3mYemEtjW6ctLma8KsTxw==, tarball: file:projects/quantum-jobs.tgz} name: '@rush-temp/quantum-jobs' version: 0.0.0 dependencies: @@ -21331,7 +21332,7 @@ packages: dev: false file:projects/schema-registry-avro.tgz: - resolution: {integrity: sha512-0LhM3eb7FB5sPpxqG/xBYw2f7XjztZsPsMgsdGGfcnLc+0HIK1s48tKAER42W3T3qOombQZisYmpALT+MrroIA==, tarball: file:projects/schema-registry-avro.tgz} + resolution: {integrity: sha512-2zL4OfTlTEP9f3WbYgvAYRFaQXM1/1/W+/1s0QB4ZdL5ep9Vooq/9e9PutOozOaR13pY+nimzrZVZ8j3WjhFaQ==, tarball: file:projects/schema-registry-avro.tgz} name: '@rush-temp/schema-registry-avro' version: 0.0.0 dependencies: @@ -21382,7 +21383,7 @@ packages: dev: false file:projects/schema-registry-json.tgz: - resolution: {integrity: sha512-doA+TR88iajbBMTcYpjZDeJ10xu0OHHllZv4Wi83kkVQT8aicmqsKWy7NfwAjybH0WxDbgCUv6Bt0VX1MmV9cQ==, tarball: file:projects/schema-registry-json.tgz} + resolution: {integrity: sha512-oS74NCdlVMU/uK7EF7/QQlMyS2OCOCcRmHPxewP/4rPtk3dTQsXYnlC0MkbKF/+cT3kXbGFMJ4DYL7VN7siNGQ==, tarball: file:projects/schema-registry-json.tgz} name: '@rush-temp/schema-registry-json' version: 0.0.0 dependencies: @@ -21423,7 +21424,7 @@ packages: dev: false file:projects/schema-registry.tgz: - resolution: {integrity: sha512-K0Xo2o3mRwcUW+F8BjJjmI+782xykmK46jVth0QaXKaCmvbfzGRk60Wt0tV01ccE0Zvc8IlKE0y7UWdaZUIoAg==, tarball: file:projects/schema-registry.tgz} + resolution: {integrity: sha512-0TKcx+XJFiwBwOexpulOoYYFnhZGBfK8UL+gP9BJnNuXRXWMzqlPcsEEV2lsE9klxd/6gHa8+fNAQDzgZZ4H8Q==, tarball: file:projects/schema-registry.tgz} name: '@rush-temp/schema-registry' version: 0.0.0 dependencies: @@ -21462,7 +21463,7 @@ packages: dev: false file:projects/search-documents.tgz: - resolution: {integrity: sha512-NCqC4aPSl3n2IZHruv3oxyg2tSowjrXfaXr61yUTCUVaiLVmmSGvQcu0N6nOlSrulyNFkGGJli9Kvs658DSv3g==, tarball: file:projects/search-documents.tgz} + resolution: {integrity: sha512-oXJ+lqpnfSItHqLpJNL8pT9qHhjxVdqnnT9swRT0qs8+53YZods4UqGzcS1vK4UPrXAD2OkvfQXFZbj4Hg1SVw==, tarball: file:projects/search-documents.tgz} name: '@rush-temp/search-documents' version: 0.0.0 dependencies: @@ -21507,7 +21508,7 @@ packages: dev: false file:projects/service-bus.tgz: - resolution: {integrity: sha512-reS727hnGbcKISyYBRXqHiSZxtW/W+6K4uTH3qzw1RjYvLLLPTApb0uR3dNWVZxScZYnK3JrNJVGgbph7/+CiA==, tarball: file:projects/service-bus.tgz} + resolution: {integrity: sha512-q+lVWs4NbjEftlyi7x7dYXNMo0s8h9hgwPaiMQlk2DynzyeZULMeJe6AA88CvCm3Xe+WO2xUUzMUqGCQdkk1Ng==, tarball: file:projects/service-bus.tgz} name: '@rush-temp/service-bus' version: 0.0.0 dependencies: @@ -21569,7 +21570,7 @@ packages: dev: false file:projects/storage-blob-changefeed.tgz: - resolution: {integrity: sha512-wnWbrl+GSHtXZeB/gqEJhk3dcAYO2hXNIqTFDB4OLNxQv7l2Jyt5YXL6TAcG/R3gs7Kxn4tKrI3k8Yn5rt2pyQ==, tarball: file:projects/storage-blob-changefeed.tgz} + resolution: {integrity: sha512-qcOjqJVfS8HR7rF6r0ThY3Ob7NyFvg/U/9jvDf0DFNgjFAf4VG3CzduflZWPYtNAN+6a7EMyUSZM1HWGgwOiIQ==, tarball: file:projects/storage-blob-changefeed.tgz} name: '@rush-temp/storage-blob-changefeed' version: 0.0.0 dependencies: @@ -21619,7 +21620,7 @@ packages: dev: false file:projects/storage-blob.tgz: - resolution: {integrity: sha512-UbHNdtinQ+ZRDEeVK5218SsLVV6CCmraXC8wJE/XnXArgWc97f+9u2r4iLcm/qjYLy32xQYFWcIF1AmpJrY/Gw==, tarball: file:projects/storage-blob.tgz} + resolution: {integrity: sha512-AmvpINVhtD00TjMEeA7RAXuBcrmysnNYASLFmvrRJAC87HO1cngsYC0bUybR99vUJC5APEgE+d/NLYieLqOYGA==, tarball: file:projects/storage-blob.tgz} name: '@rush-temp/storage-blob' version: 0.0.0 dependencies: @@ -21666,7 +21667,7 @@ packages: dev: false file:projects/storage-file-datalake.tgz: - resolution: {integrity: sha512-yBtQEOX13UBeIiM5f4+xHS77YgxEaI1RHCvzV+nWKYN4XVDrvtv3yTjK38tZ0P4kZX2mktqypxRi9dAo0VT9cQ==, tarball: file:projects/storage-file-datalake.tgz} + resolution: {integrity: sha512-zpxRN6m+5hZFV/muh/zXAa5G9hQeWHny3j4A3ahxhqvWEY+i4rHwo4uqHQUGftAhEnNiZsSBg0YpYTr3c2ncZg==, tarball: file:projects/storage-file-datalake.tgz} name: '@rush-temp/storage-file-datalake' version: 0.0.0 dependencies: @@ -21717,7 +21718,7 @@ packages: dev: false file:projects/storage-file-share.tgz: - resolution: {integrity: sha512-GdYbPm9Ac4ZNB3MLrVY6t6OGRRdJ3k50yFm7jXroBhBEnkwM0DoNuI7ZPDIQs9U5L0z/VgbrjrUjS4MC0yhY+Q==, tarball: file:projects/storage-file-share.tgz} + resolution: {integrity: sha512-Qvu7cCuyHzfqt7R6MoYuuUDB0EWwJgHSQdPEW86UtJDXwkbOV9vhgzzKT55QGgKXiwed1hAQqCBN07N3v/eZyQ==, tarball: file:projects/storage-file-share.tgz} name: '@rush-temp/storage-file-share' version: 0.0.0 dependencies: @@ -21766,7 +21767,7 @@ packages: dev: false file:projects/storage-internal-avro.tgz: - resolution: {integrity: sha512-CwelXTLp6cMdIXH1QwW5O5Z8MK7iKVTLJ3BlBIfc9l/rwDv8T8Uq4mGo5AUV7f+mo4Q5XZnD9YAVY3n13ELVEA==, tarball: file:projects/storage-internal-avro.tgz} + resolution: {integrity: sha512-/4uvdV8knvoUXWVylxyI2TUGPxYGCLFek8Yh5idIxC2WeJDAdzeTXEcwFcMobMA41J2iBwuVhpwIty8fSMJd/Q==, tarball: file:projects/storage-internal-avro.tgz} name: '@rush-temp/storage-internal-avro' version: 0.0.0 dependencies: @@ -21811,7 +21812,7 @@ packages: dev: false file:projects/storage-queue.tgz: - resolution: {integrity: sha512-OzmxUl/PYHOS8yGyKUtF3xBu0bjmiS7sP8itZKcF9BrXcy/gUBV13jcThjQJPVdOqosige8PfFAlo+2weP2MMA==, tarball: file:projects/storage-queue.tgz} + resolution: {integrity: sha512-5JIX+fXKCwPiySyzoyCJtGPfu4BV6Qxe5u5kbcYb9LkAsJm1pO/g8sEQ+ArQRZdQ4TDVVUGMz3tRO3FdLbpZrw==, tarball: file:projects/storage-queue.tgz} name: '@rush-temp/storage-queue' version: 0.0.0 dependencies: @@ -21857,7 +21858,7 @@ packages: dev: false file:projects/synapse-access-control-1.tgz: - resolution: {integrity: sha512-y9Gw6NsQ6LPFuwFO8oGSrDAAHqS82tjtJq1Dm6qJn22lpz+QiVdSAlv/3VO0SvaNZ9I5LyewwzlwIhkdPM6eJA==, tarball: file:projects/synapse-access-control-1.tgz} + resolution: {integrity: sha512-tV8DqnE6Lr8GpmVMbG7GZ3EKN7/jbnwNOvdBGFkYMr/AdF7nLhfUkk5+c67F6vpAV2hcccvBZxTcowLEu9MBWA==, tarball: file:projects/synapse-access-control-1.tgz} name: '@rush-temp/synapse-access-control-1' version: 0.0.0 dependencies: @@ -21901,7 +21902,7 @@ packages: dev: false file:projects/synapse-access-control.tgz: - resolution: {integrity: sha512-NX2prF/kGaSLwSrS12RsS5hdh4ZqF3wIiEW9cB3dQosMGROwwzAsxWqgqzOEy+QhhWX+++Fhyx4vql29mZbPPQ==, tarball: file:projects/synapse-access-control.tgz} + resolution: {integrity: sha512-p7lmls5XlMEAkMAanyI4OwaoRXFzQVnHBd5SvPuXyDOiJdv5wEszCuMaLl6HfjpKXAey0QMsyKTxR57K4ttpHA==, tarball: file:projects/synapse-access-control.tgz} name: '@rush-temp/synapse-access-control' version: 0.0.0 dependencies: @@ -21947,7 +21948,7 @@ packages: dev: false file:projects/synapse-artifacts.tgz: - resolution: {integrity: sha512-Ga3erk3RtyoBrEhQzQ2z1/5Sp/8u3KPrPdz2KBE6lshhWhw/5RAUH9HQUgqxlPL6y6s/6Sb3BNFzWO/3C2aVEA==, tarball: file:projects/synapse-artifacts.tgz} + resolution: {integrity: sha512-kl1NP0Aly8KJktFBvUrc+XJMgsE9Ude92tavMC2sPKhftN9TTuq3zwHIGEu9GxAItaFsVIPOyBEqaVwZn+Gq7g==, tarball: file:projects/synapse-artifacts.tgz} name: '@rush-temp/synapse-artifacts' version: 0.0.0 dependencies: @@ -21995,7 +21996,7 @@ packages: dev: false file:projects/synapse-managed-private-endpoints.tgz: - resolution: {integrity: sha512-tSqVosJDzzok10XlJ2YMtVAzc0Hk/wPnRZF989eU9/lAp7QEt2oDUc/NvICRe7XhUPFMcBbLhMFSSNvPtdPdBQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} + resolution: {integrity: sha512-4c7I4Sx9Qbs7tqcIquGfrBHxglzd7Aay4YlD6lf3nNOoKyqgc8Ssi9GMMCmRP17w6LZnB+P3s3mKDi/WGkqKjQ==, tarball: file:projects/synapse-managed-private-endpoints.tgz} name: '@rush-temp/synapse-managed-private-endpoints' version: 0.0.0 dependencies: @@ -22036,7 +22037,7 @@ packages: dev: false file:projects/synapse-monitoring.tgz: - resolution: {integrity: sha512-KAaSp+MzUlijvMRwj0RUyIpxTNmj9JRN9WtwHV+iBuFhsYFVYdlqJ8pyf/ix2LrHguwlTJ9vaN8vqjdV6k8rfQ==, tarball: file:projects/synapse-monitoring.tgz} + resolution: {integrity: sha512-U33UZ/EkLPoVj/MhhtBw5FeS4Z0hc4BMcQjVjSPvQj75cCgpaU0U/krZ7GTiL/Dphyd/JETYpanzw71jNZnYdw==, tarball: file:projects/synapse-monitoring.tgz} name: '@rush-temp/synapse-monitoring' version: 0.0.0 dependencies: @@ -22072,7 +22073,7 @@ packages: dev: false file:projects/synapse-spark.tgz: - resolution: {integrity: sha512-xHceNRrF53mpk2em5CqubyIkhKWRCywf/QFYMpXlre2L541PJiU4ck/GqVP6Ht3rpm8hXWYq85Zj5B+8Q1DYrQ==, tarball: file:projects/synapse-spark.tgz} + resolution: {integrity: sha512-yJd96STpLIo+CTk3UTbQaSd8ldzbNsKxsiXDGFRnmkpVY0SdofAgL8ZHmRQvKR9QP/12qkM/nwtZrXheAgUP3A==, tarball: file:projects/synapse-spark.tgz} name: '@rush-temp/synapse-spark' version: 0.0.0 dependencies: @@ -22113,7 +22114,7 @@ packages: dev: false file:projects/template-dpg.tgz: - resolution: {integrity: sha512-VJ2po8I4sUujbA0IQ4STNJoMJH+NjwDnzPPg4iK3xcLESJ1vdd2j47f3Ef0E4BlC5ItOyMgD4X0U2IDsXvrjEQ==, tarball: file:projects/template-dpg.tgz} + resolution: {integrity: sha512-cWUJ54rsjIpb9PsE7hkAy4y7fkODWuNSaGjyKtqJNz4bv5GQm2CDUpuVmTMpjkiO/Eo0vhyglw8sqbG+oZGgWg==, tarball: file:projects/template-dpg.tgz} name: '@rush-temp/template-dpg' version: 0.0.0 dependencies: @@ -22155,7 +22156,7 @@ packages: dev: false file:projects/template.tgz: - resolution: {integrity: sha512-d7ntz0EHL6il93Owu/txDMufxBB+zTdeou55PJkSAiSNNjyjjgUuGpbxjV4sOx2UiLKjp+2j1z3PGFNYBaE67w==, tarball: file:projects/template.tgz} + resolution: {integrity: sha512-GhtVBNJOhG2NoJLtD8125wOgW3po9rtn2P4uFJ/OifLK8Yt/Ihh+ObgH5zWxN1OSlHg7xiUHpmxR38dXH8QcWw==, tarball: file:projects/template.tgz} name: '@rush-temp/template' version: 0.0.0 dependencies: @@ -22198,7 +22199,7 @@ packages: dev: false file:projects/test-credential.tgz: - resolution: {integrity: sha512-gTRmQq4EwHS+RQz40ZRg+k4l1Uw29zdRiWHTHJsPUGr3zLr9sRMDHpgvHNYNtNvEj/cuk1PecGkctr4Ks0XGRw==, tarball: file:projects/test-credential.tgz} + resolution: {integrity: sha512-DLgL6tmgleuMNJiUw3y0sl3yjzFDRCZUUqU85OiJzzicRNdCjOhx2m85EJ0MassMup+sxWsOumbeV1hdE1WHUA==, tarball: file:projects/test-credential.tgz} name: '@rush-temp/test-credential' version: 0.0.0 dependencies: @@ -22216,7 +22217,7 @@ packages: dev: false file:projects/test-recorder.tgz: - resolution: {integrity: sha512-j/q/5kY0P7F7LOmefZPLX9jMJeGs3uiOxMcEtzjLbzAPsoOxr/JTQ+o1iB3BO03WfrwJ4542op1G9RPrZvnMQg==, tarball: file:projects/test-recorder.tgz} + resolution: {integrity: sha512-mqd8Rhk6qP95pjgMASERASgaF6QjSBTnupvTA/3ZYA95cigg2OuobQeFdTL+t8MB8T3OWE0YSi2CAqeZYjOSaA==, tarball: file:projects/test-recorder.tgz} name: '@rush-temp/test-recorder' version: 0.0.0 dependencies: @@ -22256,7 +22257,7 @@ packages: dev: false file:projects/test-utils-perf.tgz: - resolution: {integrity: sha512-WFP5ojdxf3UTanWWi0m66tu0AE+0RSv2q3EQSSKtDpheawdXYirXWwjR/Uf4HSLgFa2N96L4cxs5pA9BS2KO3A==, tarball: file:projects/test-utils-perf.tgz} + resolution: {integrity: sha512-R/2OafMDrnpOYos4yW4RHmQAZQyxbG0+uNJQYA9jjnbnKuZTInmaAZoU73FOOrjCZBfX7TAYn/tsUBQVS3BL4A==, tarball: file:projects/test-utils-perf.tgz} name: '@rush-temp/test-utils-perf' version: 0.0.0 dependencies: @@ -22284,7 +22285,7 @@ packages: dev: false file:projects/test-utils.tgz: - resolution: {integrity: sha512-MihJGeJOvpzoOAnTPM3n3aK/NaAMMCk0mXeRigN66YPAtoX7p24DaZuThDcPrAua/uVoClSZHvloJ0NgtroLpQ==, tarball: file:projects/test-utils.tgz} + resolution: {integrity: sha512-DwBo66ieqQPqfjI3z2waj0OO8do548CVP+PZAICdC5w/Fq8ZOz6dMh09PWYXkpZCvXaFDtl0aaYtAwDmtMAcSw==, tarball: file:projects/test-utils.tgz} name: '@rush-temp/test-utils' version: 0.0.0 dependencies: @@ -22320,7 +22321,7 @@ packages: dev: false file:projects/ts-http-runtime.tgz: - resolution: {integrity: sha512-HPx4nELna/MO9u/GH64GLsaBqwbjM3jJM1lba5Om02nXUwp2JdAwbWS2pt6WPHipxjNhwdqEguzXr85waTIQEQ==, tarball: file:projects/ts-http-runtime.tgz} + resolution: {integrity: sha512-HyGi6Yahjy4aNreOcQN4NWv7LGcax0E/7Rpg+HuM3U022EdzNwaNQ3szWW0F/RMNw8Rph1gDvG41R0SsyELwuQ==, tarball: file:projects/ts-http-runtime.tgz} name: '@rush-temp/ts-http-runtime' version: 0.0.0 dependencies: @@ -22356,7 +22357,7 @@ packages: dev: false file:projects/vite-plugin-browser-test-map.tgz: - resolution: {integrity: sha512-oYyxWJs0yiBuHRK1euUkqJ2WM0LVn+fgnhkQrnjRmvu1kp4+rbmDA3E5UmxKBzxgdFs29chO8Fx/0YipGFMQkA==, tarball: file:projects/vite-plugin-browser-test-map.tgz} + resolution: {integrity: sha512-8Jg44N2Xy3VsZaSgcBDkWDjjpT8NcU+0TXvb3PCravbYHdMtI8K/XpI6fkpZnisjjl6dEE2MCUX6ecPAoFvvnQ==, tarball: file:projects/vite-plugin-browser-test-map.tgz} name: '@rush-temp/vite-plugin-browser-test-map' version: 0.0.0 dependencies: @@ -22371,7 +22372,7 @@ packages: dev: false file:projects/web-pubsub-client-protobuf.tgz: - resolution: {integrity: sha512-uvpFPo6XIzyHKic6DRBTc//6R6m8n7mhi3CoYLnzEpQMJaiXsEtxXOREBRSdgm+1fz/OaYw1i7BDr9puGy0fAA==, tarball: file:projects/web-pubsub-client-protobuf.tgz} + resolution: {integrity: sha512-tW709YZSIRFko8C3hbjhQqgOO/Md5hbJRIxsbauRr9vut9fD4r5AmPP4YrGP7qcyc4OL+zZHzS9V9cVfXzmDDA==, tarball: file:projects/web-pubsub-client-protobuf.tgz} name: '@rush-temp/web-pubsub-client-protobuf' version: 0.0.0 dependencies: @@ -22432,7 +22433,7 @@ packages: dev: false file:projects/web-pubsub-client.tgz: - resolution: {integrity: sha512-c2g3ZI0rWjlkBSH8zaqdqVuxE6p7TU0UlJk1NVn6bOgOgIYXwIrxTRMmmDFMTyoappHgeGLwzusF6lX3eGhXQQ==, tarball: file:projects/web-pubsub-client.tgz} + resolution: {integrity: sha512-XoXsTwBU/quZBvcXcaXviSu92SHndVE8H5SmpPL8MhpjinqmSsx6p1Hi+TK+eyxyP1zUZhS3YYIvKdk38Il3BA==, tarball: file:projects/web-pubsub-client.tgz} name: '@rush-temp/web-pubsub-client' version: 0.0.0 dependencies: @@ -22488,7 +22489,7 @@ packages: dev: false file:projects/web-pubsub-express.tgz: - resolution: {integrity: sha512-ob7yKXEnCeb+cRYORSYN/N9VeHU+xA9eEppxRdkNTqYFGlQCkA3DrLvqwmYvQYYqvGuCQ5uhfCLMAXl/LBrd0Q==, tarball: file:projects/web-pubsub-express.tgz} + resolution: {integrity: sha512-WPtvAZ0OsQOolX5WUKH/Z5x3P8CSif43aacM/a8OzBSO/RlGhiRXqxE+rZhGZZ/iWO6GMwNzLQSmO9DAuwbd4g==, tarball: file:projects/web-pubsub-express.tgz} name: '@rush-temp/web-pubsub-express' version: 0.0.0 dependencies: @@ -22525,7 +22526,7 @@ packages: dev: false file:projects/web-pubsub.tgz: - resolution: {integrity: sha512-++ibJXG+7uOjChJLGKcUkGLUcqfLXTatj1eTM7TbkJXOhGcdrUYovedIaPV51UFCwgE0yYi3XuiCJs6GvQL4vA==, tarball: file:projects/web-pubsub.tgz} + resolution: {integrity: sha512-leLUmqZbSAXmzpkoO5aRtpa2lPnDmKQy2gTBmhpmyRsXnH1GqDV1wGHJ/PauTVzdl7hpq9WRIuYwxwVmLaYj0Q==, tarball: file:projects/web-pubsub.tgz} name: '@rush-temp/web-pubsub' version: 0.0.0 dependencies: diff --git a/sdk/quantum/arm-quantum/CHANGELOG.md b/sdk/quantum/arm-quantum/CHANGELOG.md index b24a9e262401..68aeb3c9f335 100644 --- a/sdk/quantum/arm-quantum/CHANGELOG.md +++ b/sdk/quantum/arm-quantum/CHANGELOG.md @@ -1,15 +1,33 @@ # Release History + +## 1.0.0-beta.2 (2024-03-12) + +**Features** -## 1.0.0-beta.2 (Unreleased) + - Added operation Workspace.listKeys + - Added operation Workspace.regenerateKeys + - Added Interface ApiKey + - Added Interface APIKeys + - Added Interface ListKeysResult + - Added Interface WorkspaceListKeysOptionalParams + - Added Interface WorkspaceRegenerateKeysOptionalParams + - Added Interface WorkspaceResourceProperties + - Added Type Alias KeyType_2 + - Added Type Alias WorkspaceListKeysResponse + - Interface QuantumWorkspace has a new optional parameter properties + - Interface Resource has a new optional parameter systemData + - Added Enum KnownKeyType -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes +**Breaking Changes** + - Interface QuantumWorkspace no longer has parameter endpointUri + - Interface QuantumWorkspace no longer has parameter providers + - Interface QuantumWorkspace no longer has parameter provisioningState + - Interface QuantumWorkspace no longer has parameter storageAccount + - Interface QuantumWorkspace no longer has parameter systemData + - Interface QuantumWorkspace no longer has parameter usable + + ## 1.0.0-beta.1 (2023-07-10) The package of @azure/arm-quantum is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). diff --git a/sdk/quantum/arm-quantum/LICENSE b/sdk/quantum/arm-quantum/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/quantum/arm-quantum/LICENSE +++ b/sdk/quantum/arm-quantum/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 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/quantum/arm-quantum/_meta.json b/sdk/quantum/arm-quantum/_meta.json index 1c0662250c00..973981c83434 100644 --- a/sdk/quantum/arm-quantum/_meta.json +++ b/sdk/quantum/arm-quantum/_meta.json @@ -1,8 +1,8 @@ { - "commit": "0f39a2d56070d2bc4251494525cb8af88583a938", + "commit": "c45a7f47c1901149828eb8a33c74898c554659c0", "readme": "specification/quantum/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\\quantum\\resource-manager\\readme.md --use=@autorest/typescript@6.0.5 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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\\quantum\\resource-manager\\readme.md --use=@autorest/typescript@6.0.17 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", - "use": "@autorest/typescript@6.0.5" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@6.0.17" } \ No newline at end of file diff --git a/sdk/quantum/arm-quantum/assets.json b/sdk/quantum/arm-quantum/assets.json index 53b1edde5cf6..531c768c9b23 100644 --- a/sdk/quantum/arm-quantum/assets.json +++ b/sdk/quantum/arm-quantum/assets.json @@ -2,5 +2,5 @@ "AssetsRepo": "Azure/azure-sdk-assets", "AssetsRepoPrefixPath": "js", "TagPrefix": "js/quantum/arm-quantum", - "Tag": "js/quantum/arm-quantum_7d980c2b33" + "Tag": "js/quantum/arm-quantum_722240f12d" } diff --git a/sdk/quantum/arm-quantum/package.json b/sdk/quantum/arm-quantum/package.json index a018b98e4450..89f2b0779326 100644 --- a/sdk/quantum/arm-quantum/package.json +++ b/sdk/quantum/arm-quantum/package.json @@ -8,12 +8,12 @@ "node": ">=18.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", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -32,19 +32,20 @@ "mkdirp": "^2.1.2", "typescript": "~5.3.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", + "@azure/dev-tool": "^1.0.0", "@azure/identity": "^4.0.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.0.0", "mocha": "^10.0.0", + "@types/mocha": "^10.0.0", + "esm": "^3.2.18", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^18.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0", - "@types/mocha": "^10.0.0" + "ts-node": "^10.0.0" }, "repository": { "type": "git", @@ -77,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -115,4 +115,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-quantum?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/quantum/arm-quantum/review/arm-quantum.api.md b/sdk/quantum/arm-quantum/review/arm-quantum.api.md index 380466f5b3a1..72db43b076be 100644 --- a/sdk/quantum/arm-quantum/review/arm-quantum.api.md +++ b/sdk/quantum/arm-quantum/review/arm-quantum.api.md @@ -10,6 +10,17 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; +// @public +export interface ApiKey { + createdAt?: Date; + readonly key?: string; +} + +// @public +export interface APIKeys { + keys?: KeyType_2[]; +} + // @public (undocumented) export class AzureQuantumManagementClient extends coreClient.ServiceClient { // (undocumented) @@ -75,6 +86,10 @@ export interface ErrorResponse { // @public export function getContinuationToken(page: unknown): string | undefined; +// @public +type KeyType_2 = string; +export { KeyType_2 as KeyType } + // @public export enum KnownCreatedByType { Application = "Application", @@ -83,6 +98,12 @@ export enum KnownCreatedByType { User = "User" } +// @public +export enum KnownKeyType { + Primary = "Primary", + Secondary = "Secondary" +} + // @public export enum KnownProvisioningStatus { Failed = "Failed", @@ -116,6 +137,15 @@ export enum KnownUsableStatus { Yes = "Yes" } +// @public +export interface ListKeysResult { + apiKeyEnabled?: boolean; + readonly primaryConnectionString?: string; + primaryKey?: ApiKey; + readonly secondaryConnectionString?: string; + secondaryKey?: ApiKey; +} + // @public export interface Offerings { list(locationName: string, options?: OfferingsListOptionalParams): PagedAsyncIterableIterator; @@ -241,13 +271,8 @@ export type ProvisioningStatus = string; // @public export interface QuantumWorkspace extends TrackedResource { - readonly endpointUri?: string; identity?: QuantumWorkspaceIdentity; - providers?: Provider[]; - readonly provisioningState?: ProvisioningStatus; - storageAccount?: string; - readonly systemData?: SystemData; - readonly usable?: UsableStatus; + properties?: WorkspaceResourceProperties; } // @public @@ -273,6 +298,7 @@ export interface QuotaDimension { export interface Resource { readonly id?: string; readonly name?: string; + readonly systemData?: SystemData; readonly type?: string; } @@ -335,6 +361,8 @@ export type UsableStatus = string; // @public export interface Workspace { checkNameAvailability(locationName: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: WorkspaceCheckNameAvailabilityOptionalParams): Promise; + listKeys(resourceGroupName: string, workspaceName: string, options?: WorkspaceListKeysOptionalParams): Promise; + regenerateKeys(resourceGroupName: string, workspaceName: string, keySpecification: APIKeys, options?: WorkspaceRegenerateKeysOptionalParams): Promise; } // @public @@ -344,12 +372,33 @@ export interface WorkspaceCheckNameAvailabilityOptionalParams extends coreClient // @public export type WorkspaceCheckNameAvailabilityResponse = CheckNameAvailabilityResult; +// @public +export interface WorkspaceListKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type WorkspaceListKeysResponse = ListKeysResult; + // @public export interface WorkspaceListResult { nextLink?: string; value?: QuantumWorkspace[]; } +// @public +export interface WorkspaceRegenerateKeysOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface WorkspaceResourceProperties { + apiKeyEnabled?: boolean; + readonly endpointUri?: string; + providers?: Provider[]; + readonly provisioningState?: ProvisioningStatus; + storageAccount?: string; + readonly usable?: UsableStatus; +} + // @public export interface Workspaces { beginCreateOrUpdate(resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, options?: WorkspacesCreateOrUpdateOptionalParams): Promise, WorkspacesCreateOrUpdateResponse>>; diff --git a/sdk/quantum/arm-quantum/samples-dev/offeringsListSample.ts b/sdk/quantum/arm-quantum/samples-dev/offeringsListSample.ts index 673e7bfa6ce6..29c955530383 100644 --- a/sdk/quantum/arm-quantum/samples-dev/offeringsListSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/offeringsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of all provider offerings available for the given location. * * @summary Returns the list of all provider offerings available for the given location. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json */ async function offeringsList() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples-dev/operationsListSample.ts b/sdk/quantum/arm-quantum/samples-dev/operationsListSample.ts index bee0fde9b457..96b89b8e6b4a 100644 --- a/sdk/quantum/arm-quantum/samples-dev/operationsListSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns list of operations. * * @summary Returns list of operations. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json */ async function operations() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples-dev/workspaceCheckNameAvailabilitySample.ts b/sdk/quantum/arm-quantum/samples-dev/workspaceCheckNameAvailabilitySample.ts index a5992a99db0f..31adc31e3daf 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspaceCheckNameAvailabilitySample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspaceCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - AzureQuantumManagementClient + AzureQuantumManagementClient, } from "@azure/arm-quantum"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Check the availability of the resource name. * * @summary Check the availability of the resource name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json */ async function quantumWorkspacesCheckNameAvailability() { const subscriptionId = @@ -30,13 +30,13 @@ async function quantumWorkspacesCheckNameAvailability() { const locationName = "westus2"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "sample-workspace-name", - type: "Microsoft.Quantum/Workspaces" + type: "Microsoft.Quantum/Workspaces", }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspace.checkNameAvailability( locationName, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples-dev/workspaceListKeysSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspaceListKeysSample.ts new file mode 100644 index 000000000000..b2044021bb96 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples-dev/workspaceListKeysSample.ts @@ -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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureQuantumManagementClient } from "@azure/arm-quantum"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * + * @summary Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json + */ +async function listKeys() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.listKeys( + resourceGroupName, + workspaceName, + ); + console.log(result); +} + +async function main() { + listKeys(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples-dev/workspaceRegenerateKeysSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspaceRegenerateKeysSample.ts new file mode 100644 index 000000000000..513b258dcd90 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples-dev/workspaceRegenerateKeysSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { APIKeys, AzureQuantumManagementClient } from "@azure/arm-quantum"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * + * @summary Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json + */ +async function regenerateKey() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const keySpecification: APIKeys = { keys: ["Primary", "Secondary"] }; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.regenerateKeys( + resourceGroupName, + workspaceName, + keySpecification, + ); + console.log(result); +} + +async function main() { + regenerateKey(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesCreateOrUpdateSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesCreateOrUpdateSample.ts index 15e0a43444ce..a1932205c0e3 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesCreateOrUpdateSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { QuantumWorkspace, - AzureQuantumManagementClient + AzureQuantumManagementClient, } from "@azure/arm-quantum"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a workspace resource. * * @summary Creates or updates a workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json */ async function quantumWorkspacesPut() { const subscriptionId = @@ -32,20 +32,22 @@ async function quantumWorkspacesPut() { const workspaceName = "quantumworkspace1"; const quantumWorkspace: QuantumWorkspace = { location: "West US", - providers: [ - { providerId: "IonQ", providerSku: "Basic" }, - { providerId: "OneQBit", providerSku: "Basic" } - ], - storageAccount: - "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", - identity: { type: "SystemAssigned" } + properties: { + providers: [ + { providerId: "Honeywell", providerSku: "Basic" }, + { providerId: "IonQ", providerSku: "Basic" }, + { providerId: "OneQBit", providerSku: "Basic" }, + ], + storageAccount: + "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", + }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginCreateOrUpdateAndWait( resourceGroupName, workspaceName, - quantumWorkspace + quantumWorkspace, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesDeleteSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesDeleteSample.ts index 0b01a6f96c05..36d6d49de20a 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesDeleteSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a Workspace resource. * * @summary Deletes a Workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json */ async function quantumWorkspacesDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function quantumWorkspacesDelete() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginDeleteAndWait( resourceGroupName, - workspaceName + workspaceName, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesGetSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesGetSample.ts index 56f390083ae3..3e49b825163f 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesGetSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the Workspace resource associated with the given name. * * @summary Returns the Workspace resource associated with the given name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json */ async function quantumWorkspacesGet() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesListByResourceGroupSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesListByResourceGroupSample.ts index 1d10ae7ccf56..94c45ad6526e 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesListByResourceGroupSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Workspaces within a resource group. * * @summary Gets the list of Workspaces within a resource group. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json */ async function quantumWorkspacesListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function quantumWorkspacesListByResourceGroup() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.workspaces.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesListBySubscriptionSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesListBySubscriptionSample.ts index bc11d605a1df..7c1e033499bd 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesListBySubscriptionSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Workspaces within a Subscription. * * @summary Gets the list of Workspaces within a Subscription. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json */ async function quantumWorkspacesListBySubscription() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples-dev/workspacesUpdateTagsSample.ts b/sdk/quantum/arm-quantum/samples-dev/workspacesUpdateTagsSample.ts index 0a6197676b5e..e699a5e3a779 100644 --- a/sdk/quantum/arm-quantum/samples-dev/workspacesUpdateTagsSample.ts +++ b/sdk/quantum/arm-quantum/samples-dev/workspacesUpdateTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing workspace's tags. * * @summary Updates an existing workspace's tags. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json */ async function quantumWorkspacesPatchTags() { const subscriptionId = @@ -28,14 +28,14 @@ async function quantumWorkspacesPatchTags() { process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; const workspaceName = "quantumworkspace1"; const workspaceTags: TagsObject = { - tags: { tag1: "value1", tag2: "value2" } + tags: { tag1: "value1", tag2: "value2" }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.updateTags( resourceGroupName, workspaceName, - workspaceTags + workspaceTags, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/README.md b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/README.md index cbeb76eb4d7f..142128558655 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/README.md +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/README.md @@ -2,17 +2,19 @@ These sample programs show how to use the JavaScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [offeringsListSample.js][offeringslistsample] | Returns the list of all provider offerings available for the given location. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json | -| [operationsListSample.js][operationslistsample] | Returns list of operations. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json | -| [workspaceCheckNameAvailabilitySample.js][workspacechecknameavailabilitysample] | Check the availability of the resource name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json | -| [workspacesCreateOrUpdateSample.js][workspacescreateorupdatesample] | Creates or updates a workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json | -| [workspacesDeleteSample.js][workspacesdeletesample] | Deletes a Workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json | -| [workspacesGetSample.js][workspacesgetsample] | Returns the Workspace resource associated with the given name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json | -| [workspacesListByResourceGroupSample.js][workspaceslistbyresourcegroupsample] | Gets the list of Workspaces within a resource group. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json | -| [workspacesListBySubscriptionSample.js][workspaceslistbysubscriptionsample] | Gets the list of Workspaces within a Subscription. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json | -| [workspacesUpdateTagsSample.js][workspacesupdatetagssample] | Updates an existing workspace's tags. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [offeringsListSample.js][offeringslistsample] | Returns the list of all provider offerings available for the given location. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json | +| [operationsListSample.js][operationslistsample] | Returns list of operations. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json | +| [workspaceCheckNameAvailabilitySample.js][workspacechecknameavailabilitysample] | Check the availability of the resource name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json | +| [workspaceListKeysSample.js][workspacelistkeyssample] | Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json | +| [workspaceRegenerateKeysSample.js][workspaceregeneratekeyssample] | Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json | +| [workspacesCreateOrUpdateSample.js][workspacescreateorupdatesample] | Creates or updates a workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json | +| [workspacesDeleteSample.js][workspacesdeletesample] | Deletes a Workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json | +| [workspacesGetSample.js][workspacesgetsample] | Returns the Workspace resource associated with the given name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json | +| [workspacesListByResourceGroupSample.js][workspaceslistbyresourcegroupsample] | Gets the list of Workspaces within a resource group. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json | +| [workspacesListBySubscriptionSample.js][workspaceslistbysubscriptionsample] | Gets the list of Workspaces within a Subscription. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json | +| [workspacesUpdateTagsSample.js][workspacesupdatetagssample] | Updates an existing workspace's tags. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json | ## Prerequisites @@ -55,6 +57,8 @@ Take a look at our [API Documentation][apiref] for more information about the AP [offeringslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js [operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js [workspacechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js +[workspacelistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js +[workspaceregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js [workspacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js [workspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js [workspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js index a104b6a915b1..aee12b660b5b 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/offeringsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the list of all provider offerings available for the given location. * * @summary Returns the list of all provider offerings available for the given location. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json */ async function offeringsList() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js index bccc9f00bfc3..23698d372036 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/operationsListSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns list of operations. * * @summary Returns list of operations. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json */ async function operations() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js index 4a644833d104..0fd1f9603adf 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceCheckNameAvailabilitySample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Check the availability of the resource name. * * @summary Check the availability of the resource name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json */ async function quantumWorkspacesCheckNameAvailability() { const subscriptionId = @@ -30,7 +30,7 @@ async function quantumWorkspacesCheckNameAvailability() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspace.checkNameAvailability( locationName, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js new file mode 100644 index 000000000000..404331fe5c24 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceListKeysSample.js @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureQuantumManagementClient } = require("@azure/arm-quantum"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * + * @summary Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json + */ +async function listKeys() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.listKeys(resourceGroupName, workspaceName); + console.log(result); +} + +async function main() { + listKeys(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js new file mode 100644 index 000000000000..cbf510c633ce --- /dev/null +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspaceRegenerateKeysSample.js @@ -0,0 +1,41 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { AzureQuantumManagementClient } = require("@azure/arm-quantum"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * + * @summary Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json + */ +async function regenerateKey() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const keySpecification = { keys: ["Primary", "Secondary"] }; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.regenerateKeys( + resourceGroupName, + workspaceName, + keySpecification, + ); + console.log(result); +} + +async function main() { + regenerateKey(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js index bb06bdd31acc..b2a3c9ca0c15 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesCreateOrUpdateSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Creates or updates a workspace resource. * * @summary Creates or updates a workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json */ async function quantumWorkspacesPut() { const subscriptionId = @@ -25,20 +25,22 @@ async function quantumWorkspacesPut() { const workspaceName = "quantumworkspace1"; const quantumWorkspace = { location: "West US", - providers: [ - { providerId: "IonQ", providerSku: "Basic" }, - { providerId: "OneQBit", providerSku: "Basic" }, - ], - storageAccount: - "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", - identity: { type: "SystemAssigned" }, + properties: { + providers: [ + { providerId: "Honeywell", providerSku: "Basic" }, + { providerId: "IonQ", providerSku: "Basic" }, + { providerId: "OneQBit", providerSku: "Basic" }, + ], + storageAccount: + "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", + }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginCreateOrUpdateAndWait( resourceGroupName, workspaceName, - quantumWorkspace + quantumWorkspace, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js index 34a91018267e..7864c37c7722 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesDeleteSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Deletes a Workspace resource. * * @summary Deletes a Workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json */ async function quantumWorkspacesDelete() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js index e5d0043a420f..2fa79d346199 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesGetSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Returns the Workspace resource associated with the given name. * * @summary Returns the Workspace resource associated with the given name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json */ async function quantumWorkspacesGet() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js index e110f2d03e87..6f1d27d3a628 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListByResourceGroupSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Workspaces within a resource group. * * @summary Gets the list of Workspaces within a resource group. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json */ async function quantumWorkspacesListByResourceGroup() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js index 0b3292c02f9d..942ac683715e 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesListBySubscriptionSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Gets the list of Workspaces within a Subscription. * * @summary Gets the list of Workspaces within a Subscription. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json */ async function quantumWorkspacesListBySubscription() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesUpdateTagsSample.js b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesUpdateTagsSample.js index b7669c53465c..e072433672e8 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesUpdateTagsSample.js +++ b/sdk/quantum/arm-quantum/samples/v1-beta/javascript/workspacesUpdateTagsSample.js @@ -16,7 +16,7 @@ require("dotenv").config(); * This sample demonstrates how to Updates an existing workspace's tags. * * @summary Updates an existing workspace's tags. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json */ async function quantumWorkspacesPatchTags() { const subscriptionId = @@ -31,7 +31,7 @@ async function quantumWorkspacesPatchTags() { const result = await client.workspaces.updateTags( resourceGroupName, workspaceName, - workspaceTags + workspaceTags, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/README.md b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/README.md index 440b33ffa439..09fc2f9fbffb 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/README.md +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/README.md @@ -2,17 +2,19 @@ These sample programs show how to use the TypeScript client libraries for in some common scenarios. -| **File Name** | **Description** | -| ------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| [offeringsListSample.ts][offeringslistsample] | Returns the list of all provider offerings available for the given location. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json | -| [operationsListSample.ts][operationslistsample] | Returns list of operations. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json | -| [workspaceCheckNameAvailabilitySample.ts][workspacechecknameavailabilitysample] | Check the availability of the resource name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json | -| [workspacesCreateOrUpdateSample.ts][workspacescreateorupdatesample] | Creates or updates a workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json | -| [workspacesDeleteSample.ts][workspacesdeletesample] | Deletes a Workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json | -| [workspacesGetSample.ts][workspacesgetsample] | Returns the Workspace resource associated with the given name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json | -| [workspacesListByResourceGroupSample.ts][workspaceslistbyresourcegroupsample] | Gets the list of Workspaces within a resource group. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json | -| [workspacesListBySubscriptionSample.ts][workspaceslistbysubscriptionsample] | Gets the list of Workspaces within a Subscription. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json | -| [workspacesUpdateTagsSample.ts][workspacesupdatetagssample] | Updates an existing workspace's tags. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json | +| **File Name** | **Description** | +| ------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| [offeringsListSample.ts][offeringslistsample] | Returns the list of all provider offerings available for the given location. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json | +| [operationsListSample.ts][operationslistsample] | Returns list of operations. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json | +| [workspaceCheckNameAvailabilitySample.ts][workspacechecknameavailabilitysample] | Check the availability of the resource name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json | +| [workspaceListKeysSample.ts][workspacelistkeyssample] | Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json | +| [workspaceRegenerateKeysSample.ts][workspaceregeneratekeyssample] | Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json | +| [workspacesCreateOrUpdateSample.ts][workspacescreateorupdatesample] | Creates or updates a workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json | +| [workspacesDeleteSample.ts][workspacesdeletesample] | Deletes a Workspace resource. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json | +| [workspacesGetSample.ts][workspacesgetsample] | Returns the Workspace resource associated with the given name. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json | +| [workspacesListByResourceGroupSample.ts][workspaceslistbyresourcegroupsample] | Gets the list of Workspaces within a resource group. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json | +| [workspacesListBySubscriptionSample.ts][workspaceslistbysubscriptionsample] | Gets the list of Workspaces within a Subscription. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json | +| [workspacesUpdateTagsSample.ts][workspacesupdatetagssample] | Updates an existing workspace's tags. x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json | ## Prerequisites @@ -67,6 +69,8 @@ Take a look at our [API Documentation][apiref] for more information about the AP [offeringslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts [operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts [workspacechecknameavailabilitysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts +[workspacelistkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts +[workspaceregeneratekeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts [workspacescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts [workspacesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts [workspacesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts index 673e7bfa6ce6..29c955530383 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/offeringsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the list of all provider offerings available for the given location. * * @summary Returns the list of all provider offerings available for the given location. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/offeringsList.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/offeringsList.json */ async function offeringsList() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts index bee0fde9b457..96b89b8e6b4a 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/operationsListSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns list of operations. * * @summary Returns list of operations. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/operations.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/operations.json */ async function operations() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts index a5992a99db0f..31adc31e3daf 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceCheckNameAvailabilitySample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { CheckNameAvailabilityParameters, - AzureQuantumManagementClient + AzureQuantumManagementClient, } from "@azure/arm-quantum"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Check the availability of the resource name. * * @summary Check the availability of the resource name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesCheckNameAvailability.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesCheckNameAvailability.json */ async function quantumWorkspacesCheckNameAvailability() { const subscriptionId = @@ -30,13 +30,13 @@ async function quantumWorkspacesCheckNameAvailability() { const locationName = "westus2"; const checkNameAvailabilityParameters: CheckNameAvailabilityParameters = { name: "sample-workspace-name", - type: "Microsoft.Quantum/Workspaces" + type: "Microsoft.Quantum/Workspaces", }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspace.checkNameAvailability( locationName, - checkNameAvailabilityParameters + checkNameAvailabilityParameters, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts new file mode 100644 index 000000000000..b2044021bb96 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceListKeysSample.ts @@ -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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { AzureQuantumManagementClient } from "@azure/arm-quantum"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * + * @summary Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key regeneration. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/listKeys.json + */ +async function listKeys() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.listKeys( + resourceGroupName, + workspaceName, + ); + console.log(result); +} + +async function main() { + listKeys(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts new file mode 100644 index 000000000000..513b258dcd90 --- /dev/null +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspaceRegenerateKeysSample.ts @@ -0,0 +1,45 @@ +/* + * 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. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { APIKeys, AzureQuantumManagementClient } from "@azure/arm-quantum"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * + * @summary Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop working immediately. + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/regenerateKey.json + */ +async function regenerateKey() { + const subscriptionId = + process.env["QUANTUM_SUBSCRIPTION_ID"] || + "00000000-1111-2222-3333-444444444444"; + const resourceGroupName = + process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; + const workspaceName = "quantumworkspace1"; + const keySpecification: APIKeys = { keys: ["Primary", "Secondary"] }; + const credential = new DefaultAzureCredential(); + const client = new AzureQuantumManagementClient(credential, subscriptionId); + const result = await client.workspace.regenerateKeys( + resourceGroupName, + workspaceName, + keySpecification, + ); + console.log(result); +} + +async function main() { + regenerateKey(); +} + +main().catch(console.error); diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts index 15e0a43444ce..a1932205c0e3 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesCreateOrUpdateSample.ts @@ -10,7 +10,7 @@ // Licensed under the MIT License. import { QuantumWorkspace, - AzureQuantumManagementClient + AzureQuantumManagementClient, } from "@azure/arm-quantum"; import { DefaultAzureCredential } from "@azure/identity"; import * as dotenv from "dotenv"; @@ -21,7 +21,7 @@ dotenv.config(); * This sample demonstrates how to Creates or updates a workspace resource. * * @summary Creates or updates a workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPut.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPut.json */ async function quantumWorkspacesPut() { const subscriptionId = @@ -32,20 +32,22 @@ async function quantumWorkspacesPut() { const workspaceName = "quantumworkspace1"; const quantumWorkspace: QuantumWorkspace = { location: "West US", - providers: [ - { providerId: "IonQ", providerSku: "Basic" }, - { providerId: "OneQBit", providerSku: "Basic" } - ], - storageAccount: - "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", - identity: { type: "SystemAssigned" } + properties: { + providers: [ + { providerId: "Honeywell", providerSku: "Basic" }, + { providerId: "IonQ", providerSku: "Basic" }, + { providerId: "OneQBit", providerSku: "Basic" }, + ], + storageAccount: + "/subscriptions/1C4B2828-7D49-494F-933D-061373BE28C2/resourceGroups/quantumResourcegroup/providers/Microsoft.Storage/storageAccounts/testStorageAccount", + }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginCreateOrUpdateAndWait( resourceGroupName, workspaceName, - quantumWorkspace + quantumWorkspace, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts index 0b01a6f96c05..36d6d49de20a 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesDeleteSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Deletes a Workspace resource. * * @summary Deletes a Workspace resource. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesDelete.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesDelete.json */ async function quantumWorkspacesDelete() { const subscriptionId = @@ -31,7 +31,7 @@ async function quantumWorkspacesDelete() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.beginDeleteAndWait( resourceGroupName, - workspaceName + workspaceName, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts index 56f390083ae3..3e49b825163f 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesGetSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Returns the Workspace resource associated with the given name. * * @summary Returns the Workspace resource associated with the given name. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesGet.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesGet.json */ async function quantumWorkspacesGet() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts index 1d10ae7ccf56..94c45ad6526e 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListByResourceGroupSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Workspaces within a resource group. * * @summary Gets the list of Workspaces within a resource group. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListResourceGroup.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListResourceGroup.json */ async function quantumWorkspacesListByResourceGroup() { const subscriptionId = @@ -30,7 +30,7 @@ async function quantumWorkspacesListByResourceGroup() { const client = new AzureQuantumManagementClient(credential, subscriptionId); const resArray = new Array(); for await (let item of client.workspaces.listByResourceGroup( - resourceGroupName + resourceGroupName, )) { resArray.push(item); } diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts index bc11d605a1df..7c1e033499bd 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesListBySubscriptionSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Gets the list of Workspaces within a Subscription. * * @summary Gets the list of Workspaces within a Subscription. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesListSubscription.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesListSubscription.json */ async function quantumWorkspacesListBySubscription() { const subscriptionId = diff --git a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesUpdateTagsSample.ts b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesUpdateTagsSample.ts index 0a6197676b5e..e699a5e3a779 100644 --- a/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesUpdateTagsSample.ts +++ b/sdk/quantum/arm-quantum/samples/v1-beta/typescript/src/workspacesUpdateTagsSample.ts @@ -18,7 +18,7 @@ dotenv.config(); * This sample demonstrates how to Updates an existing workspace's tags. * * @summary Updates an existing workspace's tags. - * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2022-01-10-preview/examples/quantumWorkspacesPatch.json + * x-ms-original-file: specification/quantum/resource-manager/Microsoft.Quantum/preview/2023-11-13-preview/examples/quantumWorkspacesPatch.json */ async function quantumWorkspacesPatchTags() { const subscriptionId = @@ -28,14 +28,14 @@ async function quantumWorkspacesPatchTags() { process.env["QUANTUM_RESOURCE_GROUP"] || "quantumResourcegroup"; const workspaceName = "quantumworkspace1"; const workspaceTags: TagsObject = { - tags: { tag1: "value1", tag2: "value2" } + tags: { tag1: "value1", tag2: "value2" }, }; const credential = new DefaultAzureCredential(); const client = new AzureQuantumManagementClient(credential, subscriptionId); const result = await client.workspaces.updateTags( resourceGroupName, workspaceName, - workspaceTags + workspaceTags, ); console.log(result); } diff --git a/sdk/quantum/arm-quantum/src/azureQuantumManagementClient.ts b/sdk/quantum/arm-quantum/src/azureQuantumManagementClient.ts index 960cce08b1b2..f25f7e635327 100644 --- a/sdk/quantum/arm-quantum/src/azureQuantumManagementClient.ts +++ b/sdk/quantum/arm-quantum/src/azureQuantumManagementClient.ts @@ -11,20 +11,20 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { WorkspacesImpl, OfferingsImpl, OperationsImpl, - WorkspaceImpl + WorkspaceImpl, } from "./operations"; import { Workspaces, Offerings, Operations, - Workspace + Workspace, } from "./operationsInterfaces"; import { AzureQuantumManagementClientOptionalParams } from "./models"; @@ -36,13 +36,13 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { /** * Initializes a new instance of the AzureQuantumManagementClient class. * @param credentials Subscription credentials which uniquely identify client subscription. - * @param subscriptionId The Azure subscription ID. + * @param subscriptionId The ID of the target subscription. The value must be an UUID. * @param options The parameter options */ constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: AzureQuantumManagementClientOptionalParams + options?: AzureQuantumManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -57,7 +57,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { } const defaults: AzureQuantumManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; const packageDetails = `azsdk-js-arm-quantum/1.0.0-beta.2`; @@ -70,20 +70,21 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -93,7 +94,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -103,9 +104,9 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -113,7 +114,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2022-01-10-preview"; + this.apiVersion = options.apiVersion || "2023-11-13-preview"; this.workspaces = new WorkspacesImpl(this); this.offerings = new OfferingsImpl(this); this.operations = new OperationsImpl(this); @@ -130,7 +131,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -144,7 +145,7 @@ export class AzureQuantumManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/quantum/arm-quantum/src/lroImpl.ts b/sdk/quantum/arm-quantum/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/quantum/arm-quantum/src/lroImpl.ts +++ b/sdk/quantum/arm-quantum/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/quantum/arm-quantum/src/models/index.ts b/sdk/quantum/arm-quantum/src/models/index.ts index 67b339eb71d6..eb3f2ae7940a 100644 --- a/sdk/quantum/arm-quantum/src/models/index.ts +++ b/sdk/quantum/arm-quantum/src/models/index.ts @@ -8,6 +8,31 @@ import * as coreClient from "@azure/core-client"; +/** Properties of a Workspace */ +export interface WorkspaceResourceProperties { + /** List of Providers selected for this Workspace */ + providers?: Provider[]; + /** + * Whether the current workspace is ready to accept Jobs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly usable?: UsableStatus; + /** + * Provisioning status field + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningStatus; + /** ARM Resource Id of the storage account associated with this workspace. */ + storageAccount?: string; + /** + * The URI of the workspace endpoint. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly endpointUri?: string; + /** Indicator of enablement of the Quantum workspace Api keys. */ + apiKeyEnabled?: boolean; +} + /** Information about a Provider. A Provider is an entity that offers Targets to run Azure Quantum Jobs. */ export interface Provider { /** Unique id of this provider. */ @@ -40,26 +65,10 @@ export interface QuantumWorkspaceIdentity { type?: ResourceIdentityType; } -/** 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. */ - 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. */ - lastModifiedByType?: CreatedByType; - /** The timestamp of resource last modification (UTC) */ - lastModifiedAt?: Date; -} - /** Common fields that are returned in the response for all Azure Resource Manager resources */ export interface Resource { /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -73,6 +82,27 @@ export interface Resource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly type?: string; + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; +} + +/** 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. */ + 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. */ + lastModifiedByType?: CreatedByType; + /** The timestamp of resource last modification (UTC) */ + lastModifiedAt?: Date; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -155,7 +185,7 @@ export interface ProviderDescription { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; - /** A list of provider-specific properties. */ + /** Provider properties. */ properties?: ProviderProperties; } @@ -346,6 +376,43 @@ export interface CheckNameAvailabilityResult { readonly message?: string; } +/** Result of list Api keys and connection strings. */ +export interface ListKeysResult { + /** Indicator of enablement of the Quantum workspace Api keys. */ + apiKeyEnabled?: boolean; + /** The quantum workspace primary api key. */ + primaryKey?: ApiKey; + /** The quantum workspace secondary api key. */ + secondaryKey?: ApiKey; + /** + * The connection string of the primary api key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly primaryConnectionString?: string; + /** + * The connection string of the secondary api key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly secondaryConnectionString?: string; +} + +/** Azure quantum workspace Api key details. */ +export interface ApiKey { + /** The creation time of the api key. */ + createdAt?: Date; + /** + * The Api key. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly key?: string; +} + +/** List of api keys to be generated. */ +export interface APIKeys { + /** A list of api key names. */ + keys?: KeyType[]; +} + /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */ export interface TrackedResource extends Resource { /** Resource tags. */ @@ -356,32 +423,10 @@ export interface TrackedResource extends Resource { /** The resource proxy definition object for quantum workspace. */ export interface QuantumWorkspace extends TrackedResource { + /** Gets or sets the properties. Define quantum workspace's specific properties. */ + properties?: WorkspaceResourceProperties; /** Managed Identity information. */ identity?: QuantumWorkspaceIdentity; - /** - * System metadata - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** List of Providers selected for this Workspace */ - providers?: Provider[]; - /** - * Whether the current workspace is ready to accept Jobs. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly usable?: UsableStatus; - /** - * Provisioning status field - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningStatus; - /** ARM Resource Id of the storage account associated with this workspace. */ - storageAccount?: string; - /** - * The URI of the workspace endpoint. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly endpointUri?: string; } /** Known values of {@link Status} that the service accepts. */ @@ -397,7 +442,7 @@ export enum KnownStatus { /** Deleted */ Deleted = "Deleted", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -421,7 +466,7 @@ export enum KnownUsableStatus { /** No */ No = "No", /** Partial */ - Partial = "Partial" + Partial = "Partial", } /** @@ -448,7 +493,7 @@ export enum KnownProvisioningStatus { /** ProviderProvisioning */ ProviderProvisioning = "ProviderProvisioning", /** Failed */ - Failed = "Failed" + Failed = "Failed", } /** @@ -470,7 +515,7 @@ export enum KnownResourceIdentityType { /** SystemAssigned */ SystemAssigned = "SystemAssigned", /** None */ - None = "None" + None = "None", } /** @@ -492,7 +537,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -507,6 +552,24 @@ export enum KnownCreatedByType { */ export type CreatedByType = string; +/** Known values of {@link KeyType} that the service accepts. */ +export enum KnownKeyType { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary", +} + +/** + * Defines values for KeyType. \ + * {@link KnownKeyType} can be used interchangeably with KeyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Primary** \ + * **Secondary** + */ +export type KeyType = string; + /** Optional parameters. */ export interface WorkspacesGetOptionalParams extends coreClient.OperationOptions {} @@ -603,7 +666,19 @@ export interface WorkspaceCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the checkNameAvailability operation. */ -export type WorkspaceCheckNameAvailabilityResponse = CheckNameAvailabilityResult; +export type WorkspaceCheckNameAvailabilityResponse = + CheckNameAvailabilityResult; + +/** Optional parameters. */ +export interface WorkspaceListKeysOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listKeys operation. */ +export type WorkspaceListKeysResponse = ListKeysResult; + +/** Optional parameters. */ +export interface WorkspaceRegenerateKeysOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ export interface AzureQuantumManagementClientOptionalParams diff --git a/sdk/quantum/arm-quantum/src/models/mappers.ts b/sdk/quantum/arm-quantum/src/models/mappers.ts index 61cc18cd0a62..d0c9b6a219e7 100644 --- a/sdk/quantum/arm-quantum/src/models/mappers.ts +++ b/sdk/quantum/arm-quantum/src/models/mappers.ts @@ -8,6 +8,60 @@ import * as coreClient from "@azure/core-client"; +export const WorkspaceResourceProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "WorkspaceResourceProperties", + modelProperties: { + providers: { + serializedName: "providers", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Provider", + }, + }, + }, + }, + usable: { + serializedName: "usable", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + storageAccount: { + serializedName: "storageAccount", + type: { + name: "String", + }, + }, + endpointUri: { + serializedName: "endpointUri", + readOnly: true, + type: { + name: "String", + }, + }, + apiKeyEnabled: { + serializedName: "apiKeyEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + export const Provider: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16,41 +70,41 @@ export const Provider: coreClient.CompositeMapper = { providerId: { serializedName: "providerId", type: { - name: "String" - } + name: "String", + }, }, providerSku: { serializedName: "providerSku", type: { - name: "String" - } + name: "String", + }, }, instanceUri: { serializedName: "instanceUri", type: { - name: "String" - } + name: "String", + }, }, applicationName: { serializedName: "applicationName", type: { - name: "String" - } + name: "String", + }, }, provisioningState: { serializedName: "provisioningState", type: { - name: "String" - } + name: "String", + }, }, resourceUsageId: { serializedName: "resourceUsageId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuantumWorkspaceIdentity: coreClient.CompositeMapper = { @@ -62,24 +116,61 @@ export const QuantumWorkspaceIdentity: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const Resource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Resource", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -90,71 +181,41 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } -}; - -export const Resource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Resource", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String" - } + name: "DateTime", + }, }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String" - } - }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; export const ErrorResponse: coreClient.CompositeMapper = { @@ -166,11 +227,11 @@ export const ErrorResponse: coreClient.CompositeMapper = { serializedName: "error", type: { name: "Composite", - className: "ErrorDetail" - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, }; export const ErrorDetail: coreClient.CompositeMapper = { @@ -182,22 +243,22 @@ export const ErrorDetail: coreClient.CompositeMapper = { serializedName: "code", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", @@ -207,10 +268,10 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorDetail" - } - } - } + className: "ErrorDetail", + }, + }, + }, }, additionalInfo: { serializedName: "additionalInfo", @@ -220,13 +281,13 @@ export const ErrorDetail: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ErrorAdditionalInfo" - } - } - } - } - } - } + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, }; export const ErrorAdditionalInfo: coreClient.CompositeMapper = { @@ -238,19 +299,19 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, info: { serializedName: "info", readOnly: true, type: { name: "Dictionary", - value: { type: { name: "any" } } - } - } - } - } + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const TagsObject: coreClient.CompositeMapper = { @@ -262,11 +323,11 @@ export const TagsObject: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } - } - } - } + value: { type: { name: "String" } }, + }, + }, + }, + }, }; export const WorkspaceListResult: coreClient.CompositeMapper = { @@ -281,19 +342,19 @@ export const WorkspaceListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuantumWorkspace" - } - } - } + className: "QuantumWorkspace", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OfferingsListResult: coreClient.CompositeMapper = { @@ -308,19 +369,19 @@ export const OfferingsListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ProviderDescription" - } - } - } + className: "ProviderDescription", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ProviderDescription: coreClient.CompositeMapper = { @@ -331,25 +392,25 @@ export const ProviderDescription: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "ProviderProperties" - } - } - } - } + className: "ProviderProperties", + }, + }, + }, + }, }; export const ProviderProperties: coreClient.CompositeMapper = { @@ -361,43 +422,43 @@ export const ProviderProperties: coreClient.CompositeMapper = { serializedName: "description", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, providerType: { serializedName: "providerType", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, company: { serializedName: "company", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, defaultEndpoint: { serializedName: "defaultEndpoint", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, aad: { serializedName: "aad", type: { name: "Composite", - className: "ProviderPropertiesAad" - } + className: "ProviderPropertiesAad", + }, }, managedApplication: { serializedName: "managedApplication", type: { name: "Composite", - className: "ProviderPropertiesManagedApplication" - } + className: "ProviderPropertiesManagedApplication", + }, }, targets: { serializedName: "targets", @@ -406,10 +467,10 @@ export const ProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TargetDescription" - } - } - } + className: "TargetDescription", + }, + }, + }, }, skus: { serializedName: "skus", @@ -418,10 +479,10 @@ export const ProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SkuDescription" - } - } - } + className: "SkuDescription", + }, + }, + }, }, quotaDimensions: { serializedName: "quotaDimensions", @@ -430,10 +491,10 @@ export const ProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuotaDimension" - } - } - } + className: "QuotaDimension", + }, + }, + }, }, pricingDimensions: { serializedName: "pricingDimensions", @@ -442,13 +503,13 @@ export const ProviderProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PricingDimension" - } - } - } - } - } - } + className: "PricingDimension", + }, + }, + }, + }, + }, + }, }; export const ProviderPropertiesAad: coreClient.CompositeMapper = { @@ -460,43 +521,44 @@ export const ProviderPropertiesAad: coreClient.CompositeMapper = { serializedName: "applicationId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } - } - } - } -}; - -export const ProviderPropertiesManagedApplication: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProviderPropertiesManagedApplication", - modelProperties: { - publisherId: { - serializedName: "publisherId", - readOnly: true, - type: { - name: "String" - } + name: "String", + }, }, - offerId: { - serializedName: "offerId", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; +export const ProviderPropertiesManagedApplication: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ProviderPropertiesManagedApplication", + modelProperties: { + publisherId: { + serializedName: "publisherId", + readOnly: true, + type: { + name: "String", + }, + }, + offerId: { + serializedName: "offerId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + export const TargetDescription: coreClient.CompositeMapper = { type: { name: "Composite", @@ -505,20 +567,20 @@ export const TargetDescription: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, acceptedDataFormats: { serializedName: "acceptedDataFormats", @@ -526,10 +588,10 @@ export const TargetDescription: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, acceptedContentEncodings: { serializedName: "acceptedContentEncodings", @@ -537,13 +599,13 @@ export const TargetDescription: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "String", + }, + }, + }, + }, + }, + }, }; export const SkuDescription: coreClient.CompositeMapper = { @@ -554,38 +616,38 @@ export const SkuDescription: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, version: { serializedName: "version", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, restrictedAccessUri: { serializedName: "restrictedAccessUri", type: { - name: "String" - } + name: "String", + }, }, autoAdd: { serializedName: "autoAdd", type: { - name: "Boolean" - } + name: "Boolean", + }, }, targets: { serializedName: "targets", @@ -593,10 +655,10 @@ export const SkuDescription: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } + name: "String", + }, + }, + }, }, quotaDimensions: { serializedName: "quotaDimensions", @@ -605,10 +667,10 @@ export const SkuDescription: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "QuotaDimension" - } - } - } + className: "QuotaDimension", + }, + }, + }, }, pricingDetails: { serializedName: "pricingDetails", @@ -617,13 +679,13 @@ export const SkuDescription: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "PricingDetail" - } - } - } - } - } - } + className: "PricingDetail", + }, + }, + }, + }, + }, + }, }; export const QuotaDimension: coreClient.CompositeMapper = { @@ -634,53 +696,53 @@ export const QuotaDimension: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, scope: { serializedName: "scope", type: { - name: "String" - } + name: "String", + }, }, period: { serializedName: "period", type: { - name: "String" - } + name: "String", + }, }, quota: { serializedName: "quota", type: { - name: "Number" - } + name: "Number", + }, }, name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } + name: "String", + }, }, unit: { serializedName: "unit", type: { - name: "String" - } + name: "String", + }, }, unitPlural: { serializedName: "unitPlural", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PricingDetail: coreClient.CompositeMapper = { @@ -691,17 +753,17 @@ export const PricingDetail: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const PricingDimension: coreClient.CompositeMapper = { @@ -712,17 +774,17 @@ export const PricingDimension: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationsList: coreClient.CompositeMapper = { @@ -733,8 +795,8 @@ export const OperationsList: coreClient.CompositeMapper = { nextLink: { serializedName: "nextLink", type: { - name: "String" - } + name: "String", + }, }, value: { serializedName: "value", @@ -744,13 +806,13 @@ export const OperationsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Operation" - } - } - } - } - } - } + className: "Operation", + }, + }, + }, + }, + }, + }, }; export const Operation: coreClient.CompositeMapper = { @@ -761,24 +823,24 @@ export const Operation: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } + name: "Boolean", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } - } - } - } + className: "OperationDisplay", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -789,29 +851,29 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { @@ -822,18 +884,18 @@ export const CheckNameAvailabilityParameters: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, type: { defaultValue: "Microsoft.Quantum/Workspaces", serializedName: "type", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { @@ -844,24 +906,110 @@ export const CheckNameAvailabilityResult: coreClient.CompositeMapper = { nameAvailable: { serializedName: "nameAvailable", type: { - name: "Boolean" - } + name: "Boolean", + }, }, reason: { serializedName: "reason", type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, +}; + +export const ListKeysResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ListKeysResult", + modelProperties: { + apiKeyEnabled: { + serializedName: "apiKeyEnabled", + type: { + name: "Boolean", + }, + }, + primaryKey: { + serializedName: "primaryKey", + type: { + name: "Composite", + className: "ApiKey", + }, + }, + secondaryKey: { + serializedName: "secondaryKey", + type: { + name: "Composite", + className: "ApiKey", + }, + }, + primaryConnectionString: { + serializedName: "primaryConnectionString", + readOnly: true, + type: { + name: "String", + }, + }, + secondaryConnectionString: { + serializedName: "secondaryConnectionString", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApiKey: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiKey", + modelProperties: { + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + key: { + serializedName: "key", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const APIKeys: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APIKeys", + modelProperties: { + keys: { + serializedName: "keys", + type: { + name: "Sequence", + element: { + defaultValue: "Primary", + type: { + name: "String", + }, + }, + }, + }, + }, + }, }; export const TrackedResource: coreClient.CompositeMapper = { @@ -874,18 +1022,18 @@ export const TrackedResource: coreClient.CompositeMapper = { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, location: { serializedName: "location", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const QuantumWorkspace: coreClient.CompositeMapper = { @@ -894,59 +1042,20 @@ export const QuantumWorkspace: coreClient.CompositeMapper = { className: "QuantumWorkspace", modelProperties: { ...TrackedResource.type.modelProperties, - identity: { - serializedName: "identity", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "QuantumWorkspaceIdentity" - } + className: "WorkspaceResourceProperties", + }, }, - systemData: { - serializedName: "systemData", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "SystemData" - } - }, - providers: { - serializedName: "properties.providers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Provider" - } - } - } - }, - usable: { - serializedName: "properties.usable", - readOnly: true, - type: { - name: "String" - } - }, - provisioningState: { - serializedName: "properties.provisioningState", - readOnly: true, - type: { - name: "String" - } + className: "QuantumWorkspaceIdentity", + }, }, - storageAccount: { - serializedName: "properties.storageAccount", - type: { - name: "String" - } - }, - endpointUri: { - serializedName: "properties.endpointUri", - readOnly: true, - type: { - name: "String" - } - } - } - } + }, + }, }; diff --git a/sdk/quantum/arm-quantum/src/models/parameters.ts b/sdk/quantum/arm-quantum/src/models/parameters.ts index ddef0a28c5bf..0e21b91485df 100644 --- a/sdk/quantum/arm-quantum/src/models/parameters.ts +++ b/sdk/quantum/arm-quantum/src/models/parameters.ts @@ -9,12 +9,13 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { QuantumWorkspace as QuantumWorkspaceMapper, TagsObject as TagsObjectMapper, - CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper + CheckNameAvailabilityParameters as CheckNameAvailabilityParametersMapper, + APIKeys as APIKeysMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -24,9 +25,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -35,33 +36,37 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const resourceGroupName: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2022-01-10-preview", + defaultValue: "2023-11-13-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const subscriptionId: OperationURLParameter = { @@ -70,20 +75,23 @@ export const subscriptionId: OperationURLParameter = { serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "Uuid", + }, + }, }; export const workspaceName: OperationURLParameter = { parameterPath: "workspaceName", mapper: { + constraints: { + Pattern: new RegExp("^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"), + }, serializedName: "workspaceName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -93,19 +101,19 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const quantumWorkspace: OperationParameter = { parameterPath: "quantumWorkspace", - mapper: QuantumWorkspaceMapper + mapper: QuantumWorkspaceMapper, }; export const workspaceTags: OperationParameter = { parameterPath: "workspaceTags", - mapper: TagsObjectMapper + mapper: TagsObjectMapper, }; export const nextLink: OperationURLParameter = { @@ -114,10 +122,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const locationName: OperationURLParameter = { @@ -126,12 +134,17 @@ export const locationName: OperationURLParameter = { serializedName: "locationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const checkNameAvailabilityParameters: OperationParameter = { parameterPath: "checkNameAvailabilityParameters", - mapper: CheckNameAvailabilityParametersMapper + mapper: CheckNameAvailabilityParametersMapper, +}; + +export const keySpecification: OperationParameter = { + parameterPath: "keySpecification", + mapper: APIKeysMapper, }; diff --git a/sdk/quantum/arm-quantum/src/operations/offerings.ts b/sdk/quantum/arm-quantum/src/operations/offerings.ts index 9193302944ca..041fdb366f9e 100644 --- a/sdk/quantum/arm-quantum/src/operations/offerings.ts +++ b/sdk/quantum/arm-quantum/src/operations/offerings.ts @@ -18,7 +18,7 @@ import { OfferingsListNextOptionalParams, OfferingsListOptionalParams, OfferingsListResponse, - OfferingsListNextResponse + OfferingsListNextResponse, } from "../models"; /// @@ -41,7 +41,7 @@ export class OfferingsImpl implements Offerings { */ public list( locationName: string, - options?: OfferingsListOptionalParams + options?: OfferingsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(locationName, options); return { @@ -56,14 +56,14 @@ export class OfferingsImpl implements Offerings { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(locationName, options, settings); - } + }, }; } private async *listPagingPage( locationName: string, options?: OfferingsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OfferingsListResponse; let continuationToken = settings?.continuationToken; @@ -85,7 +85,7 @@ export class OfferingsImpl implements Offerings { private async *listPagingAll( locationName: string, - options?: OfferingsListOptionalParams + options?: OfferingsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(locationName, options)) { yield* page; @@ -99,11 +99,11 @@ export class OfferingsImpl implements Offerings { */ private _list( locationName: string, - options?: OfferingsListOptionalParams + options?: OfferingsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, options }, - listOperationSpec + listOperationSpec, ); } @@ -116,11 +116,11 @@ export class OfferingsImpl implements Offerings { private _listNext( locationName: string, nextLink: string, - options?: OfferingsListNextOptionalParams + options?: OfferingsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -128,43 +128,42 @@ export class OfferingsImpl implements Offerings { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/offerings", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OfferingsListResult + bodyMapper: Mappers.OfferingsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OfferingsListResult + bodyMapper: Mappers.OfferingsListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, - Parameters.locationName + Parameters.locationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/quantum/arm-quantum/src/operations/operations.ts b/sdk/quantum/arm-quantum/src/operations/operations.ts index 813433b7cdac..0eb7a763116f 100644 --- a/sdk/quantum/arm-quantum/src/operations/operations.ts +++ b/sdk/quantum/arm-quantum/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -39,7 +39,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -93,7 +93,7 @@ export class OperationsImpl implements Operations { * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationsList + bodyMapper: Mappers.OperationsList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationsList + bodyMapper: Mappers.OperationsList, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/quantum/arm-quantum/src/operations/workspace.ts b/sdk/quantum/arm-quantum/src/operations/workspace.ts index b71304e338d8..d029fbfad201 100644 --- a/sdk/quantum/arm-quantum/src/operations/workspace.ts +++ b/sdk/quantum/arm-quantum/src/operations/workspace.ts @@ -14,7 +14,11 @@ import { AzureQuantumManagementClient } from "../azureQuantumManagementClient"; import { CheckNameAvailabilityParameters, WorkspaceCheckNameAvailabilityOptionalParams, - WorkspaceCheckNameAvailabilityResponse + WorkspaceCheckNameAvailabilityResponse, + WorkspaceListKeysOptionalParams, + WorkspaceListKeysResponse, + APIKeys, + WorkspaceRegenerateKeysOptionalParams, } from "../models"; /** Class containing Workspace operations. */ @@ -38,11 +42,50 @@ export class WorkspaceImpl implements Workspace { checkNameAvailability( locationName: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, - options?: WorkspaceCheckNameAvailabilityOptionalParams + options?: WorkspaceCheckNameAvailabilityOptionalParams, ): Promise { return this.client.sendOperationRequest( { locationName, checkNameAvailabilityParameters, options }, - checkNameAvailabilityOperationSpec + checkNameAvailabilityOperationSpec, + ); + } + + /** + * Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the + * Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key + * regeneration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the quantum workspace resource. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceListKeysOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, options }, + listKeysOperationSpec, + ); + } + + /** + * Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop + * working immediately. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the quantum workspace resource. + * @param keySpecification Which key to regenerate: primary or secondary. + * @param options The options parameters. + */ + regenerateKeys( + resourceGroupName: string, + workspaceName: string, + keySpecification: APIKeys, + options?: WorkspaceRegenerateKeysOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, workspaceName, keySpecification, options }, + regenerateKeysOperationSpec, ); } } @@ -50,25 +93,66 @@ export class WorkspaceImpl implements Workspace { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/locations/{locationName}/checkNameAvailability", httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.CheckNameAvailabilityResult + bodyMapper: Mappers.CheckNameAvailabilityResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.checkNameAvailabilityParameters, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.locationName + Parameters.locationName, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const listKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/listKeys", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.ListKeysResult, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.workspaceName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const regenerateKeysOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}/regenerateKey", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.keySpecification, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.resourceGroupName, + Parameters.subscriptionId, + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; diff --git a/sdk/quantum/arm-quantum/src/operations/workspaces.ts b/sdk/quantum/arm-quantum/src/operations/workspaces.ts index 269d4a41578f..bbc5583e74c4 100644 --- a/sdk/quantum/arm-quantum/src/operations/workspaces.ts +++ b/sdk/quantum/arm-quantum/src/operations/workspaces.ts @@ -16,7 +16,7 @@ import { AzureQuantumManagementClient } from "../azureQuantumManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -36,7 +36,7 @@ import { WorkspacesUpdateTagsResponse, WorkspacesDeleteOptionalParams, WorkspacesListBySubscriptionNextResponse, - WorkspacesListByResourceGroupNextResponse + WorkspacesListByResourceGroupNextResponse, } from "../models"; /// @@ -57,7 +57,7 @@ export class WorkspacesImpl implements Workspaces { * @param options The options parameters. */ public listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listBySubscriptionPagingAll(options); return { @@ -72,13 +72,13 @@ export class WorkspacesImpl implements Workspaces { throw new Error("maxPageSize is not supported by this operation."); } return this.listBySubscriptionPagingPage(options, settings); - } + }, }; } private async *listBySubscriptionPagingPage( options?: WorkspacesListBySubscriptionOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspacesListBySubscriptionResponse; let continuationToken = settings?.continuationToken; @@ -99,7 +99,7 @@ export class WorkspacesImpl implements Workspaces { } private async *listBySubscriptionPagingAll( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): AsyncIterableIterator { for await (const page of this.listBySubscriptionPagingPage(options)) { yield* page; @@ -108,12 +108,12 @@ export class WorkspacesImpl implements Workspaces { /** * Gets the list of Workspaces within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ public listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -130,16 +130,16 @@ export class WorkspacesImpl implements Workspaces { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: WorkspacesListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: WorkspacesListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -154,7 +154,7 @@ export class WorkspacesImpl implements Workspaces { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -165,11 +165,11 @@ export class WorkspacesImpl implements Workspaces { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -177,24 +177,24 @@ export class WorkspacesImpl implements Workspaces { /** * Returns the Workspace resource associated with the given name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams + options?: WorkspacesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, options }, - getOperationSpec + getOperationSpec, ); } /** * Creates or updates a workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param quantumWorkspace Workspace details. * @param options The options parameters. @@ -203,7 +203,7 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -212,21 +212,20 @@ export class WorkspacesImpl implements Workspaces { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -235,8 +234,8 @@ export class WorkspacesImpl implements Workspaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -244,15 +243,15 @@ export class WorkspacesImpl implements Workspaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, workspaceName, quantumWorkspace, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< WorkspacesCreateOrUpdateResponse, @@ -260,7 +259,7 @@ export class WorkspacesImpl implements Workspaces { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -268,7 +267,7 @@ export class WorkspacesImpl implements Workspaces { /** * Creates or updates a workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param quantumWorkspace Workspace details. * @param options The options parameters. @@ -277,20 +276,20 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, workspaceName, quantumWorkspace, - options + options, ); return poller.pollUntilDone(); } /** * Updates an existing workspace's tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param workspaceTags Parameters supplied to update tags. * @param options The options parameters. @@ -299,42 +298,41 @@ export class WorkspacesImpl implements Workspaces { resourceGroupName: string, workspaceName: string, workspaceTags: TagsObject, - options?: WorkspacesUpdateTagsOptionalParams + options?: WorkspacesUpdateTagsOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, workspaceName, workspaceTags, options }, - updateTagsOperationSpec + updateTagsOperationSpec, ); } /** * Deletes a Workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ async beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -343,8 +341,8 @@ export class WorkspacesImpl implements Workspaces { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -352,19 +350,20 @@ export class WorkspacesImpl implements Workspaces { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, workspaceName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "location", }); await poller.poll(); return poller; @@ -372,19 +371,19 @@ export class WorkspacesImpl implements Workspaces { /** * Deletes a Workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ async beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, workspaceName, - options + options, ); return poller.pollUntilDone(); } @@ -394,26 +393,26 @@ export class WorkspacesImpl implements Workspaces { * @param options The options parameters. */ private _listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): Promise { return this.client.sendOperationRequest( { options }, - listBySubscriptionOperationSpec + listBySubscriptionOperationSpec, ); } /** * Gets the list of Workspaces within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ private _listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -424,28 +423,28 @@ export class WorkspacesImpl implements Workspaces { */ private _listBySubscriptionNext( nextLink: string, - options?: WorkspacesListBySubscriptionNextOptionalParams + options?: WorkspacesListBySubscriptionNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listBySubscriptionNextOperationSpec + listBySubscriptionNextOperationSpec, ); } /** * ListByResourceGroupNext - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method. * @param options The options parameters. */ private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: WorkspacesListByResourceGroupNextOptionalParams + options?: WorkspacesListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -453,47 +452,45 @@ export class WorkspacesImpl implements Workspaces { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, 201: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, 202: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, 204: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.quantumWorkspace, queryParameters: [Parameters.apiVersion], @@ -501,23 +498,22 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateTagsOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.QuantumWorkspace + bodyMapper: Mappers.QuantumWorkspace, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, requestBody: Parameters.workspaceTags, queryParameters: [Parameters.apiVersion], @@ -525,15 +521,14 @@ const updateTagsOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces/{workspaceName}", httpMethod: "DELETE", responses: { 200: {}, @@ -541,93 +536,91 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.workspaceName + Parameters.workspaceName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces", + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Quantum/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.WorkspaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Quantum/workspaces", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.WorkspaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.resourceGroupName, - Parameters.subscriptionId + Parameters.subscriptionId, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.WorkspaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.WorkspaceListResult + bodyMapper: Mappers.WorkspaceListResult, }, default: { - bodyMapper: Mappers.ErrorResponse - } + bodyMapper: Mappers.ErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.resourceGroupName, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/quantum/arm-quantum/src/operationsInterfaces/offerings.ts b/sdk/quantum/arm-quantum/src/operationsInterfaces/offerings.ts index 8ae818d90725..5e6945bee606 100644 --- a/sdk/quantum/arm-quantum/src/operationsInterfaces/offerings.ts +++ b/sdk/quantum/arm-quantum/src/operationsInterfaces/offerings.ts @@ -19,6 +19,6 @@ export interface Offerings { */ list( locationName: string, - options?: OfferingsListOptionalParams + options?: OfferingsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/quantum/arm-quantum/src/operationsInterfaces/operations.ts b/sdk/quantum/arm-quantum/src/operationsInterfaces/operations.ts index 0c50b09b459e..87b5a4492376 100644 --- a/sdk/quantum/arm-quantum/src/operationsInterfaces/operations.ts +++ b/sdk/quantum/arm-quantum/src/operationsInterfaces/operations.ts @@ -17,6 +17,6 @@ export interface Operations { * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/quantum/arm-quantum/src/operationsInterfaces/workspace.ts b/sdk/quantum/arm-quantum/src/operationsInterfaces/workspace.ts index 04e44aaa243d..d54bef1db250 100644 --- a/sdk/quantum/arm-quantum/src/operationsInterfaces/workspace.ts +++ b/sdk/quantum/arm-quantum/src/operationsInterfaces/workspace.ts @@ -9,7 +9,11 @@ import { CheckNameAvailabilityParameters, WorkspaceCheckNameAvailabilityOptionalParams, - WorkspaceCheckNameAvailabilityResponse + WorkspaceCheckNameAvailabilityResponse, + WorkspaceListKeysOptionalParams, + WorkspaceListKeysResponse, + APIKeys, + WorkspaceRegenerateKeysOptionalParams, } from "../models"; /** Interface representing a Workspace. */ @@ -23,6 +27,33 @@ export interface Workspace { checkNameAvailability( locationName: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, - options?: WorkspaceCheckNameAvailabilityOptionalParams + options?: WorkspaceCheckNameAvailabilityOptionalParams, ): Promise; + /** + * Get the keys to use with the Quantum APIs. A key is used to authenticate and authorize access to the + * Quantum REST APIs. Only one key is needed at a time; two are given to provide seamless key + * regeneration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the quantum workspace resource. + * @param options The options parameters. + */ + listKeys( + resourceGroupName: string, + workspaceName: string, + options?: WorkspaceListKeysOptionalParams, + ): Promise; + /** + * Regenerate either the primary or secondary key for use with the Quantum APIs. The old key will stop + * working immediately. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param workspaceName The name of the quantum workspace resource. + * @param keySpecification Which key to regenerate: primary or secondary. + * @param options The options parameters. + */ + regenerateKeys( + resourceGroupName: string, + workspaceName: string, + keySpecification: APIKeys, + options?: WorkspaceRegenerateKeysOptionalParams, + ): Promise; } diff --git a/sdk/quantum/arm-quantum/src/operationsInterfaces/workspaces.ts b/sdk/quantum/arm-quantum/src/operationsInterfaces/workspaces.ts index 13a0a3cc9f10..7b2da8ec7f09 100644 --- a/sdk/quantum/arm-quantum/src/operationsInterfaces/workspaces.ts +++ b/sdk/quantum/arm-quantum/src/operationsInterfaces/workspaces.ts @@ -19,7 +19,7 @@ import { TagsObject, WorkspacesUpdateTagsOptionalParams, WorkspacesUpdateTagsResponse, - WorkspacesDeleteOptionalParams + WorkspacesDeleteOptionalParams, } from "../models"; /// @@ -30,31 +30,31 @@ export interface Workspaces { * @param options The options parameters. */ listBySubscription( - options?: WorkspacesListBySubscriptionOptionalParams + options?: WorkspacesListBySubscriptionOptionalParams, ): PagedAsyncIterableIterator; /** * Gets the list of Workspaces within a resource group. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param options The options parameters. */ listByResourceGroup( resourceGroupName: string, - options?: WorkspacesListByResourceGroupOptionalParams + options?: WorkspacesListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Returns the Workspace resource associated with the given name. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ get( resourceGroupName: string, workspaceName: string, - options?: WorkspacesGetOptionalParams + options?: WorkspacesGetOptionalParams, ): Promise; /** * Creates or updates a workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param quantumWorkspace Workspace details. * @param options The options parameters. @@ -63,7 +63,7 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -72,7 +72,7 @@ export interface Workspaces { >; /** * Creates or updates a workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param quantumWorkspace Workspace details. * @param options The options parameters. @@ -81,11 +81,11 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, quantumWorkspace: QuantumWorkspace, - options?: WorkspacesCreateOrUpdateOptionalParams + options?: WorkspacesCreateOrUpdateOptionalParams, ): Promise; /** * Updates an existing workspace's tags. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param workspaceTags Parameters supplied to update tags. * @param options The options parameters. @@ -94,28 +94,28 @@ export interface Workspaces { resourceGroupName: string, workspaceName: string, workspaceTags: TagsObject, - options?: WorkspacesUpdateTagsOptionalParams + options?: WorkspacesUpdateTagsOptionalParams, ): Promise; /** * Deletes a Workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ beginDelete( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a Workspace resource. - * @param resourceGroupName The name of the resource group. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the quantum workspace resource. * @param options The options parameters. */ beginDeleteAndWait( resourceGroupName: string, workspaceName: string, - options?: WorkspacesDeleteOptionalParams + options?: WorkspacesDeleteOptionalParams, ): Promise; } diff --git a/sdk/quantum/arm-quantum/src/pagingHelper.ts b/sdk/quantum/arm-quantum/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/quantum/arm-quantum/src/pagingHelper.ts +++ b/sdk/quantum/arm-quantum/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/quantum/arm-quantum/test/quantum_operations_test.spec.ts b/sdk/quantum/arm-quantum/test/quantum_operations_test.spec.ts index a796d725e78b..4b08bd51c18c 100644 --- a/sdk/quantum/arm-quantum/test/quantum_operations_test.spec.ts +++ b/sdk/quantum/arm-quantum/test/quantum_operations_test.spec.ts @@ -64,16 +64,19 @@ describe("quantum test", () => { resourcename, { location, - providers: [ - { - providerId: "microsoft-qc", - providerSku: "learn-and-develop", - } - ], - storageAccount: "/subscriptions/" + subscriptionId + "/resourcegroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/czwtestsa", + properties: { + providers: [ + { + providerId: "microsoft-qc", + providerSku: "learn-and-develop", + } + ], + storageAccount: "/subscriptions/" + subscriptionId + "/resourcegroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/czwtestsa", + }, identity: { type: "SystemAssigned" } }, testPollingOptions); + await delay(10000); assert.equal(res.name, resourcename); }); From 82b55997c07686cc8bc2938d84c1b87c9eb01a6e Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Mon, 18 Mar 2024 06:40:23 +0000 Subject: [PATCH 57/57] CodeGen from PR 27220 in Azure/azure-rest-api-specs Merge e32eab58fc20804a79389f55bb07fc5c95f24245 into 0cca8953ec713d8cc0e940c37e865d36b43d18f8 --- sdk/nginx/arm-nginx/CHANGELOG.md | 37 +- sdk/nginx/arm-nginx/LICENSE | 2 +- sdk/nginx/arm-nginx/README.md | 2 +- sdk/nginx/arm-nginx/_meta.json | 8 +- sdk/nginx/arm-nginx/package.json | 19 +- sdk/nginx/arm-nginx/review/arm-nginx.api.md | 120 +- sdk/nginx/arm-nginx/src/lroImpl.ts | 6 +- sdk/nginx/arm-nginx/src/models/index.ts | 151 ++- sdk/nginx/arm-nginx/src/models/mappers.ts | 1000 +++++++++++------ sdk/nginx/arm-nginx/src/models/parameters.ts | 103 +- .../arm-nginx/src/nginxManagementClient.ts | 35 +- .../arm-nginx/src/operations/certificates.ts | 154 ++- .../src/operations/configurations.ts | 200 ++-- .../arm-nginx/src/operations/deployments.ts | 241 ++-- .../arm-nginx/src/operations/operations.ts | 36 +- .../src/operationsInterfaces/certificates.ts | 14 +- .../operationsInterfaces/configurations.ts | 30 +- .../src/operationsInterfaces/deployments.ts | 20 +- .../src/operationsInterfaces/operations.ts | 4 +- sdk/nginx/arm-nginx/src/pagingHelper.ts | 2 +- sdk/nginx/arm-nginx/test/sampleTest.ts | 43 + sdk/nginx/arm-nginx/tsconfig.json | 10 +- 22 files changed, 1459 insertions(+), 778 deletions(-) create mode 100644 sdk/nginx/arm-nginx/test/sampleTest.ts diff --git a/sdk/nginx/arm-nginx/CHANGELOG.md b/sdk/nginx/arm-nginx/CHANGELOG.md index 1332f0ed0511..37f2c0de90ad 100644 --- a/sdk/nginx/arm-nginx/CHANGELOG.md +++ b/sdk/nginx/arm-nginx/CHANGELOG.md @@ -1,15 +1,36 @@ # Release History + +## 4.0.0-beta.1 (2024-03-18) + +**Features** -## 3.0.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added operation Configurations.analysis + - Added Interface AnalysisCreate + - Added Interface AnalysisCreateConfig + - Added Interface AnalysisDiagnostic + - Added Interface AnalysisResult + - Added Interface AnalysisResultData + - Added Interface AutoUpgradeProfile + - Added Interface ConfigurationsAnalysisOptionalParams + - Added Interface ErrorAdditionalInfo + - Added Interface ErrorDetail + - Added Interface NginxCertificateErrorResponseBody + - Added Interface ScaleProfile + - Added Interface ScaleProfileCapacity + - Added Type Alias ConfigurationsAnalysisResponse + - Interface NginxCertificateProperties has a new optional parameter certificateError + - Interface NginxCertificateProperties has a new optional parameter keyVaultSecretCreated + - Interface NginxCertificateProperties has a new optional parameter keyVaultSecretVersion + - Interface NginxCertificateProperties has a new optional parameter sha1Thumbprint + - Interface NginxDeploymentProperties has a new optional parameter autoUpgradeProfile + - Interface NginxDeploymentScalingProperties has a new optional parameter profiles + - Interface NginxDeploymentUpdateProperties has a new optional parameter autoUpgradeProfile -### Other Changes +**Breaking Changes** + - Type of parameter error of interface ResourceProviderDefaultErrorResponse is changed from ErrorResponseBody to ErrorDetail + + ## 3.0.0 (2023-11-09) **Features** diff --git a/sdk/nginx/arm-nginx/LICENSE b/sdk/nginx/arm-nginx/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/nginx/arm-nginx/LICENSE +++ b/sdk/nginx/arm-nginx/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 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/nginx/arm-nginx/README.md b/sdk/nginx/arm-nginx/README.md index 82ee43fb0818..3c0dc347d836 100644 --- a/sdk/nginx/arm-nginx/README.md +++ b/sdk/nginx/arm-nginx/README.md @@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx) | [Package (NPM)](https://www.npmjs.com/package/@azure/arm-nginx) | -[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-nginx) | +[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview) | [Samples](https://github.com/Azure-Samples/azure-samples-js-management) ## Getting started diff --git a/sdk/nginx/arm-nginx/_meta.json b/sdk/nginx/arm-nginx/_meta.json index 8585cdb39496..d8639b3b24b3 100644 --- a/sdk/nginx/arm-nginx/_meta.json +++ b/sdk/nginx/arm-nginx/_meta.json @@ -1,8 +1,8 @@ { - "commit": "ed84b11847785792767b0b84cc6f98f4ea08ca77", + "commit": "e38fdb76a0770dbf8ae44142c77066560ec3a52c", "readme": "specification/nginx/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --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\\nginx\\resource-manager\\readme.md --use=@autorest/typescript@6.0.12 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --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/nginx/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", - "use": "@autorest/typescript@6.0.12" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/nginx/arm-nginx/package.json b/sdk/nginx/arm-nginx/package.json index b7cb5d2445d0..abdb420e31db 100644 --- a/sdk/nginx/arm-nginx/package.json +++ b/sdk/nginx/arm-nginx/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for NginxManagementClient.", - "version": "3.0.1", + "version": "4.0.0-beta.1", "engines": { "node": ">=18.0.0" }, @@ -12,8 +12,8 @@ "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", - "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.12.0", + "@azure/core-auth": "^1.6.0", + "@azure/core-rest-pipeline": "^1.14.0", "tslib": "^2.2.0" }, "keywords": [ @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "api-extractor run --local", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -107,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-nginx?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/nginx/arm-nginx" +} \ No newline at end of file diff --git a/sdk/nginx/arm-nginx/review/arm-nginx.api.md b/sdk/nginx/arm-nginx/review/arm-nginx.api.md index fda06842b87e..17140ce9c3e2 100644 --- a/sdk/nginx/arm-nginx/review/arm-nginx.api.md +++ b/sdk/nginx/arm-nginx/review/arm-nginx.api.md @@ -10,6 +10,57 @@ import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; import { SimplePollerLike } from '@azure/core-lro'; +// @public +export interface AnalysisCreate { + // (undocumented) + config: AnalysisCreateConfig; +} + +// @public (undocumented) +export interface AnalysisCreateConfig { + // (undocumented) + files?: NginxConfigurationFile[]; + // (undocumented) + package?: NginxConfigurationPackage; + // (undocumented) + protectedFiles?: NginxConfigurationFile[]; + rootFile?: string; +} + +// @public +export interface AnalysisDiagnostic { + // (undocumented) + description: string; + // (undocumented) + directive: string; + file: string; + id?: string; + // (undocumented) + line: number; + // (undocumented) + message: string; + // (undocumented) + rule: string; +} + +// @public +export interface AnalysisResult { + // (undocumented) + data?: AnalysisResultData; + status: string; +} + +// @public (undocumented) +export interface AnalysisResultData { + // (undocumented) + errors?: AnalysisDiagnostic[]; +} + +// @public +export interface AutoUpgradeProfile { + upgradeChannel: string; +} + // @public export interface Certificates { beginCreateOrUpdate(resourceGroupName: string, deploymentName: string, certificateName: string, options?: CertificatesCreateOrUpdateOptionalParams): Promise, CertificatesCreateOrUpdateResponse>>; @@ -59,6 +110,7 @@ export type CertificatesListResponse = NginxCertificateListResponse; // @public export interface Configurations { + analysis(resourceGroupName: string, deploymentName: string, configurationName: string, options?: ConfigurationsAnalysisOptionalParams): Promise; beginCreateOrUpdate(resourceGroupName: string, deploymentName: string, configurationName: string, options?: ConfigurationsCreateOrUpdateOptionalParams): Promise, ConfigurationsCreateOrUpdateResponse>>; beginCreateOrUpdateAndWait(resourceGroupName: string, deploymentName: string, configurationName: string, options?: ConfigurationsCreateOrUpdateOptionalParams): Promise; beginDelete(resourceGroupName: string, deploymentName: string, configurationName: string, options?: ConfigurationsDeleteOptionalParams): Promise, void>>; @@ -67,6 +119,14 @@ export interface Configurations { list(resourceGroupName: string, deploymentName: string, options?: ConfigurationsListOptionalParams): PagedAsyncIterableIterator; } +// @public +export interface ConfigurationsAnalysisOptionalParams extends coreClient.OperationOptions { + body?: AnalysisCreate; +} + +// @public +export type ConfigurationsAnalysisResponse = AnalysisResult; + // @public export interface ConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { body?: NginxConfiguration; @@ -183,16 +243,19 @@ export interface DeploymentsUpdateOptionalParams extends coreClient.OperationOpt // @public export type DeploymentsUpdateResponse = NginxDeployment; -// @public (undocumented) -export interface ErrorResponseBody { - // (undocumented) - code?: string; - // (undocumented) - details?: ErrorResponseBody[]; - // (undocumented) - message?: string; - // (undocumented) - target?: string; +// @public +export interface ErrorAdditionalInfo { + readonly info?: Record; + readonly type?: string; +} + +// @public +export interface ErrorDetail { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetail[]; + readonly message?: string; + readonly target?: string; } // @public @@ -259,6 +322,14 @@ export interface NginxCertificate { readonly type?: string; } +// @public (undocumented) +export interface NginxCertificateErrorResponseBody { + // (undocumented) + code?: string; + // (undocumented) + message?: string; +} + // @public (undocumented) export interface NginxCertificateListResponse { // (undocumented) @@ -269,13 +340,18 @@ export interface NginxCertificateListResponse { // @public (undocumented) export interface NginxCertificateProperties { + // (undocumented) + certificateError?: NginxCertificateErrorResponseBody; // (undocumented) certificateVirtualPath?: string; + readonly keyVaultSecretCreated?: Date; // (undocumented) keyVaultSecretId?: string; + readonly keyVaultSecretVersion?: string; // (undocumented) keyVirtualPath?: string; readonly provisioningState?: ProvisioningState; + readonly sha1Thumbprint?: string; } // @public (undocumented) @@ -354,6 +430,7 @@ export interface NginxDeploymentListResponse { // @public (undocumented) export interface NginxDeploymentProperties { + autoUpgradeProfile?: AutoUpgradeProfile; // (undocumented) enableDiagnosticsSupport?: boolean; readonly ipAddress?: string; @@ -364,16 +441,17 @@ export interface NginxDeploymentProperties { networkProfile?: NginxNetworkProfile; readonly nginxVersion?: string; readonly provisioningState?: ProvisioningState; - // (undocumented) scalingProperties?: NginxDeploymentScalingProperties; // (undocumented) userProfile?: NginxDeploymentUserProfile; } -// @public (undocumented) +// @public export interface NginxDeploymentScalingProperties { // (undocumented) capacity?: number; + // (undocumented) + profiles?: ScaleProfile[]; } // @public (undocumented) @@ -393,11 +471,11 @@ export interface NginxDeploymentUpdateParameters { // @public (undocumented) export interface NginxDeploymentUpdateProperties { + autoUpgradeProfile?: AutoUpgradeProfile; // (undocumented) enableDiagnosticsSupport?: boolean; // (undocumented) logging?: NginxLogging; - // (undocumented) scalingProperties?: NginxDeploymentScalingProperties; // (undocumented) userProfile?: NginxDeploymentUserProfile; @@ -534,8 +612,7 @@ export type ProvisioningState = string; // @public (undocumented) export interface ResourceProviderDefaultErrorResponse { - // (undocumented) - error?: ErrorResponseBody; + error?: ErrorDetail; } // @public (undocumented) @@ -543,6 +620,19 @@ export interface ResourceSku { name: string; } +// @public +export interface ScaleProfile { + capacity: ScaleProfileCapacity; + // (undocumented) + name: string; +} + +// @public +export interface ScaleProfileCapacity { + max: number; + min: number; +} + // @public export interface SystemData { createdAt?: Date; diff --git a/sdk/nginx/arm-nginx/src/lroImpl.ts b/sdk/nginx/arm-nginx/src/lroImpl.ts index dd803cd5e28c..b27f5ac7209b 100644 --- a/sdk/nginx/arm-nginx/src/lroImpl.ts +++ b/sdk/nginx/arm-nginx/src/lroImpl.ts @@ -28,15 +28,15 @@ export function createLroSpec(inputs: { sendInitialRequest: () => sendOperationFn(args, spec), sendPollRequest: ( path: string, - options?: { abortSignal?: AbortSignalLike } + options?: { abortSignal?: AbortSignalLike }, ) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, httpMethod: "GET", path, - abortSignal: options?.abortSignal + abortSignal: options?.abortSignal, }); - } + }, }; } diff --git a/sdk/nginx/arm-nginx/src/models/index.ts b/sdk/nginx/arm-nginx/src/models/index.ts index 737e5b466ec5..f4c29559691e 100644 --- a/sdk/nginx/arm-nginx/src/models/index.ts +++ b/sdk/nginx/arm-nginx/src/models/index.ts @@ -30,6 +30,18 @@ export interface NginxCertificateProperties { keyVirtualPath?: string; certificateVirtualPath?: string; keyVaultSecretId?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly sha1Thumbprint?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly keyVaultSecretVersion?: string; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly keyVaultSecretCreated?: Date; + certificateError?: NginxCertificateErrorResponseBody; +} + +export interface NginxCertificateErrorResponseBody { + code?: string; + message?: string; } /** Metadata pertaining to creation and last modification of the resource. */ @@ -49,14 +61,51 @@ export interface SystemData { } export interface ResourceProviderDefaultErrorResponse { - error?: ErrorResponseBody; + /** The error detail. */ + error?: ErrorDetail; } -export interface ErrorResponseBody { - code?: string; - message?: string; - target?: string; - details?: ErrorResponseBody[]; +/** The error detail. */ +export interface ErrorDetail { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetail[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; +} + +/** The resource management error additional info. */ +export interface ErrorAdditionalInfo { + /** + * The additional info type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly info?: Record; } export interface NginxCertificateListResponse { @@ -107,6 +156,43 @@ export interface NginxConfigurationPackage { protectedFiles?: string[]; } +/** The request body for creating an analysis for an NGINX configuration. */ +export interface AnalysisCreate { + config: AnalysisCreateConfig; +} + +export interface AnalysisCreateConfig { + /** The root file of the NGINX config file(s). It must match one of the files' filepath. */ + rootFile?: string; + files?: NginxConfigurationFile[]; + protectedFiles?: NginxConfigurationFile[]; + package?: NginxConfigurationPackage; +} + +/** The response body for an analysis request. Contains the status of the analysis and any errors. */ +export interface AnalysisResult { + /** The status of the analysis. */ + status: string; + data?: AnalysisResultData; +} + +export interface AnalysisResultData { + errors?: AnalysisDiagnostic[]; +} + +/** An error object found during the analysis of an NGINX configuration. */ +export interface AnalysisDiagnostic { + /** Unique identifier for the error */ + id?: string; + directive: string; + description: string; + /** the filepath of the most relevant config file */ + file: string; + line: number; + message: string; + rule: string; +} + export interface NginxDeployment { /** NOTE: This property will not be serialized. It can only be populated by the server. */ readonly id?: string; @@ -159,7 +245,10 @@ export interface NginxDeploymentProperties { readonly ipAddress?: string; enableDiagnosticsSupport?: boolean; logging?: NginxLogging; + /** Information on how the deployment will be scaled. */ scalingProperties?: NginxDeploymentScalingProperties; + /** Autoupgrade settings of a deployment. */ + autoUpgradeProfile?: AutoUpgradeProfile; userProfile?: NginxDeploymentUserProfile; } @@ -196,8 +285,31 @@ export interface NginxStorageAccount { containerName?: string; } +/** Information on how the deployment will be scaled. */ export interface NginxDeploymentScalingProperties { capacity?: number; + profiles?: ScaleProfile[]; +} + +/** The autoscale profile. */ +export interface ScaleProfile { + name: string; + /** The capacity parameters of the profile. */ + capacity: ScaleProfileCapacity; +} + +/** The capacity parameters of the profile. */ +export interface ScaleProfileCapacity { + /** The minimum number of NCUs the deployment can be autoscaled to. */ + min: number; + /** The maximum number of NCUs the deployment can be autoscaled to. */ + max: number; +} + +/** Autoupgrade settings of a deployment. */ +export interface AutoUpgradeProfile { + /** Channel used for autoupgrade. */ + upgradeChannel: string; } export interface NginxDeploymentUserProfile { @@ -222,8 +334,11 @@ export interface NginxDeploymentUpdateParameters { export interface NginxDeploymentUpdateProperties { enableDiagnosticsSupport?: boolean; logging?: NginxLogging; + /** Information on how the deployment will be scaled. */ scalingProperties?: NginxDeploymentScalingProperties; userProfile?: NginxDeploymentUserProfile; + /** Autoupgrade settings of a deployment. */ + autoUpgradeProfile?: AutoUpgradeProfile; } export interface NginxDeploymentListResponse { @@ -280,7 +395,7 @@ export enum KnownProvisioningState { /** Deleted */ Deleted = "Deleted", /** NotSpecified */ - NotSpecified = "NotSpecified" + NotSpecified = "NotSpecified", } /** @@ -309,7 +424,7 @@ export enum KnownCreatedByType { /** ManagedIdentity */ ManagedIdentity = "ManagedIdentity", /** Key */ - Key = "Key" + Key = "Key", } /** @@ -333,7 +448,7 @@ export enum KnownIdentityType { /** SystemAssignedUserAssigned */ SystemAssignedUserAssigned = "SystemAssigned, UserAssigned", /** None */ - None = "None" + None = "None", } /** @@ -353,7 +468,7 @@ export enum KnownNginxPrivateIPAllocationMethod { /** Static */ Static = "Static", /** Dynamic */ - Dynamic = "Dynamic" + Dynamic = "Dynamic", } /** @@ -447,6 +562,16 @@ export interface ConfigurationsDeleteOptionalParams resumeFrom?: string; } +/** Optional parameters. */ +export interface ConfigurationsAnalysisOptionalParams + extends coreClient.OperationOptions { + /** The NGINX configuration to analyze */ + body?: AnalysisCreate; +} + +/** Contains response data for the analysis operation. */ +export type ConfigurationsAnalysisResponse = AnalysisResult; + /** Optional parameters. */ export interface ConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} @@ -508,7 +633,8 @@ export interface DeploymentsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type DeploymentsListByResourceGroupResponse = NginxDeploymentListResponse; +export type DeploymentsListByResourceGroupResponse = + NginxDeploymentListResponse; /** Optional parameters. */ export interface DeploymentsListNextOptionalParams @@ -522,7 +648,8 @@ export interface DeploymentsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ -export type DeploymentsListByResourceGroupNextResponse = NginxDeploymentListResponse; +export type DeploymentsListByResourceGroupNextResponse = + NginxDeploymentListResponse; /** Optional parameters. */ export interface OperationsListOptionalParams diff --git a/sdk/nginx/arm-nginx/src/models/mappers.ts b/sdk/nginx/arm-nginx/src/models/mappers.ts index 1902a7845a45..dc21ad7ea040 100644 --- a/sdk/nginx/arm-nginx/src/models/mappers.ts +++ b/sdk/nginx/arm-nginx/src/models/mappers.ts @@ -17,45 +17,45 @@ export const NginxCertificate: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NginxCertificateProperties" - } + className: "NginxCertificateProperties", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const NginxCertificateProperties: coreClient.CompositeMapper = { @@ -67,29 +67,78 @@ export const NginxCertificateProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, keyVirtualPath: { serializedName: "keyVirtualPath", type: { - name: "String" - } + name: "String", + }, }, certificateVirtualPath: { serializedName: "certificateVirtualPath", type: { - name: "String" - } + name: "String", + }, }, keyVaultSecretId: { serializedName: "keyVaultSecretId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + sha1Thumbprint: { + serializedName: "sha1Thumbprint", + readOnly: true, + type: { + name: "String", + }, + }, + keyVaultSecretVersion: { + serializedName: "keyVaultSecretVersion", + readOnly: true, + type: { + name: "String", + }, + }, + keyVaultSecretCreated: { + serializedName: "keyVaultSecretCreated", + readOnly: true, + type: { + name: "DateTime", + }, + }, + certificateError: { + serializedName: "certificateError", + type: { + name: "Composite", + className: "NginxCertificateErrorResponseBody", + }, + }, + }, + }, +}; + +export const NginxCertificateErrorResponseBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NginxCertificateErrorResponseBody", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", + type: { + name: "String", + }, + }, + }, + }, }; export const SystemData: coreClient.CompositeMapper = { @@ -100,96 +149,138 @@ export const SystemData: coreClient.CompositeMapper = { createdBy: { serializedName: "createdBy", type: { - name: "String" - } + name: "String", + }, }, createdByType: { serializedName: "createdByType", type: { - name: "String" - } + name: "String", + }, }, createdAt: { serializedName: "createdAt", type: { - name: "DateTime" - } + name: "DateTime", + }, }, lastModifiedBy: { serializedName: "lastModifiedBy", type: { - name: "String" - } + name: "String", + }, }, lastModifiedByType: { serializedName: "lastModifiedByType", type: { - name: "String" - } + name: "String", + }, }, lastModifiedAt: { serializedName: "lastModifiedAt", type: { - name: "DateTime" - } - } - } - } + name: "DateTime", + }, + }, + }, + }, }; -export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceProviderDefaultErrorResponse", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorResponseBody" - } - } - } - } -}; +export const ResourceProviderDefaultErrorResponse: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ResourceProviderDefaultErrorResponse", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetail", + }, + }, + }, + }, + }; -export const ErrorResponseBody: coreClient.CompositeMapper = { +export const ErrorDetail: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseBody", + className: "ErrorDetail", modelProperties: { code: { serializedName: "code", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, message: { serializedName: "message", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, target: { serializedName: "target", + readOnly: true, type: { - name: "String" - } + name: "String", + }, }, details: { serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorResponseBody" - } - } - } - } - } - } + className: "ErrorDetail", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, + }, +}; + +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + modelProperties: { + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + info: { + serializedName: "info", + readOnly: true, + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + }, + }, }; export const NginxCertificateListResponse: coreClient.CompositeMapper = { @@ -204,19 +295,19 @@ export const NginxCertificateListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxCertificate" - } - } - } + className: "NginxCertificate", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxConfigurationListResponse: coreClient.CompositeMapper = { @@ -231,19 +322,19 @@ export const NginxConfigurationListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxConfiguration" - } - } - } + className: "NginxConfiguration", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxConfiguration: coreClient.CompositeMapper = { @@ -255,45 +346,45 @@ export const NginxConfiguration: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NginxConfigurationProperties" - } + className: "NginxConfigurationProperties", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const NginxConfigurationProperties: coreClient.CompositeMapper = { @@ -305,8 +396,8 @@ export const NginxConfigurationProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, files: { serializedName: "files", @@ -315,10 +406,10 @@ export const NginxConfigurationProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxConfigurationFile" - } - } - } + className: "NginxConfigurationFile", + }, + }, + }, }, protectedFiles: { serializedName: "protectedFiles", @@ -327,26 +418,26 @@ export const NginxConfigurationProperties: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxConfigurationFile" - } - } - } + className: "NginxConfigurationFile", + }, + }, + }, }, package: { serializedName: "package", type: { name: "Composite", - className: "NginxConfigurationPackage" - } + className: "NginxConfigurationPackage", + }, }, rootFile: { serializedName: "rootFile", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxConfigurationFile: coreClient.CompositeMapper = { @@ -357,17 +448,17 @@ export const NginxConfigurationFile: coreClient.CompositeMapper = { content: { serializedName: "content", type: { - name: "String" - } + name: "String", + }, }, virtualPath: { serializedName: "virtualPath", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxConfigurationPackage: coreClient.CompositeMapper = { @@ -378,8 +469,62 @@ export const NginxConfigurationPackage: coreClient.CompositeMapper = { data: { serializedName: "data", type: { - name: "String" - } + name: "String", + }, + }, + protectedFiles: { + serializedName: "protectedFiles", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const AnalysisCreate: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisCreate", + modelProperties: { + config: { + serializedName: "config", + type: { + name: "Composite", + className: "AnalysisCreateConfig", + }, + }, + }, + }, +}; + +export const AnalysisCreateConfig: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisCreateConfig", + modelProperties: { + rootFile: { + serializedName: "rootFile", + type: { + name: "String", + }, + }, + files: { + serializedName: "files", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NginxConfigurationFile", + }, + }, + }, }, protectedFiles: { serializedName: "protectedFiles", @@ -387,13 +532,122 @@ export const NginxConfigurationPackage: coreClient.CompositeMapper = { name: "Sequence", element: { type: { - name: "String" - } - } - } - } - } - } + name: "Composite", + className: "NginxConfigurationFile", + }, + }, + }, + }, + package: { + serializedName: "package", + type: { + name: "Composite", + className: "NginxConfigurationPackage", + }, + }, + }, + }, +}; + +export const AnalysisResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisResult", + modelProperties: { + status: { + serializedName: "status", + required: true, + type: { + name: "String", + }, + }, + data: { + serializedName: "data", + type: { + name: "Composite", + className: "AnalysisResultData", + }, + }, + }, + }, +}; + +export const AnalysisResultData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisResultData", + modelProperties: { + errors: { + serializedName: "errors", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AnalysisDiagnostic", + }, + }, + }, + }, + }, + }, +}; + +export const AnalysisDiagnostic: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AnalysisDiagnostic", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + directive: { + serializedName: "directive", + required: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + required: true, + type: { + name: "String", + }, + }, + file: { + serializedName: "file", + required: true, + type: { + name: "String", + }, + }, + line: { + serializedName: "line", + required: true, + type: { + name: "Number", + }, + }, + message: { + serializedName: "message", + required: true, + type: { + name: "String", + }, + }, + rule: { + serializedName: "rule", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; export const NginxDeployment: coreClient.CompositeMapper = { @@ -405,66 +659,66 @@ export const NginxDeployment: coreClient.CompositeMapper = { serializedName: "id", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, name: { serializedName: "name", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, identity: { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" - } + className: "IdentityProperties", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NginxDeploymentProperties" - } + className: "NginxDeploymentProperties", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, systemData: { serializedName: "systemData", type: { name: "Composite", - className: "SystemData" - } - } - } - } + className: "SystemData", + }, + }, + }, + }, }; export const IdentityProperties: coreClient.CompositeMapper = { @@ -476,33 +730,33 @@ export const IdentityProperties: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, tenantId: { serializedName: "tenantId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, type: { serializedName: "type", type: { - name: "String" - } + name: "String", + }, }, userAssignedIdentities: { serializedName: "userAssignedIdentities", type: { name: "Dictionary", value: { - type: { name: "Composite", className: "UserIdentityProperties" } - } - } - } - } - } + type: { name: "Composite", className: "UserIdentityProperties" }, + }, + }, + }, + }, + }, }; export const UserIdentityProperties: coreClient.CompositeMapper = { @@ -514,18 +768,18 @@ export const UserIdentityProperties: coreClient.CompositeMapper = { serializedName: "principalId", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, clientId: { serializedName: "clientId", readOnly: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxDeploymentProperties: coreClient.CompositeMapper = { @@ -537,65 +791,72 @@ export const NginxDeploymentProperties: coreClient.CompositeMapper = { serializedName: "provisioningState", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, nginxVersion: { serializedName: "nginxVersion", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, managedResourceGroup: { serializedName: "managedResourceGroup", type: { - name: "String" - } + name: "String", + }, }, networkProfile: { serializedName: "networkProfile", type: { name: "Composite", - className: "NginxNetworkProfile" - } + className: "NginxNetworkProfile", + }, }, ipAddress: { serializedName: "ipAddress", readOnly: true, type: { - name: "String" - } + name: "String", + }, }, enableDiagnosticsSupport: { serializedName: "enableDiagnosticsSupport", type: { - name: "Boolean" - } + name: "Boolean", + }, }, logging: { serializedName: "logging", type: { name: "Composite", - className: "NginxLogging" - } + className: "NginxLogging", + }, }, scalingProperties: { serializedName: "scalingProperties", type: { name: "Composite", - className: "NginxDeploymentScalingProperties" - } + className: "NginxDeploymentScalingProperties", + }, + }, + autoUpgradeProfile: { + serializedName: "autoUpgradeProfile", + type: { + name: "Composite", + className: "AutoUpgradeProfile", + }, }, userProfile: { serializedName: "userProfile", type: { name: "Composite", - className: "NginxDeploymentUserProfile" - } - } - } - } + className: "NginxDeploymentUserProfile", + }, + }, + }, + }, }; export const NginxNetworkProfile: coreClient.CompositeMapper = { @@ -607,18 +868,18 @@ export const NginxNetworkProfile: coreClient.CompositeMapper = { serializedName: "frontEndIPConfiguration", type: { name: "Composite", - className: "NginxFrontendIPConfiguration" - } + className: "NginxFrontendIPConfiguration", + }, }, networkInterfaceConfiguration: { serializedName: "networkInterfaceConfiguration", type: { name: "Composite", - className: "NginxNetworkInterfaceConfiguration" - } - } - } - } + className: "NginxNetworkInterfaceConfiguration", + }, + }, + }, + }, }; export const NginxFrontendIPConfiguration: coreClient.CompositeMapper = { @@ -633,10 +894,10 @@ export const NginxFrontendIPConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxPublicIPAddress" - } - } - } + className: "NginxPublicIPAddress", + }, + }, + }, }, privateIPAddresses: { serializedName: "privateIPAddresses", @@ -645,13 +906,13 @@ export const NginxFrontendIPConfiguration: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxPrivateIPAddress" - } - } - } - } - } - } + className: "NginxPrivateIPAddress", + }, + }, + }, + }, + }, + }, }; export const NginxPublicIPAddress: coreClient.CompositeMapper = { @@ -662,11 +923,11 @@ export const NginxPublicIPAddress: coreClient.CompositeMapper = { id: { serializedName: "id", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxPrivateIPAddress: coreClient.CompositeMapper = { @@ -677,23 +938,23 @@ export const NginxPrivateIPAddress: coreClient.CompositeMapper = { privateIPAddress: { serializedName: "privateIPAddress", type: { - name: "String" - } + name: "String", + }, }, privateIPAllocationMethod: { serializedName: "privateIPAllocationMethod", type: { - name: "String" - } + name: "String", + }, }, subnetId: { serializedName: "subnetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxNetworkInterfaceConfiguration: coreClient.CompositeMapper = { @@ -704,11 +965,11 @@ export const NginxNetworkInterfaceConfiguration: coreClient.CompositeMapper = { subnetId: { serializedName: "subnetId", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxLogging: coreClient.CompositeMapper = { @@ -720,11 +981,11 @@ export const NginxLogging: coreClient.CompositeMapper = { serializedName: "storageAccount", type: { name: "Composite", - className: "NginxStorageAccount" - } - } - } - } + className: "NginxStorageAccount", + }, + }, + }, + }, }; export const NginxStorageAccount: coreClient.CompositeMapper = { @@ -735,17 +996,17 @@ export const NginxStorageAccount: coreClient.CompositeMapper = { accountName: { serializedName: "accountName", type: { - name: "String" - } + name: "String", + }, }, containerName: { serializedName: "containerName", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxDeploymentScalingProperties: coreClient.CompositeMapper = { @@ -756,11 +1017,91 @@ export const NginxDeploymentScalingProperties: coreClient.CompositeMapper = { capacity: { serializedName: "capacity", type: { - name: "Number" - } - } - } - } + name: "Number", + }, + }, + profiles: { + serializedName: "autoScaleSettings.profiles", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScaleProfile", + }, + }, + }, + }, + }, + }, +}; + +export const ScaleProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleProfile", + modelProperties: { + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + capacity: { + serializedName: "capacity", + type: { + name: "Composite", + className: "ScaleProfileCapacity", + }, + }, + }, + }, +}; + +export const ScaleProfileCapacity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScaleProfileCapacity", + modelProperties: { + min: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "min", + required: true, + type: { + name: "Number", + }, + }, + max: { + constraints: { + InclusiveMinimum: 0, + }, + serializedName: "max", + required: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const AutoUpgradeProfile: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutoUpgradeProfile", + modelProperties: { + upgradeChannel: { + serializedName: "upgradeChannel", + required: true, + type: { + name: "String", + }, + }, + }, + }, }; export const NginxDeploymentUserProfile: coreClient.CompositeMapper = { @@ -771,16 +1112,16 @@ export const NginxDeploymentUserProfile: coreClient.CompositeMapper = { preferredEmail: { constraints: { Pattern: new RegExp( - "^$|^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$" - ) + "^$|^[A-Za-z0-9._%+-]+@(?:[A-Za-z0-9-]+\\.)+[A-Za-z]{2,}$", + ), }, serializedName: "preferredEmail", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const ResourceSku: coreClient.CompositeMapper = { @@ -792,11 +1133,11 @@ export const ResourceSku: coreClient.CompositeMapper = { serializedName: "name", required: true, type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const NginxDeploymentUpdateParameters: coreClient.CompositeMapper = { @@ -808,38 +1149,38 @@ export const NginxDeploymentUpdateParameters: coreClient.CompositeMapper = { serializedName: "identity", type: { name: "Composite", - className: "IdentityProperties" - } + className: "IdentityProperties", + }, }, tags: { serializedName: "tags", type: { name: "Dictionary", - value: { type: { name: "String" } } - } + value: { type: { name: "String" } }, + }, }, sku: { serializedName: "sku", type: { name: "Composite", - className: "ResourceSku" - } + className: "ResourceSku", + }, }, location: { serializedName: "location", type: { - name: "String" - } + name: "String", + }, }, properties: { serializedName: "properties", type: { name: "Composite", - className: "NginxDeploymentUpdateProperties" - } - } - } - } + className: "NginxDeploymentUpdateProperties", + }, + }, + }, + }, }; export const NginxDeploymentUpdateProperties: coreClient.CompositeMapper = { @@ -850,32 +1191,39 @@ export const NginxDeploymentUpdateProperties: coreClient.CompositeMapper = { enableDiagnosticsSupport: { serializedName: "enableDiagnosticsSupport", type: { - name: "Boolean" - } + name: "Boolean", + }, }, logging: { serializedName: "logging", type: { name: "Composite", - className: "NginxLogging" - } + className: "NginxLogging", + }, }, scalingProperties: { serializedName: "scalingProperties", type: { name: "Composite", - className: "NginxDeploymentScalingProperties" - } + className: "NginxDeploymentScalingProperties", + }, }, userProfile: { serializedName: "userProfile", type: { name: "Composite", - className: "NginxDeploymentUserProfile" - } - } - } - } + className: "NginxDeploymentUserProfile", + }, + }, + autoUpgradeProfile: { + serializedName: "autoUpgradeProfile", + type: { + name: "Composite", + className: "AutoUpgradeProfile", + }, + }, + }, + }, }; export const NginxDeploymentListResponse: coreClient.CompositeMapper = { @@ -890,19 +1238,19 @@ export const NginxDeploymentListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "NginxDeployment" - } - } - } + className: "NginxDeployment", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationListResult: coreClient.CompositeMapper = { @@ -917,19 +1265,19 @@ export const OperationListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "OperationResult" - } - } - } + className: "OperationResult", + }, + }, + }, }, nextLink: { serializedName: "nextLink", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; export const OperationResult: coreClient.CompositeMapper = { @@ -940,24 +1288,24 @@ export const OperationResult: coreClient.CompositeMapper = { name: { serializedName: "name", type: { - name: "String" - } + name: "String", + }, }, display: { serializedName: "display", type: { name: "Composite", - className: "OperationDisplay" - } + className: "OperationDisplay", + }, }, isDataAction: { serializedName: "isDataAction", type: { - name: "Boolean" - } - } - } - } + name: "Boolean", + }, + }, + }, + }, }; export const OperationDisplay: coreClient.CompositeMapper = { @@ -968,27 +1316,27 @@ export const OperationDisplay: coreClient.CompositeMapper = { provider: { serializedName: "provider", type: { - name: "String" - } + name: "String", + }, }, resource: { serializedName: "resource", type: { - name: "String" - } + name: "String", + }, }, operation: { serializedName: "operation", type: { - name: "String" - } + name: "String", + }, }, description: { serializedName: "description", type: { - name: "String" - } - } - } - } + name: "String", + }, + }, + }, + }, }; diff --git a/sdk/nginx/arm-nginx/src/models/parameters.ts b/sdk/nginx/arm-nginx/src/models/parameters.ts index 6bcd0efa1953..5fe0fe0a6539 100644 --- a/sdk/nginx/arm-nginx/src/models/parameters.ts +++ b/sdk/nginx/arm-nginx/src/models/parameters.ts @@ -9,13 +9,14 @@ import { OperationParameter, OperationURLParameter, - OperationQueryParameter + OperationQueryParameter, } from "@azure/core-client"; import { NginxCertificate as NginxCertificateMapper, NginxConfiguration as NginxConfigurationMapper, + AnalysisCreate as AnalysisCreateMapper, NginxDeployment as NginxDeploymentMapper, - NginxDeploymentUpdateParameters as NginxDeploymentUpdateParametersMapper + NginxDeploymentUpdateParameters as NginxDeploymentUpdateParametersMapper, } from "../models/mappers"; export const accept: OperationParameter = { @@ -25,9 +26,9 @@ export const accept: OperationParameter = { isConstant: true, serializedName: "Accept", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const $host: OperationURLParameter = { @@ -36,24 +37,24 @@ export const $host: OperationURLParameter = { serializedName: "$host", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - MinLength: 1 + MinLength: 1, }, serializedName: "subscriptionId", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const resourceGroupName: OperationURLParameter = { @@ -61,25 +62,30 @@ export const resourceGroupName: OperationURLParameter = { mapper: { constraints: { MaxLength: 90, - MinLength: 1 + MinLength: 1, }, serializedName: "resourceGroupName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const deploymentName: OperationURLParameter = { parameterPath: "deploymentName", mapper: { + constraints: { + Pattern: new RegExp( + "^([a-z0-9A-Z][a-z0-9A-Z-]{0,28}[a-z0-9A-Z]|[a-z0-9A-Z])$", + ), + }, serializedName: "deploymentName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const certificateName: OperationURLParameter = { @@ -88,21 +94,21 @@ export const certificateName: OperationURLParameter = { serializedName: "certificateName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-04-01", + defaultValue: "2024-01-01-preview", isConstant: true, serializedName: "api-version", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const contentType: OperationParameter = { @@ -112,14 +118,14 @@ export const contentType: OperationParameter = { isConstant: true, serializedName: "Content-Type", type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body: OperationParameter = { parameterPath: ["options", "body"], - mapper: NginxCertificateMapper + mapper: NginxCertificateMapper, }; export const nextLink: OperationURLParameter = { @@ -128,10 +134,10 @@ export const nextLink: OperationURLParameter = { serializedName: "nextLink", required: true, type: { - name: "String" - } + name: "String", + }, }, - skipEncoding: true + skipEncoding: true, }; export const configurationName: OperationURLParameter = { @@ -140,22 +146,41 @@ export const configurationName: OperationURLParameter = { serializedName: "configurationName", required: true, type: { - name: "String" - } - } + name: "String", + }, + }, }; export const body1: OperationParameter = { parameterPath: ["options", "body"], - mapper: NginxConfigurationMapper + mapper: NginxConfigurationMapper, }; export const body2: OperationParameter = { parameterPath: ["options", "body"], - mapper: NginxDeploymentMapper + mapper: AnalysisCreateMapper, +}; + +export const configurationName1: OperationURLParameter = { + parameterPath: "configurationName", + mapper: { + constraints: { + Pattern: new RegExp("^[a-z][a-z0-9]*$"), + }, + serializedName: "configurationName", + required: true, + type: { + name: "String", + }, + }, }; export const body3: OperationParameter = { parameterPath: ["options", "body"], - mapper: NginxDeploymentUpdateParametersMapper + mapper: NginxDeploymentMapper, +}; + +export const body4: OperationParameter = { + parameterPath: ["options", "body"], + mapper: NginxDeploymentUpdateParametersMapper, }; diff --git a/sdk/nginx/arm-nginx/src/nginxManagementClient.ts b/sdk/nginx/arm-nginx/src/nginxManagementClient.ts index f88fe8888409..1b8a52cd0106 100644 --- a/sdk/nginx/arm-nginx/src/nginxManagementClient.ts +++ b/sdk/nginx/arm-nginx/src/nginxManagementClient.ts @@ -11,20 +11,20 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import { PipelineRequest, PipelineResponse, - SendRequest + SendRequest, } from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { CertificatesImpl, ConfigurationsImpl, DeploymentsImpl, - OperationsImpl + OperationsImpl, } from "./operations"; import { Certificates, Configurations, Deployments, - Operations + Operations, } from "./operationsInterfaces"; import { NginxManagementClientOptionalParams } from "./models"; @@ -42,7 +42,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { constructor( credentials: coreAuth.TokenCredential, subscriptionId: string, - options?: NginxManagementClientOptionalParams + options?: NginxManagementClientOptionalParams, ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); @@ -57,10 +57,10 @@ export class NginxManagementClient extends coreClient.ServiceClient { } const defaults: NginxManagementClientOptionalParams = { requestContentType: "application/json; charset=utf-8", - credential: credentials + credential: credentials, }; - const packageDetails = `azsdk-js-arm-nginx/3.0.1`; + const packageDetails = `azsdk-js-arm-nginx/4.0.0-beta.1`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -70,20 +70,21 @@ export class NginxManagementClient extends coreClient.ServiceClient { ...defaults, ...options, userAgentOptions: { - userAgentPrefix + userAgentPrefix, }, endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com" + options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); let bearerTokenAuthenticationPolicyFound: boolean = false; if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) { - const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies(); + const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = + options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName + coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -93,7 +94,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { !bearerTokenAuthenticationPolicyFound ) { this.pipeline.removePolicy({ - name: coreRestPipeline.bearerTokenAuthenticationPolicyName + name: coreRestPipeline.bearerTokenAuthenticationPolicyName, }); this.pipeline.addPolicy( coreRestPipeline.bearerTokenAuthenticationPolicy({ @@ -103,9 +104,9 @@ export class NginxManagementClient extends coreClient.ServiceClient { `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge - } - }) + coreClient.authorizeRequestOnClaimChallenge, + }, + }), ); } // Parameter assignments @@ -113,7 +114,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; - this.apiVersion = options.apiVersion || "2023-04-01"; + this.apiVersion = options.apiVersion || "2024-01-01-preview"; this.certificates = new CertificatesImpl(this); this.configurations = new ConfigurationsImpl(this); this.deployments = new DeploymentsImpl(this); @@ -130,7 +131,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { name: "CustomApiVersionPolicy", async sendRequest( request: PipelineRequest, - next: SendRequest + next: SendRequest, ): Promise { const param = request.url.split("?"); if (param.length > 1) { @@ -144,7 +145,7 @@ export class NginxManagementClient extends coreClient.ServiceClient { request.url = param[0] + "?" + newParams.join("&"); } return next(request); - } + }, }; this.pipeline.addPolicy(apiVersionPolicy); } diff --git a/sdk/nginx/arm-nginx/src/operations/certificates.ts b/sdk/nginx/arm-nginx/src/operations/certificates.ts index 20cedc18fb55..3f17575ec241 100644 --- a/sdk/nginx/arm-nginx/src/operations/certificates.ts +++ b/sdk/nginx/arm-nginx/src/operations/certificates.ts @@ -16,7 +16,7 @@ import { NginxManagementClient } from "../nginxManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,7 @@ import { CertificatesCreateOrUpdateOptionalParams, CertificatesCreateOrUpdateResponse, CertificatesDeleteOptionalParams, - CertificatesListNextResponse + CertificatesListNextResponse, } from "../models"; /// @@ -54,7 +54,7 @@ export class CertificatesImpl implements Certificates { public list( resourceGroupName: string, deploymentName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, deploymentName, options); return { @@ -72,9 +72,9 @@ export class CertificatesImpl implements Certificates { resourceGroupName, deploymentName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +82,7 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, options?: CertificatesListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: CertificatesListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class CertificatesImpl implements Certificates { resourceGroupName, deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +110,12 @@ export class CertificatesImpl implements Certificates { private async *listPagingAll( resourceGroupName: string, deploymentName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, deploymentName, - options + options, )) { yield* page; } @@ -132,11 +132,11 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesGetOptionalParams + options?: CertificatesGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, certificateName, options }, - getOperationSpec + getOperationSpec, ); } @@ -151,7 +151,7 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -160,21 +160,20 @@ export class CertificatesImpl implements Certificates { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -183,8 +182,8 @@ export class CertificatesImpl implements Certificates { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -192,15 +191,15 @@ export class CertificatesImpl implements Certificates { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, certificateName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< CertificatesCreateOrUpdateResponse, @@ -208,7 +207,7 @@ export class CertificatesImpl implements Certificates { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -225,13 +224,13 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, deploymentName, certificateName, - options + options, ); return poller.pollUntilDone(); } @@ -247,25 +246,24 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -274,8 +272,8 @@ export class CertificatesImpl implements Certificates { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -283,19 +281,19 @@ export class CertificatesImpl implements Certificates { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, certificateName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -312,13 +310,13 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, deploymentName, certificateName, - options + options, ); return poller.pollUntilDone(); } @@ -332,11 +330,11 @@ export class CertificatesImpl implements Certificates { private _list( resourceGroupName: string, deploymentName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - listOperationSpec + listOperationSpec, ); } @@ -351,11 +349,11 @@ export class CertificatesImpl implements Certificates { resourceGroupName: string, deploymentName: string, nextLink: string, - options?: CertificatesListNextOptionalParams + options?: CertificatesListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -363,16 +361,15 @@ export class CertificatesImpl implements Certificates { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -380,31 +377,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, 201: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, 202: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, 204: { - bodyMapper: Mappers.NginxCertificate + bodyMapper: Mappers.NginxCertificate, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body, queryParameters: [Parameters.apiVersion], @@ -413,15 +409,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates/{certificateName}", httpMethod: "DELETE", responses: { 200: {}, @@ -429,8 +424,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -438,51 +433,50 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.certificateName + Parameters.certificateName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/certificates", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxCertificateListResponse + bodyMapper: Mappers.NginxCertificateListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxCertificateListResponse + bodyMapper: Mappers.NginxCertificateListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/nginx/arm-nginx/src/operations/configurations.ts b/sdk/nginx/arm-nginx/src/operations/configurations.ts index d806568ef4e7..db20c6504f9a 100644 --- a/sdk/nginx/arm-nginx/src/operations/configurations.ts +++ b/sdk/nginx/arm-nginx/src/operations/configurations.ts @@ -16,7 +16,7 @@ import { NginxManagementClient } from "../nginxManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -29,7 +29,9 @@ import { ConfigurationsCreateOrUpdateOptionalParams, ConfigurationsCreateOrUpdateResponse, ConfigurationsDeleteOptionalParams, - ConfigurationsListNextResponse + ConfigurationsAnalysisOptionalParams, + ConfigurationsAnalysisResponse, + ConfigurationsListNextResponse, } from "../models"; /// @@ -54,7 +56,7 @@ export class ConfigurationsImpl implements Configurations { public list( resourceGroupName: string, deploymentName: string, - options?: ConfigurationsListOptionalParams + options?: ConfigurationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(resourceGroupName, deploymentName, options); return { @@ -72,9 +74,9 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName, deploymentName, options, - settings + settings, ); - } + }, }; } @@ -82,7 +84,7 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, options?: ConfigurationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: ConfigurationsListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +100,7 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName, deploymentName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -110,12 +112,12 @@ export class ConfigurationsImpl implements Configurations { private async *listPagingAll( resourceGroupName: string, deploymentName: string, - options?: ConfigurationsListOptionalParams + options?: ConfigurationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage( resourceGroupName, deploymentName, - options + options, )) { yield* page; } @@ -130,11 +132,11 @@ export class ConfigurationsImpl implements Configurations { private _list( resourceGroupName: string, deploymentName: string, - options?: ConfigurationsListOptionalParams + options?: ConfigurationsListOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - listOperationSpec + listOperationSpec, ); } @@ -150,11 +152,11 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsGetOptionalParams + options?: ConfigurationsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, configurationName, options }, - getOperationSpec + getOperationSpec, ); } @@ -170,7 +172,7 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsCreateOrUpdateOptionalParams + options?: ConfigurationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -179,21 +181,20 @@ export class ConfigurationsImpl implements Configurations { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -202,8 +203,8 @@ export class ConfigurationsImpl implements Configurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -211,15 +212,15 @@ export class ConfigurationsImpl implements Configurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, configurationName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< ConfigurationsCreateOrUpdateResponse, @@ -227,7 +228,7 @@ export class ConfigurationsImpl implements Configurations { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -245,13 +246,13 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsCreateOrUpdateOptionalParams + options?: ConfigurationsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, deploymentName, configurationName, - options + options, ); return poller.pollUntilDone(); } @@ -268,25 +269,24 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsDeleteOptionalParams + options?: ConfigurationsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -295,8 +295,8 @@ export class ConfigurationsImpl implements Configurations { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -304,19 +304,19 @@ export class ConfigurationsImpl implements Configurations { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, configurationName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -334,17 +334,37 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsDeleteOptionalParams + options?: ConfigurationsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, deploymentName, configurationName, - options + options, ); return poller.pollUntilDone(); } + /** + * Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param deploymentName The name of targeted NGINX deployment + * @param configurationName The name of configuration, only 'default' is supported value due to the + * singleton of NGINX conf + * @param options The options parameters. + */ + analysis( + resourceGroupName: string, + deploymentName: string, + configurationName: string, + options?: ConfigurationsAnalysisOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, deploymentName, configurationName, options }, + analysisOperationSpec, + ); + } + /** * ListNext * @param resourceGroupName The name of the resource group. The name is case insensitive. @@ -356,11 +376,11 @@ export class ConfigurationsImpl implements Configurations { resourceGroupName: string, deploymentName: string, nextLink: string, - options?: ConfigurationsListNextOptionalParams + options?: ConfigurationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -368,38 +388,36 @@ export class ConfigurationsImpl implements Configurations { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxConfigurationListResponse + bodyMapper: Mappers.NginxConfigurationListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -407,31 +425,30 @@ const getOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, 201: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, 202: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, 204: { - bodyMapper: Mappers.NginxConfiguration + bodyMapper: Mappers.NginxConfiguration, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, requestBody: Parameters.body1, queryParameters: [Parameters.apiVersion], @@ -440,15 +457,14 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}", httpMethod: "DELETE", responses: { 200: {}, @@ -456,8 +472,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ @@ -465,29 +481,53 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.configurationName + Parameters.configurationName, ], headerParameters: [Parameters.accept], - serializer + serializer, +}; +const analysisOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}/configurations/{configurationName}/analyze", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AnalysisResult, + }, + default: { + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, + }, + requestBody: Parameters.body2, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.deploymentName, + Parameters.configurationName1, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxConfigurationListResponse + bodyMapper: Mappers.NginxConfigurationListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.deploymentName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/nginx/arm-nginx/src/operations/deployments.ts b/sdk/nginx/arm-nginx/src/operations/deployments.ts index 1a2655c41047..20a7dcf3d60b 100644 --- a/sdk/nginx/arm-nginx/src/operations/deployments.ts +++ b/sdk/nginx/arm-nginx/src/operations/deployments.ts @@ -16,7 +16,7 @@ import { NginxManagementClient } from "../nginxManagementClient"; import { SimplePollerLike, OperationState, - createHttpPoller + createHttpPoller, } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl"; import { @@ -35,7 +35,7 @@ import { DeploymentsUpdateResponse, DeploymentsDeleteOptionalParams, DeploymentsListNextResponse, - DeploymentsListByResourceGroupNextResponse + DeploymentsListByResourceGroupNextResponse, } from "../models"; /// @@ -56,7 +56,7 @@ export class DeploymentsImpl implements Deployments { * @param options The options parameters. */ public list( - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -71,13 +71,13 @@ export class DeploymentsImpl implements Deployments { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: DeploymentsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListResponse; let continuationToken = settings?.continuationToken; @@ -98,7 +98,7 @@ export class DeploymentsImpl implements Deployments { } private async *listPagingAll( - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -112,7 +112,7 @@ export class DeploymentsImpl implements Deployments { */ public listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listByResourceGroupPagingAll(resourceGroupName, options); return { @@ -129,16 +129,16 @@ export class DeploymentsImpl implements Deployments { return this.listByResourceGroupPagingPage( resourceGroupName, options, - settings + settings, ); - } + }, }; } private async *listByResourceGroupPagingPage( resourceGroupName: string, options?: DeploymentsListByResourceGroupOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: DeploymentsListByResourceGroupResponse; let continuationToken = settings?.continuationToken; @@ -153,7 +153,7 @@ export class DeploymentsImpl implements Deployments { result = await this._listByResourceGroupNext( resourceGroupName, continuationToken, - options + options, ); continuationToken = result.nextLink; let page = result.value || []; @@ -164,11 +164,11 @@ export class DeploymentsImpl implements Deployments { private async *listByResourceGroupPagingAll( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): AsyncIterableIterator { for await (const page of this.listByResourceGroupPagingPage( resourceGroupName, - options + options, )) { yield* page; } @@ -183,11 +183,11 @@ export class DeploymentsImpl implements Deployments { get( resourceGroupName: string, deploymentName: string, - options?: DeploymentsGetOptionalParams + options?: DeploymentsGetOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, deploymentName, options }, - getOperationSpec + getOperationSpec, ); } @@ -200,7 +200,7 @@ export class DeploymentsImpl implements Deployments { async beginCreateOrUpdate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -209,21 +209,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -232,8 +231,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -241,15 +240,15 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, options }, - spec: createOrUpdateOperationSpec + spec: createOrUpdateOperationSpec, }); const poller = await createHttpPoller< DeploymentsCreateOrUpdateResponse, @@ -257,7 +256,7 @@ export class DeploymentsImpl implements Deployments { >(lro, { restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs, - resourceLocationConfig: "azure-async-operation" + resourceLocationConfig: "azure-async-operation", }); await poller.poll(); return poller; @@ -272,12 +271,12 @@ export class DeploymentsImpl implements Deployments { async beginCreateOrUpdateAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise { const poller = await this.beginCreateOrUpdate( resourceGroupName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -291,7 +290,7 @@ export class DeploymentsImpl implements Deployments { async beginUpdate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -300,21 +299,20 @@ export class DeploymentsImpl implements Deployments { > { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -323,8 +321,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -332,22 +330,22 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, options }, - spec: updateOperationSpec + spec: updateOperationSpec, }); const poller = await createHttpPoller< DeploymentsUpdateResponse, OperationState >(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -362,12 +360,12 @@ export class DeploymentsImpl implements Deployments { async beginUpdateAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise { const poller = await this.beginUpdate( resourceGroupName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -381,25 +379,24 @@ export class DeploymentsImpl implements Deployments { async beginDelete( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ): Promise => { return this.client.sendOperationRequest(args, spec); }; const sendOperationFn = async ( args: coreClient.OperationArguments, - spec: coreClient.OperationSpec + spec: coreClient.OperationSpec, ) => { - let currentRawResponse: - | coreClient.FullOperationResponse - | undefined = undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown + flatResponse: unknown, ) => { currentRawResponse = rawResponse; providedCallback?.(rawResponse, flatResponse); @@ -408,8 +405,8 @@ export class DeploymentsImpl implements Deployments { ...args, options: { ...args.options, - onResponse: callback - } + onResponse: callback, + }, }; const flatResponse = await directSendOperation(updatedArgs, spec); return { @@ -417,19 +414,19 @@ export class DeploymentsImpl implements Deployments { rawResponse: { statusCode: currentRawResponse!.status, body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON() - } + headers: currentRawResponse!.headers.toJSON(), + }, }; }; const lro = createLroSpec({ sendOperationFn, args: { resourceGroupName, deploymentName, options }, - spec: deleteOperationSpec + spec: deleteOperationSpec, }); const poller = await createHttpPoller>(lro, { restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs + intervalInMs: options?.updateIntervalInMs, }); await poller.poll(); return poller; @@ -444,12 +441,12 @@ export class DeploymentsImpl implements Deployments { async beginDeleteAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise { const poller = await this.beginDelete( resourceGroupName, deploymentName, - options + options, ); return poller.pollUntilDone(); } @@ -459,7 +456,7 @@ export class DeploymentsImpl implements Deployments { * @param options The options parameters. */ private _list( - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -471,11 +468,11 @@ export class DeploymentsImpl implements Deployments { */ private _listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, options }, - listByResourceGroupOperationSpec + listByResourceGroupOperationSpec, ); } @@ -486,11 +483,11 @@ export class DeploymentsImpl implements Deployments { */ private _listNext( nextLink: string, - options?: DeploymentsListNextOptionalParams + options?: DeploymentsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } @@ -503,11 +500,11 @@ export class DeploymentsImpl implements Deployments { private _listByResourceGroupNext( resourceGroupName: string, nextLink: string, - options?: DeploymentsListByResourceGroupNextOptionalParams + options?: DeploymentsListByResourceGroupNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { resourceGroupName, nextLink, options }, - listByResourceGroupNextOperationSpec + listByResourceGroupNextOperationSpec, ); } } @@ -515,96 +512,92 @@ export class DeploymentsImpl implements Deployments { const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); const getOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const createOrUpdateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", httpMethod: "PUT", responses: { 200: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 201: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 202: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 204: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body2, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const updateOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", httpMethod: "PATCH", responses: { 200: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 201: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 202: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, 204: { - bodyMapper: Mappers.NginxDeployment + bodyMapper: Mappers.NginxDeployment, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, - requestBody: Parameters.body3, + requestBody: Parameters.body4, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", - serializer + serializer, }; const deleteOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments/{deploymentName}", httpMethod: "DELETE", responses: { 200: {}, @@ -612,93 +605,91 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.deploymentName + Parameters.deploymentName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/providers/Nginx.NginxPlus/nginxDeployments", + path: "/subscriptions/{subscriptionId}/providers/Nginx.NginxPlus/nginxDeployments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeploymentListResponse + bodyMapper: Mappers.NginxDeploymentListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { - path: - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments", + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Nginx.NginxPlus/nginxDeployments", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeploymentListResponse + bodyMapper: Mappers.NginxDeploymentListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.resourceGroupName + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeploymentListResponse + bodyMapper: Mappers.NginxDeploymentListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.NginxDeploymentListResponse + bodyMapper: Mappers.NginxDeploymentListResponse, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, - Parameters.nextLink + Parameters.nextLink, ], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/nginx/arm-nginx/src/operations/operations.ts b/sdk/nginx/arm-nginx/src/operations/operations.ts index c09fc4b83b44..2e8073f0322f 100644 --- a/sdk/nginx/arm-nginx/src/operations/operations.ts +++ b/sdk/nginx/arm-nginx/src/operations/operations.ts @@ -18,7 +18,7 @@ import { OperationsListNextOptionalParams, OperationsListOptionalParams, OperationsListResponse, - OperationsListNextResponse + OperationsListNextResponse, } from "../models"; /// @@ -35,11 +35,11 @@ export class OperationsImpl implements Operations { } /** - * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. * @param options The options parameters. */ public list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { @@ -54,13 +54,13 @@ export class OperationsImpl implements Operations { throw new Error("maxPageSize is not supported by this operation."); } return this.listPagingPage(options, settings); - } + }, }; } private async *listPagingPage( options?: OperationsListOptionalParams, - settings?: PageSettings + settings?: PageSettings, ): AsyncIterableIterator { let result: OperationsListResponse; let continuationToken = settings?.continuationToken; @@ -81,7 +81,7 @@ export class OperationsImpl implements Operations { } private async *listPagingAll( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; @@ -89,11 +89,11 @@ export class OperationsImpl implements Operations { } /** - * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. * @param options The options parameters. */ private _list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -105,11 +105,11 @@ export class OperationsImpl implements Operations { */ private _listNext( nextLink: string, - options?: OperationsListNextOptionalParams + options?: OperationsListNextOptionalParams, ): Promise { return this.client.sendOperationRequest( { nextLink, options }, - listNextOperationSpec + listNextOperationSpec, ); } } @@ -121,29 +121,29 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], - serializer + serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationListResult + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.ResourceProviderDefaultErrorResponse - } + bodyMapper: Mappers.ResourceProviderDefaultErrorResponse, + }, }, urlParameters: [Parameters.$host, Parameters.nextLink], headerParameters: [Parameters.accept], - serializer + serializer, }; diff --git a/sdk/nginx/arm-nginx/src/operationsInterfaces/certificates.ts b/sdk/nginx/arm-nginx/src/operationsInterfaces/certificates.ts index 44f22982c5e0..50393c46185f 100644 --- a/sdk/nginx/arm-nginx/src/operationsInterfaces/certificates.ts +++ b/sdk/nginx/arm-nginx/src/operationsInterfaces/certificates.ts @@ -15,7 +15,7 @@ import { CertificatesGetResponse, CertificatesCreateOrUpdateOptionalParams, CertificatesCreateOrUpdateResponse, - CertificatesDeleteOptionalParams + CertificatesDeleteOptionalParams, } from "../models"; /// @@ -30,7 +30,7 @@ export interface Certificates { list( resourceGroupName: string, deploymentName: string, - options?: CertificatesListOptionalParams + options?: CertificatesListOptionalParams, ): PagedAsyncIterableIterator; /** * Get a certificate of given NGINX deployment @@ -43,7 +43,7 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesGetOptionalParams + options?: CertificatesGetOptionalParams, ): Promise; /** * Create or update the NGINX certificates for given NGINX deployment @@ -56,7 +56,7 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -74,7 +74,7 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesCreateOrUpdateOptionalParams + options?: CertificatesCreateOrUpdateOptionalParams, ): Promise; /** * Deletes a certificate from the NGINX deployment @@ -87,7 +87,7 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise, void>>; /** * Deletes a certificate from the NGINX deployment @@ -100,6 +100,6 @@ export interface Certificates { resourceGroupName: string, deploymentName: string, certificateName: string, - options?: CertificatesDeleteOptionalParams + options?: CertificatesDeleteOptionalParams, ): Promise; } diff --git a/sdk/nginx/arm-nginx/src/operationsInterfaces/configurations.ts b/sdk/nginx/arm-nginx/src/operationsInterfaces/configurations.ts index 16d58ec726fa..6a872d49af64 100644 --- a/sdk/nginx/arm-nginx/src/operationsInterfaces/configurations.ts +++ b/sdk/nginx/arm-nginx/src/operationsInterfaces/configurations.ts @@ -15,7 +15,9 @@ import { ConfigurationsGetResponse, ConfigurationsCreateOrUpdateOptionalParams, ConfigurationsCreateOrUpdateResponse, - ConfigurationsDeleteOptionalParams + ConfigurationsDeleteOptionalParams, + ConfigurationsAnalysisOptionalParams, + ConfigurationsAnalysisResponse, } from "../models"; /// @@ -30,7 +32,7 @@ export interface Configurations { list( resourceGroupName: string, deploymentName: string, - options?: ConfigurationsListOptionalParams + options?: ConfigurationsListOptionalParams, ): PagedAsyncIterableIterator; /** * Get the NGINX configuration of given NGINX deployment @@ -44,7 +46,7 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsGetOptionalParams + options?: ConfigurationsGetOptionalParams, ): Promise; /** * Create or update the NGINX configuration for given NGINX deployment @@ -58,7 +60,7 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsCreateOrUpdateOptionalParams + options?: ConfigurationsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -77,7 +79,7 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsCreateOrUpdateOptionalParams + options?: ConfigurationsCreateOrUpdateOptionalParams, ): Promise; /** * Reset the NGINX configuration of given NGINX deployment to default @@ -91,7 +93,7 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsDeleteOptionalParams + options?: ConfigurationsDeleteOptionalParams, ): Promise, void>>; /** * Reset the NGINX configuration of given NGINX deployment to default @@ -105,6 +107,20 @@ export interface Configurations { resourceGroupName: string, deploymentName: string, configurationName: string, - options?: ConfigurationsDeleteOptionalParams + options?: ConfigurationsDeleteOptionalParams, ): Promise; + /** + * Analyze an NGINX configuration without applying it to the NGINXaaS deployment + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param deploymentName The name of targeted NGINX deployment + * @param configurationName The name of configuration, only 'default' is supported value due to the + * singleton of NGINX conf + * @param options The options parameters. + */ + analysis( + resourceGroupName: string, + deploymentName: string, + configurationName: string, + options?: ConfigurationsAnalysisOptionalParams, + ): Promise; } diff --git a/sdk/nginx/arm-nginx/src/operationsInterfaces/deployments.ts b/sdk/nginx/arm-nginx/src/operationsInterfaces/deployments.ts index 76fc5d572431..55d74eded8cd 100644 --- a/sdk/nginx/arm-nginx/src/operationsInterfaces/deployments.ts +++ b/sdk/nginx/arm-nginx/src/operationsInterfaces/deployments.ts @@ -18,7 +18,7 @@ import { DeploymentsCreateOrUpdateResponse, DeploymentsUpdateOptionalParams, DeploymentsUpdateResponse, - DeploymentsDeleteOptionalParams + DeploymentsDeleteOptionalParams, } from "../models"; /// @@ -29,7 +29,7 @@ export interface Deployments { * @param options The options parameters. */ list( - options?: DeploymentsListOptionalParams + options?: DeploymentsListOptionalParams, ): PagedAsyncIterableIterator; /** * List all NGINX deployments under the specified resource group. @@ -38,7 +38,7 @@ export interface Deployments { */ listByResourceGroup( resourceGroupName: string, - options?: DeploymentsListByResourceGroupOptionalParams + options?: DeploymentsListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator; /** * Get the NGINX deployment @@ -49,7 +49,7 @@ export interface Deployments { get( resourceGroupName: string, deploymentName: string, - options?: DeploymentsGetOptionalParams + options?: DeploymentsGetOptionalParams, ): Promise; /** * Create or update the NGINX deployment @@ -60,7 +60,7 @@ export interface Deployments { beginCreateOrUpdate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -76,7 +76,7 @@ export interface Deployments { beginCreateOrUpdateAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsCreateOrUpdateOptionalParams + options?: DeploymentsCreateOrUpdateOptionalParams, ): Promise; /** * Update the NGINX deployment @@ -87,7 +87,7 @@ export interface Deployments { beginUpdate( resourceGroupName: string, deploymentName: string, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise< SimplePollerLike< OperationState, @@ -103,7 +103,7 @@ export interface Deployments { beginUpdateAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsUpdateOptionalParams + options?: DeploymentsUpdateOptionalParams, ): Promise; /** * Delete the NGINX deployment resource @@ -114,7 +114,7 @@ export interface Deployments { beginDelete( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise, void>>; /** * Delete the NGINX deployment resource @@ -125,6 +125,6 @@ export interface Deployments { beginDeleteAndWait( resourceGroupName: string, deploymentName: string, - options?: DeploymentsDeleteOptionalParams + options?: DeploymentsDeleteOptionalParams, ): Promise; } diff --git a/sdk/nginx/arm-nginx/src/operationsInterfaces/operations.ts b/sdk/nginx/arm-nginx/src/operationsInterfaces/operations.ts index 02ecbb6dbd92..fce0fe5dfc2a 100644 --- a/sdk/nginx/arm-nginx/src/operationsInterfaces/operations.ts +++ b/sdk/nginx/arm-nginx/src/operationsInterfaces/operations.ts @@ -13,10 +13,10 @@ import { OperationResult, OperationsListOptionalParams } from "../models"; /** Interface representing a Operations. */ export interface Operations { /** - * List all operations provided by Nginx.NginxPlus for the 2023-04-01 api version. + * List all operations provided by Nginx.NginxPlus for the 2024-01-01-preview api version. * @param options The options parameters. */ list( - options?: OperationsListOptionalParams + options?: OperationsListOptionalParams, ): PagedAsyncIterableIterator; } diff --git a/sdk/nginx/arm-nginx/src/pagingHelper.ts b/sdk/nginx/arm-nginx/src/pagingHelper.ts index 269a2b9814b5..205cccc26592 100644 --- a/sdk/nginx/arm-nginx/src/pagingHelper.ts +++ b/sdk/nginx/arm-nginx/src/pagingHelper.ts @@ -28,7 +28,7 @@ export function getContinuationToken(page: unknown): string | undefined { export function setContinuationToken( page: unknown, - continuationToken: string | undefined + continuationToken: string | undefined, ): void { if (typeof page !== "object" || page === null || !continuationToken) { return; diff --git a/sdk/nginx/arm-nginx/test/sampleTest.ts b/sdk/nginx/arm-nginx/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/nginx/arm-nginx/test/sampleTest.ts @@ -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 = { + 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!"); + }); +}); diff --git a/sdk/nginx/arm-nginx/tsconfig.json b/sdk/nginx/arm-nginx/tsconfig.json index 8191e31c111d..3e6ae96443f3 100644 --- a/sdk/nginx/arm-nginx/tsconfig.json +++ b/sdk/nginx/arm-nginx/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-nginx": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"